@integrahub/vergefy-client 0.24.0 → 0.25.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 (305) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AILAIKTenantModelKeysApi.d.ts +129 -0
  3. package/dist/apis/AILAIKTenantModelKeysApi.js +311 -0
  4. package/dist/apis/APIAAUSTAutomationWorkflowSandboxApi.d.ts +4 -4
  5. package/dist/apis/APIAAUSTAutomationWorkflowSandboxApi.js +4 -4
  6. package/dist/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.d.ts +2 -2
  7. package/dist/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.js +2 -2
  8. package/dist/apis/APIAAUWFAutomationWorkflowApi.d.ts +24 -24
  9. package/dist/apis/APIAAUWFAutomationWorkflowApi.js +24 -24
  10. package/dist/apis/APIAAUWIAutomationWorkflowInstanceApi.d.ts +10 -10
  11. package/dist/apis/APIAAUWIAutomationWorkflowInstanceApi.js +10 -10
  12. package/dist/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.d.ts +2 -2
  13. package/dist/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.js +2 -2
  14. package/dist/apis/APIACFCustomFieldOptionApi.d.ts +4 -4
  15. package/dist/apis/APIACFCustomFieldOptionApi.js +4 -4
  16. package/dist/apis/APIACTContentApi.d.ts +8 -8
  17. package/dist/apis/APIACTContentApi.js +8 -8
  18. package/dist/apis/APIADIDataImporterApi.d.ts +80 -80
  19. package/dist/apis/APIADIDataImporterApi.js +80 -80
  20. package/dist/apis/APIADODocumentApi.d.ts +8 -8
  21. package/dist/apis/APIADODocumentApi.js +8 -8
  22. package/dist/apis/APIAPRFProductFeatureApi.d.ts +4 -4
  23. package/dist/apis/APIAPRFProductFeatureApi.js +4 -4
  24. package/dist/apis/APIAPRPProductPriceApi.d.ts +12 -12
  25. package/dist/apis/APIAPRPProductPriceApi.js +12 -12
  26. package/dist/apis/APIARQRequirementApi.d.ts +42 -42
  27. package/dist/apis/APIARQRequirementApi.js +42 -42
  28. package/dist/apis/APIASPOSupplierPurchaseOrderApi.d.ts +76 -2
  29. package/dist/apis/APIASPOSupplierPurchaseOrderApi.js +204 -3
  30. package/dist/apis/APIATKTaskApi.d.ts +124 -124
  31. package/dist/apis/APIATKTaskApi.js +124 -124
  32. package/dist/apis/APIIntegrationConfigurationApi.d.ts +21 -0
  33. package/dist/apis/APIIntegrationConfigurationApi.js +60 -0
  34. package/dist/apis/APPPCRCRMApi.d.ts +12 -12
  35. package/dist/apis/APPPCRCRMApi.js +12 -12
  36. package/dist/apis/APPPCRCRMSalesBoardApi.d.ts +16 -16
  37. package/dist/apis/APPPCRCRMSalesBoardApi.js +16 -16
  38. package/dist/apis/APPPCRCRMSupportTicketApi.d.ts +16 -16
  39. package/dist/apis/APPPCRCRMSupportTicketApi.js +16 -16
  40. package/dist/apis/APPPCRDCRMDealApi.d.ts +16 -16
  41. package/dist/apis/APPPCRDCRMDealApi.js +16 -16
  42. package/dist/apis/APPPCRLCRMLeadApi.d.ts +8 -8
  43. package/dist/apis/APPPCRLCRMLeadApi.js +8 -8
  44. package/dist/apis/APPPCRPCRMPipelineApi.d.ts +12 -12
  45. package/dist/apis/APPPCRPCRMPipelineApi.js +12 -12
  46. package/dist/apis/APPPCRTCRMTaskApi.d.ts +36 -36
  47. package/dist/apis/APPPCRTCRMTaskApi.js +36 -36
  48. package/dist/apis/APPPFMAFormActionApi.d.ts +8 -8
  49. package/dist/apis/APPPFMAFormActionApi.js +8 -8
  50. package/dist/apis/APPPFMCFormConfigurationApi.d.ts +8 -8
  51. package/dist/apis/APPPFMCFormConfigurationApi.js +8 -8
  52. package/dist/apis/APPPFMGFormGroupApi.d.ts +8 -8
  53. package/dist/apis/APPPFMGFormGroupApi.js +8 -8
  54. package/dist/apis/APPPFMSFormSessionApi.d.ts +8 -8
  55. package/dist/apis/APPPFMSFormSessionApi.js +8 -8
  56. package/dist/apis/APPPFTPFormTemplateApi.d.ts +8 -8
  57. package/dist/apis/APPPFTPFormTemplateApi.js +8 -8
  58. package/dist/apis/APPPINAIInsuranceAIApi.d.ts +158 -0
  59. package/dist/apis/APPPINAIInsuranceAIApi.js +446 -0
  60. package/dist/apis/APPPINPInsurancePolicyApi.d.ts +8 -6
  61. package/dist/apis/APPPINPInsurancePolicyApi.js +12 -6
  62. package/dist/apis/APPPMECMailEngineCampaignApi.d.ts +8 -8
  63. package/dist/apis/APPPMECMailEngineCampaignApi.js +8 -8
  64. package/dist/apis/APPPMEGMailEngineSegmentApi.d.ts +32 -32
  65. package/dist/apis/APPPMEGMailEngineSegmentApi.js +32 -32
  66. package/dist/apis/APPPMEOMailEngineComplianceApi.d.ts +12 -12
  67. package/dist/apis/APPPMEOMailEngineComplianceApi.js +12 -12
  68. package/dist/apis/APPPMESMailEngineSubscriptionApi.d.ts +28 -28
  69. package/dist/apis/APPPMESMailEngineSubscriptionApi.js +28 -28
  70. package/dist/apis/APPPMETMailEngineTemplateApi.d.ts +12 -12
  71. package/dist/apis/APPPMETMailEngineTemplateApi.js +12 -12
  72. package/dist/apis/APPPMTMailTrustApi.d.ts +64 -64
  73. package/dist/apis/APPPMTMailTrustApi.js +64 -64
  74. package/dist/apis/APPPPMCPMSSystemConfigurationApi.d.ts +4 -4
  75. package/dist/apis/APPPPMCPMSSystemConfigurationApi.js +4 -4
  76. package/dist/apis/APPPPMPMSApi.d.ts +48 -48
  77. package/dist/apis/APPPPMPMSApi.js +48 -48
  78. package/dist/apis/PLATFORMLPOPlatformOrderApi.d.ts +10 -10
  79. package/dist/apis/PLATFORMLPOPlatformOrderApi.js +10 -10
  80. package/dist/apis/PLATFORMLPSPlatformServiceApi.d.ts +1 -0
  81. package/dist/apis/PLATFORMLPSPlatformServiceApi.js +2 -1
  82. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.d.ts +63 -0
  83. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +164 -0
  84. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +450 -0
  85. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +1245 -0
  86. package/dist/apis/index.d.ts +4 -0
  87. package/dist/apis/index.js +4 -0
  88. package/dist/esm/apis/AILAIKTenantModelKeysApi.js +307 -0
  89. package/dist/esm/apis/APIAAUSTAutomationWorkflowSandboxApi.js +4 -4
  90. package/dist/esm/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.js +2 -2
  91. package/dist/esm/apis/APIAAUWFAutomationWorkflowApi.js +24 -24
  92. package/dist/esm/apis/APIAAUWIAutomationWorkflowInstanceApi.js +10 -10
  93. package/dist/esm/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.js +2 -2
  94. package/dist/esm/apis/APIACFCustomFieldOptionApi.js +4 -4
  95. package/dist/esm/apis/APIACTContentApi.js +8 -8
  96. package/dist/esm/apis/APIADIDataImporterApi.js +80 -80
  97. package/dist/esm/apis/APIADODocumentApi.js +8 -8
  98. package/dist/esm/apis/APIAPRFProductFeatureApi.js +4 -4
  99. package/dist/esm/apis/APIAPRPProductPriceApi.js +12 -12
  100. package/dist/esm/apis/APIARQRequirementApi.js +42 -42
  101. package/dist/esm/apis/APIASPOSupplierPurchaseOrderApi.js +203 -2
  102. package/dist/esm/apis/APIATKTaskApi.js +124 -124
  103. package/dist/esm/apis/APIIntegrationConfigurationApi.js +60 -0
  104. package/dist/esm/apis/APPPCRCRMApi.js +12 -12
  105. package/dist/esm/apis/APPPCRCRMSalesBoardApi.js +16 -16
  106. package/dist/esm/apis/APPPCRCRMSupportTicketApi.js +16 -16
  107. package/dist/esm/apis/APPPCRDCRMDealApi.js +16 -16
  108. package/dist/esm/apis/APPPCRLCRMLeadApi.js +8 -8
  109. package/dist/esm/apis/APPPCRPCRMPipelineApi.js +12 -12
  110. package/dist/esm/apis/APPPCRTCRMTaskApi.js +36 -36
  111. package/dist/esm/apis/APPPFMAFormActionApi.js +8 -8
  112. package/dist/esm/apis/APPPFMCFormConfigurationApi.js +8 -8
  113. package/dist/esm/apis/APPPFMGFormGroupApi.js +8 -8
  114. package/dist/esm/apis/APPPFMSFormSessionApi.js +8 -8
  115. package/dist/esm/apis/APPPFTPFormTemplateApi.js +8 -8
  116. package/dist/esm/apis/APPPINAIInsuranceAIApi.js +442 -0
  117. package/dist/esm/apis/APPPINPInsurancePolicyApi.js +12 -6
  118. package/dist/esm/apis/APPPMECMailEngineCampaignApi.js +8 -8
  119. package/dist/esm/apis/APPPMEGMailEngineSegmentApi.js +32 -32
  120. package/dist/esm/apis/APPPMEOMailEngineComplianceApi.js +12 -12
  121. package/dist/esm/apis/APPPMESMailEngineSubscriptionApi.js +28 -28
  122. package/dist/esm/apis/APPPMETMailEngineTemplateApi.js +12 -12
  123. package/dist/esm/apis/APPPMTMailTrustApi.js +64 -64
  124. package/dist/esm/apis/APPPPMCPMSSystemConfigurationApi.js +4 -4
  125. package/dist/esm/apis/APPPPMPMSApi.js +48 -48
  126. package/dist/esm/apis/PLATFORMLPOPlatformOrderApi.js +10 -10
  127. package/dist/esm/apis/PLATFORMLPSPlatformServiceApi.js +2 -1
  128. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +160 -0
  129. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +1241 -0
  130. package/dist/esm/apis/index.js +4 -0
  131. package/dist/esm/ext/telemetry.js +1 -1
  132. package/dist/esm/models/AgentApprovalActionDTO.js +47 -0
  133. package/dist/esm/models/AgentCostSummaryDTO.js +49 -0
  134. package/dist/esm/models/AgentPrincipalCredentialsDTO.js +46 -0
  135. package/dist/esm/models/AgentTokenDTO.js +45 -0
  136. package/dist/esm/models/AgentTokenRequestDTO.js +45 -0
  137. package/dist/esm/models/ConnectorListingDTO.js +161 -0
  138. package/dist/esm/models/CreateAgentPrincipalDTO.js +57 -0
  139. package/dist/esm/models/DataResponseDTOAgentPrincipalCredentialsDTO.js +42 -0
  140. package/dist/esm/models/DataResponseDTOAgentTokenDTO.js +42 -0
  141. package/dist/esm/models/DataResponseDTOInsuranceAiRequestDTO.js +42 -0
  142. package/dist/esm/models/DataResponseDTOListAgentApprovalActionDTO.js +42 -0
  143. package/dist/esm/models/DataResponseDTOListAgentCostSummaryDTO.js +42 -0
  144. package/dist/esm/models/DataResponseDTOListConnectorListingDTO.js +42 -0
  145. package/dist/esm/models/DataResponseDTOListInsuranceAiRequestDTO.js +42 -0
  146. package/dist/esm/models/DataResponseDTOListMcpClientFamilyDTO.js +42 -0
  147. package/dist/esm/models/DataResponseDTOListPrincipalAuditEventDTO.js +42 -0
  148. package/dist/esm/models/DataResponseDTOListTenantModelKeyDTO.js +42 -0
  149. package/dist/esm/models/DataResponseDTOPrincipalApprovalRequestDTO.js +42 -0
  150. package/dist/esm/models/DataResponseDTOPrincipalDTO.js +42 -0
  151. package/dist/esm/models/DataResponseDTOPrincipalPolicyDTO.js +42 -0
  152. package/dist/esm/models/DataResponseDTOPrincipalWorkShareDTO.js +42 -0
  153. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +42 -0
  154. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +42 -0
  155. package/dist/esm/models/DataResponseDTOTenantModelKeyCredentialDTO.js +42 -0
  156. package/dist/esm/models/DataResponseDTOTenantModelKeyDTO.js +42 -0
  157. package/dist/esm/models/DeveloperApiKeyDTO.js +2 -0
  158. package/dist/esm/models/InsuranceAiRequestDTO.js +100 -0
  159. package/dist/esm/models/InsuranceClaimCreateDTO.js +3 -1
  160. package/dist/esm/models/MailSubscription.js +2 -0
  161. package/dist/esm/models/McpClientFamilyDTO.js +43 -0
  162. package/dist/esm/models/PagePrincipalApprovalRequestDTO.js +64 -0
  163. package/dist/esm/models/PagePrincipalDTO.js +64 -0
  164. package/dist/esm/models/PlatformServiceDTO.js +2 -1
  165. package/dist/esm/models/PrincipalAgentWorkDTO.js +45 -0
  166. package/dist/esm/models/PrincipalApprovalDecisionDTO.js +43 -0
  167. package/dist/esm/models/PrincipalApprovalRequestDTO.js +92 -0
  168. package/dist/esm/models/PrincipalAuditEventDTO.js +85 -0
  169. package/dist/esm/models/PrincipalDTO.js +112 -0
  170. package/dist/esm/models/PrincipalModuleWorkShareDTO.js +47 -0
  171. package/dist/esm/models/PrincipalPolicyDTO.js +43 -0
  172. package/dist/esm/models/PrincipalUpdateDTO.js +57 -0
  173. package/dist/esm/models/PrincipalWorkShareDTO.js +59 -0
  174. package/dist/esm/models/PurchaseBillCreateDTO.js +2 -0
  175. package/dist/esm/models/PurchaseBillDTO.js +2 -0
  176. package/dist/esm/models/PurchaseBillLineCreateDTO.js +2 -0
  177. package/dist/esm/models/PurchaseBillLineDTO.js +2 -0
  178. package/dist/esm/models/SupplierPurchaseOrderBillLineMatchDTO.js +65 -0
  179. package/dist/esm/models/SupplierPurchaseOrderBillMatchDTO.js +67 -0
  180. package/dist/esm/models/SupplierPurchaseOrderDTO.js +11 -0
  181. package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +9 -0
  182. package/dist/esm/models/SupplierPurchaseOrderLineMatchDTO.js +74 -0
  183. package/dist/esm/models/SupplierPurchaseOrderMatchDTO.js +73 -0
  184. package/dist/esm/models/TenantModelKeyCredentialDTO.js +54 -0
  185. package/dist/esm/models/TenantModelKeyDTO.js +58 -0
  186. package/dist/esm/models/TenantModelKeyUpsertDTO.js +45 -0
  187. package/dist/esm/models/TransferPrincipalSponsorDTO.js +43 -0
  188. package/dist/esm/models/index.js +46 -0
  189. package/dist/ext/telemetry.d.ts +1 -1
  190. package/dist/ext/telemetry.js +1 -1
  191. package/dist/models/AgentApprovalActionDTO.d.ts +50 -0
  192. package/dist/models/AgentApprovalActionDTO.js +54 -0
  193. package/dist/models/AgentCostSummaryDTO.d.ts +56 -0
  194. package/dist/models/AgentCostSummaryDTO.js +56 -0
  195. package/dist/models/AgentPrincipalCredentialsDTO.d.ts +45 -0
  196. package/dist/models/AgentPrincipalCredentialsDTO.js +53 -0
  197. package/dist/models/AgentTokenDTO.d.ts +44 -0
  198. package/dist/models/AgentTokenDTO.js +52 -0
  199. package/dist/models/AgentTokenRequestDTO.d.ts +38 -0
  200. package/dist/models/AgentTokenRequestDTO.js +52 -0
  201. package/dist/models/ConnectorListingDTO.d.ts +175 -0
  202. package/dist/models/ConnectorListingDTO.js +169 -0
  203. package/dist/models/CreateAgentPrincipalDTO.d.ts +59 -0
  204. package/dist/models/CreateAgentPrincipalDTO.js +65 -0
  205. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.d.ts +33 -0
  206. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.js +49 -0
  207. package/dist/models/DataResponseDTOAgentTokenDTO.d.ts +33 -0
  208. package/dist/models/DataResponseDTOAgentTokenDTO.js +49 -0
  209. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.d.ts +33 -0
  210. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.js +49 -0
  211. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.d.ts +33 -0
  212. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.js +49 -0
  213. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.d.ts +33 -0
  214. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.js +49 -0
  215. package/dist/models/DataResponseDTOListConnectorListingDTO.d.ts +33 -0
  216. package/dist/models/DataResponseDTOListConnectorListingDTO.js +49 -0
  217. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.d.ts +33 -0
  218. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.js +49 -0
  219. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.d.ts +33 -0
  220. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.js +49 -0
  221. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.d.ts +33 -0
  222. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.js +49 -0
  223. package/dist/models/DataResponseDTOListTenantModelKeyDTO.d.ts +33 -0
  224. package/dist/models/DataResponseDTOListTenantModelKeyDTO.js +49 -0
  225. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.d.ts +33 -0
  226. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.js +49 -0
  227. package/dist/models/DataResponseDTOPrincipalDTO.d.ts +33 -0
  228. package/dist/models/DataResponseDTOPrincipalDTO.js +49 -0
  229. package/dist/models/DataResponseDTOPrincipalPolicyDTO.d.ts +33 -0
  230. package/dist/models/DataResponseDTOPrincipalPolicyDTO.js +49 -0
  231. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.d.ts +33 -0
  232. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.js +49 -0
  233. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.d.ts +33 -0
  234. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +49 -0
  235. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.d.ts +33 -0
  236. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +49 -0
  237. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.d.ts +33 -0
  238. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.js +49 -0
  239. package/dist/models/DataResponseDTOTenantModelKeyDTO.d.ts +33 -0
  240. package/dist/models/DataResponseDTOTenantModelKeyDTO.js +49 -0
  241. package/dist/models/DeveloperApiKeyDTO.d.ts +6 -0
  242. package/dist/models/DeveloperApiKeyDTO.js +2 -0
  243. package/dist/models/InsuranceAiRequestDTO.d.ts +188 -0
  244. package/dist/models/InsuranceAiRequestDTO.js +108 -0
  245. package/dist/models/InsuranceClaimCreateDTO.d.ts +1 -1
  246. package/dist/models/InsuranceClaimCreateDTO.js +3 -1
  247. package/dist/models/MailSubscription.d.ts +6 -0
  248. package/dist/models/MailSubscription.js +2 -0
  249. package/dist/models/McpClientFamilyDTO.d.ts +38 -0
  250. package/dist/models/McpClientFamilyDTO.js +50 -0
  251. package/dist/models/PagePrincipalApprovalRequestDTO.d.ts +95 -0
  252. package/dist/models/PagePrincipalApprovalRequestDTO.js +71 -0
  253. package/dist/models/PagePrincipalDTO.d.ts +95 -0
  254. package/dist/models/PagePrincipalDTO.js +71 -0
  255. package/dist/models/PlatformServiceDTO.d.ts +1 -0
  256. package/dist/models/PlatformServiceDTO.js +2 -1
  257. package/dist/models/PrincipalAgentWorkDTO.d.ts +44 -0
  258. package/dist/models/PrincipalAgentWorkDTO.js +52 -0
  259. package/dist/models/PrincipalApprovalDecisionDTO.d.ts +32 -0
  260. package/dist/models/PrincipalApprovalDecisionDTO.js +50 -0
  261. package/dist/models/PrincipalApprovalRequestDTO.d.ts +164 -0
  262. package/dist/models/PrincipalApprovalRequestDTO.js +100 -0
  263. package/dist/models/PrincipalAuditEventDTO.d.ts +134 -0
  264. package/dist/models/PrincipalAuditEventDTO.js +93 -0
  265. package/dist/models/PrincipalDTO.d.ts +172 -0
  266. package/dist/models/PrincipalDTO.js +120 -0
  267. package/dist/models/PrincipalModuleWorkShareDTO.d.ts +50 -0
  268. package/dist/models/PrincipalModuleWorkShareDTO.js +54 -0
  269. package/dist/models/PrincipalPolicyDTO.d.ts +38 -0
  270. package/dist/models/PrincipalPolicyDTO.js +50 -0
  271. package/dist/models/PrincipalUpdateDTO.d.ts +59 -0
  272. package/dist/models/PrincipalUpdateDTO.js +65 -0
  273. package/dist/models/PrincipalWorkShareDTO.d.ts +82 -0
  274. package/dist/models/PrincipalWorkShareDTO.js +66 -0
  275. package/dist/models/PurchaseBillCreateDTO.d.ts +6 -0
  276. package/dist/models/PurchaseBillCreateDTO.js +2 -0
  277. package/dist/models/PurchaseBillDTO.d.ts +6 -0
  278. package/dist/models/PurchaseBillDTO.js +2 -0
  279. package/dist/models/PurchaseBillLineCreateDTO.d.ts +6 -0
  280. package/dist/models/PurchaseBillLineCreateDTO.js +2 -0
  281. package/dist/models/PurchaseBillLineDTO.d.ts +6 -0
  282. package/dist/models/PurchaseBillLineDTO.js +2 -0
  283. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.d.ts +85 -0
  284. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.js +73 -0
  285. package/dist/models/SupplierPurchaseOrderBillMatchDTO.d.ts +76 -0
  286. package/dist/models/SupplierPurchaseOrderBillMatchDTO.js +75 -0
  287. package/dist/models/SupplierPurchaseOrderDTO.d.ts +20 -0
  288. package/dist/models/SupplierPurchaseOrderDTO.js +12 -1
  289. package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +14 -0
  290. package/dist/models/SupplierPurchaseOrderLineDTO.js +10 -1
  291. package/dist/models/SupplierPurchaseOrderLineMatchDTO.d.ts +99 -0
  292. package/dist/models/SupplierPurchaseOrderLineMatchDTO.js +82 -0
  293. package/dist/models/SupplierPurchaseOrderMatchDTO.d.ts +94 -0
  294. package/dist/models/SupplierPurchaseOrderMatchDTO.js +81 -0
  295. package/dist/models/TenantModelKeyCredentialDTO.d.ts +58 -0
  296. package/dist/models/TenantModelKeyCredentialDTO.js +62 -0
  297. package/dist/models/TenantModelKeyDTO.d.ts +70 -0
  298. package/dist/models/TenantModelKeyDTO.js +66 -0
  299. package/dist/models/TenantModelKeyUpsertDTO.d.ts +38 -0
  300. package/dist/models/TenantModelKeyUpsertDTO.js +52 -0
  301. package/dist/models/TransferPrincipalSponsorDTO.d.ts +32 -0
  302. package/dist/models/TransferPrincipalSponsorDTO.js +50 -0
  303. package/dist/models/index.d.ts +46 -0
  304. package/dist/models/index.js +46 -0
  305. package/package.json +1 -1
