@unified-api/typescript-sdk 0.0.0 → 1.0.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 (846) hide show
  1. package/README.md +87 -58
  2. package/dist/sdk/account.d.ts +6 -6
  3. package/dist/sdk/account.js +78 -36
  4. package/dist/sdk/accounting.d.ts +42 -42
  5. package/dist/sdk/accounting.js +546 -252
  6. package/dist/sdk/activity.d.ts +6 -6
  7. package/dist/sdk/activity.js +78 -36
  8. package/dist/sdk/apicall.d.ts +2 -2
  9. package/dist/sdk/apicall.js +26 -12
  10. package/dist/sdk/application.d.ts +6 -6
  11. package/dist/sdk/application.js +78 -36
  12. package/dist/sdk/applicationstatus.d.ts +1 -1
  13. package/dist/sdk/applicationstatus.js +13 -6
  14. package/dist/sdk/ats.d.ts +45 -45
  15. package/dist/sdk/ats.js +585 -270
  16. package/dist/sdk/auth.js +29 -6
  17. package/dist/sdk/call.d.ts +1 -1
  18. package/dist/sdk/call.js +13 -6
  19. package/dist/sdk/candidate.d.ts +6 -6
  20. package/dist/sdk/candidate.js +78 -36
  21. package/dist/sdk/collection.d.ts +6 -6
  22. package/dist/sdk/collection.js +78 -36
  23. package/dist/sdk/commerce.d.ts +24 -24
  24. package/dist/sdk/commerce.js +312 -144
  25. package/dist/sdk/company.d.ts +9 -9
  26. package/dist/sdk/company.js +117 -54
  27. package/dist/sdk/connection.d.ts +6 -6
  28. package/dist/sdk/connection.js +78 -36
  29. package/dist/sdk/contact.d.ts +18 -18
  30. package/dist/sdk/contact.js +234 -108
  31. package/dist/sdk/crm.d.ts +36 -36
  32. package/dist/sdk/crm.js +468 -216
  33. package/dist/sdk/customer.d.ts +6 -6
  34. package/dist/sdk/customer.js +78 -36
  35. package/dist/sdk/deal.d.ts +6 -6
  36. package/dist/sdk/deal.js +78 -36
  37. package/dist/sdk/document.d.ts +6 -6
  38. package/dist/sdk/document.js +78 -36
  39. package/dist/sdk/employee.d.ts +6 -6
  40. package/dist/sdk/employee.js +78 -36
  41. package/dist/sdk/enrich.d.ts +2 -2
  42. package/dist/sdk/enrich.js +26 -12
  43. package/dist/sdk/event.d.ts +6 -6
  44. package/dist/sdk/event.js +78 -36
  45. package/dist/sdk/file.d.ts +6 -6
  46. package/dist/sdk/file.js +78 -36
  47. package/dist/sdk/group.d.ts +6 -6
  48. package/dist/sdk/group.js +78 -36
  49. package/dist/sdk/hris.d.ts +12 -12
  50. package/dist/sdk/hris.js +156 -72
  51. package/dist/sdk/integration.d.ts +1 -1
  52. package/dist/sdk/integration.js +41 -12
  53. package/dist/sdk/interview.d.ts +6 -6
  54. package/dist/sdk/interview.js +78 -36
  55. package/dist/sdk/inventory.d.ts +6 -6
  56. package/dist/sdk/inventory.js +78 -36
  57. package/dist/sdk/invoice.d.ts +6 -6
  58. package/dist/sdk/invoice.js +78 -36
  59. package/dist/sdk/issue.d.ts +1 -1
  60. package/dist/sdk/issue.js +13 -6
  61. package/dist/sdk/item.d.ts +6 -6
  62. package/dist/sdk/item.js +78 -36
  63. package/dist/sdk/job.d.ts +6 -6
  64. package/dist/sdk/job.js +78 -36
  65. package/dist/sdk/lead.d.ts +6 -6
  66. package/dist/sdk/lead.js +78 -36
  67. package/dist/sdk/list.d.ts +6 -6
  68. package/dist/sdk/list.js +78 -36
  69. package/dist/sdk/location.d.ts +6 -6
  70. package/dist/sdk/location.js +78 -36
  71. package/dist/sdk/login.js +15 -3
  72. package/dist/sdk/martech.d.ts +12 -12
  73. package/dist/sdk/martech.js +156 -72
  74. package/dist/sdk/member.d.ts +6 -6
  75. package/dist/sdk/member.js +78 -36
  76. package/dist/sdk/models/operations/createaccountingaccount.d.ts +0 -3
  77. package/dist/sdk/models/operations/createaccountingaccount.js +1 -15
  78. package/dist/sdk/models/operations/createaccountingcontact.d.ts +0 -3
  79. package/dist/sdk/models/operations/createaccountingcontact.js +1 -15
  80. package/dist/sdk/models/operations/createaccountinginvoice.d.ts +0 -3
  81. package/dist/sdk/models/operations/createaccountinginvoice.js +1 -15
  82. package/dist/sdk/models/operations/createaccountingpayment.d.ts +0 -3
  83. package/dist/sdk/models/operations/createaccountingpayment.js +1 -15
  84. package/dist/sdk/models/operations/createaccountingtaxrate.d.ts +0 -3
  85. package/dist/sdk/models/operations/createaccountingtaxrate.js +1 -15
  86. package/dist/sdk/models/operations/createaccountingtransaction.d.ts +0 -3
  87. package/dist/sdk/models/operations/createaccountingtransaction.js +1 -15
  88. package/dist/sdk/models/operations/createatsactivity.d.ts +0 -3
  89. package/dist/sdk/models/operations/createatsactivity.js +1 -15
  90. package/dist/sdk/models/operations/createatsapplication.d.ts +0 -3
  91. package/dist/sdk/models/operations/createatsapplication.js +1 -15
  92. package/dist/sdk/models/operations/createatscandidate.d.ts +0 -3
  93. package/dist/sdk/models/operations/createatscandidate.js +1 -15
  94. package/dist/sdk/models/operations/createatsdocument.d.ts +0 -3
  95. package/dist/sdk/models/operations/createatsdocument.js +1 -15
  96. package/dist/sdk/models/operations/createatsinterview.d.ts +0 -3
  97. package/dist/sdk/models/operations/createatsinterview.js +1 -15
  98. package/dist/sdk/models/operations/createatsjob.d.ts +0 -3
  99. package/dist/sdk/models/operations/createatsjob.js +1 -15
  100. package/dist/sdk/models/operations/createatsscorecard.d.ts +0 -3
  101. package/dist/sdk/models/operations/createatsscorecard.js +1 -15
  102. package/dist/sdk/models/operations/createcommercecollection.d.ts +0 -3
  103. package/dist/sdk/models/operations/createcommercecollection.js +1 -15
  104. package/dist/sdk/models/operations/createcommerceinventory.d.ts +0 -3
  105. package/dist/sdk/models/operations/createcommerceinventory.js +1 -15
  106. package/dist/sdk/models/operations/createcommerceitem.d.ts +0 -3
  107. package/dist/sdk/models/operations/createcommerceitem.js +1 -15
  108. package/dist/sdk/models/operations/createcommercelocation.d.ts +0 -3
  109. package/dist/sdk/models/operations/createcommercelocation.js +1 -15
  110. package/dist/sdk/models/operations/createcrmcompany.d.ts +0 -3
  111. package/dist/sdk/models/operations/createcrmcompany.js +1 -15
  112. package/dist/sdk/models/operations/createcrmcontact.d.ts +0 -3
  113. package/dist/sdk/models/operations/createcrmcontact.js +1 -15
  114. package/dist/sdk/models/operations/createcrmdeal.d.ts +0 -3
  115. package/dist/sdk/models/operations/createcrmdeal.js +1 -15
  116. package/dist/sdk/models/operations/createcrmevent.d.ts +0 -3
  117. package/dist/sdk/models/operations/createcrmevent.js +1 -15
  118. package/dist/sdk/models/operations/createcrmlead.d.ts +0 -3
  119. package/dist/sdk/models/operations/createcrmlead.js +1 -15
  120. package/dist/sdk/models/operations/createcrmpipeline.d.ts +0 -3
  121. package/dist/sdk/models/operations/createcrmpipeline.js +1 -15
  122. package/dist/sdk/models/operations/createhrisemployee.d.ts +0 -3
  123. package/dist/sdk/models/operations/createhrisemployee.js +1 -15
  124. package/dist/sdk/models/operations/createhrisgroup.d.ts +0 -3
  125. package/dist/sdk/models/operations/createhrisgroup.js +1 -15
  126. package/dist/sdk/models/operations/createmartechlist.d.ts +0 -3
  127. package/dist/sdk/models/operations/createmartechlist.js +1 -15
  128. package/dist/sdk/models/operations/createmartechmember.d.ts +0 -3
  129. package/dist/sdk/models/operations/createmartechmember.js +1 -15
  130. package/dist/sdk/models/operations/createpassthrough.d.ts +0 -3
  131. package/dist/sdk/models/operations/createpassthrough.js +1 -15
  132. package/dist/sdk/models/operations/createstoragefile.d.ts +0 -3
  133. package/dist/sdk/models/operations/createstoragefile.js +1 -15
  134. package/dist/sdk/models/operations/createticketingcustomer.d.ts +0 -3
  135. package/dist/sdk/models/operations/createticketingcustomer.js +1 -15
  136. package/dist/sdk/models/operations/createticketingnote.d.ts +0 -3
  137. package/dist/sdk/models/operations/createticketingnote.js +1 -15
  138. package/dist/sdk/models/operations/createticketingticket.d.ts +0 -3
  139. package/dist/sdk/models/operations/createticketingticket.js +1 -15
  140. package/dist/sdk/models/operations/createuccontact.d.ts +0 -3
  141. package/dist/sdk/models/operations/createuccontact.js +1 -15
  142. package/dist/sdk/models/operations/createunifiedconnection.d.ts +0 -3
  143. package/dist/sdk/models/operations/createunifiedconnection.js +1 -15
  144. package/dist/sdk/models/operations/createunifiedwebhook.d.ts +0 -3
  145. package/dist/sdk/models/operations/createunifiedwebhook.js +1 -15
  146. package/dist/sdk/models/operations/getaccountingaccount.d.ts +0 -3
  147. package/dist/sdk/models/operations/getaccountingaccount.js +1 -15
  148. package/dist/sdk/models/operations/getaccountingcontact.d.ts +0 -3
  149. package/dist/sdk/models/operations/getaccountingcontact.js +1 -15
  150. package/dist/sdk/models/operations/getaccountinginvoice.d.ts +0 -3
  151. package/dist/sdk/models/operations/getaccountinginvoice.js +1 -15
  152. package/dist/sdk/models/operations/getaccountingorganization.d.ts +0 -3
  153. package/dist/sdk/models/operations/getaccountingorganization.js +1 -15
  154. package/dist/sdk/models/operations/getaccountingpayment.d.ts +0 -3
  155. package/dist/sdk/models/operations/getaccountingpayment.js +1 -15
  156. package/dist/sdk/models/operations/getaccountingpayout.d.ts +0 -3
  157. package/dist/sdk/models/operations/getaccountingpayout.js +1 -15
  158. package/dist/sdk/models/operations/getaccountingrefund.d.ts +0 -3
  159. package/dist/sdk/models/operations/getaccountingrefund.js +1 -15
  160. package/dist/sdk/models/operations/getaccountingtaxrate.d.ts +0 -3
  161. package/dist/sdk/models/operations/getaccountingtaxrate.js +1 -15
  162. package/dist/sdk/models/operations/getaccountingtransaction.d.ts +0 -3
  163. package/dist/sdk/models/operations/getaccountingtransaction.js +1 -15
  164. package/dist/sdk/models/operations/getatsactivity.d.ts +0 -3
  165. package/dist/sdk/models/operations/getatsactivity.js +1 -15
  166. package/dist/sdk/models/operations/getatsapplication.d.ts +0 -3
  167. package/dist/sdk/models/operations/getatsapplication.js +1 -15
  168. package/dist/sdk/models/operations/getatscandidate.d.ts +0 -3
  169. package/dist/sdk/models/operations/getatscandidate.js +1 -15
  170. package/dist/sdk/models/operations/getatscompany.d.ts +0 -3
  171. package/dist/sdk/models/operations/getatscompany.js +1 -15
  172. package/dist/sdk/models/operations/getatsdocument.d.ts +0 -3
  173. package/dist/sdk/models/operations/getatsdocument.js +1 -15
  174. package/dist/sdk/models/operations/getatsinterview.d.ts +0 -3
  175. package/dist/sdk/models/operations/getatsinterview.js +1 -15
  176. package/dist/sdk/models/operations/getatsjob.d.ts +0 -3
  177. package/dist/sdk/models/operations/getatsjob.js +1 -15
  178. package/dist/sdk/models/operations/getatsscorecard.d.ts +0 -3
  179. package/dist/sdk/models/operations/getatsscorecard.js +1 -15
  180. package/dist/sdk/models/operations/getcommercecollection.d.ts +0 -3
  181. package/dist/sdk/models/operations/getcommercecollection.js +1 -15
  182. package/dist/sdk/models/operations/getcommerceinventory.d.ts +0 -3
  183. package/dist/sdk/models/operations/getcommerceinventory.js +1 -15
  184. package/dist/sdk/models/operations/getcommerceitem.d.ts +0 -3
  185. package/dist/sdk/models/operations/getcommerceitem.js +1 -15
  186. package/dist/sdk/models/operations/getcommercelocation.d.ts +0 -3
  187. package/dist/sdk/models/operations/getcommercelocation.js +1 -15
  188. package/dist/sdk/models/operations/getcrmcompany.d.ts +0 -3
  189. package/dist/sdk/models/operations/getcrmcompany.js +1 -15
  190. package/dist/sdk/models/operations/getcrmcontact.d.ts +0 -3
  191. package/dist/sdk/models/operations/getcrmcontact.js +1 -15
  192. package/dist/sdk/models/operations/getcrmdeal.d.ts +0 -3
  193. package/dist/sdk/models/operations/getcrmdeal.js +1 -15
  194. package/dist/sdk/models/operations/getcrmevent.d.ts +0 -3
  195. package/dist/sdk/models/operations/getcrmevent.js +1 -15
  196. package/dist/sdk/models/operations/getcrmlead.d.ts +0 -3
  197. package/dist/sdk/models/operations/getcrmlead.js +1 -15
  198. package/dist/sdk/models/operations/getcrmpipeline.d.ts +0 -3
  199. package/dist/sdk/models/operations/getcrmpipeline.js +1 -15
  200. package/dist/sdk/models/operations/gethrisemployee.d.ts +0 -3
  201. package/dist/sdk/models/operations/gethrisemployee.js +1 -15
  202. package/dist/sdk/models/operations/gethrisgroup.d.ts +0 -3
  203. package/dist/sdk/models/operations/gethrisgroup.js +1 -15
  204. package/dist/sdk/models/operations/getmartechlist.d.ts +0 -3
  205. package/dist/sdk/models/operations/getmartechlist.js +1 -15
  206. package/dist/sdk/models/operations/getmartechmember.d.ts +0 -3
  207. package/dist/sdk/models/operations/getmartechmember.js +1 -15
  208. package/dist/sdk/models/operations/getstoragefile.d.ts +0 -3
  209. package/dist/sdk/models/operations/getstoragefile.js +1 -15
  210. package/dist/sdk/models/operations/getticketingcustomer.d.ts +0 -3
  211. package/dist/sdk/models/operations/getticketingcustomer.js +1 -15
  212. package/dist/sdk/models/operations/getticketingnote.d.ts +0 -3
  213. package/dist/sdk/models/operations/getticketingnote.js +1 -15
  214. package/dist/sdk/models/operations/getticketingticket.d.ts +0 -3
  215. package/dist/sdk/models/operations/getticketingticket.js +1 -15
  216. package/dist/sdk/models/operations/getuccontact.d.ts +0 -3
  217. package/dist/sdk/models/operations/getuccontact.js +1 -15
  218. package/dist/sdk/models/operations/getunifiedapicall.d.ts +0 -3
  219. package/dist/sdk/models/operations/getunifiedapicall.js +1 -15
  220. package/dist/sdk/models/operations/getunifiedconnection.d.ts +0 -3
  221. package/dist/sdk/models/operations/getunifiedconnection.js +1 -15
  222. package/dist/sdk/models/operations/getunifiedwebhook.d.ts +0 -3
  223. package/dist/sdk/models/operations/getunifiedwebhook.js +1 -15
  224. package/dist/sdk/models/operations/listaccountingaccounts.d.ts +0 -3
  225. package/dist/sdk/models/operations/listaccountingaccounts.js +1 -15
  226. package/dist/sdk/models/operations/listaccountingcontacts.d.ts +0 -3
  227. package/dist/sdk/models/operations/listaccountingcontacts.js +1 -15
  228. package/dist/sdk/models/operations/listaccountinginvoices.d.ts +0 -3
  229. package/dist/sdk/models/operations/listaccountinginvoices.js +1 -15
  230. package/dist/sdk/models/operations/listaccountingorganizations.d.ts +0 -3
  231. package/dist/sdk/models/operations/listaccountingorganizations.js +1 -15
  232. package/dist/sdk/models/operations/listaccountingpayments.d.ts +0 -3
  233. package/dist/sdk/models/operations/listaccountingpayments.js +1 -15
  234. package/dist/sdk/models/operations/listaccountingpayouts.d.ts +0 -3
  235. package/dist/sdk/models/operations/listaccountingpayouts.js +1 -15
  236. package/dist/sdk/models/operations/listaccountingrefunds.d.ts +0 -3
  237. package/dist/sdk/models/operations/listaccountingrefunds.js +1 -15
  238. package/dist/sdk/models/operations/listaccountingtaxrates.d.ts +0 -3
  239. package/dist/sdk/models/operations/listaccountingtaxrates.js +1 -15
  240. package/dist/sdk/models/operations/listaccountingtransactions.d.ts +0 -3
  241. package/dist/sdk/models/operations/listaccountingtransactions.js +1 -15
  242. package/dist/sdk/models/operations/listatsactivities.d.ts +0 -3
  243. package/dist/sdk/models/operations/listatsactivities.js +1 -15
  244. package/dist/sdk/models/operations/listatsapplications.d.ts +0 -3
  245. package/dist/sdk/models/operations/listatsapplications.js +1 -15
  246. package/dist/sdk/models/operations/listatsapplicationstatuses.d.ts +0 -3
  247. package/dist/sdk/models/operations/listatsapplicationstatuses.js +1 -15
  248. package/dist/sdk/models/operations/listatscandidates.d.ts +0 -3
  249. package/dist/sdk/models/operations/listatscandidates.js +1 -15
  250. package/dist/sdk/models/operations/listatscompanies.d.ts +0 -3
  251. package/dist/sdk/models/operations/listatscompanies.js +1 -15
  252. package/dist/sdk/models/operations/listatsdocuments.d.ts +0 -3
  253. package/dist/sdk/models/operations/listatsdocuments.js +1 -15
  254. package/dist/sdk/models/operations/listatsinterviews.d.ts +0 -3
  255. package/dist/sdk/models/operations/listatsinterviews.js +1 -15
  256. package/dist/sdk/models/operations/listatsjobs.d.ts +0 -3
  257. package/dist/sdk/models/operations/listatsjobs.js +1 -15
  258. package/dist/sdk/models/operations/listatsscorecards.d.ts +0 -3
  259. package/dist/sdk/models/operations/listatsscorecards.js +1 -15
  260. package/dist/sdk/models/operations/listcommercecollections.d.ts +0 -3
  261. package/dist/sdk/models/operations/listcommercecollections.js +1 -15
  262. package/dist/sdk/models/operations/listcommerceinventories.d.ts +0 -3
  263. package/dist/sdk/models/operations/listcommerceinventories.js +1 -15
  264. package/dist/sdk/models/operations/listcommerceitems.d.ts +0 -3
  265. package/dist/sdk/models/operations/listcommerceitems.js +1 -15
  266. package/dist/sdk/models/operations/listcommercelocations.d.ts +0 -3
  267. package/dist/sdk/models/operations/listcommercelocations.js +1 -15
  268. package/dist/sdk/models/operations/listcrmcompanies.d.ts +0 -3
  269. package/dist/sdk/models/operations/listcrmcompanies.js +1 -15
  270. package/dist/sdk/models/operations/listcrmcontacts.d.ts +0 -3
  271. package/dist/sdk/models/operations/listcrmcontacts.js +1 -15
  272. package/dist/sdk/models/operations/listcrmdeals.d.ts +0 -3
  273. package/dist/sdk/models/operations/listcrmdeals.js +1 -15
  274. package/dist/sdk/models/operations/listcrmevents.d.ts +0 -3
  275. package/dist/sdk/models/operations/listcrmevents.js +1 -15
  276. package/dist/sdk/models/operations/listcrmleads.d.ts +0 -3
  277. package/dist/sdk/models/operations/listcrmleads.js +1 -15
  278. package/dist/sdk/models/operations/listcrmpipelines.d.ts +0 -3
  279. package/dist/sdk/models/operations/listcrmpipelines.js +1 -15
  280. package/dist/sdk/models/operations/listenrichcompanies.d.ts +0 -3
  281. package/dist/sdk/models/operations/listenrichcompanies.js +1 -15
  282. package/dist/sdk/models/operations/listenrichpeople.d.ts +0 -3
  283. package/dist/sdk/models/operations/listenrichpeople.js +1 -15
  284. package/dist/sdk/models/operations/listhrisemployees.d.ts +0 -3
  285. package/dist/sdk/models/operations/listhrisemployees.js +1 -15
  286. package/dist/sdk/models/operations/listhrisgroups.d.ts +0 -3
  287. package/dist/sdk/models/operations/listhrisgroups.js +1 -15
  288. package/dist/sdk/models/operations/listmartechlists.d.ts +0 -3
  289. package/dist/sdk/models/operations/listmartechlists.js +1 -15
  290. package/dist/sdk/models/operations/listmartechmembers.d.ts +0 -3
  291. package/dist/sdk/models/operations/listmartechmembers.js +1 -15
  292. package/dist/sdk/models/operations/listpassthroughs.d.ts +0 -3
  293. package/dist/sdk/models/operations/listpassthroughs.js +1 -15
  294. package/dist/sdk/models/operations/liststoragefiles.d.ts +0 -3
  295. package/dist/sdk/models/operations/liststoragefiles.js +1 -15
  296. package/dist/sdk/models/operations/listticketingcustomers.d.ts +0 -3
  297. package/dist/sdk/models/operations/listticketingcustomers.js +1 -15
  298. package/dist/sdk/models/operations/listticketingnotes.d.ts +0 -3
  299. package/dist/sdk/models/operations/listticketingnotes.js +1 -15
  300. package/dist/sdk/models/operations/listticketingtickets.d.ts +0 -3
  301. package/dist/sdk/models/operations/listticketingtickets.js +1 -15
  302. package/dist/sdk/models/operations/listuccalls.d.ts +0 -3
  303. package/dist/sdk/models/operations/listuccalls.js +1 -15
  304. package/dist/sdk/models/operations/listuccontacts.d.ts +0 -3
  305. package/dist/sdk/models/operations/listuccontacts.js +1 -15
  306. package/dist/sdk/models/operations/listunifiedapicalls.d.ts +0 -3
  307. package/dist/sdk/models/operations/listunifiedapicalls.js +1 -15
  308. package/dist/sdk/models/operations/listunifiedconnections.d.ts +0 -3
  309. package/dist/sdk/models/operations/listunifiedconnections.js +1 -15
  310. package/dist/sdk/models/operations/listunifiedintegrations.d.ts +0 -3
  311. package/dist/sdk/models/operations/listunifiedintegrations.js +1 -15
  312. package/dist/sdk/models/operations/listunifiedissues.d.ts +0 -3
  313. package/dist/sdk/models/operations/listunifiedissues.js +1 -15
  314. package/dist/sdk/models/operations/listunifiedwebhooks.d.ts +0 -3
  315. package/dist/sdk/models/operations/listunifiedwebhooks.js +1 -15
  316. package/dist/sdk/models/operations/patchaccountingaccount.d.ts +0 -3
  317. package/dist/sdk/models/operations/patchaccountingaccount.js +1 -15
  318. package/dist/sdk/models/operations/patchaccountingcontact.d.ts +0 -3
  319. package/dist/sdk/models/operations/patchaccountingcontact.js +1 -15
  320. package/dist/sdk/models/operations/patchaccountinginvoice.d.ts +0 -3
  321. package/dist/sdk/models/operations/patchaccountinginvoice.js +1 -15
  322. package/dist/sdk/models/operations/patchaccountingpayment.d.ts +0 -3
  323. package/dist/sdk/models/operations/patchaccountingpayment.js +1 -15
  324. package/dist/sdk/models/operations/patchaccountingtaxrate.d.ts +0 -3
  325. package/dist/sdk/models/operations/patchaccountingtaxrate.js +1 -15
  326. package/dist/sdk/models/operations/patchaccountingtransaction.d.ts +0 -3
  327. package/dist/sdk/models/operations/patchaccountingtransaction.js +1 -15
  328. package/dist/sdk/models/operations/patchatsactivity.d.ts +0 -3
  329. package/dist/sdk/models/operations/patchatsactivity.js +1 -15
  330. package/dist/sdk/models/operations/patchatsapplication.d.ts +0 -3
  331. package/dist/sdk/models/operations/patchatsapplication.js +1 -15
  332. package/dist/sdk/models/operations/patchatscandidate.d.ts +0 -3
  333. package/dist/sdk/models/operations/patchatscandidate.js +1 -15
  334. package/dist/sdk/models/operations/patchatsdocument.d.ts +0 -3
  335. package/dist/sdk/models/operations/patchatsdocument.js +1 -15
  336. package/dist/sdk/models/operations/patchatsinterview.d.ts +0 -3
  337. package/dist/sdk/models/operations/patchatsinterview.js +1 -15
  338. package/dist/sdk/models/operations/patchatsjob.d.ts +0 -3
  339. package/dist/sdk/models/operations/patchatsjob.js +1 -15
  340. package/dist/sdk/models/operations/patchatsscorecard.d.ts +0 -3
  341. package/dist/sdk/models/operations/patchatsscorecard.js +1 -15
  342. package/dist/sdk/models/operations/patchcommercecollection.d.ts +0 -3
  343. package/dist/sdk/models/operations/patchcommercecollection.js +1 -15
  344. package/dist/sdk/models/operations/patchcommerceinventory.d.ts +0 -3
  345. package/dist/sdk/models/operations/patchcommerceinventory.js +1 -15
  346. package/dist/sdk/models/operations/patchcommerceitem.d.ts +0 -3
  347. package/dist/sdk/models/operations/patchcommerceitem.js +1 -15
  348. package/dist/sdk/models/operations/patchcommercelocation.d.ts +0 -3
  349. package/dist/sdk/models/operations/patchcommercelocation.js +1 -15
  350. package/dist/sdk/models/operations/patchcrmcompany.d.ts +0 -3
  351. package/dist/sdk/models/operations/patchcrmcompany.js +1 -15
  352. package/dist/sdk/models/operations/patchcrmcontact.d.ts +0 -3
  353. package/dist/sdk/models/operations/patchcrmcontact.js +1 -15
  354. package/dist/sdk/models/operations/patchcrmdeal.d.ts +0 -3
  355. package/dist/sdk/models/operations/patchcrmdeal.js +1 -15
  356. package/dist/sdk/models/operations/patchcrmevent.d.ts +0 -3
  357. package/dist/sdk/models/operations/patchcrmevent.js +1 -15
  358. package/dist/sdk/models/operations/patchcrmlead.d.ts +0 -3
  359. package/dist/sdk/models/operations/patchcrmlead.js +1 -15
  360. package/dist/sdk/models/operations/patchcrmpipeline.d.ts +0 -3
  361. package/dist/sdk/models/operations/patchcrmpipeline.js +1 -15
  362. package/dist/sdk/models/operations/patchhrisemployee.d.ts +0 -3
  363. package/dist/sdk/models/operations/patchhrisemployee.js +1 -15
  364. package/dist/sdk/models/operations/patchhrisgroup.d.ts +0 -3
  365. package/dist/sdk/models/operations/patchhrisgroup.js +1 -15
  366. package/dist/sdk/models/operations/patchmartechlist.d.ts +0 -3
  367. package/dist/sdk/models/operations/patchmartechlist.js +1 -15
  368. package/dist/sdk/models/operations/patchmartechmember.d.ts +0 -3
  369. package/dist/sdk/models/operations/patchmartechmember.js +1 -15
  370. package/dist/sdk/models/operations/patchpassthrough.d.ts +0 -3
  371. package/dist/sdk/models/operations/patchpassthrough.js +1 -15
  372. package/dist/sdk/models/operations/patchstoragefile.d.ts +0 -3
  373. package/dist/sdk/models/operations/patchstoragefile.js +1 -15
  374. package/dist/sdk/models/operations/patchticketingcustomer.d.ts +0 -3
  375. package/dist/sdk/models/operations/patchticketingcustomer.js +1 -15
  376. package/dist/sdk/models/operations/patchticketingnote.d.ts +0 -3
  377. package/dist/sdk/models/operations/patchticketingnote.js +1 -15
  378. package/dist/sdk/models/operations/patchticketingticket.d.ts +0 -3
  379. package/dist/sdk/models/operations/patchticketingticket.js +1 -15
  380. package/dist/sdk/models/operations/patchuccontact.d.ts +0 -3
  381. package/dist/sdk/models/operations/patchuccontact.js +1 -15
  382. package/dist/sdk/models/operations/patchunifiedconnection.d.ts +0 -3
  383. package/dist/sdk/models/operations/patchunifiedconnection.js +1 -15
  384. package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +0 -3
  385. package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -15
  386. package/dist/sdk/models/operations/removeaccountingaccount.d.ts +0 -3
  387. package/dist/sdk/models/operations/removeaccountingaccount.js +1 -15
  388. package/dist/sdk/models/operations/removeaccountingcontact.d.ts +0 -3
  389. package/dist/sdk/models/operations/removeaccountingcontact.js +1 -15
  390. package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +0 -3
  391. package/dist/sdk/models/operations/removeaccountinginvoice.js +1 -15
  392. package/dist/sdk/models/operations/removeaccountingpayment.d.ts +0 -3
  393. package/dist/sdk/models/operations/removeaccountingpayment.js +1 -15
  394. package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +0 -3
  395. package/dist/sdk/models/operations/removeaccountingtaxrate.js +1 -15
  396. package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +0 -3
  397. package/dist/sdk/models/operations/removeaccountingtransaction.js +1 -15
  398. package/dist/sdk/models/operations/removeatsactivity.d.ts +0 -3
  399. package/dist/sdk/models/operations/removeatsactivity.js +1 -15
  400. package/dist/sdk/models/operations/removeatsapplication.d.ts +0 -3
  401. package/dist/sdk/models/operations/removeatsapplication.js +1 -15
  402. package/dist/sdk/models/operations/removeatscandidate.d.ts +0 -3
  403. package/dist/sdk/models/operations/removeatscandidate.js +1 -15
  404. package/dist/sdk/models/operations/removeatsdocument.d.ts +0 -3
  405. package/dist/sdk/models/operations/removeatsdocument.js +1 -15
  406. package/dist/sdk/models/operations/removeatsinterview.d.ts +0 -3
  407. package/dist/sdk/models/operations/removeatsinterview.js +1 -15
  408. package/dist/sdk/models/operations/removeatsjob.d.ts +0 -3
  409. package/dist/sdk/models/operations/removeatsjob.js +1 -15
  410. package/dist/sdk/models/operations/removeatsscorecard.d.ts +0 -3
  411. package/dist/sdk/models/operations/removeatsscorecard.js +1 -15
  412. package/dist/sdk/models/operations/removecommercecollection.d.ts +0 -3
  413. package/dist/sdk/models/operations/removecommercecollection.js +1 -15
  414. package/dist/sdk/models/operations/removecommerceinventory.d.ts +0 -3
  415. package/dist/sdk/models/operations/removecommerceinventory.js +1 -15
  416. package/dist/sdk/models/operations/removecommerceitem.d.ts +0 -3
  417. package/dist/sdk/models/operations/removecommerceitem.js +1 -15
  418. package/dist/sdk/models/operations/removecommercelocation.d.ts +0 -3
  419. package/dist/sdk/models/operations/removecommercelocation.js +1 -15
  420. package/dist/sdk/models/operations/removecrmcompany.d.ts +0 -3
  421. package/dist/sdk/models/operations/removecrmcompany.js +1 -15
  422. package/dist/sdk/models/operations/removecrmcontact.d.ts +0 -3
  423. package/dist/sdk/models/operations/removecrmcontact.js +1 -15
  424. package/dist/sdk/models/operations/removecrmdeal.d.ts +0 -3
  425. package/dist/sdk/models/operations/removecrmdeal.js +1 -15
  426. package/dist/sdk/models/operations/removecrmevent.d.ts +0 -3
  427. package/dist/sdk/models/operations/removecrmevent.js +1 -15
  428. package/dist/sdk/models/operations/removecrmlead.d.ts +0 -3
  429. package/dist/sdk/models/operations/removecrmlead.js +1 -15
  430. package/dist/sdk/models/operations/removecrmpipeline.d.ts +0 -3
  431. package/dist/sdk/models/operations/removecrmpipeline.js +1 -15
  432. package/dist/sdk/models/operations/removehrisemployee.d.ts +0 -3
  433. package/dist/sdk/models/operations/removehrisemployee.js +1 -15
  434. package/dist/sdk/models/operations/removehrisgroup.d.ts +0 -3
  435. package/dist/sdk/models/operations/removehrisgroup.js +1 -15
  436. package/dist/sdk/models/operations/removemartechlist.d.ts +0 -3
  437. package/dist/sdk/models/operations/removemartechlist.js +1 -15
  438. package/dist/sdk/models/operations/removemartechmember.d.ts +0 -3
  439. package/dist/sdk/models/operations/removemartechmember.js +1 -15
  440. package/dist/sdk/models/operations/removepassthrough.d.ts +0 -3
  441. package/dist/sdk/models/operations/removepassthrough.js +1 -15
  442. package/dist/sdk/models/operations/removestoragefile.d.ts +0 -3
  443. package/dist/sdk/models/operations/removestoragefile.js +1 -15
  444. package/dist/sdk/models/operations/removeticketingcustomer.d.ts +0 -3
  445. package/dist/sdk/models/operations/removeticketingcustomer.js +1 -15
  446. package/dist/sdk/models/operations/removeticketingnote.d.ts +0 -3
  447. package/dist/sdk/models/operations/removeticketingnote.js +1 -15
  448. package/dist/sdk/models/operations/removeticketingticket.d.ts +0 -3
  449. package/dist/sdk/models/operations/removeticketingticket.js +1 -15
  450. package/dist/sdk/models/operations/removeuccontact.d.ts +0 -3
  451. package/dist/sdk/models/operations/removeuccontact.js +1 -15
  452. package/dist/sdk/models/operations/removeunifiedconnection.d.ts +0 -3
  453. package/dist/sdk/models/operations/removeunifiedconnection.js +1 -15
  454. package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +0 -3
  455. package/dist/sdk/models/operations/removeunifiedwebhook.js +1 -15
  456. package/dist/sdk/models/operations/updateaccountingaccount.d.ts +0 -3
  457. package/dist/sdk/models/operations/updateaccountingaccount.js +1 -15
  458. package/dist/sdk/models/operations/updateaccountingcontact.d.ts +0 -3
  459. package/dist/sdk/models/operations/updateaccountingcontact.js +1 -15
  460. package/dist/sdk/models/operations/updateaccountinginvoice.d.ts +0 -3
  461. package/dist/sdk/models/operations/updateaccountinginvoice.js +1 -15
  462. package/dist/sdk/models/operations/updateaccountingpayment.d.ts +0 -3
  463. package/dist/sdk/models/operations/updateaccountingpayment.js +1 -15
  464. package/dist/sdk/models/operations/updateaccountingtaxrate.d.ts +0 -3
  465. package/dist/sdk/models/operations/updateaccountingtaxrate.js +1 -15
  466. package/dist/sdk/models/operations/updateaccountingtransaction.d.ts +0 -3
  467. package/dist/sdk/models/operations/updateaccountingtransaction.js +1 -15
  468. package/dist/sdk/models/operations/updateatsactivity.d.ts +0 -3
  469. package/dist/sdk/models/operations/updateatsactivity.js +1 -15
  470. package/dist/sdk/models/operations/updateatsapplication.d.ts +0 -3
  471. package/dist/sdk/models/operations/updateatsapplication.js +1 -15
  472. package/dist/sdk/models/operations/updateatscandidate.d.ts +0 -3
  473. package/dist/sdk/models/operations/updateatscandidate.js +1 -15
  474. package/dist/sdk/models/operations/updateatsdocument.d.ts +0 -3
  475. package/dist/sdk/models/operations/updateatsdocument.js +1 -15
  476. package/dist/sdk/models/operations/updateatsinterview.d.ts +0 -3
  477. package/dist/sdk/models/operations/updateatsinterview.js +1 -15
  478. package/dist/sdk/models/operations/updateatsjob.d.ts +0 -3
  479. package/dist/sdk/models/operations/updateatsjob.js +1 -15
  480. package/dist/sdk/models/operations/updateatsscorecard.d.ts +0 -3
  481. package/dist/sdk/models/operations/updateatsscorecard.js +1 -15
  482. package/dist/sdk/models/operations/updatecommercecollection.d.ts +0 -3
  483. package/dist/sdk/models/operations/updatecommercecollection.js +1 -15
  484. package/dist/sdk/models/operations/updatecommerceinventory.d.ts +0 -3
  485. package/dist/sdk/models/operations/updatecommerceinventory.js +1 -15
  486. package/dist/sdk/models/operations/updatecommerceitem.d.ts +0 -3
  487. package/dist/sdk/models/operations/updatecommerceitem.js +1 -15
  488. package/dist/sdk/models/operations/updatecommercelocation.d.ts +0 -3
  489. package/dist/sdk/models/operations/updatecommercelocation.js +1 -15
  490. package/dist/sdk/models/operations/updatecrmcompany.d.ts +0 -3
  491. package/dist/sdk/models/operations/updatecrmcompany.js +1 -15
  492. package/dist/sdk/models/operations/updatecrmcontact.d.ts +0 -3
  493. package/dist/sdk/models/operations/updatecrmcontact.js +1 -15
  494. package/dist/sdk/models/operations/updatecrmdeal.d.ts +0 -3
  495. package/dist/sdk/models/operations/updatecrmdeal.js +1 -15
  496. package/dist/sdk/models/operations/updatecrmevent.d.ts +0 -3
  497. package/dist/sdk/models/operations/updatecrmevent.js +1 -15
  498. package/dist/sdk/models/operations/updatecrmlead.d.ts +0 -3
  499. package/dist/sdk/models/operations/updatecrmlead.js +1 -15
  500. package/dist/sdk/models/operations/updatecrmpipeline.d.ts +0 -3
  501. package/dist/sdk/models/operations/updatecrmpipeline.js +1 -15
  502. package/dist/sdk/models/operations/updatehrisemployee.d.ts +0 -3
  503. package/dist/sdk/models/operations/updatehrisemployee.js +1 -15
  504. package/dist/sdk/models/operations/updatehrisgroup.d.ts +0 -3
  505. package/dist/sdk/models/operations/updatehrisgroup.js +1 -15
  506. package/dist/sdk/models/operations/updatemartechlist.d.ts +0 -3
  507. package/dist/sdk/models/operations/updatemartechlist.js +1 -15
  508. package/dist/sdk/models/operations/updatemartechmember.d.ts +0 -3
  509. package/dist/sdk/models/operations/updatemartechmember.js +1 -15
  510. package/dist/sdk/models/operations/updatepassthrough.d.ts +0 -3
  511. package/dist/sdk/models/operations/updatepassthrough.js +1 -15
  512. package/dist/sdk/models/operations/updatestoragefile.d.ts +0 -3
  513. package/dist/sdk/models/operations/updatestoragefile.js +1 -15
  514. package/dist/sdk/models/operations/updateticketingcustomer.d.ts +0 -3
  515. package/dist/sdk/models/operations/updateticketingcustomer.js +1 -15
  516. package/dist/sdk/models/operations/updateticketingnote.d.ts +0 -3
  517. package/dist/sdk/models/operations/updateticketingnote.js +1 -15
  518. package/dist/sdk/models/operations/updateticketingticket.d.ts +0 -3
  519. package/dist/sdk/models/operations/updateticketingticket.js +1 -15
  520. package/dist/sdk/models/operations/updateuccontact.d.ts +0 -3
  521. package/dist/sdk/models/operations/updateuccontact.js +1 -15
  522. package/dist/sdk/models/operations/updateunifiedconnection.d.ts +0 -3
  523. package/dist/sdk/models/operations/updateunifiedconnection.js +1 -15
  524. package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +0 -3
  525. package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -15
  526. package/dist/sdk/models/shared/index.d.ts +1 -0
  527. package/dist/sdk/models/shared/index.js +1 -0
  528. package/dist/sdk/models/shared/security.d.ts +4 -0
  529. package/dist/sdk/models/shared/security.js +45 -0
  530. package/dist/sdk/note.d.ts +6 -6
  531. package/dist/sdk/note.js +78 -36
  532. package/dist/sdk/organization.d.ts +2 -2
  533. package/dist/sdk/organization.js +26 -12
  534. package/dist/sdk/passthrough.d.ts +5 -5
  535. package/dist/sdk/passthrough.js +66 -30
  536. package/dist/sdk/payment.d.ts +6 -6
  537. package/dist/sdk/payment.js +78 -36
  538. package/dist/sdk/payout.d.ts +2 -2
  539. package/dist/sdk/payout.js +26 -12
  540. package/dist/sdk/person.d.ts +1 -1
  541. package/dist/sdk/person.js +13 -6
  542. package/dist/sdk/pipeline.d.ts +6 -6
  543. package/dist/sdk/pipeline.js +78 -36
  544. package/dist/sdk/refund.d.ts +2 -2
  545. package/dist/sdk/refund.js +26 -12
  546. package/dist/sdk/scorecard.d.ts +6 -6
  547. package/dist/sdk/scorecard.js +78 -36
  548. package/dist/sdk/sdk.d.ts +6 -0
  549. package/dist/sdk/sdk.js +4 -3
  550. package/dist/sdk/storage.d.ts +6 -6
  551. package/dist/sdk/storage.js +78 -36
  552. package/dist/sdk/taxrate.d.ts +6 -6
  553. package/dist/sdk/taxrate.js +78 -36
  554. package/dist/sdk/ticket.d.ts +6 -6
  555. package/dist/sdk/ticket.js +78 -36
  556. package/dist/sdk/ticketing.d.ts +18 -18
  557. package/dist/sdk/ticketing.js +234 -108
  558. package/dist/sdk/transaction.d.ts +6 -6
  559. package/dist/sdk/transaction.js +78 -36
  560. package/dist/sdk/uc.d.ts +7 -7
  561. package/dist/sdk/uc.js +91 -42
  562. package/dist/sdk/unified.d.ts +16 -16
  563. package/dist/sdk/unified.js +236 -102
  564. package/dist/sdk/webhook.d.ts +6 -6
  565. package/dist/sdk/webhook.js +78 -36
  566. package/docs/sdk/models/{operations/getatsjobsecurity.md → shared/security.md} +2 -2
  567. package/docs/sdks/account/README.md +60 -66
  568. package/docs/sdks/accounting/README.md +420 -462
  569. package/docs/sdks/activity/README.md +60 -66
  570. package/docs/sdks/apicall/README.md +20 -22
  571. package/docs/sdks/application/README.md +60 -66
  572. package/docs/sdks/applicationstatus/README.md +10 -11
  573. package/docs/sdks/ats/README.md +450 -495
  574. package/docs/sdks/auth/README.md +10 -2
  575. package/docs/sdks/call/README.md +10 -11
  576. package/docs/sdks/candidate/README.md +60 -66
  577. package/docs/sdks/collection/README.md +60 -66
  578. package/docs/sdks/commerce/README.md +240 -264
  579. package/docs/sdks/company/README.md +90 -99
  580. package/docs/sdks/connection/README.md +61 -66
  581. package/docs/sdks/contact/README.md +180 -198
  582. package/docs/sdks/crm/README.md +360 -396
  583. package/docs/sdks/customer/README.md +60 -66
  584. package/docs/sdks/deal/README.md +60 -66
  585. package/docs/sdks/document/README.md +60 -66
  586. package/docs/sdks/employee/README.md +60 -66
  587. package/docs/sdks/enrich/README.md +20 -22
  588. package/docs/sdks/event/README.md +60 -66
  589. package/docs/sdks/file/README.md +60 -66
  590. package/docs/sdks/group/README.md +60 -66
  591. package/docs/sdks/hris/README.md +120 -132
  592. package/docs/sdks/integration/README.md +21 -13
  593. package/docs/sdks/interview/README.md +60 -66
  594. package/docs/sdks/inventory/README.md +60 -66
  595. package/docs/sdks/invoice/README.md +60 -66
  596. package/docs/sdks/issue/README.md +10 -11
  597. package/docs/sdks/item/README.md +60 -66
  598. package/docs/sdks/job/README.md +60 -66
  599. package/docs/sdks/lead/README.md +60 -66
  600. package/docs/sdks/list/README.md +60 -66
  601. package/docs/sdks/location/README.md +60 -66
  602. package/docs/sdks/login/README.md +5 -1
  603. package/docs/sdks/martech/README.md +120 -132
  604. package/docs/sdks/member/README.md +60 -66
  605. package/docs/sdks/note/README.md +60 -66
  606. package/docs/sdks/organization/README.md +20 -22
  607. package/docs/sdks/passthrough/README.md +50 -55
  608. package/docs/sdks/payment/README.md +60 -66
  609. package/docs/sdks/payout/README.md +20 -22
  610. package/docs/sdks/person/README.md +10 -11
  611. package/docs/sdks/pipeline/README.md +60 -66
  612. package/docs/sdks/refund/README.md +20 -22
  613. package/docs/sdks/scorecard/README.md +60 -66
  614. package/docs/sdks/storage/README.md +60 -66
  615. package/docs/sdks/taxrate/README.md +60 -66
  616. package/docs/sdks/ticket/README.md +60 -66
  617. package/docs/sdks/ticketing/README.md +180 -198
  618. package/docs/sdks/transaction/README.md +60 -66
  619. package/docs/sdks/uc/README.md +70 -77
  620. package/docs/sdks/unified/README.md +172 -178
  621. package/docs/sdks/webhook/README.md +60 -66
  622. package/package.json +1 -1
  623. package/docs/sdk/models/operations/createaccountingaccountsecurity.md +0 -8
  624. package/docs/sdk/models/operations/createaccountingcontactsecurity.md +0 -8
  625. package/docs/sdk/models/operations/createaccountinginvoicesecurity.md +0 -8
  626. package/docs/sdk/models/operations/createaccountingpaymentsecurity.md +0 -8
  627. package/docs/sdk/models/operations/createaccountingtaxratesecurity.md +0 -8
  628. package/docs/sdk/models/operations/createaccountingtransactionsecurity.md +0 -8
  629. package/docs/sdk/models/operations/createatsactivitysecurity.md +0 -8
  630. package/docs/sdk/models/operations/createatsapplicationsecurity.md +0 -8
  631. package/docs/sdk/models/operations/createatscandidatesecurity.md +0 -8
  632. package/docs/sdk/models/operations/createatsdocumentsecurity.md +0 -8
  633. package/docs/sdk/models/operations/createatsinterviewsecurity.md +0 -8
  634. package/docs/sdk/models/operations/createatsjobsecurity.md +0 -8
  635. package/docs/sdk/models/operations/createatsscorecardsecurity.md +0 -8
  636. package/docs/sdk/models/operations/createcommercecollectionsecurity.md +0 -8
  637. package/docs/sdk/models/operations/createcommerceinventorysecurity.md +0 -8
  638. package/docs/sdk/models/operations/createcommerceitemsecurity.md +0 -8
  639. package/docs/sdk/models/operations/createcommercelocationsecurity.md +0 -8
  640. package/docs/sdk/models/operations/createcrmcompanysecurity.md +0 -8
  641. package/docs/sdk/models/operations/createcrmcontactsecurity.md +0 -8
  642. package/docs/sdk/models/operations/createcrmdealsecurity.md +0 -8
  643. package/docs/sdk/models/operations/createcrmeventsecurity.md +0 -8
  644. package/docs/sdk/models/operations/createcrmleadsecurity.md +0 -8
  645. package/docs/sdk/models/operations/createcrmpipelinesecurity.md +0 -8
  646. package/docs/sdk/models/operations/createhrisemployeesecurity.md +0 -8
  647. package/docs/sdk/models/operations/createhrisgroupsecurity.md +0 -8
  648. package/docs/sdk/models/operations/createmartechlistsecurity.md +0 -8
  649. package/docs/sdk/models/operations/createmartechmembersecurity.md +0 -8
  650. package/docs/sdk/models/operations/createpassthroughsecurity.md +0 -8
  651. package/docs/sdk/models/operations/createstoragefilesecurity.md +0 -8
  652. package/docs/sdk/models/operations/createticketingcustomersecurity.md +0 -8
  653. package/docs/sdk/models/operations/createticketingnotesecurity.md +0 -8
  654. package/docs/sdk/models/operations/createticketingticketsecurity.md +0 -8
  655. package/docs/sdk/models/operations/createuccontactsecurity.md +0 -8
  656. package/docs/sdk/models/operations/createunifiedconnectionsecurity.md +0 -8
  657. package/docs/sdk/models/operations/createunifiedwebhooksecurity.md +0 -8
  658. package/docs/sdk/models/operations/getaccountingaccountsecurity.md +0 -8
  659. package/docs/sdk/models/operations/getaccountingcontactsecurity.md +0 -8
  660. package/docs/sdk/models/operations/getaccountinginvoicesecurity.md +0 -8
  661. package/docs/sdk/models/operations/getaccountingorganizationsecurity.md +0 -8
  662. package/docs/sdk/models/operations/getaccountingpaymentsecurity.md +0 -8
  663. package/docs/sdk/models/operations/getaccountingpayoutsecurity.md +0 -8
  664. package/docs/sdk/models/operations/getaccountingrefundsecurity.md +0 -8
  665. package/docs/sdk/models/operations/getaccountingtaxratesecurity.md +0 -8
  666. package/docs/sdk/models/operations/getaccountingtransactionsecurity.md +0 -8
  667. package/docs/sdk/models/operations/getatsactivitysecurity.md +0 -8
  668. package/docs/sdk/models/operations/getatsapplicationsecurity.md +0 -8
  669. package/docs/sdk/models/operations/getatscandidatesecurity.md +0 -8
  670. package/docs/sdk/models/operations/getatscompanysecurity.md +0 -8
  671. package/docs/sdk/models/operations/getatsdocumentsecurity.md +0 -8
  672. package/docs/sdk/models/operations/getatsinterviewsecurity.md +0 -8
  673. package/docs/sdk/models/operations/getatsscorecardsecurity.md +0 -8
  674. package/docs/sdk/models/operations/getcommercecollectionsecurity.md +0 -8
  675. package/docs/sdk/models/operations/getcommerceinventorysecurity.md +0 -8
  676. package/docs/sdk/models/operations/getcommerceitemsecurity.md +0 -8
  677. package/docs/sdk/models/operations/getcommercelocationsecurity.md +0 -8
  678. package/docs/sdk/models/operations/getcrmcompanysecurity.md +0 -8
  679. package/docs/sdk/models/operations/getcrmcontactsecurity.md +0 -8
  680. package/docs/sdk/models/operations/getcrmdealsecurity.md +0 -8
  681. package/docs/sdk/models/operations/getcrmeventsecurity.md +0 -8
  682. package/docs/sdk/models/operations/getcrmleadsecurity.md +0 -8
  683. package/docs/sdk/models/operations/getcrmpipelinesecurity.md +0 -8
  684. package/docs/sdk/models/operations/gethrisemployeesecurity.md +0 -8
  685. package/docs/sdk/models/operations/gethrisgroupsecurity.md +0 -8
  686. package/docs/sdk/models/operations/getmartechlistsecurity.md +0 -8
  687. package/docs/sdk/models/operations/getmartechmembersecurity.md +0 -8
  688. package/docs/sdk/models/operations/getstoragefilesecurity.md +0 -8
  689. package/docs/sdk/models/operations/getticketingcustomersecurity.md +0 -8
  690. package/docs/sdk/models/operations/getticketingnotesecurity.md +0 -8
  691. package/docs/sdk/models/operations/getticketingticketsecurity.md +0 -8
  692. package/docs/sdk/models/operations/getuccontactsecurity.md +0 -8
  693. package/docs/sdk/models/operations/getunifiedapicallsecurity.md +0 -8
  694. package/docs/sdk/models/operations/getunifiedconnectionsecurity.md +0 -8
  695. package/docs/sdk/models/operations/getunifiedwebhooksecurity.md +0 -8
  696. package/docs/sdk/models/operations/listaccountingaccountssecurity.md +0 -8
  697. package/docs/sdk/models/operations/listaccountingcontactssecurity.md +0 -8
  698. package/docs/sdk/models/operations/listaccountinginvoicessecurity.md +0 -8
  699. package/docs/sdk/models/operations/listaccountingorganizationssecurity.md +0 -8
  700. package/docs/sdk/models/operations/listaccountingpaymentssecurity.md +0 -8
  701. package/docs/sdk/models/operations/listaccountingpayoutssecurity.md +0 -8
  702. package/docs/sdk/models/operations/listaccountingrefundssecurity.md +0 -8
  703. package/docs/sdk/models/operations/listaccountingtaxratessecurity.md +0 -8
  704. package/docs/sdk/models/operations/listaccountingtransactionssecurity.md +0 -8
  705. package/docs/sdk/models/operations/listatsactivitiessecurity.md +0 -8
  706. package/docs/sdk/models/operations/listatsapplicationssecurity.md +0 -8
  707. package/docs/sdk/models/operations/listatsapplicationstatusessecurity.md +0 -8
  708. package/docs/sdk/models/operations/listatscandidatessecurity.md +0 -8
  709. package/docs/sdk/models/operations/listatscompaniessecurity.md +0 -8
  710. package/docs/sdk/models/operations/listatsdocumentssecurity.md +0 -8
  711. package/docs/sdk/models/operations/listatsinterviewssecurity.md +0 -8
  712. package/docs/sdk/models/operations/listatsjobssecurity.md +0 -8
  713. package/docs/sdk/models/operations/listatsscorecardssecurity.md +0 -8
  714. package/docs/sdk/models/operations/listcommercecollectionssecurity.md +0 -8
  715. package/docs/sdk/models/operations/listcommerceinventoriessecurity.md +0 -8
  716. package/docs/sdk/models/operations/listcommerceitemssecurity.md +0 -8
  717. package/docs/sdk/models/operations/listcommercelocationssecurity.md +0 -8
  718. package/docs/sdk/models/operations/listcrmcompaniessecurity.md +0 -8
  719. package/docs/sdk/models/operations/listcrmcontactssecurity.md +0 -8
  720. package/docs/sdk/models/operations/listcrmdealssecurity.md +0 -8
  721. package/docs/sdk/models/operations/listcrmeventssecurity.md +0 -8
  722. package/docs/sdk/models/operations/listcrmleadssecurity.md +0 -8
  723. package/docs/sdk/models/operations/listcrmpipelinessecurity.md +0 -8
  724. package/docs/sdk/models/operations/listenrichcompaniessecurity.md +0 -8
  725. package/docs/sdk/models/operations/listenrichpeoplesecurity.md +0 -8
  726. package/docs/sdk/models/operations/listhrisemployeessecurity.md +0 -8
  727. package/docs/sdk/models/operations/listhrisgroupssecurity.md +0 -8
  728. package/docs/sdk/models/operations/listmartechlistssecurity.md +0 -8
  729. package/docs/sdk/models/operations/listmartechmemberssecurity.md +0 -8
  730. package/docs/sdk/models/operations/listpassthroughssecurity.md +0 -8
  731. package/docs/sdk/models/operations/liststoragefilessecurity.md +0 -8
  732. package/docs/sdk/models/operations/listticketingcustomerssecurity.md +0 -8
  733. package/docs/sdk/models/operations/listticketingnotessecurity.md +0 -8
  734. package/docs/sdk/models/operations/listticketingticketssecurity.md +0 -8
  735. package/docs/sdk/models/operations/listuccallssecurity.md +0 -8
  736. package/docs/sdk/models/operations/listuccontactssecurity.md +0 -8
  737. package/docs/sdk/models/operations/listunifiedapicallssecurity.md +0 -8
  738. package/docs/sdk/models/operations/listunifiedconnectionssecurity.md +0 -8
  739. package/docs/sdk/models/operations/listunifiedintegrationssecurity.md +0 -8
  740. package/docs/sdk/models/operations/listunifiedissuessecurity.md +0 -8
  741. package/docs/sdk/models/operations/listunifiedwebhookssecurity.md +0 -8
  742. package/docs/sdk/models/operations/patchaccountingaccountsecurity.md +0 -8
  743. package/docs/sdk/models/operations/patchaccountingcontactsecurity.md +0 -8
  744. package/docs/sdk/models/operations/patchaccountinginvoicesecurity.md +0 -8
  745. package/docs/sdk/models/operations/patchaccountingpaymentsecurity.md +0 -8
  746. package/docs/sdk/models/operations/patchaccountingtaxratesecurity.md +0 -8
  747. package/docs/sdk/models/operations/patchaccountingtransactionsecurity.md +0 -8
  748. package/docs/sdk/models/operations/patchatsactivitysecurity.md +0 -8
  749. package/docs/sdk/models/operations/patchatsapplicationsecurity.md +0 -8
  750. package/docs/sdk/models/operations/patchatscandidatesecurity.md +0 -8
  751. package/docs/sdk/models/operations/patchatsdocumentsecurity.md +0 -8
  752. package/docs/sdk/models/operations/patchatsinterviewsecurity.md +0 -8
  753. package/docs/sdk/models/operations/patchatsjobsecurity.md +0 -8
  754. package/docs/sdk/models/operations/patchatsscorecardsecurity.md +0 -8
  755. package/docs/sdk/models/operations/patchcommercecollectionsecurity.md +0 -8
  756. package/docs/sdk/models/operations/patchcommerceinventorysecurity.md +0 -8
  757. package/docs/sdk/models/operations/patchcommerceitemsecurity.md +0 -8
  758. package/docs/sdk/models/operations/patchcommercelocationsecurity.md +0 -8
  759. package/docs/sdk/models/operations/patchcrmcompanysecurity.md +0 -8
  760. package/docs/sdk/models/operations/patchcrmcontactsecurity.md +0 -8
  761. package/docs/sdk/models/operations/patchcrmdealsecurity.md +0 -8
  762. package/docs/sdk/models/operations/patchcrmeventsecurity.md +0 -8
  763. package/docs/sdk/models/operations/patchcrmleadsecurity.md +0 -8
  764. package/docs/sdk/models/operations/patchcrmpipelinesecurity.md +0 -8
  765. package/docs/sdk/models/operations/patchhrisemployeesecurity.md +0 -8
  766. package/docs/sdk/models/operations/patchhrisgroupsecurity.md +0 -8
  767. package/docs/sdk/models/operations/patchmartechlistsecurity.md +0 -8
  768. package/docs/sdk/models/operations/patchmartechmembersecurity.md +0 -8
  769. package/docs/sdk/models/operations/patchpassthroughsecurity.md +0 -8
  770. package/docs/sdk/models/operations/patchstoragefilesecurity.md +0 -8
  771. package/docs/sdk/models/operations/patchticketingcustomersecurity.md +0 -8
  772. package/docs/sdk/models/operations/patchticketingnotesecurity.md +0 -8
  773. package/docs/sdk/models/operations/patchticketingticketsecurity.md +0 -8
  774. package/docs/sdk/models/operations/patchuccontactsecurity.md +0 -8
  775. package/docs/sdk/models/operations/patchunifiedconnectionsecurity.md +0 -8
  776. package/docs/sdk/models/operations/patchunifiedwebhooktriggersecurity.md +0 -8
  777. package/docs/sdk/models/operations/removeaccountingaccountsecurity.md +0 -8
  778. package/docs/sdk/models/operations/removeaccountingcontactsecurity.md +0 -8
  779. package/docs/sdk/models/operations/removeaccountinginvoicesecurity.md +0 -8
  780. package/docs/sdk/models/operations/removeaccountingpaymentsecurity.md +0 -8
  781. package/docs/sdk/models/operations/removeaccountingtaxratesecurity.md +0 -8
  782. package/docs/sdk/models/operations/removeaccountingtransactionsecurity.md +0 -8
  783. package/docs/sdk/models/operations/removeatsactivitysecurity.md +0 -8
  784. package/docs/sdk/models/operations/removeatsapplicationsecurity.md +0 -8
  785. package/docs/sdk/models/operations/removeatscandidatesecurity.md +0 -8
  786. package/docs/sdk/models/operations/removeatsdocumentsecurity.md +0 -8
  787. package/docs/sdk/models/operations/removeatsinterviewsecurity.md +0 -8
  788. package/docs/sdk/models/operations/removeatsjobsecurity.md +0 -8
  789. package/docs/sdk/models/operations/removeatsscorecardsecurity.md +0 -8
  790. package/docs/sdk/models/operations/removecommercecollectionsecurity.md +0 -8
  791. package/docs/sdk/models/operations/removecommerceinventorysecurity.md +0 -8
  792. package/docs/sdk/models/operations/removecommerceitemsecurity.md +0 -8
  793. package/docs/sdk/models/operations/removecommercelocationsecurity.md +0 -8
  794. package/docs/sdk/models/operations/removecrmcompanysecurity.md +0 -8
  795. package/docs/sdk/models/operations/removecrmcontactsecurity.md +0 -8
  796. package/docs/sdk/models/operations/removecrmdealsecurity.md +0 -8
  797. package/docs/sdk/models/operations/removecrmeventsecurity.md +0 -8
  798. package/docs/sdk/models/operations/removecrmleadsecurity.md +0 -8
  799. package/docs/sdk/models/operations/removecrmpipelinesecurity.md +0 -8
  800. package/docs/sdk/models/operations/removehrisemployeesecurity.md +0 -8
  801. package/docs/sdk/models/operations/removehrisgroupsecurity.md +0 -8
  802. package/docs/sdk/models/operations/removemartechlistsecurity.md +0 -8
  803. package/docs/sdk/models/operations/removemartechmembersecurity.md +0 -8
  804. package/docs/sdk/models/operations/removepassthroughsecurity.md +0 -8
  805. package/docs/sdk/models/operations/removestoragefilesecurity.md +0 -8
  806. package/docs/sdk/models/operations/removeticketingcustomersecurity.md +0 -8
  807. package/docs/sdk/models/operations/removeticketingnotesecurity.md +0 -8
  808. package/docs/sdk/models/operations/removeticketingticketsecurity.md +0 -8
  809. package/docs/sdk/models/operations/removeuccontactsecurity.md +0 -8
  810. package/docs/sdk/models/operations/removeunifiedconnectionsecurity.md +0 -8
  811. package/docs/sdk/models/operations/removeunifiedwebhooksecurity.md +0 -8
  812. package/docs/sdk/models/operations/updateaccountingaccountsecurity.md +0 -8
  813. package/docs/sdk/models/operations/updateaccountingcontactsecurity.md +0 -8
  814. package/docs/sdk/models/operations/updateaccountinginvoicesecurity.md +0 -8
  815. package/docs/sdk/models/operations/updateaccountingpaymentsecurity.md +0 -8
  816. package/docs/sdk/models/operations/updateaccountingtaxratesecurity.md +0 -8
  817. package/docs/sdk/models/operations/updateaccountingtransactionsecurity.md +0 -8
  818. package/docs/sdk/models/operations/updateatsactivitysecurity.md +0 -8
  819. package/docs/sdk/models/operations/updateatsapplicationsecurity.md +0 -8
  820. package/docs/sdk/models/operations/updateatscandidatesecurity.md +0 -8
  821. package/docs/sdk/models/operations/updateatsdocumentsecurity.md +0 -8
  822. package/docs/sdk/models/operations/updateatsinterviewsecurity.md +0 -8
  823. package/docs/sdk/models/operations/updateatsjobsecurity.md +0 -8
  824. package/docs/sdk/models/operations/updateatsscorecardsecurity.md +0 -8
  825. package/docs/sdk/models/operations/updatecommercecollectionsecurity.md +0 -8
  826. package/docs/sdk/models/operations/updatecommerceinventorysecurity.md +0 -8
  827. package/docs/sdk/models/operations/updatecommerceitemsecurity.md +0 -8
  828. package/docs/sdk/models/operations/updatecommercelocationsecurity.md +0 -8
  829. package/docs/sdk/models/operations/updatecrmcompanysecurity.md +0 -8
  830. package/docs/sdk/models/operations/updatecrmcontactsecurity.md +0 -8
  831. package/docs/sdk/models/operations/updatecrmdealsecurity.md +0 -8
  832. package/docs/sdk/models/operations/updatecrmeventsecurity.md +0 -8
  833. package/docs/sdk/models/operations/updatecrmleadsecurity.md +0 -8
  834. package/docs/sdk/models/operations/updatecrmpipelinesecurity.md +0 -8
  835. package/docs/sdk/models/operations/updatehrisemployeesecurity.md +0 -8
  836. package/docs/sdk/models/operations/updatehrisgroupsecurity.md +0 -8
  837. package/docs/sdk/models/operations/updatemartechlistsecurity.md +0 -8
  838. package/docs/sdk/models/operations/updatemartechmembersecurity.md +0 -8
  839. package/docs/sdk/models/operations/updatepassthroughsecurity.md +0 -8
  840. package/docs/sdk/models/operations/updatestoragefilesecurity.md +0 -8
  841. package/docs/sdk/models/operations/updateticketingcustomersecurity.md +0 -8
  842. package/docs/sdk/models/operations/updateticketingnotesecurity.md +0 -8
  843. package/docs/sdk/models/operations/updateticketingticketsecurity.md +0 -8
  844. package/docs/sdk/models/operations/updateuccontactsecurity.md +0 -8
  845. package/docs/sdk/models/operations/updateunifiedconnectionsecurity.md +0 -8
  846. package/docs/sdk/models/operations/updateunifiedwebhooktriggersecurity.md +0 -8
