linkbreakers 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -0
  3. package/dist/apis/CustomDomainsApi.d.ts +254 -0
  4. package/dist/apis/CustomDomainsApi.js +309 -0
  5. package/dist/apis/EventsApi.d.ts +161 -0
  6. package/dist/apis/EventsApi.js +205 -0
  7. package/dist/apis/IntegrationsServiceApi.d.ts +60 -0
  8. package/dist/apis/IntegrationsServiceApi.js +96 -0
  9. package/dist/apis/LinkSettingsApi.d.ts +105 -0
  10. package/dist/apis/LinkSettingsApi.js +146 -0
  11. package/dist/apis/LinksApi.d.ts +431 -0
  12. package/dist/apis/LinksApi.js +510 -0
  13. package/dist/apis/MediaApi.d.ts +181 -0
  14. package/dist/apis/MediaApi.js +231 -0
  15. package/dist/apis/MembersApi.d.ts +408 -0
  16. package/dist/apis/MembersApi.js +491 -0
  17. package/dist/apis/PageThemesApi.d.ts +138 -0
  18. package/dist/apis/PageThemesApi.js +184 -0
  19. package/dist/apis/QRCodeDesignsApi.d.ts +181 -0
  20. package/dist/apis/QRCodeDesignsApi.js +231 -0
  21. package/dist/apis/QRCodeTemplatesApi.d.ts +401 -0
  22. package/dist/apis/QRCodeTemplatesApi.js +472 -0
  23. package/dist/apis/TagsApi.d.ts +108 -0
  24. package/dist/apis/TagsApi.js +151 -0
  25. package/dist/apis/TimeSeriesApi.d.ts +61 -0
  26. package/dist/apis/TimeSeriesApi.js +98 -0
  27. package/dist/apis/VisitorsApi.d.ts +281 -0
  28. package/dist/apis/VisitorsApi.js +339 -0
  29. package/dist/apis/WebhooksApi.d.ts +219 -0
  30. package/dist/apis/WebhooksApi.js +272 -0
  31. package/dist/apis/WorkflowStepsApi.d.ts +325 -0
  32. package/dist/apis/WorkflowStepsApi.js +396 -0
  33. package/dist/apis/WorkspaceMetricsApi.d.ts +136 -0
  34. package/dist/apis/WorkspaceMetricsApi.js +180 -0
  35. package/dist/apis/WorkspaceTokensApi.d.ts +173 -0
  36. package/dist/apis/WorkspaceTokensApi.js +222 -0
  37. package/dist/apis/WorkspacesApi.d.ts +320 -0
  38. package/dist/apis/WorkspacesApi.js +389 -0
  39. package/dist/apis/index.d.ts +18 -0
  40. package/dist/apis/index.js +36 -0
  41. package/dist/index.d.ts +3 -0
  42. package/dist/index.js +21 -0
  43. package/dist/models/Action.d.ts +28 -0
  44. package/dist/models/Action.js +54 -0
  45. package/dist/models/AddWorkflowStepRelationshipResponse.d.ts +32 -0
  46. package/dist/models/AddWorkflowStepRelationshipResponse.js +48 -0
  47. package/dist/models/ApiTag.d.ts +51 -0
  48. package/dist/models/ApiTag.js +52 -0
  49. package/dist/models/BackgroundOptions.d.ts +33 -0
  50. package/dist/models/BackgroundOptions.js +49 -0
  51. package/dist/models/CanvasPosition.d.ts +38 -0
  52. package/dist/models/CanvasPosition.js +50 -0
  53. package/dist/models/CheckCustomDomainResponse.d.ts +33 -0
  54. package/dist/models/CheckCustomDomainResponse.js +49 -0
  55. package/dist/models/ClientRedirectPayload.d.ts +38 -0
  56. package/dist/models/ClientRedirectPayload.js +50 -0
  57. package/dist/models/ContactCardTraceCard.d.ts +104 -0
  58. package/dist/models/ContactCardTraceCard.js +72 -0
  59. package/dist/models/ContactCardTraceData.d.ts +33 -0
  60. package/dist/models/ContactCardTraceData.js +49 -0
  61. package/dist/models/ContainerConfig.d.ts +85 -0
  62. package/dist/models/ContainerConfig.js +80 -0
  63. package/dist/models/CornersDotOptions.d.ts +39 -0
  64. package/dist/models/CornersDotOptions.js +51 -0
  65. package/dist/models/CornersSquareOptions.d.ts +39 -0
  66. package/dist/models/CornersSquareOptions.js +51 -0
  67. package/dist/models/CountryConditionOutcome.d.ts +38 -0
  68. package/dist/models/CountryConditionOutcome.js +50 -0
  69. package/dist/models/CountryConditionPayload.d.ts +39 -0
  70. package/dist/models/CountryConditionPayload.js +51 -0
  71. package/dist/models/CountryConditionTraceData.d.ts +39 -0
  72. package/dist/models/CountryConditionTraceData.js +51 -0
  73. package/dist/models/CountryConditionTraceOption.d.ts +38 -0
  74. package/dist/models/CountryConditionTraceOption.js +50 -0
  75. package/dist/models/CreateBulkLinksRequest.d.ts +34 -0
  76. package/dist/models/CreateBulkLinksRequest.js +51 -0
  77. package/dist/models/CreateBulkLinksResponse.d.ts +33 -0
  78. package/dist/models/CreateBulkLinksResponse.js +49 -0
  79. package/dist/models/CreateContactLinkRequest.d.ts +108 -0
  80. package/dist/models/CreateContactLinkRequest.js +73 -0
  81. package/dist/models/CreateContactLinkResponse.d.ts +33 -0
  82. package/dist/models/CreateContactLinkResponse.js +49 -0
  83. package/dist/models/CreateCustomDomainRequest.d.ts +32 -0
  84. package/dist/models/CreateCustomDomainRequest.js +48 -0
  85. package/dist/models/CreateCustomDomainResponse.d.ts +33 -0
  86. package/dist/models/CreateCustomDomainResponse.js +49 -0
  87. package/dist/models/CreateEventTraceResponse.d.ts +33 -0
  88. package/dist/models/CreateEventTraceResponse.js +49 -0
  89. package/dist/models/CreateLinkRequest.d.ts +107 -0
  90. package/dist/models/CreateLinkRequest.js +72 -0
  91. package/dist/models/CreateLinkResponse.d.ts +33 -0
  92. package/dist/models/CreateLinkResponse.js +49 -0
  93. package/dist/models/CreateMediaRequest.d.ts +54 -0
  94. package/dist/models/CreateMediaRequest.js +56 -0
  95. package/dist/models/CreateMediaResponse.d.ts +33 -0
  96. package/dist/models/CreateMediaResponse.js +49 -0
  97. package/dist/models/CreateQrcodeTemplateRequest.d.ts +63 -0
  98. package/dist/models/CreateQrcodeTemplateRequest.js +58 -0
  99. package/dist/models/CreateQrcodeTemplateResponse.d.ts +33 -0
  100. package/dist/models/CreateQrcodeTemplateResponse.js +49 -0
  101. package/dist/models/CreateWebhookRequest.d.ts +62 -0
  102. package/dist/models/CreateWebhookRequest.js +62 -0
  103. package/dist/models/CreateWebhookResponse.d.ts +33 -0
  104. package/dist/models/CreateWebhookResponse.js +49 -0
  105. package/dist/models/CreateWorkflowStepResponse.d.ts +33 -0
  106. package/dist/models/CreateWorkflowStepResponse.js +49 -0
  107. package/dist/models/CreateWorkspaceTokenRequest.d.ts +32 -0
  108. package/dist/models/CreateWorkspaceTokenRequest.js +48 -0
  109. package/dist/models/CreateWorkspaceTokenResponse.d.ts +40 -0
  110. package/dist/models/CreateWorkspaceTokenResponse.js +51 -0
  111. package/dist/models/CustomDomain.d.ts +94 -0
  112. package/dist/models/CustomDomain.js +70 -0
  113. package/dist/models/CustomDomainStatus.d.ts +36 -0
  114. package/dist/models/CustomDomainStatus.js +62 -0
  115. package/dist/models/DataCollection.d.ts +32 -0
  116. package/dist/models/DataCollection.js +58 -0
  117. package/dist/models/DayOfMonthConditionPayload.d.ts +39 -0
  118. package/dist/models/DayOfMonthConditionPayload.js +51 -0
  119. package/dist/models/DayOfMonthConditionTraceData.d.ts +39 -0
  120. package/dist/models/DayOfMonthConditionTraceData.js +51 -0
  121. package/dist/models/DayOfMonthConditionTraceOption.d.ts +50 -0
  122. package/dist/models/DayOfMonthConditionTraceOption.js +54 -0
  123. package/dist/models/DayOfMonthOption.d.ts +50 -0
  124. package/dist/models/DayOfMonthOption.js +54 -0
  125. package/dist/models/DayOfWeekConditionPayload.d.ts +39 -0
  126. package/dist/models/DayOfWeekConditionPayload.js +51 -0
  127. package/dist/models/DayOfWeekConditionTraceData.d.ts +39 -0
  128. package/dist/models/DayOfWeekConditionTraceData.js +51 -0
  129. package/dist/models/DayOfWeekConditionTraceOption.d.ts +50 -0
  130. package/dist/models/DayOfWeekConditionTraceOption.js +54 -0
  131. package/dist/models/DayOfWeekOption.d.ts +50 -0
  132. package/dist/models/DayOfWeekOption.js +54 -0
  133. package/dist/models/DeleteAttributeResponse.d.ts +32 -0
  134. package/dist/models/DeleteAttributeResponse.js +48 -0
  135. package/dist/models/DeleteVisitorResponse.d.ts +32 -0
  136. package/dist/models/DeleteVisitorResponse.js +48 -0
  137. package/dist/models/Device.d.ts +232 -0
  138. package/dist/models/Device.js +121 -0
  139. package/dist/models/DeviceInput.d.ts +134 -0
  140. package/dist/models/DeviceInput.js +82 -0
  141. package/dist/models/DeviceType.d.ts +36 -0
  142. package/dist/models/DeviceType.js +62 -0
  143. package/dist/models/DotsOptions.d.ts +39 -0
  144. package/dist/models/DotsOptions.js +51 -0
  145. package/dist/models/EntryAccessTraceData.d.ts +56 -0
  146. package/dist/models/EntryAccessTraceData.js +56 -0
  147. package/dist/models/ErrorResponse.d.ts +50 -0
  148. package/dist/models/ErrorResponse.js +62 -0
  149. package/dist/models/Event.d.ts +170 -0
  150. package/dist/models/Event.js +101 -0
  151. package/dist/models/EventAction.d.ts +50 -0
  152. package/dist/models/EventAction.js +76 -0
  153. package/dist/models/EventTrace.d.ts +94 -0
  154. package/dist/models/EventTrace.js +69 -0
  155. package/dist/models/EventTraceData.d.ts +110 -0
  156. package/dist/models/EventTraceData.js +82 -0
  157. package/dist/models/EventsMetric.d.ts +105 -0
  158. package/dist/models/EventsMetric.js +79 -0
  159. package/dist/models/EventsServiceCreateEventTraceBody.d.ts +45 -0
  160. package/dist/models/EventsServiceCreateEventTraceBody.js +53 -0
  161. package/dist/models/EventsServiceUpdateDeviceBody.d.ts +33 -0
  162. package/dist/models/EventsServiceUpdateDeviceBody.js +49 -0
  163. package/dist/models/EventsTimeSeries.d.ts +45 -0
  164. package/dist/models/EventsTimeSeries.js +53 -0
  165. package/dist/models/EventsTimeSeriesData.d.ts +38 -0
  166. package/dist/models/EventsTimeSeriesData.js +50 -0
  167. package/dist/models/FontConfig.d.ts +71 -0
  168. package/dist/models/FontConfig.js +71 -0
  169. package/dist/models/FormField.d.ts +94 -0
  170. package/dist/models/FormField.js +70 -0
  171. package/dist/models/FormFieldOption.d.ts +38 -0
  172. package/dist/models/FormFieldOption.js +50 -0
  173. package/dist/models/FormFieldType.d.ts +34 -0
  174. package/dist/models/FormFieldType.js +60 -0
  175. package/dist/models/FormPayload.d.ts +69 -0
  176. package/dist/models/FormPayload.js +61 -0
  177. package/dist/models/FormTraceData.d.ts +75 -0
  178. package/dist/models/FormTraceData.js +63 -0
  179. package/dist/models/FormTraceDataField.d.ts +56 -0
  180. package/dist/models/FormTraceDataField.js +56 -0
  181. package/dist/models/GetCustomDomainResponse.d.ts +33 -0
  182. package/dist/models/GetCustomDomainResponse.js +49 -0
  183. package/dist/models/GetEventsTimeSeriesRequest.d.ts +50 -0
  184. package/dist/models/GetEventsTimeSeriesRequest.js +54 -0
  185. package/dist/models/GetEventsTimeSeriesResponse.d.ts +33 -0
  186. package/dist/models/GetEventsTimeSeriesResponse.js +49 -0
  187. package/dist/models/GetLeadScoreExplanationResponse.d.ts +51 -0
  188. package/dist/models/GetLeadScoreExplanationResponse.js +55 -0
  189. package/dist/models/GetLinkResponse.d.ts +33 -0
  190. package/dist/models/GetLinkResponse.js +49 -0
  191. package/dist/models/GetLinkSettingResponse.d.ts +33 -0
  192. package/dist/models/GetLinkSettingResponse.js +49 -0
  193. package/dist/models/GetMediaResponse.d.ts +33 -0
  194. package/dist/models/GetMediaResponse.js +49 -0
  195. package/dist/models/GetPageThemeResponse.d.ts +33 -0
  196. package/dist/models/GetPageThemeResponse.js +49 -0
  197. package/dist/models/GetQrcodeDesignResponse.d.ts +33 -0
  198. package/dist/models/GetQrcodeDesignResponse.js +49 -0
  199. package/dist/models/GetWebhookResponse.d.ts +33 -0
  200. package/dist/models/GetWebhookResponse.js +49 -0
  201. package/dist/models/GetWorkflowStepResponse.d.ts +33 -0
  202. package/dist/models/GetWorkflowStepResponse.js +49 -0
  203. package/dist/models/GetWorkspaceTokenResponse.d.ts +33 -0
  204. package/dist/models/GetWorkspaceTokenResponse.js +49 -0
  205. package/dist/models/GooglerpcStatus.d.ts +45 -0
  206. package/dist/models/GooglerpcStatus.js +53 -0
  207. package/dist/models/IdentifyRequest.d.ts +45 -0
  208. package/dist/models/IdentifyRequest.js +53 -0
  209. package/dist/models/IdentifyResponse.d.ts +39 -0
  210. package/dist/models/IdentifyResponse.js +51 -0
  211. package/dist/models/ImportQrcodeTemplateRequest.d.ts +32 -0
  212. package/dist/models/ImportQrcodeTemplateRequest.js +48 -0
  213. package/dist/models/ImportQrcodeTemplateResponse.d.ts +33 -0
  214. package/dist/models/ImportQrcodeTemplateResponse.js +49 -0
  215. package/dist/models/InviteMemberRequest.d.ts +44 -0
  216. package/dist/models/InviteMemberRequest.js +52 -0
  217. package/dist/models/LeadScore.d.ts +111 -0
  218. package/dist/models/LeadScore.js +74 -0
  219. package/dist/models/LeadScoreBreakdown.d.ts +56 -0
  220. package/dist/models/LeadScoreBreakdown.js +56 -0
  221. package/dist/models/Link.d.ts +182 -0
  222. package/dist/models/Link.js +88 -0
  223. package/dist/models/LinkSetting.d.ts +51 -0
  224. package/dist/models/LinkSetting.js +55 -0
  225. package/dist/models/LinkSortField.d.ts +34 -0
  226. package/dist/models/LinkSortField.js +60 -0
  227. package/dist/models/LinksServiceUpdateBody.d.ts +84 -0
  228. package/dist/models/LinksServiceUpdateBody.js +64 -0
  229. package/dist/models/ListCustomDomainsResponse.d.ts +33 -0
  230. package/dist/models/ListCustomDomainsResponse.js +49 -0
  231. package/dist/models/ListEventTracesResponse.d.ts +33 -0
  232. package/dist/models/ListEventTracesResponse.js +49 -0
  233. package/dist/models/ListEventsCsvResponse.d.ts +38 -0
  234. package/dist/models/ListEventsCsvResponse.js +50 -0
  235. package/dist/models/ListEventsJsonResponse.d.ts +51 -0
  236. package/dist/models/ListEventsJsonResponse.js +55 -0
  237. package/dist/models/ListEventsResponse.d.ts +40 -0
  238. package/dist/models/ListEventsResponse.js +52 -0
  239. package/dist/models/ListLinksResponse.d.ts +45 -0
  240. package/dist/models/ListLinksResponse.js +53 -0
  241. package/dist/models/ListMediaResponse.d.ts +39 -0
  242. package/dist/models/ListMediaResponse.js +51 -0
  243. package/dist/models/ListPageThemesResponse.d.ts +33 -0
  244. package/dist/models/ListPageThemesResponse.js +49 -0
  245. package/dist/models/ListQrcodeTemplatesResponse.d.ts +45 -0
  246. package/dist/models/ListQrcodeTemplatesResponse.js +53 -0
  247. package/dist/models/ListResponse.d.ts +33 -0
  248. package/dist/models/ListResponse.js +49 -0
  249. package/dist/models/ListTagsResponse.d.ts +39 -0
  250. package/dist/models/ListTagsResponse.js +51 -0
  251. package/dist/models/ListVisitorsCsvResponse.d.ts +38 -0
  252. package/dist/models/ListVisitorsCsvResponse.js +50 -0
  253. package/dist/models/ListVisitorsJsonResponse.d.ts +51 -0
  254. package/dist/models/ListVisitorsJsonResponse.js +55 -0
  255. package/dist/models/ListVisitorsResponse.d.ts +40 -0
  256. package/dist/models/ListVisitorsResponse.js +52 -0
  257. package/dist/models/ListWebhooksResponse.d.ts +33 -0
  258. package/dist/models/ListWebhooksResponse.js +49 -0
  259. package/dist/models/ListWorkflowStepsResponse.d.ts +39 -0
  260. package/dist/models/ListWorkflowStepsResponse.js +51 -0
  261. package/dist/models/ListWorkspaceTokensResponse.d.ts +33 -0
  262. package/dist/models/ListWorkspaceTokensResponse.js +49 -0
  263. package/dist/models/Media.d.ts +96 -0
  264. package/dist/models/Media.js +65 -0
  265. package/dist/models/MediaSelection.d.ts +38 -0
  266. package/dist/models/MediaSelection.js +50 -0
  267. package/dist/models/MediaType.d.ts +30 -0
  268. package/dist/models/MediaType.js +56 -0
  269. package/dist/models/MediaVisibility.d.ts +29 -0
  270. package/dist/models/MediaVisibility.js +55 -0
  271. package/dist/models/Member.d.ts +124 -0
  272. package/dist/models/Member.js +79 -0
  273. package/dist/models/MembersServiceUpdateBody.d.ts +57 -0
  274. package/dist/models/MembersServiceUpdateBody.js +57 -0
  275. package/dist/models/ModelHTTPMethod.d.ts +31 -0
  276. package/dist/models/ModelHTTPMethod.js +57 -0
  277. package/dist/models/MultiLinkButton.d.ts +50 -0
  278. package/dist/models/MultiLinkButton.js +54 -0
  279. package/dist/models/MultiLinkPayload.d.ts +45 -0
  280. package/dist/models/MultiLinkPayload.js +53 -0
  281. package/dist/models/MultiLinkSelectedButton.d.ts +44 -0
  282. package/dist/models/MultiLinkSelectedButton.js +52 -0
  283. package/dist/models/MultiLinkTraceData.d.ts +33 -0
  284. package/dist/models/MultiLinkTraceData.js +49 -0
  285. package/dist/models/OutputFileFormat.d.ts +32 -0
  286. package/dist/models/OutputFileFormat.js +58 -0
  287. package/dist/models/PageTheme.d.ts +145 -0
  288. package/dist/models/PageTheme.js +96 -0
  289. package/dist/models/PageThemeBadgeShape.d.ts +27 -0
  290. package/dist/models/PageThemeBadgeShape.js +53 -0
  291. package/dist/models/PageThemeBorderStyle.d.ts +30 -0
  292. package/dist/models/PageThemeBorderStyle.js +56 -0
  293. package/dist/models/PageThemeCanvasCoverMode.d.ts +27 -0
  294. package/dist/models/PageThemeCanvasCoverMode.js +53 -0
  295. package/dist/models/PageThemeContainerVariant.d.ts +26 -0
  296. package/dist/models/PageThemeContainerVariant.js +52 -0
  297. package/dist/models/PageThemeFontFamily.d.ts +31 -0
  298. package/dist/models/PageThemeFontFamily.js +57 -0
  299. package/dist/models/PageThemesServiceUpdatePageThemeBody.d.ts +122 -0
  300. package/dist/models/PageThemesServiceUpdatePageThemeBody.js +93 -0
  301. package/dist/models/PasswordPayload.d.ts +44 -0
  302. package/dist/models/PasswordPayload.js +52 -0
  303. package/dist/models/PasswordTraceData.d.ts +32 -0
  304. package/dist/models/PasswordTraceData.js +48 -0
  305. package/dist/models/PreferredLinkType.d.ts +32 -0
  306. package/dist/models/PreferredLinkType.js +58 -0
  307. package/dist/models/ProtobufAny.d.ts +33 -0
  308. package/dist/models/ProtobufAny.js +50 -0
  309. package/dist/models/ProtobufNullValue.d.ts +29 -0
  310. package/dist/models/ProtobufNullValue.js +55 -0
  311. package/dist/models/PublicCreateQrcodeDesignRequest.d.ts +134 -0
  312. package/dist/models/PublicCreateQrcodeDesignRequest.js +95 -0
  313. package/dist/models/PublicCreateQrcodeDesignResponse.d.ts +33 -0
  314. package/dist/models/PublicCreateQrcodeDesignResponse.js +49 -0
  315. package/dist/models/PublicListQrcodeTemplatesResponse.d.ts +45 -0
  316. package/dist/models/PublicListQrcodeTemplatesResponse.js +53 -0
  317. package/dist/models/PublicQrcodeTemplate.d.ts +87 -0
  318. package/dist/models/PublicQrcodeTemplate.js +67 -0
  319. package/dist/models/PublicWorkspace.d.ts +74 -0
  320. package/dist/models/PublicWorkspace.js +62 -0
  321. package/dist/models/PublishQrcodeTemplateResponse.d.ts +33 -0
  322. package/dist/models/PublishQrcodeTemplateResponse.js +49 -0
  323. package/dist/models/QrcodeDesign.d.ts +157 -0
  324. package/dist/models/QrcodeDesign.js +98 -0
  325. package/dist/models/QrcodeDesignServiceUpdateBody.d.ts +140 -0
  326. package/dist/models/QrcodeDesignServiceUpdateBody.js +97 -0
  327. package/dist/models/QrcodeTemplate.d.ts +135 -0
  328. package/dist/models/QrcodeTemplate.js +81 -0
  329. package/dist/models/QrcodeTemplatesServiceUpdateQrcodeTemplateBody.d.ts +62 -0
  330. package/dist/models/QrcodeTemplatesServiceUpdateQrcodeTemplateBody.js +58 -0
  331. package/dist/models/RedirectTraceData.d.ts +44 -0
  332. package/dist/models/RedirectTraceData.js +52 -0
  333. package/dist/models/RemoveWorkflowStepRelationshipResponse.d.ts +32 -0
  334. package/dist/models/RemoveWorkflowStepRelationshipResponse.js +48 -0
  335. package/dist/models/RequestWorkspaceEnrollmentRequest.d.ts +32 -0
  336. package/dist/models/RequestWorkspaceEnrollmentRequest.js +48 -0
  337. package/dist/models/ResponseFormat.d.ts +30 -0
  338. package/dist/models/ResponseFormat.js +56 -0
  339. package/dist/models/Role.d.ts +29 -0
  340. package/dist/models/Role.js +55 -0
  341. package/dist/models/SettingsServiceUpdateLinkSettingBody.d.ts +33 -0
  342. package/dist/models/SettingsServiceUpdateLinkSettingBody.js +49 -0
  343. package/dist/models/Shape.d.ts +28 -0
  344. package/dist/models/Shape.js +54 -0
  345. package/dist/models/ShortlinkAvailabilityResponse.d.ts +32 -0
  346. package/dist/models/ShortlinkAvailabilityResponse.js +48 -0
  347. package/dist/models/ShortlinkRandomResponse.d.ts +32 -0
  348. package/dist/models/ShortlinkRandomResponse.js +48 -0
  349. package/dist/models/SocialLinkButton.d.ts +50 -0
  350. package/dist/models/SocialLinkButton.js +54 -0
  351. package/dist/models/SocialLinksDisplayStyle.d.ts +27 -0
  352. package/dist/models/SocialLinksDisplayStyle.js +53 -0
  353. package/dist/models/SocialLinksPayload.d.ts +52 -0
  354. package/dist/models/SocialLinksPayload.js +56 -0
  355. package/dist/models/SortDirection.d.ts +28 -0
  356. package/dist/models/SortDirection.js +54 -0
  357. package/dist/models/SpecificDateConditionPayload.d.ts +39 -0
  358. package/dist/models/SpecificDateConditionPayload.js +51 -0
  359. package/dist/models/SpecificDateConditionTraceData.d.ts +39 -0
  360. package/dist/models/SpecificDateConditionTraceData.js +51 -0
  361. package/dist/models/SpecificDateConditionTraceOption.d.ts +62 -0
  362. package/dist/models/SpecificDateConditionTraceOption.js +58 -0
  363. package/dist/models/SpecificDateOption.d.ts +62 -0
  364. package/dist/models/SpecificDateOption.js +58 -0
  365. package/dist/models/SubscriptionType.d.ts +34 -0
  366. package/dist/models/SubscriptionType.js +60 -0
  367. package/dist/models/ThemeColor.d.ts +61 -0
  368. package/dist/models/ThemeColor.js +68 -0
  369. package/dist/models/ThemeColorThemeColorType.d.ts +27 -0
  370. package/dist/models/ThemeColorThemeColorType.js +53 -0
  371. package/dist/models/TimeOfDayConditionPayload.d.ts +39 -0
  372. package/dist/models/TimeOfDayConditionPayload.js +51 -0
  373. package/dist/models/TimeOfDayConditionTraceData.d.ts +39 -0
  374. package/dist/models/TimeOfDayConditionTraceData.js +51 -0
  375. package/dist/models/TimeOfDayConditionTraceRange.d.ts +56 -0
  376. package/dist/models/TimeOfDayConditionTraceRange.js +56 -0
  377. package/dist/models/TimeOfDayRange.d.ts +56 -0
  378. package/dist/models/TimeOfDayRange.js +56 -0
  379. package/dist/models/TriggeredBy.d.ts +26 -0
  380. package/dist/models/TriggeredBy.js +52 -0
  381. package/dist/models/UpdateDeviceResponse.d.ts +32 -0
  382. package/dist/models/UpdateDeviceResponse.js +48 -0
  383. package/dist/models/UpdateLinkResponse.d.ts +33 -0
  384. package/dist/models/UpdateLinkResponse.js +49 -0
  385. package/dist/models/UpdateLinkSettingResponse.d.ts +33 -0
  386. package/dist/models/UpdateLinkSettingResponse.js +49 -0
  387. package/dist/models/UpdateMeRequest.d.ts +50 -0
  388. package/dist/models/UpdateMeRequest.js +54 -0
  389. package/dist/models/UpdatePageThemeResponse.d.ts +33 -0
  390. package/dist/models/UpdatePageThemeResponse.js +49 -0
  391. package/dist/models/UpdateQrcodeDesignResponse.d.ts +33 -0
  392. package/dist/models/UpdateQrcodeDesignResponse.js +49 -0
  393. package/dist/models/UpdateQrcodeTemplateResponse.d.ts +33 -0
  394. package/dist/models/UpdateQrcodeTemplateResponse.js +49 -0
  395. package/dist/models/UpdateWebhookResponse.d.ts +33 -0
  396. package/dist/models/UpdateWebhookResponse.js +49 -0
  397. package/dist/models/UpdateWorkflowStepResponse.d.ts +33 -0
  398. package/dist/models/UpdateWorkflowStepResponse.js +49 -0
  399. package/dist/models/UpdateWorkspaceOriginInquiryRequest.d.ts +32 -0
  400. package/dist/models/UpdateWorkspaceOriginInquiryRequest.js +48 -0
  401. package/dist/models/UpdateWorkspaceOriginPurposeRequest.d.ts +32 -0
  402. package/dist/models/UpdateWorkspaceOriginPurposeRequest.js +48 -0
  403. package/dist/models/UpdateWorkspaceRequest.d.ts +74 -0
  404. package/dist/models/UpdateWorkspaceRequest.js +62 -0
  405. package/dist/models/VCardData.d.ts +104 -0
  406. package/dist/models/VCardData.js +72 -0
  407. package/dist/models/VCardPayload.d.ts +104 -0
  408. package/dist/models/VCardPayload.js +72 -0
  409. package/dist/models/ValidationInstructionsCustomDomainResponse.d.ts +33 -0
  410. package/dist/models/ValidationInstructionsCustomDomainResponse.js +49 -0
  411. package/dist/models/ValidationInstructionsCustomDomainResponseValidation.d.ts +52 -0
  412. package/dist/models/ValidationInstructionsCustomDomainResponseValidation.js +56 -0
  413. package/dist/models/ValidationInstructionsCustomDomainResponseValidationType.d.ts +26 -0
  414. package/dist/models/ValidationInstructionsCustomDomainResponseValidationType.js +52 -0
  415. package/dist/models/ValidationPurpose.d.ts +28 -0
  416. package/dist/models/ValidationPurpose.js +54 -0
  417. package/dist/models/VisitType.d.ts +28 -0
  418. package/dist/models/VisitType.js +54 -0
  419. package/dist/models/VisitTypeConditionOption.d.ts +38 -0
  420. package/dist/models/VisitTypeConditionOption.js +50 -0
  421. package/dist/models/VisitTypeConditionPayload.d.ts +39 -0
  422. package/dist/models/VisitTypeConditionPayload.js +51 -0
  423. package/dist/models/VisitTypeConditionTraceData.d.ts +45 -0
  424. package/dist/models/VisitTypeConditionTraceData.js +53 -0
  425. package/dist/models/VisitTypeConditionTraceOption.d.ts +38 -0
  426. package/dist/models/VisitTypeConditionTraceOption.js +50 -0
  427. package/dist/models/Visitor.d.ts +102 -0
  428. package/dist/models/Visitor.js +73 -0
  429. package/dist/models/VisitorEvent.d.ts +62 -0
  430. package/dist/models/VisitorEvent.js +58 -0
  431. package/dist/models/VisitorInput.d.ts +34 -0
  432. package/dist/models/VisitorInput.js +48 -0
  433. package/dist/models/VisitorLink.d.ts +68 -0
  434. package/dist/models/VisitorLink.js +60 -0
  435. package/dist/models/VisitorsServiceUpdateBody.d.ts +33 -0
  436. package/dist/models/VisitorsServiceUpdateBody.js +49 -0
  437. package/dist/models/Webhook.d.ts +128 -0
  438. package/dist/models/Webhook.js +73 -0
  439. package/dist/models/WebhookSource.d.ts +30 -0
  440. package/dist/models/WebhookSource.js +56 -0
  441. package/dist/models/WebhookStatus.d.ts +30 -0
  442. package/dist/models/WebhookStatus.js +56 -0
  443. package/dist/models/WebhooksServiceUpdateBody.d.ts +69 -0
  444. package/dist/models/WebhooksServiceUpdateBody.js +61 -0
  445. package/dist/models/WorkflowStep.d.ts +149 -0
  446. package/dist/models/WorkflowStep.js +97 -0
  447. package/dist/models/WorkflowStepKind.d.ts +32 -0
  448. package/dist/models/WorkflowStepKind.js +58 -0
  449. package/dist/models/WorkflowStepNodeType.d.ts +56 -0
  450. package/dist/models/WorkflowStepNodeType.js +82 -0
  451. package/dist/models/WorkflowStepPayload.d.ts +116 -0
  452. package/dist/models/WorkflowStepPayload.js +84 -0
  453. package/dist/models/WorkflowStepsServiceAddRelationshipBody.d.ts +32 -0
  454. package/dist/models/WorkflowStepsServiceAddRelationshipBody.js +48 -0
  455. package/dist/models/WorkflowStepsServiceCreateBody.d.ts +85 -0
  456. package/dist/models/WorkflowStepsServiceCreateBody.js +76 -0
  457. package/dist/models/WorkflowStepsServiceUpdateBody.d.ts +40 -0
  458. package/dist/models/WorkflowStepsServiceUpdateBody.js +52 -0
  459. package/dist/models/Workspace.d.ts +158 -0
  460. package/dist/models/Workspace.js +96 -0
  461. package/dist/models/WorkspaceInsight.d.ts +34 -0
  462. package/dist/models/WorkspaceInsight.js +49 -0
  463. package/dist/models/WorkspaceMetric.d.ts +68 -0
  464. package/dist/models/WorkspaceMetric.js +60 -0
  465. package/dist/models/WorkspaceToken.d.ts +69 -0
  466. package/dist/models/WorkspaceToken.js +57 -0
  467. package/dist/models/index.d.ts +212 -0
  468. package/dist/models/index.js +230 -0
  469. package/dist/runtime.d.ts +184 -0
  470. package/dist/runtime.js +338 -0
  471. package/package.json +40 -0
@@ -0,0 +1,510 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Linkbreakers API
6
+ * This is a documentation of all the APIs of Linkbreakers
7
+ *
8
+ * The version of the OpenAPI document: 1.34.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.LinksApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class LinksApi extends runtime.BaseAPI {
56
+ /**
57
+ * Creates request options for linksServiceCreate without sending the request
58
+ */
59
+ async linksServiceCreateRequestOpts(requestParameters) {
60
+ if (requestParameters['createLinkRequest'] == null) {
61
+ throw new runtime.RequiredError('createLinkRequest', 'Required parameter "createLinkRequest" was null or undefined when calling linksServiceCreate().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ headerParameters['Content-Type'] = 'application/json';
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ const token = this.configuration.accessToken;
68
+ const tokenString = await token("bearerAuth", []);
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ let urlPath = `/v1/links`;
74
+ return {
75
+ path: urlPath,
76
+ method: 'POST',
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ body: (0, index_1.CreateLinkRequestToJSON)(requestParameters['createLinkRequest']),
80
+ };
81
+ }
82
+ /**
83
+ * This endpoint allows users to create a new shortened URL link in their Linkbreakers workspace. The URL will be checked for malicious content before being shortened.
84
+ * Create a new link
85
+ */
86
+ async linksServiceCreateRaw(requestParameters, initOverrides) {
87
+ const requestOptions = await this.linksServiceCreateRequestOpts(requestParameters);
88
+ const response = await this.request(requestOptions, initOverrides);
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateLinkResponseFromJSON)(jsonValue));
90
+ }
91
+ /**
92
+ * This endpoint allows users to create a new shortened URL link in their Linkbreakers workspace. The URL will be checked for malicious content before being shortened.
93
+ * Create a new link
94
+ */
95
+ async linksServiceCreate(requestParameters, initOverrides) {
96
+ const response = await this.linksServiceCreateRaw(requestParameters, initOverrides);
97
+ return await response.value();
98
+ }
99
+ /**
100
+ * Creates request options for linksServiceCreateBulk without sending the request
101
+ */
102
+ async linksServiceCreateBulkRequestOpts(requestParameters) {
103
+ if (requestParameters['createBulkLinksRequest'] == null) {
104
+ throw new runtime.RequiredError('createBulkLinksRequest', 'Required parameter "createBulkLinksRequest" was null or undefined when calling linksServiceCreateBulk().');
105
+ }
106
+ const queryParameters = {};
107
+ const headerParameters = {};
108
+ headerParameters['Content-Type'] = 'application/json';
109
+ if (this.configuration && this.configuration.accessToken) {
110
+ const token = this.configuration.accessToken;
111
+ const tokenString = await token("bearerAuth", []);
112
+ if (tokenString) {
113
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
114
+ }
115
+ }
116
+ let urlPath = `/v1/links/bulk`;
117
+ return {
118
+ path: urlPath,
119
+ method: 'POST',
120
+ headers: headerParameters,
121
+ query: queryParameters,
122
+ body: (0, index_1.CreateBulkLinksRequestToJSON)(requestParameters['createBulkLinksRequest']),
123
+ };
124
+ }
125
+ /**
126
+ * Creates links in batch using the same per-link options as Create. This operation is transactional: if one link fails validation or insertion, no links from the batch are created.
127
+ * Create multiple links in a single request
128
+ */
129
+ async linksServiceCreateBulkRaw(requestParameters, initOverrides) {
130
+ const requestOptions = await this.linksServiceCreateBulkRequestOpts(requestParameters);
131
+ const response = await this.request(requestOptions, initOverrides);
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateBulkLinksResponseFromJSON)(jsonValue));
133
+ }
134
+ /**
135
+ * Creates links in batch using the same per-link options as Create. This operation is transactional: if one link fails validation or insertion, no links from the batch are created.
136
+ * Create multiple links in a single request
137
+ */
138
+ async linksServiceCreateBulk(requestParameters, initOverrides) {
139
+ const response = await this.linksServiceCreateBulkRaw(requestParameters, initOverrides);
140
+ return await response.value();
141
+ }
142
+ /**
143
+ * Creates request options for linksServiceCreateContactLink without sending the request
144
+ */
145
+ async linksServiceCreateContactLinkRequestOpts(requestParameters) {
146
+ if (requestParameters['createContactLinkRequest'] == null) {
147
+ throw new runtime.RequiredError('createContactLinkRequest', 'Required parameter "createContactLinkRequest" was null or undefined when calling linksServiceCreateContactLink().');
148
+ }
149
+ const queryParameters = {};
150
+ const headerParameters = {};
151
+ headerParameters['Content-Type'] = 'application/json';
152
+ if (this.configuration && this.configuration.accessToken) {
153
+ const token = this.configuration.accessToken;
154
+ const tokenString = await token("bearerAuth", []);
155
+ if (tokenString) {
156
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
157
+ }
158
+ }
159
+ let urlPath = `/v1/links/contact`;
160
+ return {
161
+ path: urlPath,
162
+ method: 'POST',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ body: (0, index_1.CreateContactLinkRequestToJSON)(requestParameters['createContactLinkRequest']),
166
+ };
167
+ }
168
+ /**
169
+ * This endpoint allows users to create a new vCard contact link in their Linkbreakers workspace. The link will generate a vCard file for contact information sharing.
170
+ * Create a new contact card link
171
+ */
172
+ async linksServiceCreateContactLinkRaw(requestParameters, initOverrides) {
173
+ const requestOptions = await this.linksServiceCreateContactLinkRequestOpts(requestParameters);
174
+ const response = await this.request(requestOptions, initOverrides);
175
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateContactLinkResponseFromJSON)(jsonValue));
176
+ }
177
+ /**
178
+ * This endpoint allows users to create a new vCard contact link in their Linkbreakers workspace. The link will generate a vCard file for contact information sharing.
179
+ * Create a new contact card link
180
+ */
181
+ async linksServiceCreateContactLink(requestParameters, initOverrides) {
182
+ const response = await this.linksServiceCreateContactLinkRaw(requestParameters, initOverrides);
183
+ return await response.value();
184
+ }
185
+ /**
186
+ * Creates request options for linksServiceDelete without sending the request
187
+ */
188
+ async linksServiceDeleteRequestOpts(requestParameters) {
189
+ if (requestParameters['id'] == null) {
190
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceDelete().');
191
+ }
192
+ const queryParameters = {};
193
+ const headerParameters = {};
194
+ if (this.configuration && this.configuration.accessToken) {
195
+ const token = this.configuration.accessToken;
196
+ const tokenString = await token("bearerAuth", []);
197
+ if (tokenString) {
198
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
199
+ }
200
+ }
201
+ let urlPath = `/v1/links/{id}`;
202
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
203
+ return {
204
+ path: urlPath,
205
+ method: 'DELETE',
206
+ headers: headerParameters,
207
+ query: queryParameters,
208
+ };
209
+ }
210
+ /**
211
+ * Removes a shortened link from the workspace. This operation cannot be undone.
212
+ * Delete a link
213
+ */
214
+ async linksServiceDeleteRaw(requestParameters, initOverrides) {
215
+ const requestOptions = await this.linksServiceDeleteRequestOpts(requestParameters);
216
+ const response = await this.request(requestOptions, initOverrides);
217
+ return new runtime.JSONApiResponse(response);
218
+ }
219
+ /**
220
+ * Removes a shortened link from the workspace. This operation cannot be undone.
221
+ * Delete a link
222
+ */
223
+ async linksServiceDelete(requestParameters, initOverrides) {
224
+ const response = await this.linksServiceDeleteRaw(requestParameters, initOverrides);
225
+ return await response.value();
226
+ }
227
+ /**
228
+ * Creates request options for linksServiceGet without sending the request
229
+ */
230
+ async linksServiceGetRequestOpts(requestParameters) {
231
+ if (requestParameters['id'] == null) {
232
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceGet().');
233
+ }
234
+ const queryParameters = {};
235
+ if (requestParameters['include'] != null) {
236
+ queryParameters['include'] = requestParameters['include'];
237
+ }
238
+ const headerParameters = {};
239
+ if (this.configuration && this.configuration.accessToken) {
240
+ const token = this.configuration.accessToken;
241
+ const tokenString = await token("bearerAuth", []);
242
+ if (tokenString) {
243
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
244
+ }
245
+ }
246
+ let urlPath = `/v1/links/{id}`;
247
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
248
+ return {
249
+ path: urlPath,
250
+ method: 'GET',
251
+ headers: headerParameters,
252
+ query: queryParameters,
253
+ };
254
+ }
255
+ /**
256
+ * Retrieves information about a shortened link including its metadata and metrics.
257
+ * Get link details
258
+ */
259
+ async linksServiceGetRaw(requestParameters, initOverrides) {
260
+ const requestOptions = await this.linksServiceGetRequestOpts(requestParameters);
261
+ const response = await this.request(requestOptions, initOverrides);
262
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetLinkResponseFromJSON)(jsonValue));
263
+ }
264
+ /**
265
+ * Retrieves information about a shortened link including its metadata and metrics.
266
+ * Get link details
267
+ */
268
+ async linksServiceGet(requestParameters, initOverrides) {
269
+ const response = await this.linksServiceGetRaw(requestParameters, initOverrides);
270
+ return await response.value();
271
+ }
272
+ /**
273
+ * Creates request options for linksServiceGetLeadScoreExplanation without sending the request
274
+ */
275
+ async linksServiceGetLeadScoreExplanationRequestOpts(requestParameters) {
276
+ if (requestParameters['linkId'] == null) {
277
+ throw new runtime.RequiredError('linkId', 'Required parameter "linkId" was null or undefined when calling linksServiceGetLeadScoreExplanation().');
278
+ }
279
+ if (requestParameters['eventId'] == null) {
280
+ throw new runtime.RequiredError('eventId', 'Required parameter "eventId" was null or undefined when calling linksServiceGetLeadScoreExplanation().');
281
+ }
282
+ const queryParameters = {};
283
+ const headerParameters = {};
284
+ if (this.configuration && this.configuration.accessToken) {
285
+ const token = this.configuration.accessToken;
286
+ const tokenString = await token("bearerAuth", []);
287
+ if (tokenString) {
288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
+ }
290
+ }
291
+ let urlPath = `/v1/links/{linkId}/lead-score-explanation/{eventId}`;
292
+ urlPath = urlPath.replace(`{${"linkId"}}`, encodeURIComponent(String(requestParameters['linkId'])));
293
+ urlPath = urlPath.replace(`{${"eventId"}}`, encodeURIComponent(String(requestParameters['eventId'])));
294
+ return {
295
+ path: urlPath,
296
+ method: 'GET',
297
+ headers: headerParameters,
298
+ query: queryParameters,
299
+ };
300
+ }
301
+ /**
302
+ * Generates an AI-powered explanation for a lead score result based on event data.
303
+ * Get lead score explanation
304
+ */
305
+ async linksServiceGetLeadScoreExplanationRaw(requestParameters, initOverrides) {
306
+ const requestOptions = await this.linksServiceGetLeadScoreExplanationRequestOpts(requestParameters);
307
+ const response = await this.request(requestOptions, initOverrides);
308
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetLeadScoreExplanationResponseFromJSON)(jsonValue));
309
+ }
310
+ /**
311
+ * Generates an AI-powered explanation for a lead score result based on event data.
312
+ * Get lead score explanation
313
+ */
314
+ async linksServiceGetLeadScoreExplanation(requestParameters, initOverrides) {
315
+ const response = await this.linksServiceGetLeadScoreExplanationRaw(requestParameters, initOverrides);
316
+ return await response.value();
317
+ }
318
+ /**
319
+ * Creates request options for linksServiceList without sending the request
320
+ */
321
+ async linksServiceListRequestOpts(requestParameters) {
322
+ if (requestParameters['pageSize'] == null) {
323
+ throw new runtime.RequiredError('pageSize', 'Required parameter "pageSize" was null or undefined when calling linksServiceList().');
324
+ }
325
+ const queryParameters = {};
326
+ if (requestParameters['pageSize'] != null) {
327
+ queryParameters['pageSize'] = requestParameters['pageSize'];
328
+ }
329
+ if (requestParameters['pageToken'] != null) {
330
+ queryParameters['pageToken'] = requestParameters['pageToken'];
331
+ }
332
+ if (requestParameters['include'] != null) {
333
+ queryParameters['include'] = requestParameters['include'];
334
+ }
335
+ if (requestParameters['tags'] != null) {
336
+ queryParameters['tags'] = requestParameters['tags'];
337
+ }
338
+ if (requestParameters['search'] != null) {
339
+ queryParameters['search'] = requestParameters['search'];
340
+ }
341
+ if (requestParameters['sortBy'] != null) {
342
+ queryParameters['sortBy'] = requestParameters['sortBy'];
343
+ }
344
+ if (requestParameters['sortDirection'] != null) {
345
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
346
+ }
347
+ const headerParameters = {};
348
+ if (this.configuration && this.configuration.accessToken) {
349
+ const token = this.configuration.accessToken;
350
+ const tokenString = await token("bearerAuth", []);
351
+ if (tokenString) {
352
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
353
+ }
354
+ }
355
+ let urlPath = `/v1/links`;
356
+ return {
357
+ path: urlPath,
358
+ method: 'GET',
359
+ headers: headerParameters,
360
+ query: queryParameters,
361
+ };
362
+ }
363
+ /**
364
+ * Retrieves the shortened links for your workspace
365
+ * List links
366
+ */
367
+ async linksServiceListRaw(requestParameters, initOverrides) {
368
+ const requestOptions = await this.linksServiceListRequestOpts(requestParameters);
369
+ const response = await this.request(requestOptions, initOverrides);
370
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListLinksResponseFromJSON)(jsonValue));
371
+ }
372
+ /**
373
+ * Retrieves the shortened links for your workspace
374
+ * List links
375
+ */
376
+ async linksServiceList(requestParameters, initOverrides) {
377
+ const response = await this.linksServiceListRaw(requestParameters, initOverrides);
378
+ return await response.value();
379
+ }
380
+ /**
381
+ * Creates request options for linksServiceShortlinkAvailability without sending the request
382
+ */
383
+ async linksServiceShortlinkAvailabilityRequestOpts(requestParameters) {
384
+ const queryParameters = {};
385
+ if (requestParameters['shortlink'] != null) {
386
+ queryParameters['shortlink'] = requestParameters['shortlink'];
387
+ }
388
+ if (requestParameters['customDomainId'] != null) {
389
+ queryParameters['customDomainId'] = requestParameters['customDomainId'];
390
+ }
391
+ const headerParameters = {};
392
+ if (this.configuration && this.configuration.accessToken) {
393
+ const token = this.configuration.accessToken;
394
+ const tokenString = await token("bearerAuth", []);
395
+ if (tokenString) {
396
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
397
+ }
398
+ }
399
+ let urlPath = `/v1/links/shortlink-availability`;
400
+ return {
401
+ path: urlPath,
402
+ method: 'GET',
403
+ headers: headerParameters,
404
+ query: queryParameters,
405
+ };
406
+ }
407
+ /**
408
+ * Checks if a shortlink is available for use to create a new link. A custom domain can be provided to check against. It typically checks the shortlink slugs and shortlink IDs already present within the system.
409
+ * Check shortlink availability
410
+ */
411
+ async linksServiceShortlinkAvailabilityRaw(requestParameters, initOverrides) {
412
+ const requestOptions = await this.linksServiceShortlinkAvailabilityRequestOpts(requestParameters);
413
+ const response = await this.request(requestOptions, initOverrides);
414
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ShortlinkAvailabilityResponseFromJSON)(jsonValue));
415
+ }
416
+ /**
417
+ * Checks if a shortlink is available for use to create a new link. A custom domain can be provided to check against. It typically checks the shortlink slugs and shortlink IDs already present within the system.
418
+ * Check shortlink availability
419
+ */
420
+ async linksServiceShortlinkAvailability(requestParameters = {}, initOverrides) {
421
+ const response = await this.linksServiceShortlinkAvailabilityRaw(requestParameters, initOverrides);
422
+ return await response.value();
423
+ }
424
+ /**
425
+ * Creates request options for linksServiceShortlinkRandom without sending the request
426
+ */
427
+ async linksServiceShortlinkRandomRequestOpts() {
428
+ const queryParameters = {};
429
+ const headerParameters = {};
430
+ if (this.configuration && this.configuration.accessToken) {
431
+ const token = this.configuration.accessToken;
432
+ const tokenString = await token("bearerAuth", []);
433
+ if (tokenString) {
434
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
435
+ }
436
+ }
437
+ let urlPath = `/v1/links/shortlink-random`;
438
+ return {
439
+ path: urlPath,
440
+ method: 'GET',
441
+ headers: headerParameters,
442
+ query: queryParameters,
443
+ };
444
+ }
445
+ /**
446
+ * Generates a random availableshortlink for a new link.
447
+ * Get a random shortlink
448
+ */
449
+ async linksServiceShortlinkRandomRaw(initOverrides) {
450
+ const requestOptions = await this.linksServiceShortlinkRandomRequestOpts();
451
+ const response = await this.request(requestOptions, initOverrides);
452
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ShortlinkRandomResponseFromJSON)(jsonValue));
453
+ }
454
+ /**
455
+ * Generates a random availableshortlink for a new link.
456
+ * Get a random shortlink
457
+ */
458
+ async linksServiceShortlinkRandom(initOverrides) {
459
+ const response = await this.linksServiceShortlinkRandomRaw(initOverrides);
460
+ return await response.value();
461
+ }
462
+ /**
463
+ * Creates request options for linksServiceUpdate without sending the request
464
+ */
465
+ async linksServiceUpdateRequestOpts(requestParameters) {
466
+ if (requestParameters['id'] == null) {
467
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling linksServiceUpdate().');
468
+ }
469
+ if (requestParameters['linksServiceUpdateBody'] == null) {
470
+ throw new runtime.RequiredError('linksServiceUpdateBody', 'Required parameter "linksServiceUpdateBody" was null or undefined when calling linksServiceUpdate().');
471
+ }
472
+ const queryParameters = {};
473
+ const headerParameters = {};
474
+ headerParameters['Content-Type'] = 'application/json';
475
+ if (this.configuration && this.configuration.accessToken) {
476
+ const token = this.configuration.accessToken;
477
+ const tokenString = await token("bearerAuth", []);
478
+ if (tokenString) {
479
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
480
+ }
481
+ }
482
+ let urlPath = `/v1/links/{id}`;
483
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
484
+ return {
485
+ path: urlPath,
486
+ method: 'PATCH',
487
+ headers: headerParameters,
488
+ query: queryParameters,
489
+ body: (0, index_1.LinksServiceUpdateBodyToJSON)(requestParameters['linksServiceUpdateBody']),
490
+ };
491
+ }
492
+ /**
493
+ * Updates an existing shortened link in your Linkbreakers workspace.
494
+ * Update a link
495
+ */
496
+ async linksServiceUpdateRaw(requestParameters, initOverrides) {
497
+ const requestOptions = await this.linksServiceUpdateRequestOpts(requestParameters);
498
+ const response = await this.request(requestOptions, initOverrides);
499
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UpdateLinkResponseFromJSON)(jsonValue));
500
+ }
501
+ /**
502
+ * Updates an existing shortened link in your Linkbreakers workspace.
503
+ * Update a link
504
+ */
505
+ async linksServiceUpdate(requestParameters, initOverrides) {
506
+ const response = await this.linksServiceUpdateRaw(requestParameters, initOverrides);
507
+ return await response.value();
508
+ }
509
+ }
510
+ exports.LinksApi = LinksApi;