@@ -0,0 +1,1241 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { AgentTokenRequestDTOToJSON, } from '../models/AgentTokenRequestDTO';
25
+ import { CreateAgentPrincipalDTOToJSON, } from '../models/CreateAgentPrincipalDTO';
26
+ import { DataResponseDTOAgentPrincipalCredentialsDTOFromJSON, } from '../models/DataResponseDTOAgentPrincipalCredentialsDTO';
27
+ import { DataResponseDTOAgentTokenDTOFromJSON, } from '../models/DataResponseDTOAgentTokenDTO';
28
+ import { DataResponseDTOListAgentApprovalActionDTOFromJSON, } from '../models/DataResponseDTOListAgentApprovalActionDTO';
29
+ import { DataResponseDTOListMcpClientFamilyDTOFromJSON, } from '../models/DataResponseDTOListMcpClientFamilyDTO';
30
+ import { DataResponseDTOListPrincipalAuditEventDTOFromJSON, } from '../models/DataResponseDTOListPrincipalAuditEventDTO';
31
+ import { DataResponseDTOPrincipalApprovalRequestDTOFromJSON, } from '../models/DataResponseDTOPrincipalApprovalRequestDTO';
32
+ import { DataResponseDTOPrincipalDTOFromJSON, } from '../models/DataResponseDTOPrincipalDTO';
33
+ import { DataResponseDTOPrincipalPolicyDTOFromJSON, } from '../models/DataResponseDTOPrincipalPolicyDTO';
34
+ import { PagePrincipalApprovalRequestDTOFromJSON, } from '../models/PagePrincipalApprovalRequestDTO';
35
+ import { PagePrincipalDTOFromJSON, } from '../models/PagePrincipalDTO';
36
+ import { PrincipalApprovalDecisionDTOToJSON, } from '../models/PrincipalApprovalDecisionDTO';
37
+ import { PrincipalPolicyDTOToJSON, } from '../models/PrincipalPolicyDTO';
38
+ import { PrincipalUpdateDTOToJSON, } from '../models/PrincipalUpdateDTO';
39
+ import { TransferPrincipalSponsorDTOToJSON, } from '../models/TransferPrincipalSponsorDTO';
40
+ /**
41
+ *
42
+ */
43
+ export class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
44
+ /**
45
+ * Creates request options for lTNP001 without sending the request
46
+ */
47
+ lTNP001RequestOpts(requestParameters) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (requestParameters['xAppAccountId'] == null) {
50
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP001().');
51
+ }
52
+ const queryParameters = {};
53
+ if (requestParameters['type'] != null) {
54
+ queryParameters['type'] = requestParameters['type'];
55
+ }
56
+ if (requestParameters['status'] != null) {
57
+ queryParameters['status'] = requestParameters['status'];
58
+ }
59
+ if (requestParameters['sponsorAccountId'] != null) {
60
+ queryParameters['sponsorAccountId'] = requestParameters['sponsorAccountId'];
61
+ }
62
+ if (requestParameters['page'] != null) {
63
+ queryParameters['page'] = requestParameters['page'];
64
+ }
65
+ if (requestParameters['size'] != null) {
66
+ queryParameters['size'] = requestParameters['size'];
67
+ }
68
+ if (requestParameters['sort'] != null) {
69
+ queryParameters['sort'] = requestParameters['sort'];
70
+ }
71
+ const headerParameters = {};
72
+ if (requestParameters['acceptLanguage'] != null) {
73
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
74
+ }
75
+ if (requestParameters['xAppAccountId'] != null) {
76
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
77
+ }
78
+ if (requestParameters['vergefyVersion'] != null) {
79
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
80
+ }
81
+ if (requestParameters['acceptTimezone'] != null) {
82
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
83
+ }
84
+ if (this.configuration && this.configuration.accessToken) {
85
+ const token = this.configuration.accessToken;
86
+ const tokenString = yield token("BearerAuth", []);
87
+ if (tokenString) {
88
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
89
+ }
90
+ }
91
+ let urlPath = `/platform/principals`;
92
+ return {
93
+ path: urlPath,
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ };
98
+ });
99
+ }
100
+ /**
101
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
102
+ * LTNP001 - Search Principals
103
+ */
104
+ lTNP001Raw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const requestOptions = yield this.lTNP001RequestOpts(requestParameters);
107
+ const response = yield this.request(requestOptions, initOverrides);
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => PagePrincipalDTOFromJSON(jsonValue));
109
+ });
110
+ }
111
+ /**
112
+ * Lists the tenant\'s agents and services. An admin sees every one; anyone else sees only the agents they sponsor, whatever the sponsor filter says.
113
+ * LTNP001 - Search Principals
114
+ */
115
+ lTNP001(requestParameters, initOverrides) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ const response = yield this.lTNP001Raw(requestParameters, initOverrides);
118
+ return yield response.value();
119
+ });
120
+ }
121
+ /**
122
+ * Creates request options for lTNP002 without sending the request
123
+ */
124
+ lTNP002RequestOpts(requestParameters) {
125
+ return __awaiter(this, void 0, void 0, function* () {
126
+ if (requestParameters['id'] == null) {
127
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP002().');
128
+ }
129
+ if (requestParameters['xAppAccountId'] == null) {
130
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP002().');
131
+ }
132
+ const queryParameters = {};
133
+ const headerParameters = {};
134
+ if (requestParameters['acceptLanguage'] != null) {
135
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
136
+ }
137
+ if (requestParameters['xAppAccountId'] != null) {
138
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
139
+ }
140
+ if (requestParameters['vergefyVersion'] != null) {
141
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
142
+ }
143
+ if (requestParameters['acceptTimezone'] != null) {
144
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
145
+ }
146
+ if (this.configuration && this.configuration.accessToken) {
147
+ const token = this.configuration.accessToken;
148
+ const tokenString = yield token("BearerAuth", []);
149
+ if (tokenString) {
150
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
151
+ }
152
+ }
153
+ let urlPath = `/platform/principals/{id}`;
154
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
155
+ return {
156
+ path: urlPath,
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ };
161
+ });
162
+ }
163
+ /**
164
+ * One agent or service, with its grant. Another person\'s agent reads as not found unless the caller is an admin.
165
+ * LTNP002 - Get Principal By Id
166
+ */
167
+ lTNP002Raw(requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const requestOptions = yield this.lTNP002RequestOpts(requestParameters);
170
+ const response = yield this.request(requestOptions, initOverrides);
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalDTOFromJSON(jsonValue));
172
+ });
173
+ }
174
+ /**
175
+ * One agent or service, with its grant. Another person\'s agent reads as not found unless the caller is an admin.
176
+ * LTNP002 - Get Principal By Id
177
+ */
178
+ lTNP002(requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ const response = yield this.lTNP002Raw(requestParameters, initOverrides);
181
+ return yield response.value();
182
+ });
183
+ }
184
+ /**
185
+ * Creates request options for lTNP003 without sending the request
186
+ */
187
+ lTNP003RequestOpts(requestParameters) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters['entityType'] == null) {
190
+ throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling lTNP003().');
191
+ }
192
+ if (requestParameters['entityId'] == null) {
193
+ throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling lTNP003().');
194
+ }
195
+ if (requestParameters['xAppAccountId'] == null) {
196
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP003().');
197
+ }
198
+ const queryParameters = {};
199
+ if (requestParameters['entityType'] != null) {
200
+ queryParameters['entityType'] = requestParameters['entityType'];
201
+ }
202
+ if (requestParameters['entityId'] != null) {
203
+ queryParameters['entityId'] = requestParameters['entityId'];
204
+ }
205
+ const headerParameters = {};
206
+ if (requestParameters['acceptLanguage'] != null) {
207
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
208
+ }
209
+ if (requestParameters['xAppAccountId'] != null) {
210
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
211
+ }
212
+ if (requestParameters['vergefyVersion'] != null) {
213
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
214
+ }
215
+ if (requestParameters['acceptTimezone'] != null) {
216
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
217
+ }
218
+ if (this.configuration && this.configuration.accessToken) {
219
+ const token = this.configuration.accessToken;
220
+ const tokenString = yield token("BearerAuth", []);
221
+ if (tokenString) {
222
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
223
+ }
224
+ }
225
+ let urlPath = `/platform/principals/audit-events`;
226
+ return {
227
+ path: urlPath,
228
+ method: 'GET',
229
+ headers: headerParameters,
230
+ query: queryParameters,
231
+ };
232
+ });
233
+ }
234
+ /**
235
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
236
+ * LTNP003 - Search Principal Audit Events
237
+ */
238
+ lTNP003Raw(requestParameters, initOverrides) {
239
+ return __awaiter(this, void 0, void 0, function* () {
240
+ const requestOptions = yield this.lTNP003RequestOpts(requestParameters);
241
+ const response = yield this.request(requestOptions, initOverrides);
242
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListPrincipalAuditEventDTOFromJSON(jsonValue));
243
+ });
244
+ }
245
+ /**
246
+ * A record\'s agent history, newest first: which agent wrote it, for whom, and when. Only events in modules the caller may read are returned; a person\'s own writes have no event, their record\'s created_by names them.
247
+ * LTNP003 - Search Principal Audit Events
248
+ */
249
+ lTNP003(requestParameters, initOverrides) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ const response = yield this.lTNP003Raw(requestParameters, initOverrides);
252
+ return yield response.value();
253
+ });
254
+ }
255
+ /**
256
+ * Creates request options for lTNP010 without sending the request
257
+ */
258
+ lTNP010RequestOpts(requestParameters) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ if (requestParameters['xAppAccountId'] == null) {
261
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP010().');
262
+ }
263
+ const queryParameters = {};
264
+ if (requestParameters['status'] != null) {
265
+ queryParameters['status'] = requestParameters['status'];
266
+ }
267
+ if (requestParameters['page'] != null) {
268
+ queryParameters['page'] = requestParameters['page'];
269
+ }
270
+ if (requestParameters['size'] != null) {
271
+ queryParameters['size'] = requestParameters['size'];
272
+ }
273
+ if (requestParameters['sort'] != null) {
274
+ queryParameters['sort'] = requestParameters['sort'];
275
+ }
276
+ const headerParameters = {};
277
+ if (requestParameters['acceptLanguage'] != null) {
278
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
279
+ }
280
+ if (requestParameters['xAppAccountId'] != null) {
281
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
282
+ }
283
+ if (requestParameters['vergefyVersion'] != null) {
284
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
285
+ }
286
+ if (requestParameters['acceptTimezone'] != null) {
287
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
288
+ }
289
+ if (this.configuration && this.configuration.accessToken) {
290
+ const token = this.configuration.accessToken;
291
+ const tokenString = yield token("BearerAuth", []);
292
+ if (tokenString) {
293
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
294
+ }
295
+ }
296
+ let urlPath = `/platform/principals/approvals`;
297
+ return {
298
+ path: urlPath,
299
+ method: 'GET',
300
+ headers: headerParameters,
301
+ query: queryParameters,
302
+ };
303
+ });
304
+ }
305
+ /**
306
+ * Money and stock actions agents asked for and a person must post, newest first. Approvers and admins see the whole tenant\'s; anyone else the ones their own agents asked for. status=PENDING lists what still waits.
307
+ * LTNP010 - Search Principal Approvals
308
+ */
309
+ lTNP010Raw(requestParameters, initOverrides) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ const requestOptions = yield this.lTNP010RequestOpts(requestParameters);
312
+ const response = yield this.request(requestOptions, initOverrides);
313
+ return new runtime.JSONApiResponse(response, (jsonValue) => PagePrincipalApprovalRequestDTOFromJSON(jsonValue));
314
+ });
315
+ }
316
+ /**
317
+ * Money and stock actions agents asked for and a person must post, newest first. Approvers and admins see the whole tenant\'s; anyone else the ones their own agents asked for. status=PENDING lists what still waits.
318
+ * LTNP010 - Search Principal Approvals
319
+ */
320
+ lTNP010(requestParameters, initOverrides) {
321
+ return __awaiter(this, void 0, void 0, function* () {
322
+ const response = yield this.lTNP010Raw(requestParameters, initOverrides);
323
+ return yield response.value();
324
+ });
325
+ }
326
+ /**
327
+ * Creates request options for lTNP011 without sending the request
328
+ */
329
+ lTNP011RequestOpts(requestParameters) {
330
+ return __awaiter(this, void 0, void 0, function* () {
331
+ if (requestParameters['id'] == null) {
332
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP011().');
333
+ }
334
+ if (requestParameters['xAppAccountId'] == null) {
335
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP011().');
336
+ }
337
+ const queryParameters = {};
338
+ const headerParameters = {};
339
+ if (requestParameters['acceptLanguage'] != null) {
340
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
341
+ }
342
+ if (requestParameters['xAppAccountId'] != null) {
343
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
344
+ }
345
+ if (requestParameters['vergefyVersion'] != null) {
346
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
347
+ }
348
+ if (requestParameters['acceptTimezone'] != null) {
349
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
350
+ }
351
+ if (this.configuration && this.configuration.accessToken) {
352
+ const token = this.configuration.accessToken;
353
+ const tokenString = yield token("BearerAuth", []);
354
+ if (tokenString) {
355
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
356
+ }
357
+ }
358
+ let urlPath = `/platform/principals/approvals/{id}`;
359
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
360
+ return {
361
+ path: urlPath,
362
+ method: 'GET',
363
+ headers: headerParameters,
364
+ query: queryParameters,
365
+ };
366
+ });
367
+ }
368
+ /**
369
+ * One held action. A request another person\'s agent made reads as not found unless the caller approves or administers agents.
370
+ * LTNP011 - Get Principal Approval By Id
371
+ */
372
+ lTNP011Raw(requestParameters, initOverrides) {
373
+ return __awaiter(this, void 0, void 0, function* () {
374
+ const requestOptions = yield this.lTNP011RequestOpts(requestParameters);
375
+ const response = yield this.request(requestOptions, initOverrides);
376
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalApprovalRequestDTOFromJSON(jsonValue));
377
+ });
378
+ }
379
+ /**
380
+ * One held action. A request another person\'s agent made reads as not found unless the caller approves or administers agents.
381
+ * LTNP011 - Get Principal Approval By Id
382
+ */
383
+ lTNP011(requestParameters, initOverrides) {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ const response = yield this.lTNP011Raw(requestParameters, initOverrides);
386
+ return yield response.value();
387
+ });
388
+ }
389
+ /**
390
+ * Creates request options for lTNP020 without sending the request
391
+ */
392
+ lTNP020RequestOpts(requestParameters) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ if (requestParameters['xAppAccountId'] == null) {
395
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP020().');
396
+ }
397
+ const queryParameters = {};
398
+ const headerParameters = {};
399
+ if (requestParameters['acceptLanguage'] != null) {
400
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
401
+ }
402
+ if (requestParameters['xAppAccountId'] != null) {
403
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
404
+ }
405
+ if (requestParameters['vergefyVersion'] != null) {
406
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
407
+ }
408
+ if (requestParameters['acceptTimezone'] != null) {
409
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
410
+ }
411
+ if (this.configuration && this.configuration.accessToken) {
412
+ const token = this.configuration.accessToken;
413
+ const tokenString = yield token("BearerAuth", []);
414
+ if (tokenString) {
415
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
416
+ }
417
+ }
418
+ let urlPath = `/platform/principals/policy`;
419
+ return {
420
+ path: urlPath,
421
+ method: 'GET',
422
+ headers: headerParameters,
423
+ query: queryParameters,
424
+ };
425
+ });
426
+ }
427
+ /**
428
+ * Which money and stock actions this tenant lets its agents run without a person.
429
+ * LTNP020 - Get Principal Policy
430
+ */
431
+ lTNP020Raw(requestParameters, initOverrides) {
432
+ return __awaiter(this, void 0, void 0, function* () {
433
+ const requestOptions = yield this.lTNP020RequestOpts(requestParameters);
434
+ const response = yield this.request(requestOptions, initOverrides);
435
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalPolicyDTOFromJSON(jsonValue));
436
+ });
437
+ }
438
+ /**
439
+ * Which money and stock actions this tenant lets its agents run without a person.
440
+ * LTNP020 - Get Principal Policy
441
+ */
442
+ lTNP020(requestParameters, initOverrides) {
443
+ return __awaiter(this, void 0, void 0, function* () {
444
+ const response = yield this.lTNP020Raw(requestParameters, initOverrides);
445
+ return yield response.value();
446
+ });
447
+ }
448
+ /**
449
+ * Creates request options for lTNP021 without sending the request
450
+ */
451
+ lTNP021RequestOpts(requestParameters) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ if (requestParameters['xAppAccountId'] == null) {
454
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP021().');
455
+ }
456
+ const queryParameters = {};
457
+ const headerParameters = {};
458
+ if (requestParameters['acceptLanguage'] != null) {
459
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
460
+ }
461
+ if (requestParameters['xAppAccountId'] != null) {
462
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
463
+ }
464
+ if (requestParameters['vergefyVersion'] != null) {
465
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
466
+ }
467
+ if (requestParameters['acceptTimezone'] != null) {
468
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
469
+ }
470
+ if (this.configuration && this.configuration.accessToken) {
471
+ const token = this.configuration.accessToken;
472
+ const tokenString = yield token("BearerAuth", []);
473
+ if (tokenString) {
474
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
475
+ }
476
+ }
477
+ let urlPath = `/platform/principals/approval-actions`;
478
+ return {
479
+ path: urlPath,
480
+ method: 'GET',
481
+ headers: headerParameters,
482
+ query: queryParameters,
483
+ };
484
+ });
485
+ }
486
+ /**
487
+ * Every action an agent may not run on its own, by stable key, and whether this tenant lets its agents run it without approval.
488
+ * LTNP021 - Search Principal Approval Actions
489
+ */
490
+ lTNP021Raw(requestParameters, initOverrides) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const requestOptions = yield this.lTNP021RequestOpts(requestParameters);
493
+ const response = yield this.request(requestOptions, initOverrides);
494
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListAgentApprovalActionDTOFromJSON(jsonValue));
495
+ });
496
+ }
497
+ /**
498
+ * Every action an agent may not run on its own, by stable key, and whether this tenant lets its agents run it without approval.
499
+ * LTNP021 - Search Principal Approval Actions
500
+ */
501
+ lTNP021(requestParameters, initOverrides) {
502
+ return __awaiter(this, void 0, void 0, function* () {
503
+ const response = yield this.lTNP021Raw(requestParameters, initOverrides);
504
+ return yield response.value();
505
+ });
506
+ }
507
+ /**
508
+ * Creates request options for lTNP022 without sending the request
509
+ */
510
+ lTNP022RequestOpts(requestParameters) {
511
+ return __awaiter(this, void 0, void 0, function* () {
512
+ if (requestParameters['xAppAccountId'] == null) {
513
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP022().');
514
+ }
515
+ const queryParameters = {};
516
+ const headerParameters = {};
517
+ if (requestParameters['acceptLanguage'] != null) {
518
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
519
+ }
520
+ if (requestParameters['xAppAccountId'] != null) {
521
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
522
+ }
523
+ if (requestParameters['vergefyVersion'] != null) {
524
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
525
+ }
526
+ if (requestParameters['acceptTimezone'] != null) {
527
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
528
+ }
529
+ if (this.configuration && this.configuration.accessToken) {
530
+ const token = this.configuration.accessToken;
531
+ const tokenString = yield token("BearerAuth", []);
532
+ if (tokenString) {
533
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
534
+ }
535
+ }
536
+ let urlPath = `/platform/principals/mcp-clients`;
537
+ return {
538
+ path: urlPath,
539
+ method: 'GET',
540
+ headers: headerParameters,
541
+ query: queryParameters,
542
+ };
543
+ });
544
+ }
545
+ /**
546
+ * The AI client families a tenant\'s policy can name in allowedMcpClients: CLAUDE, CHATGPT, CURSOR, COPILOT, OTHER.
547
+ * LTNP022 - Search Mcp Client Families
548
+ */
549
+ lTNP022Raw(requestParameters, initOverrides) {
550
+ return __awaiter(this, void 0, void 0, function* () {
551
+ const requestOptions = yield this.lTNP022RequestOpts(requestParameters);
552
+ const response = yield this.request(requestOptions, initOverrides);
553
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListMcpClientFamilyDTOFromJSON(jsonValue));
554
+ });
555
+ }
556
+ /**
557
+ * The AI client families a tenant\'s policy can name in allowedMcpClients: CLAUDE, CHATGPT, CURSOR, COPILOT, OTHER.
558
+ * LTNP022 - Search Mcp Client Families
559
+ */
560
+ lTNP022(requestParameters, initOverrides) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const response = yield this.lTNP022Raw(requestParameters, initOverrides);
563
+ return yield response.value();
564
+ });
565
+ }
566
+ /**
567
+ * Creates request options for lTNP100 without sending the request
568
+ */
569
+ lTNP100RequestOpts(requestParameters) {
570
+ return __awaiter(this, void 0, void 0, function* () {
571
+ if (requestParameters['id'] == null) {
572
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP100().');
573
+ }
574
+ if (requestParameters['xAppAccountId'] == null) {
575
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP100().');
576
+ }
577
+ if (requestParameters['principalUpdateDTO'] == null) {
578
+ throw new runtime.RequiredError('principalUpdateDTO', 'Required parameter "principalUpdateDTO" was null or undefined when calling lTNP100().');
579
+ }
580
+ const queryParameters = {};
581
+ const headerParameters = {};
582
+ headerParameters['Content-Type'] = 'application/json';
583
+ if (requestParameters['acceptLanguage'] != null) {
584
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
585
+ }
586
+ if (requestParameters['xAppAccountId'] != null) {
587
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
588
+ }
589
+ if (requestParameters['vergefyVersion'] != null) {
590
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
591
+ }
592
+ if (requestParameters['acceptTimezone'] != null) {
593
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
594
+ }
595
+ if (this.configuration && this.configuration.accessToken) {
596
+ const token = this.configuration.accessToken;
597
+ const tokenString = yield token("BearerAuth", []);
598
+ if (tokenString) {
599
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
600
+ }
601
+ }
602
+ let urlPath = `/platform/principals/{id}`;
603
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
604
+ return {
605
+ path: urlPath,
606
+ method: 'PUT',
607
+ headers: headerParameters,
608
+ query: queryParameters,
609
+ body: PrincipalUpdateDTOToJSON(requestParameters['principalUpdateDTO']),
610
+ };
611
+ });
612
+ }
613
+ /**
614
+ * Changes an agent\'s name, description and grant: INHERIT (what the person it acts for may do), READ_ONLY, or CUSTOM (listed permissions the sponsor holds). An admin may change any agent, anyone else only the agents they sponsor; an agent is refused (403). A switched-off agent cannot be changed (422).
615
+ * LTNP100 - Update Principal
616
+ */
617
+ lTNP100Raw(requestParameters, initOverrides) {
618
+ return __awaiter(this, void 0, void 0, function* () {
619
+ const requestOptions = yield this.lTNP100RequestOpts(requestParameters);
620
+ const response = yield this.request(requestOptions, initOverrides);
621
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalDTOFromJSON(jsonValue));
622
+ });
623
+ }
624
+ /**
625
+ * Changes an agent\'s name, description and grant: INHERIT (what the person it acts for may do), READ_ONLY, or CUSTOM (listed permissions the sponsor holds). An admin may change any agent, anyone else only the agents they sponsor; an agent is refused (403). A switched-off agent cannot be changed (422).
626
+ * LTNP100 - Update Principal
627
+ */
628
+ lTNP100(requestParameters, initOverrides) {
629
+ return __awaiter(this, void 0, void 0, function* () {
630
+ const response = yield this.lTNP100Raw(requestParameters, initOverrides);
631
+ return yield response.value();
632
+ });
633
+ }
634
+ /**
635
+ * Creates request options for lTNP101 without sending the request
636
+ */
637
+ lTNP101RequestOpts(requestParameters) {
638
+ return __awaiter(this, void 0, void 0, function* () {
639
+ if (requestParameters['id'] == null) {
640
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP101().');
641
+ }
642
+ if (requestParameters['xAppAccountId'] == null) {
643
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP101().');
644
+ }
645
+ const queryParameters = {};
646
+ const headerParameters = {};
647
+ if (requestParameters['acceptLanguage'] != null) {
648
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
649
+ }
650
+ if (requestParameters['xAppAccountId'] != null) {
651
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
652
+ }
653
+ if (requestParameters['vergefyVersion'] != null) {
654
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
655
+ }
656
+ if (requestParameters['acceptTimezone'] != null) {
657
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
658
+ }
659
+ if (this.configuration && this.configuration.accessToken) {
660
+ const token = this.configuration.accessToken;
661
+ const tokenString = yield token("BearerAuth", []);
662
+ if (tokenString) {
663
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
664
+ }
665
+ }
666
+ let urlPath = `/platform/principals/{id}/switch-off`;
667
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
668
+ return {
669
+ path: urlPath,
670
+ method: 'POST',
671
+ headers: headerParameters,
672
+ query: queryParameters,
673
+ };
674
+ });
675
+ }
676
+ /**
677
+ * The off switch: the agent\'s next call fails. A Claude or ChatGPT connection is revoked for good, and so is the connection; one of Vergefy\'s own agents is suspended, and LTNP103 switches it back on. An admin may switch off any agent, anyone else only their own; an agent is refused (403).
678
+ * LTNP101 - Switch Off Principal
679
+ */
680
+ lTNP101Raw(requestParameters, initOverrides) {
681
+ return __awaiter(this, void 0, void 0, function* () {
682
+ const requestOptions = yield this.lTNP101RequestOpts(requestParameters);
683
+ const response = yield this.request(requestOptions, initOverrides);
684
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalDTOFromJSON(jsonValue));
685
+ });
686
+ }
687
+ /**
688
+ * The off switch: the agent\'s next call fails. A Claude or ChatGPT connection is revoked for good, and so is the connection; one of Vergefy\'s own agents is suspended, and LTNP103 switches it back on. An admin may switch off any agent, anyone else only their own; an agent is refused (403).
689
+ * LTNP101 - Switch Off Principal
690
+ */
691
+ lTNP101(requestParameters, initOverrides) {
692
+ return __awaiter(this, void 0, void 0, function* () {
693
+ const response = yield this.lTNP101Raw(requestParameters, initOverrides);
694
+ return yield response.value();
695
+ });
696
+ }
697
+ /**
698
+ * Creates request options for lTNP102 without sending the request
699
+ */
700
+ lTNP102RequestOpts(requestParameters) {
701
+ return __awaiter(this, void 0, void 0, function* () {
702
+ if (requestParameters['xAppAccountId'] == null) {
703
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP102().');
704
+ }
705
+ if (requestParameters['createAgentPrincipalDTO'] == null) {
706
+ throw new runtime.RequiredError('createAgentPrincipalDTO', 'Required parameter "createAgentPrincipalDTO" was null or undefined when calling lTNP102().');
707
+ }
708
+ const queryParameters = {};
709
+ const headerParameters = {};
710
+ headerParameters['Content-Type'] = 'application/json';
711
+ if (requestParameters['acceptLanguage'] != null) {
712
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
713
+ }
714
+ if (requestParameters['xAppAccountId'] != null) {
715
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
716
+ }
717
+ if (requestParameters['vergefyVersion'] != null) {
718
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
719
+ }
720
+ if (requestParameters['acceptTimezone'] != null) {
721
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
722
+ }
723
+ if (this.configuration && this.configuration.accessToken) {
724
+ const token = this.configuration.accessToken;
725
+ const tokenString = yield token("BearerAuth", []);
726
+ if (tokenString) {
727
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
728
+ }
729
+ }
730
+ let urlPath = `/platform/principals/agents`;
731
+ return {
732
+ path: urlPath,
733
+ method: 'POST',
734
+ headers: headerParameters,
735
+ query: queryParameters,
736
+ body: CreateAgentPrincipalDTOToJSON(requestParameters['createAgentPrincipalDTO']),
737
+ };
738
+ });
739
+ }
740
+ /**
741
+ * A shared agent with its own developer API key. The secret is shown once, in this response, and never again. Defaults to READ_ONLY — least privilege for a brand-new key. Refused to an agent (403).
742
+ * LTNP102 - Create Agent Principal
743
+ */
744
+ lTNP102Raw(requestParameters, initOverrides) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ const requestOptions = yield this.lTNP102RequestOpts(requestParameters);
747
+ const response = yield this.request(requestOptions, initOverrides);
748
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOAgentPrincipalCredentialsDTOFromJSON(jsonValue));
749
+ });
750
+ }
751
+ /**
752
+ * A shared agent with its own developer API key. The secret is shown once, in this response, and never again. Defaults to READ_ONLY — least privilege for a brand-new key. Refused to an agent (403).
753
+ * LTNP102 - Create Agent Principal
754
+ */
755
+ lTNP102(requestParameters, initOverrides) {
756
+ return __awaiter(this, void 0, void 0, function* () {
757
+ const response = yield this.lTNP102Raw(requestParameters, initOverrides);
758
+ return yield response.value();
759
+ });
760
+ }
761
+ /**
762
+ * Creates request options for lTNP103 without sending the request
763
+ */
764
+ lTNP103RequestOpts(requestParameters) {
765
+ return __awaiter(this, void 0, void 0, function* () {
766
+ if (requestParameters['id'] == null) {
767
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP103().');
768
+ }
769
+ if (requestParameters['xAppAccountId'] == null) {
770
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP103().');
771
+ }
772
+ const queryParameters = {};
773
+ const headerParameters = {};
774
+ if (requestParameters['acceptLanguage'] != null) {
775
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
776
+ }
777
+ if (requestParameters['xAppAccountId'] != null) {
778
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
779
+ }
780
+ if (requestParameters['vergefyVersion'] != null) {
781
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
782
+ }
783
+ if (requestParameters['acceptTimezone'] != null) {
784
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
785
+ }
786
+ if (this.configuration && this.configuration.accessToken) {
787
+ const token = this.configuration.accessToken;
788
+ const tokenString = yield token("BearerAuth", []);
789
+ if (tokenString) {
790
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
791
+ }
792
+ }
793
+ let urlPath = `/platform/principals/{id}/switch-on`;
794
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
795
+ return {
796
+ path: urlPath,
797
+ method: 'POST',
798
+ headers: headerParameters,
799
+ query: queryParameters,
800
+ };
801
+ });
802
+ }
803
+ /**
804
+ * Switches one of Vergefy\'s own agents back on after a person switched it off. A Claude or ChatGPT connection stays revoked (409): its person reconnects instead. An admin may switch on any agent, anyone else only their own; an agent is refused (403).
805
+ * LTNP103 - Switch On Principal
806
+ */
807
+ lTNP103Raw(requestParameters, initOverrides) {
808
+ return __awaiter(this, void 0, void 0, function* () {
809
+ const requestOptions = yield this.lTNP103RequestOpts(requestParameters);
810
+ const response = yield this.request(requestOptions, initOverrides);
811
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalDTOFromJSON(jsonValue));
812
+ });
813
+ }
814
+ /**
815
+ * Switches one of Vergefy\'s own agents back on after a person switched it off. A Claude or ChatGPT connection stays revoked (409): its person reconnects instead. An admin may switch on any agent, anyone else only their own; an agent is refused (403).
816
+ * LTNP103 - Switch On Principal
817
+ */
818
+ lTNP103(requestParameters, initOverrides) {
819
+ return __awaiter(this, void 0, void 0, function* () {
820
+ const response = yield this.lTNP103Raw(requestParameters, initOverrides);
821
+ return yield response.value();
822
+ });
823
+ }
824
+ /**
825
+ * Creates request options for lTNP104 without sending the request
826
+ */
827
+ lTNP104RequestOpts(requestParameters) {
828
+ return __awaiter(this, void 0, void 0, function* () {
829
+ if (requestParameters['id'] == null) {
830
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP104().');
831
+ }
832
+ if (requestParameters['xAppAccountId'] == null) {
833
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP104().');
834
+ }
835
+ const queryParameters = {};
836
+ const headerParameters = {};
837
+ if (requestParameters['acceptLanguage'] != null) {
838
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
839
+ }
840
+ if (requestParameters['xAppAccountId'] != null) {
841
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
842
+ }
843
+ if (requestParameters['vergefyVersion'] != null) {
844
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
845
+ }
846
+ if (requestParameters['acceptTimezone'] != null) {
847
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
848
+ }
849
+ if (this.configuration && this.configuration.accessToken) {
850
+ const token = this.configuration.accessToken;
851
+ const tokenString = yield token("BearerAuth", []);
852
+ if (tokenString) {
853
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
854
+ }
855
+ }
856
+ let urlPath = `/platform/principals/{id}/rotate-key`;
857
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
858
+ return {
859
+ path: urlPath,
860
+ method: 'POST',
861
+ headers: headerParameters,
862
+ query: queryParameters,
863
+ };
864
+ });
865
+ }
866
+ /**
867
+ * A fresh key pair for a shared agent; the old one stops working at once. The secret is shown once, the same as on create. Refused to an agent (403), and to a principal that is not a shared agent with its own key (422).
868
+ * LTNP104 - Rotate Agent Principal Key
869
+ */
870
+ lTNP104Raw(requestParameters, initOverrides) {
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ const requestOptions = yield this.lTNP104RequestOpts(requestParameters);
873
+ const response = yield this.request(requestOptions, initOverrides);
874
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOAgentPrincipalCredentialsDTOFromJSON(jsonValue));
875
+ });
876
+ }
877
+ /**
878
+ * A fresh key pair for a shared agent; the old one stops working at once. The secret is shown once, the same as on create. Refused to an agent (403), and to a principal that is not a shared agent with its own key (422).
879
+ * LTNP104 - Rotate Agent Principal Key
880
+ */
881
+ lTNP104(requestParameters, initOverrides) {
882
+ return __awaiter(this, void 0, void 0, function* () {
883
+ const response = yield this.lTNP104Raw(requestParameters, initOverrides);
884
+ return yield response.value();
885
+ });
886
+ }
887
+ /**
888
+ * Creates request options for lTNP105 without sending the request
889
+ */
890
+ lTNP105RequestOpts(requestParameters) {
891
+ return __awaiter(this, void 0, void 0, function* () {
892
+ if (requestParameters['id'] == null) {
893
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP105().');
894
+ }
895
+ if (requestParameters['xAppAccountId'] == null) {
896
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP105().');
897
+ }
898
+ if (requestParameters['transferPrincipalSponsorDTO'] == null) {
899
+ throw new runtime.RequiredError('transferPrincipalSponsorDTO', 'Required parameter "transferPrincipalSponsorDTO" was null or undefined when calling lTNP105().');
900
+ }
901
+ const queryParameters = {};
902
+ const headerParameters = {};
903
+ headerParameters['Content-Type'] = 'application/json';
904
+ if (requestParameters['acceptLanguage'] != null) {
905
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
906
+ }
907
+ if (requestParameters['xAppAccountId'] != null) {
908
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
909
+ }
910
+ if (requestParameters['vergefyVersion'] != null) {
911
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
912
+ }
913
+ if (requestParameters['acceptTimezone'] != null) {
914
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
915
+ }
916
+ if (this.configuration && this.configuration.accessToken) {
917
+ const token = this.configuration.accessToken;
918
+ const tokenString = yield token("BearerAuth", []);
919
+ if (tokenString) {
920
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
921
+ }
922
+ }
923
+ let urlPath = `/platform/principals/{id}/sponsor`;
924
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
925
+ return {
926
+ path: urlPath,
927
+ method: 'PUT',
928
+ headers: headerParameters,
929
+ query: queryParameters,
930
+ body: TransferPrincipalSponsorDTOToJSON(requestParameters['transferPrincipalSponsorDTO']),
931
+ };
932
+ });
933
+ }
934
+ /**
935
+ * Moves a shared agent\'s accountability to a different account of this tenant. For an agent with its own key, the key moves with it. The new sponsor must be an active account of this tenant (404), and a CUSTOM grant must still fit inside what the new sponsor holds (400). Admin only; refused to anyone else (403).
936
+ * LTNP105 - Transfer Agent Principal Sponsor
937
+ */
938
+ lTNP105Raw(requestParameters, initOverrides) {
939
+ return __awaiter(this, void 0, void 0, function* () {
940
+ const requestOptions = yield this.lTNP105RequestOpts(requestParameters);
941
+ const response = yield this.request(requestOptions, initOverrides);
942
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalDTOFromJSON(jsonValue));
943
+ });
944
+ }
945
+ /**
946
+ * Moves a shared agent\'s accountability to a different account of this tenant. For an agent with its own key, the key moves with it. The new sponsor must be an active account of this tenant (404), and a CUSTOM grant must still fit inside what the new sponsor holds (400). Admin only; refused to anyone else (403).
947
+ * LTNP105 - Transfer Agent Principal Sponsor
948
+ */
949
+ lTNP105(requestParameters, initOverrides) {
950
+ return __awaiter(this, void 0, void 0, function* () {
951
+ const response = yield this.lTNP105Raw(requestParameters, initOverrides);
952
+ return yield response.value();
953
+ });
954
+ }
955
+ /**
956
+ * Creates request options for lTNP110 without sending the request
957
+ */
958
+ lTNP110RequestOpts(requestParameters) {
959
+ return __awaiter(this, void 0, void 0, function* () {
960
+ if (requestParameters['id'] == null) {
961
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP110().');
962
+ }
963
+ if (requestParameters['xAppAccountId'] == null) {
964
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP110().');
965
+ }
966
+ const queryParameters = {};
967
+ const headerParameters = {};
968
+ if (requestParameters['acceptLanguage'] != null) {
969
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
970
+ }
971
+ if (requestParameters['xAppAccountId'] != null) {
972
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
973
+ }
974
+ if (requestParameters['vergefyVersion'] != null) {
975
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
976
+ }
977
+ if (requestParameters['acceptTimezone'] != null) {
978
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
979
+ }
980
+ if (this.configuration && this.configuration.accessToken) {
981
+ const token = this.configuration.accessToken;
982
+ const tokenString = yield token("BearerAuth", []);
983
+ if (tokenString) {
984
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
985
+ }
986
+ }
987
+ let urlPath = `/platform/principals/approvals/{id}/approve`;
988
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
989
+ return {
990
+ path: urlPath,
991
+ method: 'POST',
992
+ headers: headerParameters,
993
+ query: queryParameters,
994
+ };
995
+ });
996
+ }
997
+ /**
998
+ * Runs the held action as the caller, who needs one of the permissions of the endpoint the agent called. Answers the request APPROVED; when the action itself fails the request is FAILED and its error is returned. Refused to an agent.
999
+ * LTNP110 - Approve Principal Approval
1000
+ */
1001
+ lTNP110Raw(requestParameters, initOverrides) {
1002
+ return __awaiter(this, void 0, void 0, function* () {
1003
+ const requestOptions = yield this.lTNP110RequestOpts(requestParameters);
1004
+ const response = yield this.request(requestOptions, initOverrides);
1005
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalApprovalRequestDTOFromJSON(jsonValue));
1006
+ });
1007
+ }
1008
+ /**
1009
+ * Runs the held action as the caller, who needs one of the permissions of the endpoint the agent called. Answers the request APPROVED; when the action itself fails the request is FAILED and its error is returned. Refused to an agent.
1010
+ * LTNP110 - Approve Principal Approval
1011
+ */
1012
+ lTNP110(requestParameters, initOverrides) {
1013
+ return __awaiter(this, void 0, void 0, function* () {
1014
+ const response = yield this.lTNP110Raw(requestParameters, initOverrides);
1015
+ return yield response.value();
1016
+ });
1017
+ }
1018
+ /**
1019
+ * Creates request options for lTNP111 without sending the request
1020
+ */
1021
+ lTNP111RequestOpts(requestParameters) {
1022
+ return __awaiter(this, void 0, void 0, function* () {
1023
+ if (requestParameters['id'] == null) {
1024
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP111().');
1025
+ }
1026
+ if (requestParameters['xAppAccountId'] == null) {
1027
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP111().');
1028
+ }
1029
+ if (requestParameters['principalApprovalDecisionDTO'] == null) {
1030
+ throw new runtime.RequiredError('principalApprovalDecisionDTO', 'Required parameter "principalApprovalDecisionDTO" was null or undefined when calling lTNP111().');
1031
+ }
1032
+ const queryParameters = {};
1033
+ const headerParameters = {};
1034
+ headerParameters['Content-Type'] = 'application/json';
1035
+ if (requestParameters['acceptLanguage'] != null) {
1036
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1037
+ }
1038
+ if (requestParameters['xAppAccountId'] != null) {
1039
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1040
+ }
1041
+ if (requestParameters['vergefyVersion'] != null) {
1042
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1043
+ }
1044
+ if (requestParameters['acceptTimezone'] != null) {
1045
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1046
+ }
1047
+ if (this.configuration && this.configuration.accessToken) {
1048
+ const token = this.configuration.accessToken;
1049
+ const tokenString = yield token("BearerAuth", []);
1050
+ if (tokenString) {
1051
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1052
+ }
1053
+ }
1054
+ let urlPath = `/platform/principals/approvals/{id}/reject`;
1055
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1056
+ return {
1057
+ path: urlPath,
1058
+ method: 'POST',
1059
+ headers: headerParameters,
1060
+ query: queryParameters,
1061
+ body: PrincipalApprovalDecisionDTOToJSON(requestParameters['principalApprovalDecisionDTO']),
1062
+ };
1063
+ });
1064
+ }
1065
+ /**
1066
+ * Refuses the held action with a reason; it never runs. Refused to an agent.
1067
+ * LTNP111 - Reject Principal Approval
1068
+ */
1069
+ lTNP111Raw(requestParameters, initOverrides) {
1070
+ return __awaiter(this, void 0, void 0, function* () {
1071
+ const requestOptions = yield this.lTNP111RequestOpts(requestParameters);
1072
+ const response = yield this.request(requestOptions, initOverrides);
1073
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalApprovalRequestDTOFromJSON(jsonValue));
1074
+ });
1075
+ }
1076
+ /**
1077
+ * Refuses the held action with a reason; it never runs. Refused to an agent.
1078
+ * LTNP111 - Reject Principal Approval
1079
+ */
1080
+ lTNP111(requestParameters, initOverrides) {
1081
+ return __awaiter(this, void 0, void 0, function* () {
1082
+ const response = yield this.lTNP111Raw(requestParameters, initOverrides);
1083
+ return yield response.value();
1084
+ });
1085
+ }
1086
+ /**
1087
+ * Creates request options for lTNP120 without sending the request
1088
+ */
1089
+ lTNP120RequestOpts(requestParameters) {
1090
+ return __awaiter(this, void 0, void 0, function* () {
1091
+ if (requestParameters['xAppAccountId'] == null) {
1092
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP120().');
1093
+ }
1094
+ if (requestParameters['principalPolicyDTO'] == null) {
1095
+ throw new runtime.RequiredError('principalPolicyDTO', 'Required parameter "principalPolicyDTO" was null or undefined when calling lTNP120().');
1096
+ }
1097
+ const queryParameters = {};
1098
+ const headerParameters = {};
1099
+ headerParameters['Content-Type'] = 'application/json';
1100
+ if (requestParameters['acceptLanguage'] != null) {
1101
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1102
+ }
1103
+ if (requestParameters['xAppAccountId'] != null) {
1104
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1105
+ }
1106
+ if (requestParameters['vergefyVersion'] != null) {
1107
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1108
+ }
1109
+ if (requestParameters['acceptTimezone'] != null) {
1110
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1111
+ }
1112
+ if (this.configuration && this.configuration.accessToken) {
1113
+ const token = this.configuration.accessToken;
1114
+ const tokenString = yield token("BearerAuth", []);
1115
+ if (tokenString) {
1116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1117
+ }
1118
+ }
1119
+ let urlPath = `/platform/principals/policy`;
1120
+ return {
1121
+ path: urlPath,
1122
+ method: 'PUT',
1123
+ headers: headerParameters,
1124
+ query: queryParameters,
1125
+ body: PrincipalPolicyDTOToJSON(requestParameters['principalPolicyDTO']),
1126
+ };
1127
+ });
1128
+ }
1129
+ /**
1130
+ * Replaces the actions this tenant lets its agents run without a person. Every other money or stock action an agent asks for waits for approval. Refused to an agent.
1131
+ * LTNP120 - Update Principal Policy
1132
+ */
1133
+ lTNP120Raw(requestParameters, initOverrides) {
1134
+ return __awaiter(this, void 0, void 0, function* () {
1135
+ const requestOptions = yield this.lTNP120RequestOpts(requestParameters);
1136
+ const response = yield this.request(requestOptions, initOverrides);
1137
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPrincipalPolicyDTOFromJSON(jsonValue));
1138
+ });
1139
+ }
1140
+ /**
1141
+ * Replaces the actions this tenant lets its agents run without a person. Every other money or stock action an agent asks for waits for approval. Refused to an agent.
1142
+ * LTNP120 - Update Principal Policy
1143
+ */
1144
+ lTNP120(requestParameters, initOverrides) {
1145
+ return __awaiter(this, void 0, void 0, function* () {
1146
+ const response = yield this.lTNP120Raw(requestParameters, initOverrides);
1147
+ return yield response.value();
1148
+ });
1149
+ }
1150
+ /**
1151
+ * Creates request options for lTNP200 without sending the request
1152
+ */
1153
+ lTNP200RequestOpts(requestParameters) {
1154
+ return __awaiter(this, void 0, void 0, function* () {
1155
+ if (requestParameters['xAppAccountId'] == null) {
1156
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP200().');
1157
+ }
1158
+ if (requestParameters['agentTokenRequestDTO'] == null) {
1159
+ throw new runtime.RequiredError('agentTokenRequestDTO', 'Required parameter "agentTokenRequestDTO" was null or undefined when calling lTNP200().');
1160
+ }
1161
+ const queryParameters = {};
1162
+ const headerParameters = {};
1163
+ headerParameters['Content-Type'] = 'application/json';
1164
+ if (requestParameters['acceptLanguage'] != null) {
1165
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1166
+ }
1167
+ if (requestParameters['xAppAccountId'] != null) {
1168
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1169
+ }
1170
+ if (requestParameters['vergefyVersion'] != null) {
1171
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1172
+ }
1173
+ if (requestParameters['acceptTimezone'] != null) {
1174
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1175
+ }
1176
+ if (this.configuration && this.configuration.accessToken) {
1177
+ const token = this.configuration.accessToken;
1178
+ const tokenString = yield token("BearerAuth", []);
1179
+ if (tokenString) {
1180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1181
+ }
1182
+ }
1183
+ let urlPath = `/platform/principals/agent-tokens`;
1184
+ return {
1185
+ path: urlPath,
1186
+ method: 'POST',
1187
+ headers: headerParameters,
1188
+ query: queryParameters,
1189
+ body: AgentTokenRequestDTOToJSON(requestParameters['agentTokenRequestDTO']),
1190
+ };
1191
+ });
1192
+ }
1193
+ /**
1194
+ * Vergefy\'s AI service trades its first-party service key for a ten-minute token one of the tenant\'s agents acts with, for the tenant named in X-Service-Tenant-Id. The token goes in X-Vergefy-Agent-Token: it authenticates as the person the agent acts for (or its sponsor when it acts alone), with the agent as the actor, so the agent\'s grant, its off switch and approvals apply. 401 when the agent is switched off, 404 when it is not the tenant\'s.
1195
+ * LTNP200 - Exchange Agent Token
1196
+ */
1197
+ lTNP200Raw(requestParameters, initOverrides) {
1198
+ return __awaiter(this, void 0, void 0, function* () {
1199
+ const requestOptions = yield this.lTNP200RequestOpts(requestParameters);
1200
+ const response = yield this.request(requestOptions, initOverrides);
1201
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOAgentTokenDTOFromJSON(jsonValue));
1202
+ });
1203
+ }
1204
+ /**
1205
+ * Vergefy\'s AI service trades its first-party service key for a ten-minute token one of the tenant\'s agents acts with, for the tenant named in X-Service-Tenant-Id. The token goes in X-Vergefy-Agent-Token: it authenticates as the person the agent acts for (or its sponsor when it acts alone), with the agent as the actor, so the agent\'s grant, its off switch and approvals apply. 401 when the agent is switched off, 404 when it is not the tenant\'s.
1206
+ * LTNP200 - Exchange Agent Token
1207
+ */
1208
+ lTNP200(requestParameters, initOverrides) {
1209
+ return __awaiter(this, void 0, void 0, function* () {
1210
+ const response = yield this.lTNP200Raw(requestParameters, initOverrides);
1211
+ return yield response.value();
1212
+ });
1213
+ }
1214
+ }
1215
+ /**
1216
+ * @export
1217
+ */
1218
+ export const LTNP001TypeEnum = {
1219
+ Human: 'HUMAN',
1220
+ Service: 'SERVICE',
1221
+ Agent: 'AGENT'
1222
+ };
1223
+ /**
1224
+ * @export
1225
+ */
1226
+ export const LTNP001StatusEnum = {
1227
+ Active: 'ACTIVE',
1228
+ Revoked: 'REVOKED',
1229
+ Suspended: 'SUSPENDED'
1230
+ };
1231
+ /**
1232
+ * @export
1233
+ */
1234
+ export const LTNP010StatusEnum = {
1235
+ Pending: 'PENDING',
1236
+ Running: 'RUNNING',
1237
+ Approved: 'APPROVED',
1238
+ Rejected: 'REJECTED',
1239
+ Failed: 'FAILED',
1240
+ Expired: 'EXPIRED'
1241
+ };