package/dist/sdk/ats.js CHANGED
@@ -101,10 +101,10 @@ var Ats = /** @class */ (function () {
101
101
  /**
102
102
  * Create an activity
103
103
  */
104
- Ats.prototype.createAtsActivity = function (req, security, config) {
104
+ Ats.prototype.createAtsActivity = function (req, config) {
105
105
  var _a, _b;
106
106
  return __awaiter(this, void 0, void 0, function () {
107
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
107
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
108
108
  var _d;
109
109
  return __generator(this, function (_e) {
110
110
  switch (_e.label) {
@@ -124,15 +124,22 @@ var Ats = /** @class */ (function () {
124
124
  }
125
125
  }
126
126
  client = this.sdkConfiguration.defaultClient;
127
- if (!(security instanceof utils.SpeakeasyBase)) {
128
- security = new operations.CreateAtsActivitySecurity(security);
127
+ globalSecurity = this.sdkConfiguration.security;
128
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
129
+ return [4 /*yield*/, globalSecurity()];
130
+ case 1:
131
+ globalSecurity = _e.sent();
132
+ _e.label = 2;
133
+ case 2:
134
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
135
+ globalSecurity = new shared.Security(globalSecurity);
129
136
  }
130
- properties = utils.parseSecurityProperties(security);
137
+ properties = utils.parseSecurityProperties(globalSecurity);
131
138
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
132
139
  headers["Accept"] = "application/json";
133
140
  headers["user-agent"] = this.sdkConfiguration.userAgent;
134
141
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
135
- case 1:
142
+ case 3:
136
143
  httpRes = _e.sent();
137
144
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
138
145
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -165,10 +172,10 @@ var Ats = /** @class */ (function () {
165
172
  /**
166
173
  * Create an application
167
174
  */
168
- Ats.prototype.createAtsApplication = function (req, security, config) {
175
+ Ats.prototype.createAtsApplication = function (req, config) {
169
176
  var _a, _b;
170
177
  return __awaiter(this, void 0, void 0, function () {
171
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
178
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
172
179
  var _d;
173
180
  return __generator(this, function (_e) {
174
181
  switch (_e.label) {
@@ -188,15 +195,22 @@ var Ats = /** @class */ (function () {
188
195
  }
189
196
  }
190
197
  client = this.sdkConfiguration.defaultClient;
191
- if (!(security instanceof utils.SpeakeasyBase)) {
192
- security = new operations.CreateAtsApplicationSecurity(security);
198
+ globalSecurity = this.sdkConfiguration.security;
199
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
200
+ return [4 /*yield*/, globalSecurity()];
201
+ case 1:
202
+ globalSecurity = _e.sent();
203
+ _e.label = 2;
204
+ case 2:
205
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
206
+ globalSecurity = new shared.Security(globalSecurity);
193
207
  }
194
- properties = utils.parseSecurityProperties(security);
208
+ properties = utils.parseSecurityProperties(globalSecurity);
195
209
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
196
210
  headers["Accept"] = "application/json";
197
211
  headers["user-agent"] = this.sdkConfiguration.userAgent;
198
212
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
199
- case 1:
213
+ case 3:
200
214
  httpRes = _e.sent();
201
215
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
202
216
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -229,10 +243,10 @@ var Ats = /** @class */ (function () {
229
243
  /**
230
244
  * Create a candidate
231
245
  */
232
- Ats.prototype.createAtsCandidate = function (req, security, config) {
246
+ Ats.prototype.createAtsCandidate = function (req, config) {
233
247
  var _a, _b;
234
248
  return __awaiter(this, void 0, void 0, function () {
235
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
249
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
236
250
  var _d;
237
251
  return __generator(this, function (_e) {
238
252
  switch (_e.label) {
@@ -252,15 +266,22 @@ var Ats = /** @class */ (function () {
252
266
  }
253
267
  }
254
268
  client = this.sdkConfiguration.defaultClient;
255
- if (!(security instanceof utils.SpeakeasyBase)) {
256
- security = new operations.CreateAtsCandidateSecurity(security);
269
+ globalSecurity = this.sdkConfiguration.security;
270
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
271
+ return [4 /*yield*/, globalSecurity()];
272
+ case 1:
273
+ globalSecurity = _e.sent();
274
+ _e.label = 2;
275
+ case 2:
276
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
277
+ globalSecurity = new shared.Security(globalSecurity);
257
278
  }
258
- properties = utils.parseSecurityProperties(security);
279
+ properties = utils.parseSecurityProperties(globalSecurity);
259
280
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
260
281
  headers["Accept"] = "application/json";
261
282
  headers["user-agent"] = this.sdkConfiguration.userAgent;
262
283
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
263
- case 1:
284
+ case 3:
264
285
  httpRes = _e.sent();
265
286
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
266
287
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -293,10 +314,10 @@ var Ats = /** @class */ (function () {
293
314
  /**
294
315
  * Create a document
295
316
  */
296
- Ats.prototype.createAtsDocument = function (req, security, config) {
317
+ Ats.prototype.createAtsDocument = function (req, config) {
297
318
  var _a, _b;
298
319
  return __awaiter(this, void 0, void 0, function () {
299
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
320
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
300
321
  var _d;
301
322
  return __generator(this, function (_e) {
302
323
  switch (_e.label) {
@@ -316,15 +337,22 @@ var Ats = /** @class */ (function () {
316
337
  }
317
338
  }
318
339
  client = this.sdkConfiguration.defaultClient;
319
- if (!(security instanceof utils.SpeakeasyBase)) {
320
- security = new operations.CreateAtsDocumentSecurity(security);
340
+ globalSecurity = this.sdkConfiguration.security;
341
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
342
+ return [4 /*yield*/, globalSecurity()];
343
+ case 1:
344
+ globalSecurity = _e.sent();
345
+ _e.label = 2;
346
+ case 2:
347
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
348
+ globalSecurity = new shared.Security(globalSecurity);
321
349
  }
322
- properties = utils.parseSecurityProperties(security);
350
+ properties = utils.parseSecurityProperties(globalSecurity);
323
351
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
324
352
  headers["Accept"] = "application/json";
325
353
  headers["user-agent"] = this.sdkConfiguration.userAgent;
326
354
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
327
- case 1:
355
+ case 3:
328
356
  httpRes = _e.sent();
329
357
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
330
358
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -357,10 +385,10 @@ var Ats = /** @class */ (function () {
357
385
  /**
358
386
  * Create a interview
359
387
  */
360
- Ats.prototype.createAtsInterview = function (req, security, config) {
388
+ Ats.prototype.createAtsInterview = function (req, config) {
361
389
  var _a, _b;
362
390
  return __awaiter(this, void 0, void 0, function () {
363
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
391
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
364
392
  var _d;
365
393
  return __generator(this, function (_e) {
366
394
  switch (_e.label) {
@@ -380,15 +408,22 @@ var Ats = /** @class */ (function () {
380
408
  }
381
409
  }
382
410
  client = this.sdkConfiguration.defaultClient;
383
- if (!(security instanceof utils.SpeakeasyBase)) {
384
- security = new operations.CreateAtsInterviewSecurity(security);
411
+ globalSecurity = this.sdkConfiguration.security;
412
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
413
+ return [4 /*yield*/, globalSecurity()];
414
+ case 1:
415
+ globalSecurity = _e.sent();
416
+ _e.label = 2;
417
+ case 2:
418
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
419
+ globalSecurity = new shared.Security(globalSecurity);
385
420
  }
386
- properties = utils.parseSecurityProperties(security);
421
+ properties = utils.parseSecurityProperties(globalSecurity);
387
422
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
388
423
  headers["Accept"] = "application/json";
389
424
  headers["user-agent"] = this.sdkConfiguration.userAgent;
390
425
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
391
- case 1:
426
+ case 3:
392
427
  httpRes = _e.sent();
393
428
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
394
429
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -421,10 +456,10 @@ var Ats = /** @class */ (function () {
421
456
  /**
422
457
  * Create a job
423
458
  */
424
- Ats.prototype.createAtsJob = function (req, security, config) {
459
+ Ats.prototype.createAtsJob = function (req, config) {
425
460
  var _a, _b;
426
461
  return __awaiter(this, void 0, void 0, function () {
427
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
462
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
428
463
  var _d;
429
464
  return __generator(this, function (_e) {
430
465
  switch (_e.label) {
@@ -444,15 +479,22 @@ var Ats = /** @class */ (function () {
444
479
  }
445
480
  }
446
481
  client = this.sdkConfiguration.defaultClient;
447
- if (!(security instanceof utils.SpeakeasyBase)) {
448
- security = new operations.CreateAtsJobSecurity(security);
482
+ globalSecurity = this.sdkConfiguration.security;
483
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
484
+ return [4 /*yield*/, globalSecurity()];
485
+ case 1:
486
+ globalSecurity = _e.sent();
487
+ _e.label = 2;
488
+ case 2:
489
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
490
+ globalSecurity = new shared.Security(globalSecurity);
449
491
  }
450
- properties = utils.parseSecurityProperties(security);
492
+ properties = utils.parseSecurityProperties(globalSecurity);
451
493
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
452
494
  headers["Accept"] = "application/json";
453
495
  headers["user-agent"] = this.sdkConfiguration.userAgent;
454
496
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
455
- case 1:
497
+ case 3:
456
498
  httpRes = _e.sent();
457
499
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
458
500
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -485,10 +527,10 @@ var Ats = /** @class */ (function () {
485
527
  /**
486
528
  * Create a scorecard
487
529
  */
488
- Ats.prototype.createAtsScorecard = function (req, security, config) {
530
+ Ats.prototype.createAtsScorecard = function (req, config) {
489
531
  var _a, _b;
490
532
  return __awaiter(this, void 0, void 0, function () {
491
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
533
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
492
534
  var _d;
493
535
  return __generator(this, function (_e) {
494
536
  switch (_e.label) {
@@ -508,15 +550,22 @@ var Ats = /** @class */ (function () {
508
550
  }
509
551
  }
510
552
  client = this.sdkConfiguration.defaultClient;
511
- if (!(security instanceof utils.SpeakeasyBase)) {
512
- security = new operations.CreateAtsScorecardSecurity(security);
553
+ globalSecurity = this.sdkConfiguration.security;
554
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
555
+ return [4 /*yield*/, globalSecurity()];
556
+ case 1:
557
+ globalSecurity = _e.sent();
558
+ _e.label = 2;
559
+ case 2:
560
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
561
+ globalSecurity = new shared.Security(globalSecurity);
513
562
  }
514
- properties = utils.parseSecurityProperties(security);
563
+ properties = utils.parseSecurityProperties(globalSecurity);
515
564
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
516
565
  headers["Accept"] = "application/json";
517
566
  headers["user-agent"] = this.sdkConfiguration.userAgent;
518
567
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "post", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
519
- case 1:
568
+ case 3:
520
569
  httpRes = _e.sent();
521
570
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
522
571
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -549,10 +598,10 @@ var Ats = /** @class */ (function () {
549
598
  /**
550
599
  * Retrieve an activity
551
600
  */
552
- Ats.prototype.getAtsActivity = function (req, security, config) {
601
+ Ats.prototype.getAtsActivity = function (req, config) {
553
602
  var _a, _b;
554
603
  return __awaiter(this, void 0, void 0, function () {
555
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
604
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
556
605
  return __generator(this, function (_c) {
557
606
  switch (_c.label) {
558
607
  case 0:
@@ -562,16 +611,23 @@ var Ats = /** @class */ (function () {
562
611
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
563
612
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
564
613
  client = this.sdkConfiguration.defaultClient;
565
- if (!(security instanceof utils.SpeakeasyBase)) {
566
- security = new operations.GetAtsActivitySecurity(security);
614
+ globalSecurity = this.sdkConfiguration.security;
615
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
616
+ return [4 /*yield*/, globalSecurity()];
617
+ case 1:
618
+ globalSecurity = _c.sent();
619
+ _c.label = 2;
620
+ case 2:
621
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
622
+ globalSecurity = new shared.Security(globalSecurity);
567
623
  }
568
- properties = utils.parseSecurityProperties(security);
624
+ properties = utils.parseSecurityProperties(globalSecurity);
569
625
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
570
626
  queryParams = utils.serializeQueryParams(req);
571
627
  headers["Accept"] = "application/json";
572
628
  headers["user-agent"] = this.sdkConfiguration.userAgent;
573
629
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
574
- case 1:
630
+ case 3:
575
631
  httpRes = _c.sent();
576
632
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
577
633
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -604,10 +660,10 @@ var Ats = /** @class */ (function () {
604
660
  /**
605
661
  * Retrieve an application
606
662
  */
607
- Ats.prototype.getAtsApplication = function (req, security, config) {
663
+ Ats.prototype.getAtsApplication = function (req, config) {
608
664
  var _a, _b;
609
665
  return __awaiter(this, void 0, void 0, function () {
610
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
666
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
611
667
  return __generator(this, function (_c) {
612
668
  switch (_c.label) {
613
669
  case 0:
@@ -617,16 +673,23 @@ var Ats = /** @class */ (function () {
617
673
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
618
674
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
619
675
  client = this.sdkConfiguration.defaultClient;
620
- if (!(security instanceof utils.SpeakeasyBase)) {
621
- security = new operations.GetAtsApplicationSecurity(security);
676
+ globalSecurity = this.sdkConfiguration.security;
677
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
678
+ return [4 /*yield*/, globalSecurity()];
679
+ case 1:
680
+ globalSecurity = _c.sent();
681
+ _c.label = 2;
682
+ case 2:
683
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
684
+ globalSecurity = new shared.Security(globalSecurity);
622
685
  }
623
- properties = utils.parseSecurityProperties(security);
686
+ properties = utils.parseSecurityProperties(globalSecurity);
624
687
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
625
688
  queryParams = utils.serializeQueryParams(req);
626
689
  headers["Accept"] = "application/json";
627
690
  headers["user-agent"] = this.sdkConfiguration.userAgent;
628
691
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
629
- case 1:
692
+ case 3:
630
693
  httpRes = _c.sent();
631
694
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
632
695
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -659,10 +722,10 @@ var Ats = /** @class */ (function () {
659
722
  /**
660
723
  * Retrieve a candidate
661
724
  */
662
- Ats.prototype.getAtsCandidate = function (req, security, config) {
725
+ Ats.prototype.getAtsCandidate = function (req, config) {
663
726
  var _a, _b;
664
727
  return __awaiter(this, void 0, void 0, function () {
665
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
728
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
666
729
  return __generator(this, function (_c) {
667
730
  switch (_c.label) {
668
731
  case 0:
@@ -672,16 +735,23 @@ var Ats = /** @class */ (function () {
672
735
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
673
736
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
674
737
  client = this.sdkConfiguration.defaultClient;
675
- if (!(security instanceof utils.SpeakeasyBase)) {
676
- security = new operations.GetAtsCandidateSecurity(security);
738
+ globalSecurity = this.sdkConfiguration.security;
739
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
740
+ return [4 /*yield*/, globalSecurity()];
741
+ case 1:
742
+ globalSecurity = _c.sent();
743
+ _c.label = 2;
744
+ case 2:
745
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
746
+ globalSecurity = new shared.Security(globalSecurity);
677
747
  }
678
- properties = utils.parseSecurityProperties(security);
748
+ properties = utils.parseSecurityProperties(globalSecurity);
679
749
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
680
750
  queryParams = utils.serializeQueryParams(req);
681
751
  headers["Accept"] = "application/json";
682
752
  headers["user-agent"] = this.sdkConfiguration.userAgent;
683
753
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
684
- case 1:
754
+ case 3:
685
755
  httpRes = _c.sent();
686
756
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
687
757
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -714,10 +784,10 @@ var Ats = /** @class */ (function () {
714
784
  /**
715
785
  * Retrieve a company
716
786
  */
717
- Ats.prototype.getAtsCompany = function (req, security, config) {
787
+ Ats.prototype.getAtsCompany = function (req, config) {
718
788
  var _a, _b;
719
789
  return __awaiter(this, void 0, void 0, function () {
720
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
790
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
721
791
  return __generator(this, function (_c) {
722
792
  switch (_c.label) {
723
793
  case 0:
@@ -727,16 +797,23 @@ var Ats = /** @class */ (function () {
727
797
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
728
798
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company/{id}", req);
729
799
  client = this.sdkConfiguration.defaultClient;
730
- if (!(security instanceof utils.SpeakeasyBase)) {
731
- security = new operations.GetAtsCompanySecurity(security);
800
+ globalSecurity = this.sdkConfiguration.security;
801
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
802
+ return [4 /*yield*/, globalSecurity()];
803
+ case 1:
804
+ globalSecurity = _c.sent();
805
+ _c.label = 2;
806
+ case 2:
807
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
808
+ globalSecurity = new shared.Security(globalSecurity);
732
809
  }
733
- properties = utils.parseSecurityProperties(security);
810
+ properties = utils.parseSecurityProperties(globalSecurity);
734
811
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
735
812
  queryParams = utils.serializeQueryParams(req);
736
813
  headers["Accept"] = "application/json";
737
814
  headers["user-agent"] = this.sdkConfiguration.userAgent;
738
815
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
739
- case 1:
816
+ case 3:
740
817
  httpRes = _c.sent();
741
818
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
742
819
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -769,10 +846,10 @@ var Ats = /** @class */ (function () {
769
846
  /**
770
847
  * Retrieve a document
771
848
  */
772
- Ats.prototype.getAtsDocument = function (req, security, config) {
849
+ Ats.prototype.getAtsDocument = function (req, config) {
773
850
  var _a, _b;
774
851
  return __awaiter(this, void 0, void 0, function () {
775
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
852
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
776
853
  return __generator(this, function (_c) {
777
854
  switch (_c.label) {
778
855
  case 0:
@@ -782,16 +859,23 @@ var Ats = /** @class */ (function () {
782
859
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
783
860
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
784
861
  client = this.sdkConfiguration.defaultClient;
785
- if (!(security instanceof utils.SpeakeasyBase)) {
786
- security = new operations.GetAtsDocumentSecurity(security);
862
+ globalSecurity = this.sdkConfiguration.security;
863
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
864
+ return [4 /*yield*/, globalSecurity()];
865
+ case 1:
866
+ globalSecurity = _c.sent();
867
+ _c.label = 2;
868
+ case 2:
869
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
870
+ globalSecurity = new shared.Security(globalSecurity);
787
871
  }
788
- properties = utils.parseSecurityProperties(security);
872
+ properties = utils.parseSecurityProperties(globalSecurity);
789
873
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
790
874
  queryParams = utils.serializeQueryParams(req);
791
875
  headers["Accept"] = "application/json";
792
876
  headers["user-agent"] = this.sdkConfiguration.userAgent;
793
877
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
794
- case 1:
878
+ case 3:
795
879
  httpRes = _c.sent();
796
880
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
797
881
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -824,10 +908,10 @@ var Ats = /** @class */ (function () {
824
908
  /**
825
909
  * Retrieve a interview
826
910
  */
827
- Ats.prototype.getAtsInterview = function (req, security, config) {
911
+ Ats.prototype.getAtsInterview = function (req, config) {
828
912
  var _a, _b;
829
913
  return __awaiter(this, void 0, void 0, function () {
830
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
914
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
831
915
  return __generator(this, function (_c) {
832
916
  switch (_c.label) {
833
917
  case 0:
@@ -837,16 +921,23 @@ var Ats = /** @class */ (function () {
837
921
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
838
922
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
839
923
  client = this.sdkConfiguration.defaultClient;
840
- if (!(security instanceof utils.SpeakeasyBase)) {
841
- security = new operations.GetAtsInterviewSecurity(security);
924
+ globalSecurity = this.sdkConfiguration.security;
925
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
926
+ return [4 /*yield*/, globalSecurity()];
927
+ case 1:
928
+ globalSecurity = _c.sent();
929
+ _c.label = 2;
930
+ case 2:
931
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
932
+ globalSecurity = new shared.Security(globalSecurity);
842
933
  }
843
- properties = utils.parseSecurityProperties(security);
934
+ properties = utils.parseSecurityProperties(globalSecurity);
844
935
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
845
936
  queryParams = utils.serializeQueryParams(req);
846
937
  headers["Accept"] = "application/json";
847
938
  headers["user-agent"] = this.sdkConfiguration.userAgent;
848
939
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
849
- case 1:
940
+ case 3:
850
941
  httpRes = _c.sent();
851
942
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
852
943
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -879,10 +970,10 @@ var Ats = /** @class */ (function () {
879
970
  /**
880
971
  * Retrieve a job
881
972
  */
882
- Ats.prototype.getAtsJob = function (req, security, config) {
973
+ Ats.prototype.getAtsJob = function (req, config) {
883
974
  var _a, _b;
884
975
  return __awaiter(this, void 0, void 0, function () {
885
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
976
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
886
977
  return __generator(this, function (_c) {
887
978
  switch (_c.label) {
888
979
  case 0:
@@ -892,16 +983,23 @@ var Ats = /** @class */ (function () {
892
983
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
893
984
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
894
985
  client = this.sdkConfiguration.defaultClient;
895
- if (!(security instanceof utils.SpeakeasyBase)) {
896
- security = new operations.GetAtsJobSecurity(security);
986
+ globalSecurity = this.sdkConfiguration.security;
987
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
988
+ return [4 /*yield*/, globalSecurity()];
989
+ case 1:
990
+ globalSecurity = _c.sent();
991
+ _c.label = 2;
992
+ case 2:
993
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
994
+ globalSecurity = new shared.Security(globalSecurity);
897
995
  }
898
- properties = utils.parseSecurityProperties(security);
996
+ properties = utils.parseSecurityProperties(globalSecurity);
899
997
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
900
998
  queryParams = utils.serializeQueryParams(req);
901
999
  headers["Accept"] = "application/json";
902
1000
  headers["user-agent"] = this.sdkConfiguration.userAgent;
903
1001
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
904
- case 1:
1002
+ case 3:
905
1003
  httpRes = _c.sent();
906
1004
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
907
1005
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -934,10 +1032,10 @@ var Ats = /** @class */ (function () {
934
1032
  /**
935
1033
  * Retrieve a scorecard
936
1034
  */
937
- Ats.prototype.getAtsScorecard = function (req, security, config) {
1035
+ Ats.prototype.getAtsScorecard = function (req, config) {
938
1036
  var _a, _b;
939
1037
  return __awaiter(this, void 0, void 0, function () {
940
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
1038
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes;
941
1039
  return __generator(this, function (_c) {
942
1040
  switch (_c.label) {
943
1041
  case 0:
@@ -947,16 +1045,23 @@ var Ats = /** @class */ (function () {
947
1045
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
948
1046
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
949
1047
  client = this.sdkConfiguration.defaultClient;
950
- if (!(security instanceof utils.SpeakeasyBase)) {
951
- security = new operations.GetAtsScorecardSecurity(security);
1048
+ globalSecurity = this.sdkConfiguration.security;
1049
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1050
+ return [4 /*yield*/, globalSecurity()];
1051
+ case 1:
1052
+ globalSecurity = _c.sent();
1053
+ _c.label = 2;
1054
+ case 2:
1055
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1056
+ globalSecurity = new shared.Security(globalSecurity);
952
1057
  }
953
- properties = utils.parseSecurityProperties(security);
1058
+ properties = utils.parseSecurityProperties(globalSecurity);
954
1059
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
955
1060
  queryParams = utils.serializeQueryParams(req);
956
1061
  headers["Accept"] = "application/json";
957
1062
  headers["user-agent"] = this.sdkConfiguration.userAgent;
958
1063
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
959
- case 1:
1064
+ case 3:
960
1065
  httpRes = _c.sent();
961
1066
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
962
1067
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -989,10 +1094,10 @@ var Ats = /** @class */ (function () {
989
1094
  /**
990
1095
  * List all activities
991
1096
  */
992
- Ats.prototype.listAtsActivities = function (req, security, config) {
1097
+ Ats.prototype.listAtsActivities = function (req, config) {
993
1098
  var _a, _b;
994
1099
  return __awaiter(this, void 0, void 0, function () {
995
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1100
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
996
1101
  return __generator(this, function (_c) {
997
1102
  switch (_c.label) {
998
1103
  case 0:
@@ -1002,16 +1107,23 @@ var Ats = /** @class */ (function () {
1002
1107
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1003
1108
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity", req);
1004
1109
  client = this.sdkConfiguration.defaultClient;
1005
- if (!(security instanceof utils.SpeakeasyBase)) {
1006
- security = new operations.ListAtsActivitiesSecurity(security);
1110
+ globalSecurity = this.sdkConfiguration.security;
1111
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1112
+ return [4 /*yield*/, globalSecurity()];
1113
+ case 1:
1114
+ globalSecurity = _c.sent();
1115
+ _c.label = 2;
1116
+ case 2:
1117
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1118
+ globalSecurity = new shared.Security(globalSecurity);
1007
1119
  }
1008
- properties = utils.parseSecurityProperties(security);
1120
+ properties = utils.parseSecurityProperties(globalSecurity);
1009
1121
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1010
1122
  queryParams = utils.serializeQueryParams(req);
1011
1123
  headers["Accept"] = "application/json";
1012
1124
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1013
1125
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1014
- case 1:
1126
+ case 3:
1015
1127
  httpRes = _c.sent();
1016
1128
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1017
1129
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1046,10 +1158,10 @@ var Ats = /** @class */ (function () {
1046
1158
  /**
1047
1159
  * List all applications
1048
1160
  */
1049
- Ats.prototype.listAtsApplications = function (req, security, config) {
1161
+ Ats.prototype.listAtsApplications = function (req, config) {
1050
1162
  var _a, _b;
1051
1163
  return __awaiter(this, void 0, void 0, function () {
1052
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1164
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1053
1165
  return __generator(this, function (_c) {
1054
1166
  switch (_c.label) {
1055
1167
  case 0:
@@ -1059,16 +1171,23 @@ var Ats = /** @class */ (function () {
1059
1171
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1060
1172
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application", req);
1061
1173
  client = this.sdkConfiguration.defaultClient;
1062
- if (!(security instanceof utils.SpeakeasyBase)) {
1063
- security = new operations.ListAtsApplicationsSecurity(security);
1174
+ globalSecurity = this.sdkConfiguration.security;
1175
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1176
+ return [4 /*yield*/, globalSecurity()];
1177
+ case 1:
1178
+ globalSecurity = _c.sent();
1179
+ _c.label = 2;
1180
+ case 2:
1181
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1182
+ globalSecurity = new shared.Security(globalSecurity);
1064
1183
  }
1065
- properties = utils.parseSecurityProperties(security);
1184
+ properties = utils.parseSecurityProperties(globalSecurity);
1066
1185
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1067
1186
  queryParams = utils.serializeQueryParams(req);
1068
1187
  headers["Accept"] = "application/json";
1069
1188
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1070
1189
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1071
- case 1:
1190
+ case 3:
1072
1191
  httpRes = _c.sent();
1073
1192
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1074
1193
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1103,10 +1222,10 @@ var Ats = /** @class */ (function () {
1103
1222
  /**
1104
1223
  * List all application statuses
1105
1224
  */
1106
- Ats.prototype.listAtsApplicationstatuses = function (req, security, config) {
1225
+ Ats.prototype.listAtsApplicationstatuses = function (req, config) {
1107
1226
  var _a, _b;
1108
1227
  return __awaiter(this, void 0, void 0, function () {
1109
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1228
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1110
1229
  return __generator(this, function (_c) {
1111
1230
  switch (_c.label) {
1112
1231
  case 0:
@@ -1116,16 +1235,23 @@ var Ats = /** @class */ (function () {
1116
1235
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1117
1236
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/applicationstatus", req);
1118
1237
  client = this.sdkConfiguration.defaultClient;
1119
- if (!(security instanceof utils.SpeakeasyBase)) {
1120
- security = new operations.ListAtsApplicationstatusesSecurity(security);
1238
+ globalSecurity = this.sdkConfiguration.security;
1239
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1240
+ return [4 /*yield*/, globalSecurity()];
1241
+ case 1:
1242
+ globalSecurity = _c.sent();
1243
+ _c.label = 2;
1244
+ case 2:
1245
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1246
+ globalSecurity = new shared.Security(globalSecurity);
1121
1247
  }
1122
- properties = utils.parseSecurityProperties(security);
1248
+ properties = utils.parseSecurityProperties(globalSecurity);
1123
1249
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1124
1250
  queryParams = utils.serializeQueryParams(req);
1125
1251
  headers["Accept"] = "application/json";
1126
1252
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1127
1253
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1128
- case 1:
1254
+ case 3:
1129
1255
  httpRes = _c.sent();
1130
1256
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1131
1257
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1160,10 +1286,10 @@ var Ats = /** @class */ (function () {
1160
1286
  /**
1161
1287
  * List all candidates
1162
1288
  */
1163
- Ats.prototype.listAtsCandidates = function (req, security, config) {
1289
+ Ats.prototype.listAtsCandidates = function (req, config) {
1164
1290
  var _a, _b;
1165
1291
  return __awaiter(this, void 0, void 0, function () {
1166
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1292
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1167
1293
  return __generator(this, function (_c) {
1168
1294
  switch (_c.label) {
1169
1295
  case 0:
@@ -1173,16 +1299,23 @@ var Ats = /** @class */ (function () {
1173
1299
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1174
1300
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate", req);
1175
1301
  client = this.sdkConfiguration.defaultClient;
1176
- if (!(security instanceof utils.SpeakeasyBase)) {
1177
- security = new operations.ListAtsCandidatesSecurity(security);
1302
+ globalSecurity = this.sdkConfiguration.security;
1303
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1304
+ return [4 /*yield*/, globalSecurity()];
1305
+ case 1:
1306
+ globalSecurity = _c.sent();
1307
+ _c.label = 2;
1308
+ case 2:
1309
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1310
+ globalSecurity = new shared.Security(globalSecurity);
1178
1311
  }
1179
- properties = utils.parseSecurityProperties(security);
1312
+ properties = utils.parseSecurityProperties(globalSecurity);
1180
1313
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1181
1314
  queryParams = utils.serializeQueryParams(req);
1182
1315
  headers["Accept"] = "application/json";
1183
1316
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1184
1317
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1185
- case 1:
1318
+ case 3:
1186
1319
  httpRes = _c.sent();
1187
1320
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1188
1321
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1217,10 +1350,10 @@ var Ats = /** @class */ (function () {
1217
1350
  /**
1218
1351
  * List all companies
1219
1352
  */
1220
- Ats.prototype.listAtsCompanies = function (req, security, config) {
1353
+ Ats.prototype.listAtsCompanies = function (req, config) {
1221
1354
  var _a, _b;
1222
1355
  return __awaiter(this, void 0, void 0, function () {
1223
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1356
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1224
1357
  return __generator(this, function (_c) {
1225
1358
  switch (_c.label) {
1226
1359
  case 0:
@@ -1230,16 +1363,23 @@ var Ats = /** @class */ (function () {
1230
1363
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1231
1364
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/company", req);
1232
1365
  client = this.sdkConfiguration.defaultClient;
1233
- if (!(security instanceof utils.SpeakeasyBase)) {
1234
- security = new operations.ListAtsCompaniesSecurity(security);
1366
+ globalSecurity = this.sdkConfiguration.security;
1367
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1368
+ return [4 /*yield*/, globalSecurity()];
1369
+ case 1:
1370
+ globalSecurity = _c.sent();
1371
+ _c.label = 2;
1372
+ case 2:
1373
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1374
+ globalSecurity = new shared.Security(globalSecurity);
1235
1375
  }
1236
- properties = utils.parseSecurityProperties(security);
1376
+ properties = utils.parseSecurityProperties(globalSecurity);
1237
1377
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1238
1378
  queryParams = utils.serializeQueryParams(req);
1239
1379
  headers["Accept"] = "application/json";
1240
1380
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1241
1381
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1242
- case 1:
1382
+ case 3:
1243
1383
  httpRes = _c.sent();
1244
1384
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1245
1385
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1274,10 +1414,10 @@ var Ats = /** @class */ (function () {
1274
1414
  /**
1275
1415
  * List all documents
1276
1416
  */
1277
- Ats.prototype.listAtsDocuments = function (req, security, config) {
1417
+ Ats.prototype.listAtsDocuments = function (req, config) {
1278
1418
  var _a, _b;
1279
1419
  return __awaiter(this, void 0, void 0, function () {
1280
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1420
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1281
1421
  return __generator(this, function (_c) {
1282
1422
  switch (_c.label) {
1283
1423
  case 0:
@@ -1287,16 +1427,23 @@ var Ats = /** @class */ (function () {
1287
1427
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1288
1428
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document", req);
1289
1429
  client = this.sdkConfiguration.defaultClient;
1290
- if (!(security instanceof utils.SpeakeasyBase)) {
1291
- security = new operations.ListAtsDocumentsSecurity(security);
1430
+ globalSecurity = this.sdkConfiguration.security;
1431
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1432
+ return [4 /*yield*/, globalSecurity()];
1433
+ case 1:
1434
+ globalSecurity = _c.sent();
1435
+ _c.label = 2;
1436
+ case 2:
1437
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1438
+ globalSecurity = new shared.Security(globalSecurity);
1292
1439
  }
1293
- properties = utils.parseSecurityProperties(security);
1440
+ properties = utils.parseSecurityProperties(globalSecurity);
1294
1441
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1295
1442
  queryParams = utils.serializeQueryParams(req);
1296
1443
  headers["Accept"] = "application/json";
1297
1444
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1298
1445
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1299
- case 1:
1446
+ case 3:
1300
1447
  httpRes = _c.sent();
1301
1448
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1302
1449
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1331,10 +1478,10 @@ var Ats = /** @class */ (function () {
1331
1478
  /**
1332
1479
  * List all interviews
1333
1480
  */
1334
- Ats.prototype.listAtsInterviews = function (req, security, config) {
1481
+ Ats.prototype.listAtsInterviews = function (req, config) {
1335
1482
  var _a, _b;
1336
1483
  return __awaiter(this, void 0, void 0, function () {
1337
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1484
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1338
1485
  return __generator(this, function (_c) {
1339
1486
  switch (_c.label) {
1340
1487
  case 0:
@@ -1344,16 +1491,23 @@ var Ats = /** @class */ (function () {
1344
1491
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1345
1492
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview", req);
1346
1493
  client = this.sdkConfiguration.defaultClient;
1347
- if (!(security instanceof utils.SpeakeasyBase)) {
1348
- security = new operations.ListAtsInterviewsSecurity(security);
1494
+ globalSecurity = this.sdkConfiguration.security;
1495
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1496
+ return [4 /*yield*/, globalSecurity()];
1497
+ case 1:
1498
+ globalSecurity = _c.sent();
1499
+ _c.label = 2;
1500
+ case 2:
1501
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1502
+ globalSecurity = new shared.Security(globalSecurity);
1349
1503
  }
1350
- properties = utils.parseSecurityProperties(security);
1504
+ properties = utils.parseSecurityProperties(globalSecurity);
1351
1505
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1352
1506
  queryParams = utils.serializeQueryParams(req);
1353
1507
  headers["Accept"] = "application/json";
1354
1508
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1355
1509
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1356
- case 1:
1510
+ case 3:
1357
1511
  httpRes = _c.sent();
1358
1512
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1359
1513
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1388,10 +1542,10 @@ var Ats = /** @class */ (function () {
1388
1542
  /**
1389
1543
  * List all jobs
1390
1544
  */
1391
- Ats.prototype.listAtsJobs = function (req, security, config) {
1545
+ Ats.prototype.listAtsJobs = function (req, config) {
1392
1546
  var _a, _b;
1393
1547
  return __awaiter(this, void 0, void 0, function () {
1394
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1548
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1395
1549
  return __generator(this, function (_c) {
1396
1550
  switch (_c.label) {
1397
1551
  case 0:
@@ -1401,16 +1555,23 @@ var Ats = /** @class */ (function () {
1401
1555
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1402
1556
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job", req);
1403
1557
  client = this.sdkConfiguration.defaultClient;
1404
- if (!(security instanceof utils.SpeakeasyBase)) {
1405
- security = new operations.ListAtsJobsSecurity(security);
1558
+ globalSecurity = this.sdkConfiguration.security;
1559
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1560
+ return [4 /*yield*/, globalSecurity()];
1561
+ case 1:
1562
+ globalSecurity = _c.sent();
1563
+ _c.label = 2;
1564
+ case 2:
1565
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1566
+ globalSecurity = new shared.Security(globalSecurity);
1406
1567
  }
1407
- properties = utils.parseSecurityProperties(security);
1568
+ properties = utils.parseSecurityProperties(globalSecurity);
1408
1569
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1409
1570
  queryParams = utils.serializeQueryParams(req);
1410
1571
  headers["Accept"] = "application/json";
1411
1572
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1412
1573
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1413
- case 1:
1574
+ case 3:
1414
1575
  httpRes = _c.sent();
1415
1576
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1416
1577
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1445,10 +1606,10 @@ var Ats = /** @class */ (function () {
1445
1606
  /**
1446
1607
  * List all scorecards
1447
1608
  */
1448
- Ats.prototype.listAtsScorecards = function (req, security, config) {
1609
+ Ats.prototype.listAtsScorecards = function (req, config) {
1449
1610
  var _a, _b;
1450
1611
  return __awaiter(this, void 0, void 0, function () {
1451
- var baseURL, operationUrl, client, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1612
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, queryParams, httpRes, responseContentType, res, decodedRes, resFieldDepth;
1452
1613
  return __generator(this, function (_c) {
1453
1614
  switch (_c.label) {
1454
1615
  case 0:
@@ -1458,16 +1619,23 @@ var Ats = /** @class */ (function () {
1458
1619
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1459
1620
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard", req);
1460
1621
  client = this.sdkConfiguration.defaultClient;
1461
- if (!(security instanceof utils.SpeakeasyBase)) {
1462
- security = new operations.ListAtsScorecardsSecurity(security);
1622
+ globalSecurity = this.sdkConfiguration.security;
1623
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1624
+ return [4 /*yield*/, globalSecurity()];
1625
+ case 1:
1626
+ globalSecurity = _c.sent();
1627
+ _c.label = 2;
1628
+ case 2:
1629
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1630
+ globalSecurity = new shared.Security(globalSecurity);
1463
1631
  }
1464
- properties = utils.parseSecurityProperties(security);
1632
+ properties = utils.parseSecurityProperties(globalSecurity);
1465
1633
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1466
1634
  queryParams = utils.serializeQueryParams(req);
1467
1635
  headers["Accept"] = "application/json";
1468
1636
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1469
1637
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config))];
1470
- case 1:
1638
+ case 3:
1471
1639
  httpRes = _c.sent();
1472
1640
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1473
1641
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1502,10 +1670,10 @@ var Ats = /** @class */ (function () {
1502
1670
  /**
1503
1671
  * Update an activity
1504
1672
  */
1505
- Ats.prototype.patchAtsActivity = function (req, security, config) {
1673
+ Ats.prototype.patchAtsActivity = function (req, config) {
1506
1674
  var _a, _b;
1507
1675
  return __awaiter(this, void 0, void 0, function () {
1508
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1676
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1509
1677
  var _d;
1510
1678
  return __generator(this, function (_e) {
1511
1679
  switch (_e.label) {
@@ -1525,15 +1693,22 @@ var Ats = /** @class */ (function () {
1525
1693
  }
1526
1694
  }
1527
1695
  client = this.sdkConfiguration.defaultClient;
1528
- if (!(security instanceof utils.SpeakeasyBase)) {
1529
- security = new operations.PatchAtsActivitySecurity(security);
1696
+ globalSecurity = this.sdkConfiguration.security;
1697
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1698
+ return [4 /*yield*/, globalSecurity()];
1699
+ case 1:
1700
+ globalSecurity = _e.sent();
1701
+ _e.label = 2;
1702
+ case 2:
1703
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1704
+ globalSecurity = new shared.Security(globalSecurity);
1530
1705
  }
1531
- properties = utils.parseSecurityProperties(security);
1706
+ properties = utils.parseSecurityProperties(globalSecurity);
1532
1707
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1533
1708
  headers["Accept"] = "application/json";
1534
1709
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1535
1710
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1536
- case 1:
1711
+ case 3:
1537
1712
  httpRes = _e.sent();
1538
1713
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1539
1714
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1566,10 +1741,10 @@ var Ats = /** @class */ (function () {
1566
1741
  /**
1567
1742
  * Update an application
1568
1743
  */
1569
- Ats.prototype.patchAtsApplication = function (req, security, config) {
1744
+ Ats.prototype.patchAtsApplication = function (req, config) {
1570
1745
  var _a, _b;
1571
1746
  return __awaiter(this, void 0, void 0, function () {
1572
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1747
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1573
1748
  var _d;
1574
1749
  return __generator(this, function (_e) {
1575
1750
  switch (_e.label) {
@@ -1589,15 +1764,22 @@ var Ats = /** @class */ (function () {
1589
1764
  }
1590
1765
  }
1591
1766
  client = this.sdkConfiguration.defaultClient;
1592
- if (!(security instanceof utils.SpeakeasyBase)) {
1593
- security = new operations.PatchAtsApplicationSecurity(security);
1767
+ globalSecurity = this.sdkConfiguration.security;
1768
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1769
+ return [4 /*yield*/, globalSecurity()];
1770
+ case 1:
1771
+ globalSecurity = _e.sent();
1772
+ _e.label = 2;
1773
+ case 2:
1774
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1775
+ globalSecurity = new shared.Security(globalSecurity);
1594
1776
  }
1595
- properties = utils.parseSecurityProperties(security);
1777
+ properties = utils.parseSecurityProperties(globalSecurity);
1596
1778
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1597
1779
  headers["Accept"] = "application/json";
1598
1780
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1599
1781
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1600
- case 1:
1782
+ case 3:
1601
1783
  httpRes = _e.sent();
1602
1784
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1603
1785
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1630,10 +1812,10 @@ var Ats = /** @class */ (function () {
1630
1812
  /**
1631
1813
  * Update a candidate
1632
1814
  */
1633
- Ats.prototype.patchAtsCandidate = function (req, security, config) {
1815
+ Ats.prototype.patchAtsCandidate = function (req, config) {
1634
1816
  var _a, _b;
1635
1817
  return __awaiter(this, void 0, void 0, function () {
1636
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1818
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1637
1819
  var _d;
1638
1820
  return __generator(this, function (_e) {
1639
1821
  switch (_e.label) {
@@ -1653,15 +1835,22 @@ var Ats = /** @class */ (function () {
1653
1835
  }
1654
1836
  }
1655
1837
  client = this.sdkConfiguration.defaultClient;
1656
- if (!(security instanceof utils.SpeakeasyBase)) {
1657
- security = new operations.PatchAtsCandidateSecurity(security);
1838
+ globalSecurity = this.sdkConfiguration.security;
1839
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1840
+ return [4 /*yield*/, globalSecurity()];
1841
+ case 1:
1842
+ globalSecurity = _e.sent();
1843
+ _e.label = 2;
1844
+ case 2:
1845
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1846
+ globalSecurity = new shared.Security(globalSecurity);
1658
1847
  }
1659
- properties = utils.parseSecurityProperties(security);
1848
+ properties = utils.parseSecurityProperties(globalSecurity);
1660
1849
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1661
1850
  headers["Accept"] = "application/json";
1662
1851
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1663
1852
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1664
- case 1:
1853
+ case 3:
1665
1854
  httpRes = _e.sent();
1666
1855
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1667
1856
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1694,10 +1883,10 @@ var Ats = /** @class */ (function () {
1694
1883
  /**
1695
1884
  * Update a document
1696
1885
  */
1697
- Ats.prototype.patchAtsDocument = function (req, security, config) {
1886
+ Ats.prototype.patchAtsDocument = function (req, config) {
1698
1887
  var _a, _b;
1699
1888
  return __awaiter(this, void 0, void 0, function () {
1700
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1889
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1701
1890
  var _d;
1702
1891
  return __generator(this, function (_e) {
1703
1892
  switch (_e.label) {
@@ -1717,15 +1906,22 @@ var Ats = /** @class */ (function () {
1717
1906
  }
1718
1907
  }
1719
1908
  client = this.sdkConfiguration.defaultClient;
1720
- if (!(security instanceof utils.SpeakeasyBase)) {
1721
- security = new operations.PatchAtsDocumentSecurity(security);
1909
+ globalSecurity = this.sdkConfiguration.security;
1910
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1911
+ return [4 /*yield*/, globalSecurity()];
1912
+ case 1:
1913
+ globalSecurity = _e.sent();
1914
+ _e.label = 2;
1915
+ case 2:
1916
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1917
+ globalSecurity = new shared.Security(globalSecurity);
1722
1918
  }
1723
- properties = utils.parseSecurityProperties(security);
1919
+ properties = utils.parseSecurityProperties(globalSecurity);
1724
1920
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1725
1921
  headers["Accept"] = "application/json";
1726
1922
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1727
1923
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1728
- case 1:
1924
+ case 3:
1729
1925
  httpRes = _e.sent();
1730
1926
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1731
1927
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1758,10 +1954,10 @@ var Ats = /** @class */ (function () {
1758
1954
  /**
1759
1955
  * Update a interview
1760
1956
  */
1761
- Ats.prototype.patchAtsInterview = function (req, security, config) {
1957
+ Ats.prototype.patchAtsInterview = function (req, config) {
1762
1958
  var _a, _b;
1763
1959
  return __awaiter(this, void 0, void 0, function () {
1764
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
1960
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1765
1961
  var _d;
1766
1962
  return __generator(this, function (_e) {
1767
1963
  switch (_e.label) {
@@ -1781,15 +1977,22 @@ var Ats = /** @class */ (function () {
1781
1977
  }
1782
1978
  }
1783
1979
  client = this.sdkConfiguration.defaultClient;
1784
- if (!(security instanceof utils.SpeakeasyBase)) {
1785
- security = new operations.PatchAtsInterviewSecurity(security);
1980
+ globalSecurity = this.sdkConfiguration.security;
1981
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
1982
+ return [4 /*yield*/, globalSecurity()];
1983
+ case 1:
1984
+ globalSecurity = _e.sent();
1985
+ _e.label = 2;
1986
+ case 2:
1987
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
1988
+ globalSecurity = new shared.Security(globalSecurity);
1786
1989
  }
1787
- properties = utils.parseSecurityProperties(security);
1990
+ properties = utils.parseSecurityProperties(globalSecurity);
1788
1991
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1789
1992
  headers["Accept"] = "application/json";
1790
1993
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1791
1994
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1792
- case 1:
1995
+ case 3:
1793
1996
  httpRes = _e.sent();
1794
1997
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1795
1998
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1822,10 +2025,10 @@ var Ats = /** @class */ (function () {
1822
2025
  /**
1823
2026
  * Update a job
1824
2027
  */
1825
- Ats.prototype.patchAtsJob = function (req, security, config) {
2028
+ Ats.prototype.patchAtsJob = function (req, config) {
1826
2029
  var _a, _b;
1827
2030
  return __awaiter(this, void 0, void 0, function () {
1828
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2031
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1829
2032
  var _d;
1830
2033
  return __generator(this, function (_e) {
1831
2034
  switch (_e.label) {
@@ -1845,15 +2048,22 @@ var Ats = /** @class */ (function () {
1845
2048
  }
1846
2049
  }
1847
2050
  client = this.sdkConfiguration.defaultClient;
1848
- if (!(security instanceof utils.SpeakeasyBase)) {
1849
- security = new operations.PatchAtsJobSecurity(security);
2051
+ globalSecurity = this.sdkConfiguration.security;
2052
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2053
+ return [4 /*yield*/, globalSecurity()];
2054
+ case 1:
2055
+ globalSecurity = _e.sent();
2056
+ _e.label = 2;
2057
+ case 2:
2058
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2059
+ globalSecurity = new shared.Security(globalSecurity);
1850
2060
  }
1851
- properties = utils.parseSecurityProperties(security);
2061
+ properties = utils.parseSecurityProperties(globalSecurity);
1852
2062
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1853
2063
  headers["Accept"] = "application/json";
1854
2064
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1855
2065
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1856
- case 1:
2066
+ case 3:
1857
2067
  httpRes = _e.sent();
1858
2068
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1859
2069
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1886,10 +2096,10 @@ var Ats = /** @class */ (function () {
1886
2096
  /**
1887
2097
  * Update a scorecard
1888
2098
  */
1889
- Ats.prototype.patchAtsScorecard = function (req, security, config) {
2099
+ Ats.prototype.patchAtsScorecard = function (req, config) {
1890
2100
  var _a, _b;
1891
2101
  return __awaiter(this, void 0, void 0, function () {
1892
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2102
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1893
2103
  var _d;
1894
2104
  return __generator(this, function (_e) {
1895
2105
  switch (_e.label) {
@@ -1909,15 +2119,22 @@ var Ats = /** @class */ (function () {
1909
2119
  }
1910
2120
  }
1911
2121
  client = this.sdkConfiguration.defaultClient;
1912
- if (!(security instanceof utils.SpeakeasyBase)) {
1913
- security = new operations.PatchAtsScorecardSecurity(security);
2122
+ globalSecurity = this.sdkConfiguration.security;
2123
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2124
+ return [4 /*yield*/, globalSecurity()];
2125
+ case 1:
2126
+ globalSecurity = _e.sent();
2127
+ _e.label = 2;
2128
+ case 2:
2129
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2130
+ globalSecurity = new shared.Security(globalSecurity);
1914
2131
  }
1915
- properties = utils.parseSecurityProperties(security);
2132
+ properties = utils.parseSecurityProperties(globalSecurity);
1916
2133
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1917
2134
  headers["Accept"] = "application/json";
1918
2135
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1919
2136
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "patch", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
1920
- case 1:
2137
+ case 3:
1921
2138
  httpRes = _e.sent();
1922
2139
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1923
2140
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -1950,10 +2167,10 @@ var Ats = /** @class */ (function () {
1950
2167
  /**
1951
2168
  * Remove an activity
1952
2169
  */
1953
- Ats.prototype.removeAtsActivity = function (req, security, config) {
2170
+ Ats.prototype.removeAtsActivity = function (req, config) {
1954
2171
  var _a, _b;
1955
2172
  return __awaiter(this, void 0, void 0, function () {
1956
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2173
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
1957
2174
  return __generator(this, function (_c) {
1958
2175
  switch (_c.label) {
1959
2176
  case 0:
@@ -1963,15 +2180,22 @@ var Ats = /** @class */ (function () {
1963
2180
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1964
2181
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/activity/{id}", req);
1965
2182
  client = this.sdkConfiguration.defaultClient;
1966
- if (!(security instanceof utils.SpeakeasyBase)) {
1967
- security = new operations.RemoveAtsActivitySecurity(security);
2183
+ globalSecurity = this.sdkConfiguration.security;
2184
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2185
+ return [4 /*yield*/, globalSecurity()];
2186
+ case 1:
2187
+ globalSecurity = _c.sent();
2188
+ _c.label = 2;
2189
+ case 2:
2190
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2191
+ globalSecurity = new shared.Security(globalSecurity);
1968
2192
  }
1969
- properties = utils.parseSecurityProperties(security);
2193
+ properties = utils.parseSecurityProperties(globalSecurity);
1970
2194
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
1971
2195
  headers["Accept"] = "application/json";
1972
2196
  headers["user-agent"] = this.sdkConfiguration.userAgent;
1973
2197
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
1974
- case 1:
2198
+ case 3:
1975
2199
  httpRes = _c.sent();
1976
2200
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
1977
2201
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2004,10 +2228,10 @@ var Ats = /** @class */ (function () {
2004
2228
  /**
2005
2229
  * Remove an application
2006
2230
  */
2007
- Ats.prototype.removeAtsApplication = function (req, security, config) {
2231
+ Ats.prototype.removeAtsApplication = function (req, config) {
2008
2232
  var _a, _b;
2009
2233
  return __awaiter(this, void 0, void 0, function () {
2010
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2234
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2011
2235
  return __generator(this, function (_c) {
2012
2236
  switch (_c.label) {
2013
2237
  case 0:
@@ -2017,15 +2241,22 @@ var Ats = /** @class */ (function () {
2017
2241
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2018
2242
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/application/{id}", req);
2019
2243
  client = this.sdkConfiguration.defaultClient;
2020
- if (!(security instanceof utils.SpeakeasyBase)) {
2021
- security = new operations.RemoveAtsApplicationSecurity(security);
2244
+ globalSecurity = this.sdkConfiguration.security;
2245
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2246
+ return [4 /*yield*/, globalSecurity()];
2247
+ case 1:
2248
+ globalSecurity = _c.sent();
2249
+ _c.label = 2;
2250
+ case 2:
2251
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2252
+ globalSecurity = new shared.Security(globalSecurity);
2022
2253
  }
2023
- properties = utils.parseSecurityProperties(security);
2254
+ properties = utils.parseSecurityProperties(globalSecurity);
2024
2255
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2025
2256
  headers["Accept"] = "application/json";
2026
2257
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2027
2258
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2028
- case 1:
2259
+ case 3:
2029
2260
  httpRes = _c.sent();
2030
2261
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2031
2262
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2058,10 +2289,10 @@ var Ats = /** @class */ (function () {
2058
2289
  /**
2059
2290
  * Remove a candidate
2060
2291
  */
2061
- Ats.prototype.removeAtsCandidate = function (req, security, config) {
2292
+ Ats.prototype.removeAtsCandidate = function (req, config) {
2062
2293
  var _a, _b;
2063
2294
  return __awaiter(this, void 0, void 0, function () {
2064
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2295
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2065
2296
  return __generator(this, function (_c) {
2066
2297
  switch (_c.label) {
2067
2298
  case 0:
@@ -2071,15 +2302,22 @@ var Ats = /** @class */ (function () {
2071
2302
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2072
2303
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/candidate/{id}", req);
2073
2304
  client = this.sdkConfiguration.defaultClient;
2074
- if (!(security instanceof utils.SpeakeasyBase)) {
2075
- security = new operations.RemoveAtsCandidateSecurity(security);
2305
+ globalSecurity = this.sdkConfiguration.security;
2306
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2307
+ return [4 /*yield*/, globalSecurity()];
2308
+ case 1:
2309
+ globalSecurity = _c.sent();
2310
+ _c.label = 2;
2311
+ case 2:
2312
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2313
+ globalSecurity = new shared.Security(globalSecurity);
2076
2314
  }
2077
- properties = utils.parseSecurityProperties(security);
2315
+ properties = utils.parseSecurityProperties(globalSecurity);
2078
2316
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2079
2317
  headers["Accept"] = "application/json";
2080
2318
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2081
2319
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2082
- case 1:
2320
+ case 3:
2083
2321
  httpRes = _c.sent();
2084
2322
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2085
2323
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2112,10 +2350,10 @@ var Ats = /** @class */ (function () {
2112
2350
  /**
2113
2351
  * Remove a document
2114
2352
  */
2115
- Ats.prototype.removeAtsDocument = function (req, security, config) {
2353
+ Ats.prototype.removeAtsDocument = function (req, config) {
2116
2354
  var _a, _b;
2117
2355
  return __awaiter(this, void 0, void 0, function () {
2118
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2356
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2119
2357
  return __generator(this, function (_c) {
2120
2358
  switch (_c.label) {
2121
2359
  case 0:
@@ -2125,15 +2363,22 @@ var Ats = /** @class */ (function () {
2125
2363
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2126
2364
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/document/{id}", req);
2127
2365
  client = this.sdkConfiguration.defaultClient;
2128
- if (!(security instanceof utils.SpeakeasyBase)) {
2129
- security = new operations.RemoveAtsDocumentSecurity(security);
2366
+ globalSecurity = this.sdkConfiguration.security;
2367
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2368
+ return [4 /*yield*/, globalSecurity()];
2369
+ case 1:
2370
+ globalSecurity = _c.sent();
2371
+ _c.label = 2;
2372
+ case 2:
2373
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2374
+ globalSecurity = new shared.Security(globalSecurity);
2130
2375
  }
2131
- properties = utils.parseSecurityProperties(security);
2376
+ properties = utils.parseSecurityProperties(globalSecurity);
2132
2377
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2133
2378
  headers["Accept"] = "application/json";
2134
2379
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2135
2380
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2136
- case 1:
2381
+ case 3:
2137
2382
  httpRes = _c.sent();
2138
2383
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2139
2384
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2166,10 +2411,10 @@ var Ats = /** @class */ (function () {
2166
2411
  /**
2167
2412
  * Remove a interview
2168
2413
  */
2169
- Ats.prototype.removeAtsInterview = function (req, security, config) {
2414
+ Ats.prototype.removeAtsInterview = function (req, config) {
2170
2415
  var _a, _b;
2171
2416
  return __awaiter(this, void 0, void 0, function () {
2172
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2417
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2173
2418
  return __generator(this, function (_c) {
2174
2419
  switch (_c.label) {
2175
2420
  case 0:
@@ -2179,15 +2424,22 @@ var Ats = /** @class */ (function () {
2179
2424
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2180
2425
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/interview/{id}", req);
2181
2426
  client = this.sdkConfiguration.defaultClient;
2182
- if (!(security instanceof utils.SpeakeasyBase)) {
2183
- security = new operations.RemoveAtsInterviewSecurity(security);
2427
+ globalSecurity = this.sdkConfiguration.security;
2428
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2429
+ return [4 /*yield*/, globalSecurity()];
2430
+ case 1:
2431
+ globalSecurity = _c.sent();
2432
+ _c.label = 2;
2433
+ case 2:
2434
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2435
+ globalSecurity = new shared.Security(globalSecurity);
2184
2436
  }
2185
- properties = utils.parseSecurityProperties(security);
2437
+ properties = utils.parseSecurityProperties(globalSecurity);
2186
2438
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2187
2439
  headers["Accept"] = "application/json";
2188
2440
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2189
2441
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2190
- case 1:
2442
+ case 3:
2191
2443
  httpRes = _c.sent();
2192
2444
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2193
2445
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2220,10 +2472,10 @@ var Ats = /** @class */ (function () {
2220
2472
  /**
2221
2473
  * Remove a job
2222
2474
  */
2223
- Ats.prototype.removeAtsJob = function (req, security, config) {
2475
+ Ats.prototype.removeAtsJob = function (req, config) {
2224
2476
  var _a, _b;
2225
2477
  return __awaiter(this, void 0, void 0, function () {
2226
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2478
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2227
2479
  return __generator(this, function (_c) {
2228
2480
  switch (_c.label) {
2229
2481
  case 0:
@@ -2233,15 +2485,22 @@ var Ats = /** @class */ (function () {
2233
2485
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2234
2486
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/job/{id}", req);
2235
2487
  client = this.sdkConfiguration.defaultClient;
2236
- if (!(security instanceof utils.SpeakeasyBase)) {
2237
- security = new operations.RemoveAtsJobSecurity(security);
2488
+ globalSecurity = this.sdkConfiguration.security;
2489
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2490
+ return [4 /*yield*/, globalSecurity()];
2491
+ case 1:
2492
+ globalSecurity = _c.sent();
2493
+ _c.label = 2;
2494
+ case 2:
2495
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2496
+ globalSecurity = new shared.Security(globalSecurity);
2238
2497
  }
2239
- properties = utils.parseSecurityProperties(security);
2498
+ properties = utils.parseSecurityProperties(globalSecurity);
2240
2499
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2241
2500
  headers["Accept"] = "application/json";
2242
2501
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2243
2502
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2244
- case 1:
2503
+ case 3:
2245
2504
  httpRes = _c.sent();
2246
2505
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2247
2506
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2274,10 +2533,10 @@ var Ats = /** @class */ (function () {
2274
2533
  /**
2275
2534
  * Remove a scorecard
2276
2535
  */
2277
- Ats.prototype.removeAtsScorecard = function (req, security, config) {
2536
+ Ats.prototype.removeAtsScorecard = function (req, config) {
2278
2537
  var _a, _b;
2279
2538
  return __awaiter(this, void 0, void 0, function () {
2280
- var baseURL, operationUrl, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2539
+ var baseURL, operationUrl, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2281
2540
  return __generator(this, function (_c) {
2282
2541
  switch (_c.label) {
2283
2542
  case 0:
@@ -2287,15 +2546,22 @@ var Ats = /** @class */ (function () {
2287
2546
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
2288
2547
  operationUrl = utils.generateURL(baseURL, "/ats/{connection_id}/scorecard/{id}", req);
2289
2548
  client = this.sdkConfiguration.defaultClient;
2290
- if (!(security instanceof utils.SpeakeasyBase)) {
2291
- security = new operations.RemoveAtsScorecardSecurity(security);
2549
+ globalSecurity = this.sdkConfiguration.security;
2550
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2551
+ return [4 /*yield*/, globalSecurity()];
2552
+ case 1:
2553
+ globalSecurity = _c.sent();
2554
+ _c.label = 2;
2555
+ case 2:
2556
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2557
+ globalSecurity = new shared.Security(globalSecurity);
2292
2558
  }
2293
- properties = utils.parseSecurityProperties(security);
2559
+ properties = utils.parseSecurityProperties(globalSecurity);
2294
2560
  headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2295
2561
  headers["Accept"] = "application/json";
2296
2562
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2297
2563
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "delete", headers: headers, responseType: "arraybuffer" }, config))];
2298
- case 1:
2564
+ case 3:
2299
2565
  httpRes = _c.sent();
2300
2566
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2301
2567
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2328,10 +2594,10 @@ var Ats = /** @class */ (function () {
2328
2594
  /**
2329
2595
  * Update an activity
2330
2596
  */
2331
- Ats.prototype.updateAtsActivity = function (req, security, config) {
2597
+ Ats.prototype.updateAtsActivity = function (req, config) {
2332
2598
  var _a, _b;
2333
2599
  return __awaiter(this, void 0, void 0, function () {
2334
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2600
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2335
2601
  var _d;
2336
2602
  return __generator(this, function (_e) {
2337
2603
  switch (_e.label) {
@@ -2351,15 +2617,22 @@ var Ats = /** @class */ (function () {
2351
2617
  }
2352
2618
  }
2353
2619
  client = this.sdkConfiguration.defaultClient;
2354
- if (!(security instanceof utils.SpeakeasyBase)) {
2355
- security = new operations.UpdateAtsActivitySecurity(security);
2620
+ globalSecurity = this.sdkConfiguration.security;
2621
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2622
+ return [4 /*yield*/, globalSecurity()];
2623
+ case 1:
2624
+ globalSecurity = _e.sent();
2625
+ _e.label = 2;
2626
+ case 2:
2627
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2628
+ globalSecurity = new shared.Security(globalSecurity);
2356
2629
  }
2357
- properties = utils.parseSecurityProperties(security);
2630
+ properties = utils.parseSecurityProperties(globalSecurity);
2358
2631
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2359
2632
  headers["Accept"] = "application/json";
2360
2633
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2361
2634
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2362
- case 1:
2635
+ case 3:
2363
2636
  httpRes = _e.sent();
2364
2637
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2365
2638
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2392,10 +2665,10 @@ var Ats = /** @class */ (function () {
2392
2665
  /**
2393
2666
  * Update an application
2394
2667
  */
2395
- Ats.prototype.updateAtsApplication = function (req, security, config) {
2668
+ Ats.prototype.updateAtsApplication = function (req, config) {
2396
2669
  var _a, _b;
2397
2670
  return __awaiter(this, void 0, void 0, function () {
2398
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2671
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2399
2672
  var _d;
2400
2673
  return __generator(this, function (_e) {
2401
2674
  switch (_e.label) {
@@ -2415,15 +2688,22 @@ var Ats = /** @class */ (function () {
2415
2688
  }
2416
2689
  }
2417
2690
  client = this.sdkConfiguration.defaultClient;
2418
- if (!(security instanceof utils.SpeakeasyBase)) {
2419
- security = new operations.UpdateAtsApplicationSecurity(security);
2691
+ globalSecurity = this.sdkConfiguration.security;
2692
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2693
+ return [4 /*yield*/, globalSecurity()];
2694
+ case 1:
2695
+ globalSecurity = _e.sent();
2696
+ _e.label = 2;
2697
+ case 2:
2698
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2699
+ globalSecurity = new shared.Security(globalSecurity);
2420
2700
  }
2421
- properties = utils.parseSecurityProperties(security);
2701
+ properties = utils.parseSecurityProperties(globalSecurity);
2422
2702
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2423
2703
  headers["Accept"] = "application/json";
2424
2704
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2425
2705
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2426
- case 1:
2706
+ case 3:
2427
2707
  httpRes = _e.sent();
2428
2708
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2429
2709
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2456,10 +2736,10 @@ var Ats = /** @class */ (function () {
2456
2736
  /**
2457
2737
  * Update a candidate
2458
2738
  */
2459
- Ats.prototype.updateAtsCandidate = function (req, security, config) {
2739
+ Ats.prototype.updateAtsCandidate = function (req, config) {
2460
2740
  var _a, _b;
2461
2741
  return __awaiter(this, void 0, void 0, function () {
2462
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2742
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2463
2743
  var _d;
2464
2744
  return __generator(this, function (_e) {
2465
2745
  switch (_e.label) {
@@ -2479,15 +2759,22 @@ var Ats = /** @class */ (function () {
2479
2759
  }
2480
2760
  }
2481
2761
  client = this.sdkConfiguration.defaultClient;
2482
- if (!(security instanceof utils.SpeakeasyBase)) {
2483
- security = new operations.UpdateAtsCandidateSecurity(security);
2762
+ globalSecurity = this.sdkConfiguration.security;
2763
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2764
+ return [4 /*yield*/, globalSecurity()];
2765
+ case 1:
2766
+ globalSecurity = _e.sent();
2767
+ _e.label = 2;
2768
+ case 2:
2769
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2770
+ globalSecurity = new shared.Security(globalSecurity);
2484
2771
  }
2485
- properties = utils.parseSecurityProperties(security);
2772
+ properties = utils.parseSecurityProperties(globalSecurity);
2486
2773
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2487
2774
  headers["Accept"] = "application/json";
2488
2775
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2489
2776
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2490
- case 1:
2777
+ case 3:
2491
2778
  httpRes = _e.sent();
2492
2779
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2493
2780
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2520,10 +2807,10 @@ var Ats = /** @class */ (function () {
2520
2807
  /**
2521
2808
  * Update a document
2522
2809
  */
2523
- Ats.prototype.updateAtsDocument = function (req, security, config) {
2810
+ Ats.prototype.updateAtsDocument = function (req, config) {
2524
2811
  var _a, _b;
2525
2812
  return __awaiter(this, void 0, void 0, function () {
2526
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2813
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2527
2814
  var _d;
2528
2815
  return __generator(this, function (_e) {
2529
2816
  switch (_e.label) {
@@ -2543,15 +2830,22 @@ var Ats = /** @class */ (function () {
2543
2830
  }
2544
2831
  }
2545
2832
  client = this.sdkConfiguration.defaultClient;
2546
- if (!(security instanceof utils.SpeakeasyBase)) {
2547
- security = new operations.UpdateAtsDocumentSecurity(security);
2833
+ globalSecurity = this.sdkConfiguration.security;
2834
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2835
+ return [4 /*yield*/, globalSecurity()];
2836
+ case 1:
2837
+ globalSecurity = _e.sent();
2838
+ _e.label = 2;
2839
+ case 2:
2840
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2841
+ globalSecurity = new shared.Security(globalSecurity);
2548
2842
  }
2549
- properties = utils.parseSecurityProperties(security);
2843
+ properties = utils.parseSecurityProperties(globalSecurity);
2550
2844
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2551
2845
  headers["Accept"] = "application/json";
2552
2846
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2553
2847
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2554
- case 1:
2848
+ case 3:
2555
2849
  httpRes = _e.sent();
2556
2850
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2557
2851
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2584,10 +2878,10 @@ var Ats = /** @class */ (function () {
2584
2878
  /**
2585
2879
  * Update a interview
2586
2880
  */
2587
- Ats.prototype.updateAtsInterview = function (req, security, config) {
2881
+ Ats.prototype.updateAtsInterview = function (req, config) {
2588
2882
  var _a, _b;
2589
2883
  return __awaiter(this, void 0, void 0, function () {
2590
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2884
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2591
2885
  var _d;
2592
2886
  return __generator(this, function (_e) {
2593
2887
  switch (_e.label) {
@@ -2607,15 +2901,22 @@ var Ats = /** @class */ (function () {
2607
2901
  }
2608
2902
  }
2609
2903
  client = this.sdkConfiguration.defaultClient;
2610
- if (!(security instanceof utils.SpeakeasyBase)) {
2611
- security = new operations.UpdateAtsInterviewSecurity(security);
2904
+ globalSecurity = this.sdkConfiguration.security;
2905
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2906
+ return [4 /*yield*/, globalSecurity()];
2907
+ case 1:
2908
+ globalSecurity = _e.sent();
2909
+ _e.label = 2;
2910
+ case 2:
2911
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2912
+ globalSecurity = new shared.Security(globalSecurity);
2612
2913
  }
2613
- properties = utils.parseSecurityProperties(security);
2914
+ properties = utils.parseSecurityProperties(globalSecurity);
2614
2915
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2615
2916
  headers["Accept"] = "application/json";
2616
2917
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2617
2918
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2618
- case 1:
2919
+ case 3:
2619
2920
  httpRes = _e.sent();
2620
2921
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2621
2922
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2648,10 +2949,10 @@ var Ats = /** @class */ (function () {
2648
2949
  /**
2649
2950
  * Update a job
2650
2951
  */
2651
- Ats.prototype.updateAtsJob = function (req, security, config) {
2952
+ Ats.prototype.updateAtsJob = function (req, config) {
2652
2953
  var _a, _b;
2653
2954
  return __awaiter(this, void 0, void 0, function () {
2654
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
2955
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2655
2956
  var _d;
2656
2957
  return __generator(this, function (_e) {
2657
2958
  switch (_e.label) {
@@ -2671,15 +2972,22 @@ var Ats = /** @class */ (function () {
2671
2972
  }
2672
2973
  }
2673
2974
  client = this.sdkConfiguration.defaultClient;
2674
- if (!(security instanceof utils.SpeakeasyBase)) {
2675
- security = new operations.UpdateAtsJobSecurity(security);
2975
+ globalSecurity = this.sdkConfiguration.security;
2976
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
2977
+ return [4 /*yield*/, globalSecurity()];
2978
+ case 1:
2979
+ globalSecurity = _e.sent();
2980
+ _e.label = 2;
2981
+ case 2:
2982
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
2983
+ globalSecurity = new shared.Security(globalSecurity);
2676
2984
  }
2677
- properties = utils.parseSecurityProperties(security);
2985
+ properties = utils.parseSecurityProperties(globalSecurity);
2678
2986
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2679
2987
  headers["Accept"] = "application/json";
2680
2988
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2681
2989
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2682
- case 1:
2990
+ case 3:
2683
2991
  httpRes = _e.sent();
2684
2992
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2685
2993
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -2712,10 +3020,10 @@ var Ats = /** @class */ (function () {
2712
3020
  /**
2713
3021
  * Update a scorecard
2714
3022
  */
2715
- Ats.prototype.updateAtsScorecard = function (req, security, config) {
3023
+ Ats.prototype.updateAtsScorecard = function (req, config) {
2716
3024
  var _a, _b;
2717
3025
  return __awaiter(this, void 0, void 0, function () {
2718
- var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, properties, headers, httpRes, responseContentType, res, decodedRes;
3026
+ var baseURL, operationUrl, _c, reqBodyHeaders, reqBody, client, globalSecurity, properties, headers, httpRes, responseContentType, res, decodedRes;
2719
3027
  var _d;
2720
3028
  return __generator(this, function (_e) {
2721
3029
  switch (_e.label) {
@@ -2735,15 +3043,22 @@ var Ats = /** @class */ (function () {
2735
3043
  }
2736
3044
  }
2737
3045
  client = this.sdkConfiguration.defaultClient;
2738
- if (!(security instanceof utils.SpeakeasyBase)) {
2739
- security = new operations.UpdateAtsScorecardSecurity(security);
3046
+ globalSecurity = this.sdkConfiguration.security;
3047
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
3048
+ return [4 /*yield*/, globalSecurity()];
3049
+ case 1:
3050
+ globalSecurity = _e.sent();
3051
+ _e.label = 2;
3052
+ case 2:
3053
+ if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
3054
+ globalSecurity = new shared.Security(globalSecurity);
2740
3055
  }
2741
- properties = utils.parseSecurityProperties(security);
3056
+ properties = utils.parseSecurityProperties(globalSecurity);
2742
3057
  headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
2743
3058
  headers["Accept"] = "application/json";
2744
3059
  headers["user-agent"] = this.sdkConfiguration.userAgent;
2745
3060
  return [4 /*yield*/, client.request(__assign({ validateStatus: function () { return true; }, url: operationUrl, method: "put", headers: headers, responseType: "arraybuffer", data: reqBody }, config))];
2746
- case 1:
3061
+ case 3:
2747
3062
  httpRes = _e.sent();
2748
3063
  responseContentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
2749
3064
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {