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