@integrahub/vergefy-client 0.24.0 → 0.26.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 (317) 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 +502 -0
  85. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +1378 -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 +1374 -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/DataResponseDTOListPrincipalAuditEntityTypeDTO.js +42 -0
  148. package/dist/esm/models/DataResponseDTOListPrincipalAuditEventDTO.js +42 -0
  149. package/dist/esm/models/DataResponseDTOListPrincipalGrantOptionDTO.js +42 -0
  150. package/dist/esm/models/DataResponseDTOListTenantModelKeyDTO.js +42 -0
  151. package/dist/esm/models/DataResponseDTOPrincipalApprovalRequestDTO.js +42 -0
  152. package/dist/esm/models/DataResponseDTOPrincipalDTO.js +42 -0
  153. package/dist/esm/models/DataResponseDTOPrincipalPolicyDTO.js +42 -0
  154. package/dist/esm/models/DataResponseDTOPrincipalWorkShareDTO.js +42 -0
  155. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +42 -0
  156. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +42 -0
  157. package/dist/esm/models/DataResponseDTOTenantModelKeyCredentialDTO.js +42 -0
  158. package/dist/esm/models/DataResponseDTOTenantModelKeyDTO.js +42 -0
  159. package/dist/esm/models/DeveloperApiKeyDTO.js +2 -0
  160. package/dist/esm/models/InsuranceAiRequestDTO.js +100 -0
  161. package/dist/esm/models/InsuranceClaimCreateDTO.js +3 -1
  162. package/dist/esm/models/MailSubscription.js +2 -0
  163. package/dist/esm/models/McpClientFamilyDTO.js +43 -0
  164. package/dist/esm/models/PagePrincipalApprovalRequestDTO.js +64 -0
  165. package/dist/esm/models/PagePrincipalDTO.js +64 -0
  166. package/dist/esm/models/PlatformServiceDTO.js +2 -1
  167. package/dist/esm/models/PrincipalAgentWorkDTO.js +45 -0
  168. package/dist/esm/models/PrincipalApprovalDecisionDTO.js +43 -0
  169. package/dist/esm/models/PrincipalApprovalRequestDTO.js +92 -0
  170. package/dist/esm/models/PrincipalAuditEntityTypeDTO.js +45 -0
  171. package/dist/esm/models/PrincipalAuditEventDTO.js +85 -0
  172. package/dist/esm/models/PrincipalDTO.js +114 -0
  173. package/dist/esm/models/PrincipalGrantOptionDTO.js +67 -0
  174. package/dist/esm/models/PrincipalModuleWorkShareDTO.js +47 -0
  175. package/dist/esm/models/PrincipalPolicyDTO.js +43 -0
  176. package/dist/esm/models/PrincipalUpdateDTO.js +57 -0
  177. package/dist/esm/models/PrincipalWorkShareDTO.js +59 -0
  178. package/dist/esm/models/PurchaseBillCreateDTO.js +2 -0
  179. package/dist/esm/models/PurchaseBillDTO.js +2 -0
  180. package/dist/esm/models/PurchaseBillLineCreateDTO.js +2 -0
  181. package/dist/esm/models/PurchaseBillLineDTO.js +2 -0
  182. package/dist/esm/models/SupplierPurchaseOrderBillLineMatchDTO.js +65 -0
  183. package/dist/esm/models/SupplierPurchaseOrderBillMatchDTO.js +67 -0
  184. package/dist/esm/models/SupplierPurchaseOrderDTO.js +11 -0
  185. package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +9 -0
  186. package/dist/esm/models/SupplierPurchaseOrderLineMatchDTO.js +74 -0
  187. package/dist/esm/models/SupplierPurchaseOrderMatchDTO.js +73 -0
  188. package/dist/esm/models/TenantModelKeyCredentialDTO.js +54 -0
  189. package/dist/esm/models/TenantModelKeyDTO.js +58 -0
  190. package/dist/esm/models/TenantModelKeyUpsertDTO.js +45 -0
  191. package/dist/esm/models/TransferPrincipalSponsorDTO.js +43 -0
  192. package/dist/esm/models/index.js +50 -0
  193. package/dist/ext/telemetry.d.ts +1 -1
  194. package/dist/ext/telemetry.js +1 -1
  195. package/dist/models/AgentApprovalActionDTO.d.ts +50 -0
  196. package/dist/models/AgentApprovalActionDTO.js +54 -0
  197. package/dist/models/AgentCostSummaryDTO.d.ts +56 -0
  198. package/dist/models/AgentCostSummaryDTO.js +56 -0
  199. package/dist/models/AgentPrincipalCredentialsDTO.d.ts +45 -0
  200. package/dist/models/AgentPrincipalCredentialsDTO.js +53 -0
  201. package/dist/models/AgentTokenDTO.d.ts +44 -0
  202. package/dist/models/AgentTokenDTO.js +52 -0
  203. package/dist/models/AgentTokenRequestDTO.d.ts +38 -0
  204. package/dist/models/AgentTokenRequestDTO.js +52 -0
  205. package/dist/models/ConnectorListingDTO.d.ts +175 -0
  206. package/dist/models/ConnectorListingDTO.js +169 -0
  207. package/dist/models/CreateAgentPrincipalDTO.d.ts +59 -0
  208. package/dist/models/CreateAgentPrincipalDTO.js +65 -0
  209. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.d.ts +33 -0
  210. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.js +49 -0
  211. package/dist/models/DataResponseDTOAgentTokenDTO.d.ts +33 -0
  212. package/dist/models/DataResponseDTOAgentTokenDTO.js +49 -0
  213. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.d.ts +33 -0
  214. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.js +49 -0
  215. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.d.ts +33 -0
  216. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.js +49 -0
  217. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.d.ts +33 -0
  218. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.js +49 -0
  219. package/dist/models/DataResponseDTOListConnectorListingDTO.d.ts +33 -0
  220. package/dist/models/DataResponseDTOListConnectorListingDTO.js +49 -0
  221. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.d.ts +33 -0
  222. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.js +49 -0
  223. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.d.ts +33 -0
  224. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.js +49 -0
  225. package/dist/models/DataResponseDTOListPrincipalAuditEntityTypeDTO.d.ts +33 -0
  226. package/dist/models/DataResponseDTOListPrincipalAuditEntityTypeDTO.js +49 -0
  227. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.d.ts +33 -0
  228. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.js +49 -0
  229. package/dist/models/DataResponseDTOListPrincipalGrantOptionDTO.d.ts +33 -0
  230. package/dist/models/DataResponseDTOListPrincipalGrantOptionDTO.js +49 -0
  231. package/dist/models/DataResponseDTOListTenantModelKeyDTO.d.ts +33 -0
  232. package/dist/models/DataResponseDTOListTenantModelKeyDTO.js +49 -0
  233. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.d.ts +33 -0
  234. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.js +49 -0
  235. package/dist/models/DataResponseDTOPrincipalDTO.d.ts +33 -0
  236. package/dist/models/DataResponseDTOPrincipalDTO.js +49 -0
  237. package/dist/models/DataResponseDTOPrincipalPolicyDTO.d.ts +33 -0
  238. package/dist/models/DataResponseDTOPrincipalPolicyDTO.js +49 -0
  239. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.d.ts +33 -0
  240. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.js +49 -0
  241. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.d.ts +33 -0
  242. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +49 -0
  243. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.d.ts +33 -0
  244. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +49 -0
  245. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.d.ts +33 -0
  246. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.js +49 -0
  247. package/dist/models/DataResponseDTOTenantModelKeyDTO.d.ts +33 -0
  248. package/dist/models/DataResponseDTOTenantModelKeyDTO.js +49 -0
  249. package/dist/models/DeveloperApiKeyDTO.d.ts +6 -0
  250. package/dist/models/DeveloperApiKeyDTO.js +2 -0
  251. package/dist/models/InsuranceAiRequestDTO.d.ts +188 -0
  252. package/dist/models/InsuranceAiRequestDTO.js +108 -0
  253. package/dist/models/InsuranceClaimCreateDTO.d.ts +1 -1
  254. package/dist/models/InsuranceClaimCreateDTO.js +3 -1
  255. package/dist/models/MailSubscription.d.ts +6 -0
  256. package/dist/models/MailSubscription.js +2 -0
  257. package/dist/models/McpClientFamilyDTO.d.ts +38 -0
  258. package/dist/models/McpClientFamilyDTO.js +50 -0
  259. package/dist/models/PagePrincipalApprovalRequestDTO.d.ts +95 -0
  260. package/dist/models/PagePrincipalApprovalRequestDTO.js +71 -0
  261. package/dist/models/PagePrincipalDTO.d.ts +95 -0
  262. package/dist/models/PagePrincipalDTO.js +71 -0
  263. package/dist/models/PlatformServiceDTO.d.ts +1 -0
  264. package/dist/models/PlatformServiceDTO.js +2 -1
  265. package/dist/models/PrincipalAgentWorkDTO.d.ts +44 -0
  266. package/dist/models/PrincipalAgentWorkDTO.js +52 -0
  267. package/dist/models/PrincipalApprovalDecisionDTO.d.ts +32 -0
  268. package/dist/models/PrincipalApprovalDecisionDTO.js +50 -0
  269. package/dist/models/PrincipalApprovalRequestDTO.d.ts +164 -0
  270. package/dist/models/PrincipalApprovalRequestDTO.js +100 -0
  271. package/dist/models/PrincipalAuditEntityTypeDTO.d.ts +38 -0
  272. package/dist/models/PrincipalAuditEntityTypeDTO.js +52 -0
  273. package/dist/models/PrincipalAuditEventDTO.d.ts +134 -0
  274. package/dist/models/PrincipalAuditEventDTO.js +93 -0
  275. package/dist/models/PrincipalDTO.d.ts +178 -0
  276. package/dist/models/PrincipalDTO.js +122 -0
  277. package/dist/models/PrincipalGrantOptionDTO.d.ts +67 -0
  278. package/dist/models/PrincipalGrantOptionDTO.js +75 -0
  279. package/dist/models/PrincipalModuleWorkShareDTO.d.ts +50 -0
  280. package/dist/models/PrincipalModuleWorkShareDTO.js +54 -0
  281. package/dist/models/PrincipalPolicyDTO.d.ts +38 -0
  282. package/dist/models/PrincipalPolicyDTO.js +50 -0
  283. package/dist/models/PrincipalUpdateDTO.d.ts +59 -0
  284. package/dist/models/PrincipalUpdateDTO.js +65 -0
  285. package/dist/models/PrincipalWorkShareDTO.d.ts +82 -0
  286. package/dist/models/PrincipalWorkShareDTO.js +66 -0
  287. package/dist/models/PurchaseBillCreateDTO.d.ts +6 -0
  288. package/dist/models/PurchaseBillCreateDTO.js +2 -0
  289. package/dist/models/PurchaseBillDTO.d.ts +6 -0
  290. package/dist/models/PurchaseBillDTO.js +2 -0
  291. package/dist/models/PurchaseBillLineCreateDTO.d.ts +6 -0
  292. package/dist/models/PurchaseBillLineCreateDTO.js +2 -0
  293. package/dist/models/PurchaseBillLineDTO.d.ts +6 -0
  294. package/dist/models/PurchaseBillLineDTO.js +2 -0
  295. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.d.ts +85 -0
  296. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.js +73 -0
  297. package/dist/models/SupplierPurchaseOrderBillMatchDTO.d.ts +76 -0
  298. package/dist/models/SupplierPurchaseOrderBillMatchDTO.js +75 -0
  299. package/dist/models/SupplierPurchaseOrderDTO.d.ts +20 -0
  300. package/dist/models/SupplierPurchaseOrderDTO.js +12 -1
  301. package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +14 -0
  302. package/dist/models/SupplierPurchaseOrderLineDTO.js +10 -1
  303. package/dist/models/SupplierPurchaseOrderLineMatchDTO.d.ts +99 -0
  304. package/dist/models/SupplierPurchaseOrderLineMatchDTO.js +82 -0
  305. package/dist/models/SupplierPurchaseOrderMatchDTO.d.ts +94 -0
  306. package/dist/models/SupplierPurchaseOrderMatchDTO.js +81 -0
  307. package/dist/models/TenantModelKeyCredentialDTO.d.ts +58 -0
  308. package/dist/models/TenantModelKeyCredentialDTO.js +62 -0
  309. package/dist/models/TenantModelKeyDTO.d.ts +70 -0
  310. package/dist/models/TenantModelKeyDTO.js +66 -0
  311. package/dist/models/TenantModelKeyUpsertDTO.d.ts +38 -0
  312. package/dist/models/TenantModelKeyUpsertDTO.js +52 -0
  313. package/dist/models/TransferPrincipalSponsorDTO.d.ts +32 -0
  314. package/dist/models/TransferPrincipalSponsorDTO.js +50 -0
  315. package/dist/models/index.d.ts +50 -0
  316. package/dist/models/index.js +50 -0
  317. package/package.json +1 -1
@@ -0,0 +1,1378 @@
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.LTNP001AudienceEnum = 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 DataResponseDTOListPrincipalAuditEntityTypeDTO_1 = require("../models/DataResponseDTOListPrincipalAuditEntityTypeDTO");
34
+ const DataResponseDTOListPrincipalAuditEventDTO_1 = require("../models/DataResponseDTOListPrincipalAuditEventDTO");
35
+ const DataResponseDTOListPrincipalGrantOptionDTO_1 = require("../models/DataResponseDTOListPrincipalGrantOptionDTO");
36
+ const DataResponseDTOPrincipalApprovalRequestDTO_1 = require("../models/DataResponseDTOPrincipalApprovalRequestDTO");
37
+ const DataResponseDTOPrincipalDTO_1 = require("../models/DataResponseDTOPrincipalDTO");
38
+ const DataResponseDTOPrincipalPolicyDTO_1 = require("../models/DataResponseDTOPrincipalPolicyDTO");
39
+ const PagePrincipalApprovalRequestDTO_1 = require("../models/PagePrincipalApprovalRequestDTO");
40
+ const PagePrincipalDTO_1 = require("../models/PagePrincipalDTO");
41
+ const PrincipalApprovalDecisionDTO_1 = require("../models/PrincipalApprovalDecisionDTO");
42
+ const PrincipalPolicyDTO_1 = require("../models/PrincipalPolicyDTO");
43
+ const PrincipalUpdateDTO_1 = require("../models/PrincipalUpdateDTO");
44
+ const TransferPrincipalSponsorDTO_1 = require("../models/TransferPrincipalSponsorDTO");
45
+ /**
46
+ *
47
+ */
48
+ class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
49
+ /**
50
+ * Creates request options for lTNP001 without sending the request
51
+ */
52
+ lTNP001RequestOpts(requestParameters) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ if (requestParameters['xAppAccountId'] == null) {
55
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP001().');
56
+ }
57
+ const queryParameters = {};
58
+ if (requestParameters['type'] != null) {
59
+ queryParameters['type'] = requestParameters['type'];
60
+ }
61
+ if (requestParameters['status'] != null) {
62
+ queryParameters['status'] = requestParameters['status'];
63
+ }
64
+ if (requestParameters['audience'] != null) {
65
+ queryParameters['audience'] = requestParameters['audience'];
66
+ }
67
+ if (requestParameters['sponsorAccountId'] != null) {
68
+ queryParameters['sponsorAccountId'] = requestParameters['sponsorAccountId'];
69
+ }
70
+ if (requestParameters['page'] != null) {
71
+ queryParameters['page'] = requestParameters['page'];
72
+ }
73
+ if (requestParameters['size'] != null) {
74
+ queryParameters['size'] = requestParameters['size'];
75
+ }
76
+ if (requestParameters['sort'] != null) {
77
+ queryParameters['sort'] = requestParameters['sort'];
78
+ }
79
+ const headerParameters = {};
80
+ if (requestParameters['acceptLanguage'] != null) {
81
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
82
+ }
83
+ if (requestParameters['xAppAccountId'] != null) {
84
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
85
+ }
86
+ if (requestParameters['vergefyVersion'] != null) {
87
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
88
+ }
89
+ if (requestParameters['acceptTimezone'] != null) {
90
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
91
+ }
92
+ if (this.configuration && this.configuration.accessToken) {
93
+ const token = this.configuration.accessToken;
94
+ const tokenString = yield token("BearerAuth", []);
95
+ if (tokenString) {
96
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
97
+ }
98
+ }
99
+ let urlPath = `/platform/principals`;
100
+ return {
101
+ path: urlPath,
102
+ method: 'GET',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ };
106
+ });
107
+ }
108
+ /**
109
+ * 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. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
110
+ * LTNP001 - Search Principals
111
+ */
112
+ lTNP001Raw(requestParameters, initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const requestOptions = yield this.lTNP001RequestOpts(requestParameters);
115
+ const response = yield this.request(requestOptions, initOverrides);
116
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PagePrincipalDTO_1.PagePrincipalDTOFromJSON)(jsonValue));
117
+ });
118
+ }
119
+ /**
120
+ * 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. audience narrows the list to PERSONAL agents (Claude and ChatGPT connections) or SHARED ones.
121
+ * LTNP001 - Search Principals
122
+ */
123
+ lTNP001(requestParameters, initOverrides) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ const response = yield this.lTNP001Raw(requestParameters, initOverrides);
126
+ return yield response.value();
127
+ });
128
+ }
129
+ /**
130
+ * Creates request options for lTNP002 without sending the request
131
+ */
132
+ lTNP002RequestOpts(requestParameters) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ if (requestParameters['id'] == null) {
135
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP002().');
136
+ }
137
+ if (requestParameters['xAppAccountId'] == null) {
138
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP002().');
139
+ }
140
+ const queryParameters = {};
141
+ const headerParameters = {};
142
+ if (requestParameters['acceptLanguage'] != null) {
143
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
144
+ }
145
+ if (requestParameters['xAppAccountId'] != null) {
146
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
147
+ }
148
+ if (requestParameters['vergefyVersion'] != null) {
149
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
150
+ }
151
+ if (requestParameters['acceptTimezone'] != null) {
152
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
153
+ }
154
+ if (this.configuration && this.configuration.accessToken) {
155
+ const token = this.configuration.accessToken;
156
+ const tokenString = yield token("BearerAuth", []);
157
+ if (tokenString) {
158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
159
+ }
160
+ }
161
+ let urlPath = `/platform/principals/{id}`;
162
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
163
+ return {
164
+ path: urlPath,
165
+ method: 'GET',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ };
169
+ });
170
+ }
171
+ /**
172
+ * One agent or service, with its grant. Another person\'s agent reads as not found unless the caller is an admin.
173
+ * LTNP002 - Get Principal By Id
174
+ */
175
+ lTNP002Raw(requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const requestOptions = yield this.lTNP002RequestOpts(requestParameters);
178
+ const response = yield this.request(requestOptions, initOverrides);
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalDTO_1.DataResponseDTOPrincipalDTOFromJSON)(jsonValue));
180
+ });
181
+ }
182
+ /**
183
+ * One agent or service, with its grant. Another person\'s agent reads as not found unless the caller is an admin.
184
+ * LTNP002 - Get Principal By Id
185
+ */
186
+ lTNP002(requestParameters, initOverrides) {
187
+ return __awaiter(this, void 0, void 0, function* () {
188
+ const response = yield this.lTNP002Raw(requestParameters, initOverrides);
189
+ return yield response.value();
190
+ });
191
+ }
192
+ /**
193
+ * Creates request options for lTNP003 without sending the request
194
+ */
195
+ lTNP003RequestOpts(requestParameters) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ if (requestParameters['entityType'] == null) {
198
+ throw new runtime.RequiredError('entityType', 'Required parameter "entityType" was null or undefined when calling lTNP003().');
199
+ }
200
+ if (requestParameters['entityId'] == null) {
201
+ throw new runtime.RequiredError('entityId', 'Required parameter "entityId" was null or undefined when calling lTNP003().');
202
+ }
203
+ if (requestParameters['xAppAccountId'] == null) {
204
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP003().');
205
+ }
206
+ const queryParameters = {};
207
+ if (requestParameters['entityType'] != null) {
208
+ queryParameters['entityType'] = requestParameters['entityType'];
209
+ }
210
+ if (requestParameters['entityId'] != null) {
211
+ queryParameters['entityId'] = requestParameters['entityId'];
212
+ }
213
+ const headerParameters = {};
214
+ if (requestParameters['acceptLanguage'] != null) {
215
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
216
+ }
217
+ if (requestParameters['xAppAccountId'] != null) {
218
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
219
+ }
220
+ if (requestParameters['vergefyVersion'] != null) {
221
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
222
+ }
223
+ if (requestParameters['acceptTimezone'] != null) {
224
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
225
+ }
226
+ if (this.configuration && this.configuration.accessToken) {
227
+ const token = this.configuration.accessToken;
228
+ const tokenString = yield token("BearerAuth", []);
229
+ if (tokenString) {
230
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
231
+ }
232
+ }
233
+ let urlPath = `/platform/principals/audit-events`;
234
+ return {
235
+ path: urlPath,
236
+ method: 'GET',
237
+ headers: headerParameters,
238
+ query: queryParameters,
239
+ };
240
+ });
241
+ }
242
+ /**
243
+ * 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. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
244
+ * LTNP003 - Search Principal Audit Events
245
+ */
246
+ lTNP003Raw(requestParameters, initOverrides) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ const requestOptions = yield this.lTNP003RequestOpts(requestParameters);
249
+ const response = yield this.request(requestOptions, initOverrides);
250
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListPrincipalAuditEventDTO_1.DataResponseDTOListPrincipalAuditEventDTOFromJSON)(jsonValue));
251
+ });
252
+ }
253
+ /**
254
+ * 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. entityType is the name of the command facade that writes the record, less Command and Facade (CommandContactFacade writes Contact); LTNP023 lists them, and an unknown one is a 400 rather than an empty history.
255
+ * LTNP003 - Search Principal Audit Events
256
+ */
257
+ lTNP003(requestParameters, initOverrides) {
258
+ return __awaiter(this, void 0, void 0, function* () {
259
+ const response = yield this.lTNP003Raw(requestParameters, initOverrides);
260
+ return yield response.value();
261
+ });
262
+ }
263
+ /**
264
+ * Creates request options for lTNP004 without sending the request
265
+ */
266
+ lTNP004RequestOpts(requestParameters) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ if (requestParameters['xAppAccountId'] == null) {
269
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP004().');
270
+ }
271
+ const queryParameters = {};
272
+ if (requestParameters['principalId'] != null) {
273
+ queryParameters['principalId'] = requestParameters['principalId'];
274
+ }
275
+ const headerParameters = {};
276
+ if (requestParameters['acceptLanguage'] != null) {
277
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
278
+ }
279
+ if (requestParameters['xAppAccountId'] != null) {
280
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
281
+ }
282
+ if (requestParameters['vergefyVersion'] != null) {
283
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
284
+ }
285
+ if (requestParameters['acceptTimezone'] != null) {
286
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
287
+ }
288
+ if (this.configuration && this.configuration.accessToken) {
289
+ const token = this.configuration.accessToken;
290
+ const tokenString = yield token("BearerAuth", []);
291
+ if (tokenString) {
292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
293
+ }
294
+ }
295
+ let urlPath = `/platform/principals/grant-options`;
296
+ return {
297
+ path: urlPath,
298
+ method: 'GET',
299
+ headers: headerParameters,
300
+ query: queryParameters,
301
+ };
302
+ });
303
+ }
304
+ /**
305
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
306
+ * LTNP004 - Search Principal Grant Options
307
+ */
308
+ lTNP004Raw(requestParameters, initOverrides) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ const requestOptions = yield this.lTNP004RequestOpts(requestParameters);
311
+ const response = yield this.request(requestOptions, initOverrides);
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListPrincipalGrantOptionDTO_1.DataResponseDTOListPrincipalGrantOptionDTOFromJSON)(jsonValue));
313
+ });
314
+ }
315
+ /**
316
+ * The permissions an agent could be granted: the ones its sponsor holds, with their titles, sorted by authority. A CUSTOM grant may name only these, and a READ_ONLY grant keeps the ones marked keptByReadOnly. With principalId, that agent\'s sponsor\'s; without it, the caller\'s own, which is what a shared agent the caller creates (LTNP102) could be granted. Another person\'s agent reads as not found unless the caller is an admin. Refused to an agent.
317
+ * LTNP004 - Search Principal Grant Options
318
+ */
319
+ lTNP004(requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const response = yield this.lTNP004Raw(requestParameters, initOverrides);
322
+ return yield response.value();
323
+ });
324
+ }
325
+ /**
326
+ * Creates request options for lTNP010 without sending the request
327
+ */
328
+ lTNP010RequestOpts(requestParameters) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ if (requestParameters['xAppAccountId'] == null) {
331
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP010().');
332
+ }
333
+ const queryParameters = {};
334
+ if (requestParameters['status'] != null) {
335
+ queryParameters['status'] = requestParameters['status'];
336
+ }
337
+ if (requestParameters['page'] != null) {
338
+ queryParameters['page'] = requestParameters['page'];
339
+ }
340
+ if (requestParameters['size'] != null) {
341
+ queryParameters['size'] = requestParameters['size'];
342
+ }
343
+ if (requestParameters['sort'] != null) {
344
+ queryParameters['sort'] = requestParameters['sort'];
345
+ }
346
+ const headerParameters = {};
347
+ if (requestParameters['acceptLanguage'] != null) {
348
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
349
+ }
350
+ if (requestParameters['xAppAccountId'] != null) {
351
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
352
+ }
353
+ if (requestParameters['vergefyVersion'] != null) {
354
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
355
+ }
356
+ if (requestParameters['acceptTimezone'] != null) {
357
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
358
+ }
359
+ if (this.configuration && this.configuration.accessToken) {
360
+ const token = this.configuration.accessToken;
361
+ const tokenString = yield token("BearerAuth", []);
362
+ if (tokenString) {
363
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
364
+ }
365
+ }
366
+ let urlPath = `/platform/principals/approvals`;
367
+ return {
368
+ path: urlPath,
369
+ method: 'GET',
370
+ headers: headerParameters,
371
+ query: queryParameters,
372
+ };
373
+ });
374
+ }
375
+ /**
376
+ * 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.
377
+ * LTNP010 - Search Principal Approvals
378
+ */
379
+ lTNP010Raw(requestParameters, initOverrides) {
380
+ return __awaiter(this, void 0, void 0, function* () {
381
+ const requestOptions = yield this.lTNP010RequestOpts(requestParameters);
382
+ const response = yield this.request(requestOptions, initOverrides);
383
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PagePrincipalApprovalRequestDTO_1.PagePrincipalApprovalRequestDTOFromJSON)(jsonValue));
384
+ });
385
+ }
386
+ /**
387
+ * 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.
388
+ * LTNP010 - Search Principal Approvals
389
+ */
390
+ lTNP010(requestParameters, initOverrides) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ const response = yield this.lTNP010Raw(requestParameters, initOverrides);
393
+ return yield response.value();
394
+ });
395
+ }
396
+ /**
397
+ * Creates request options for lTNP011 without sending the request
398
+ */
399
+ lTNP011RequestOpts(requestParameters) {
400
+ return __awaiter(this, void 0, void 0, function* () {
401
+ if (requestParameters['id'] == null) {
402
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP011().');
403
+ }
404
+ if (requestParameters['xAppAccountId'] == null) {
405
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP011().');
406
+ }
407
+ const queryParameters = {};
408
+ const headerParameters = {};
409
+ if (requestParameters['acceptLanguage'] != null) {
410
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
411
+ }
412
+ if (requestParameters['xAppAccountId'] != null) {
413
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
414
+ }
415
+ if (requestParameters['vergefyVersion'] != null) {
416
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
417
+ }
418
+ if (requestParameters['acceptTimezone'] != null) {
419
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
420
+ }
421
+ if (this.configuration && this.configuration.accessToken) {
422
+ const token = this.configuration.accessToken;
423
+ const tokenString = yield token("BearerAuth", []);
424
+ if (tokenString) {
425
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
426
+ }
427
+ }
428
+ let urlPath = `/platform/principals/approvals/{id}`;
429
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
430
+ return {
431
+ path: urlPath,
432
+ method: 'GET',
433
+ headers: headerParameters,
434
+ query: queryParameters,
435
+ };
436
+ });
437
+ }
438
+ /**
439
+ * One held action. A request another person\'s agent made reads as not found unless the caller approves or administers agents.
440
+ * LTNP011 - Get Principal Approval By Id
441
+ */
442
+ lTNP011Raw(requestParameters, initOverrides) {
443
+ return __awaiter(this, void 0, void 0, function* () {
444
+ const requestOptions = yield this.lTNP011RequestOpts(requestParameters);
445
+ const response = yield this.request(requestOptions, initOverrides);
446
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalApprovalRequestDTO_1.DataResponseDTOPrincipalApprovalRequestDTOFromJSON)(jsonValue));
447
+ });
448
+ }
449
+ /**
450
+ * One held action. A request another person\'s agent made reads as not found unless the caller approves or administers agents.
451
+ * LTNP011 - Get Principal Approval By Id
452
+ */
453
+ lTNP011(requestParameters, initOverrides) {
454
+ return __awaiter(this, void 0, void 0, function* () {
455
+ const response = yield this.lTNP011Raw(requestParameters, initOverrides);
456
+ return yield response.value();
457
+ });
458
+ }
459
+ /**
460
+ * Creates request options for lTNP020 without sending the request
461
+ */
462
+ lTNP020RequestOpts(requestParameters) {
463
+ return __awaiter(this, void 0, void 0, function* () {
464
+ if (requestParameters['xAppAccountId'] == null) {
465
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP020().');
466
+ }
467
+ const queryParameters = {};
468
+ const headerParameters = {};
469
+ if (requestParameters['acceptLanguage'] != null) {
470
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
471
+ }
472
+ if (requestParameters['xAppAccountId'] != null) {
473
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
474
+ }
475
+ if (requestParameters['vergefyVersion'] != null) {
476
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
477
+ }
478
+ if (requestParameters['acceptTimezone'] != null) {
479
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
480
+ }
481
+ if (this.configuration && this.configuration.accessToken) {
482
+ const token = this.configuration.accessToken;
483
+ const tokenString = yield token("BearerAuth", []);
484
+ if (tokenString) {
485
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
486
+ }
487
+ }
488
+ let urlPath = `/platform/principals/policy`;
489
+ return {
490
+ path: urlPath,
491
+ method: 'GET',
492
+ headers: headerParameters,
493
+ query: queryParameters,
494
+ };
495
+ });
496
+ }
497
+ /**
498
+ * Which money and stock actions this tenant lets its agents run without a person.
499
+ * LTNP020 - Get Principal Policy
500
+ */
501
+ lTNP020Raw(requestParameters, initOverrides) {
502
+ return __awaiter(this, void 0, void 0, function* () {
503
+ const requestOptions = yield this.lTNP020RequestOpts(requestParameters);
504
+ const response = yield this.request(requestOptions, initOverrides);
505
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalPolicyDTO_1.DataResponseDTOPrincipalPolicyDTOFromJSON)(jsonValue));
506
+ });
507
+ }
508
+ /**
509
+ * Which money and stock actions this tenant lets its agents run without a person.
510
+ * LTNP020 - Get Principal Policy
511
+ */
512
+ lTNP020(requestParameters, initOverrides) {
513
+ return __awaiter(this, void 0, void 0, function* () {
514
+ const response = yield this.lTNP020Raw(requestParameters, initOverrides);
515
+ return yield response.value();
516
+ });
517
+ }
518
+ /**
519
+ * Creates request options for lTNP021 without sending the request
520
+ */
521
+ lTNP021RequestOpts(requestParameters) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ if (requestParameters['xAppAccountId'] == null) {
524
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP021().');
525
+ }
526
+ const queryParameters = {};
527
+ const headerParameters = {};
528
+ if (requestParameters['acceptLanguage'] != null) {
529
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
530
+ }
531
+ if (requestParameters['xAppAccountId'] != null) {
532
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
533
+ }
534
+ if (requestParameters['vergefyVersion'] != null) {
535
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
536
+ }
537
+ if (requestParameters['acceptTimezone'] != null) {
538
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
539
+ }
540
+ if (this.configuration && this.configuration.accessToken) {
541
+ const token = this.configuration.accessToken;
542
+ const tokenString = yield token("BearerAuth", []);
543
+ if (tokenString) {
544
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
545
+ }
546
+ }
547
+ let urlPath = `/platform/principals/approval-actions`;
548
+ return {
549
+ path: urlPath,
550
+ method: 'GET',
551
+ headers: headerParameters,
552
+ query: queryParameters,
553
+ };
554
+ });
555
+ }
556
+ /**
557
+ * Every action an agent may not run on its own, by stable key, and whether this tenant lets its agents run it without approval.
558
+ * LTNP021 - Search Principal Approval Actions
559
+ */
560
+ lTNP021Raw(requestParameters, initOverrides) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ const requestOptions = yield this.lTNP021RequestOpts(requestParameters);
563
+ const response = yield this.request(requestOptions, initOverrides);
564
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListAgentApprovalActionDTO_1.DataResponseDTOListAgentApprovalActionDTOFromJSON)(jsonValue));
565
+ });
566
+ }
567
+ /**
568
+ * Every action an agent may not run on its own, by stable key, and whether this tenant lets its agents run it without approval.
569
+ * LTNP021 - Search Principal Approval Actions
570
+ */
571
+ lTNP021(requestParameters, initOverrides) {
572
+ return __awaiter(this, void 0, void 0, function* () {
573
+ const response = yield this.lTNP021Raw(requestParameters, initOverrides);
574
+ return yield response.value();
575
+ });
576
+ }
577
+ /**
578
+ * Creates request options for lTNP022 without sending the request
579
+ */
580
+ lTNP022RequestOpts(requestParameters) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ if (requestParameters['xAppAccountId'] == null) {
583
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP022().');
584
+ }
585
+ const queryParameters = {};
586
+ const headerParameters = {};
587
+ if (requestParameters['acceptLanguage'] != null) {
588
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
589
+ }
590
+ if (requestParameters['xAppAccountId'] != null) {
591
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
592
+ }
593
+ if (requestParameters['vergefyVersion'] != null) {
594
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
595
+ }
596
+ if (requestParameters['acceptTimezone'] != null) {
597
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
598
+ }
599
+ if (this.configuration && this.configuration.accessToken) {
600
+ const token = this.configuration.accessToken;
601
+ const tokenString = yield token("BearerAuth", []);
602
+ if (tokenString) {
603
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
604
+ }
605
+ }
606
+ let urlPath = `/platform/principals/mcp-clients`;
607
+ return {
608
+ path: urlPath,
609
+ method: 'GET',
610
+ headers: headerParameters,
611
+ query: queryParameters,
612
+ };
613
+ });
614
+ }
615
+ /**
616
+ * The AI client families a tenant\'s policy can name in allowedMcpClients: CLAUDE, CHATGPT, CURSOR, COPILOT, OTHER.
617
+ * LTNP022 - Search Mcp Client Families
618
+ */
619
+ lTNP022Raw(requestParameters, initOverrides) {
620
+ return __awaiter(this, void 0, void 0, function* () {
621
+ const requestOptions = yield this.lTNP022RequestOpts(requestParameters);
622
+ const response = yield this.request(requestOptions, initOverrides);
623
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListMcpClientFamilyDTO_1.DataResponseDTOListMcpClientFamilyDTOFromJSON)(jsonValue));
624
+ });
625
+ }
626
+ /**
627
+ * The AI client families a tenant\'s policy can name in allowedMcpClients: CLAUDE, CHATGPT, CURSOR, COPILOT, OTHER.
628
+ * LTNP022 - Search Mcp Client Families
629
+ */
630
+ lTNP022(requestParameters, initOverrides) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ const response = yield this.lTNP022Raw(requestParameters, initOverrides);
633
+ return yield response.value();
634
+ });
635
+ }
636
+ /**
637
+ * Creates request options for lTNP023 without sending the request
638
+ */
639
+ lTNP023RequestOpts(requestParameters) {
640
+ return __awaiter(this, void 0, void 0, function* () {
641
+ if (requestParameters['xAppAccountId'] == null) {
642
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP023().');
643
+ }
644
+ const queryParameters = {};
645
+ const headerParameters = {};
646
+ if (requestParameters['acceptLanguage'] != null) {
647
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
648
+ }
649
+ if (requestParameters['xAppAccountId'] != null) {
650
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
651
+ }
652
+ if (requestParameters['vergefyVersion'] != null) {
653
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
654
+ }
655
+ if (requestParameters['acceptTimezone'] != null) {
656
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
657
+ }
658
+ if (this.configuration && this.configuration.accessToken) {
659
+ const token = this.configuration.accessToken;
660
+ const tokenString = yield token("BearerAuth", []);
661
+ if (tokenString) {
662
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
663
+ }
664
+ }
665
+ let urlPath = `/platform/principals/audit-entity-types`;
666
+ return {
667
+ path: urlPath,
668
+ method: 'GET',
669
+ headers: headerParameters,
670
+ query: queryParameters,
671
+ };
672
+ });
673
+ }
674
+ /**
675
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
676
+ * LTNP023 - Search Principal Audit Entity Types
677
+ */
678
+ lTNP023Raw(requestParameters, initOverrides) {
679
+ return __awaiter(this, void 0, void 0, function* () {
680
+ const requestOptions = yield this.lTNP023RequestOpts(requestParameters);
681
+ const response = yield this.request(requestOptions, initOverrides);
682
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListPrincipalAuditEntityTypeDTO_1.DataResponseDTOListPrincipalAuditEntityTypeDTOFromJSON)(jsonValue));
683
+ });
684
+ }
685
+ /**
686
+ * The kinds of record whose agent writes are kept, as a record\'s history (LTNP003) names them in entityType, each with the module that writes it. Read from the command facades the application runs, so it matches what the history records.
687
+ * LTNP023 - Search Principal Audit Entity Types
688
+ */
689
+ lTNP023(requestParameters, initOverrides) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ const response = yield this.lTNP023Raw(requestParameters, initOverrides);
692
+ return yield response.value();
693
+ });
694
+ }
695
+ /**
696
+ * Creates request options for lTNP100 without sending the request
697
+ */
698
+ lTNP100RequestOpts(requestParameters) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ if (requestParameters['id'] == null) {
701
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP100().');
702
+ }
703
+ if (requestParameters['xAppAccountId'] == null) {
704
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP100().');
705
+ }
706
+ if (requestParameters['principalUpdateDTO'] == null) {
707
+ throw new runtime.RequiredError('principalUpdateDTO', 'Required parameter "principalUpdateDTO" was null or undefined when calling lTNP100().');
708
+ }
709
+ const queryParameters = {};
710
+ const headerParameters = {};
711
+ headerParameters['Content-Type'] = 'application/json';
712
+ if (requestParameters['acceptLanguage'] != null) {
713
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
714
+ }
715
+ if (requestParameters['xAppAccountId'] != null) {
716
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
717
+ }
718
+ if (requestParameters['vergefyVersion'] != null) {
719
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
720
+ }
721
+ if (requestParameters['acceptTimezone'] != null) {
722
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
723
+ }
724
+ if (this.configuration && this.configuration.accessToken) {
725
+ const token = this.configuration.accessToken;
726
+ const tokenString = yield token("BearerAuth", []);
727
+ if (tokenString) {
728
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
729
+ }
730
+ }
731
+ let urlPath = `/platform/principals/{id}`;
732
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
733
+ return {
734
+ path: urlPath,
735
+ method: 'PUT',
736
+ headers: headerParameters,
737
+ query: queryParameters,
738
+ body: (0, PrincipalUpdateDTO_1.PrincipalUpdateDTOToJSON)(requestParameters['principalUpdateDTO']),
739
+ };
740
+ });
741
+ }
742
+ /**
743
+ * 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).
744
+ * LTNP100 - Update Principal
745
+ */
746
+ lTNP100Raw(requestParameters, initOverrides) {
747
+ return __awaiter(this, void 0, void 0, function* () {
748
+ const requestOptions = yield this.lTNP100RequestOpts(requestParameters);
749
+ const response = yield this.request(requestOptions, initOverrides);
750
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalDTO_1.DataResponseDTOPrincipalDTOFromJSON)(jsonValue));
751
+ });
752
+ }
753
+ /**
754
+ * 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).
755
+ * LTNP100 - Update Principal
756
+ */
757
+ lTNP100(requestParameters, initOverrides) {
758
+ return __awaiter(this, void 0, void 0, function* () {
759
+ const response = yield this.lTNP100Raw(requestParameters, initOverrides);
760
+ return yield response.value();
761
+ });
762
+ }
763
+ /**
764
+ * Creates request options for lTNP101 without sending the request
765
+ */
766
+ lTNP101RequestOpts(requestParameters) {
767
+ return __awaiter(this, void 0, void 0, function* () {
768
+ if (requestParameters['id'] == null) {
769
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP101().');
770
+ }
771
+ if (requestParameters['xAppAccountId'] == null) {
772
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP101().');
773
+ }
774
+ const queryParameters = {};
775
+ const headerParameters = {};
776
+ if (requestParameters['acceptLanguage'] != null) {
777
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
778
+ }
779
+ if (requestParameters['xAppAccountId'] != null) {
780
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
781
+ }
782
+ if (requestParameters['vergefyVersion'] != null) {
783
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
784
+ }
785
+ if (requestParameters['acceptTimezone'] != null) {
786
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
787
+ }
788
+ if (this.configuration && this.configuration.accessToken) {
789
+ const token = this.configuration.accessToken;
790
+ const tokenString = yield token("BearerAuth", []);
791
+ if (tokenString) {
792
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
793
+ }
794
+ }
795
+ let urlPath = `/platform/principals/{id}/switch-off`;
796
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
797
+ return {
798
+ path: urlPath,
799
+ method: 'POST',
800
+ headers: headerParameters,
801
+ query: queryParameters,
802
+ };
803
+ });
804
+ }
805
+ /**
806
+ * 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).
807
+ * LTNP101 - Switch Off Principal
808
+ */
809
+ lTNP101Raw(requestParameters, initOverrides) {
810
+ return __awaiter(this, void 0, void 0, function* () {
811
+ const requestOptions = yield this.lTNP101RequestOpts(requestParameters);
812
+ const response = yield this.request(requestOptions, initOverrides);
813
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalDTO_1.DataResponseDTOPrincipalDTOFromJSON)(jsonValue));
814
+ });
815
+ }
816
+ /**
817
+ * 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).
818
+ * LTNP101 - Switch Off Principal
819
+ */
820
+ lTNP101(requestParameters, initOverrides) {
821
+ return __awaiter(this, void 0, void 0, function* () {
822
+ const response = yield this.lTNP101Raw(requestParameters, initOverrides);
823
+ return yield response.value();
824
+ });
825
+ }
826
+ /**
827
+ * Creates request options for lTNP102 without sending the request
828
+ */
829
+ lTNP102RequestOpts(requestParameters) {
830
+ return __awaiter(this, void 0, void 0, function* () {
831
+ if (requestParameters['xAppAccountId'] == null) {
832
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP102().');
833
+ }
834
+ if (requestParameters['createAgentPrincipalDTO'] == null) {
835
+ throw new runtime.RequiredError('createAgentPrincipalDTO', 'Required parameter "createAgentPrincipalDTO" was null or undefined when calling lTNP102().');
836
+ }
837
+ const queryParameters = {};
838
+ const headerParameters = {};
839
+ headerParameters['Content-Type'] = 'application/json';
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/agents`;
860
+ return {
861
+ path: urlPath,
862
+ method: 'POST',
863
+ headers: headerParameters,
864
+ query: queryParameters,
865
+ body: (0, CreateAgentPrincipalDTO_1.CreateAgentPrincipalDTOToJSON)(requestParameters['createAgentPrincipalDTO']),
866
+ };
867
+ });
868
+ }
869
+ /**
870
+ * 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).
871
+ * LTNP102 - Create Agent Principal
872
+ */
873
+ lTNP102Raw(requestParameters, initOverrides) {
874
+ return __awaiter(this, void 0, void 0, function* () {
875
+ const requestOptions = yield this.lTNP102RequestOpts(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 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).
882
+ * LTNP102 - Create Agent Principal
883
+ */
884
+ lTNP102(requestParameters, initOverrides) {
885
+ return __awaiter(this, void 0, void 0, function* () {
886
+ const response = yield this.lTNP102Raw(requestParameters, initOverrides);
887
+ return yield response.value();
888
+ });
889
+ }
890
+ /**
891
+ * Creates request options for lTNP103 without sending the request
892
+ */
893
+ lTNP103RequestOpts(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 lTNP103().');
897
+ }
898
+ if (requestParameters['xAppAccountId'] == null) {
899
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP103().');
900
+ }
901
+ const queryParameters = {};
902
+ const headerParameters = {};
903
+ if (requestParameters['acceptLanguage'] != null) {
904
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
905
+ }
906
+ if (requestParameters['xAppAccountId'] != null) {
907
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
908
+ }
909
+ if (requestParameters['vergefyVersion'] != null) {
910
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
911
+ }
912
+ if (requestParameters['acceptTimezone'] != null) {
913
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
914
+ }
915
+ if (this.configuration && this.configuration.accessToken) {
916
+ const token = this.configuration.accessToken;
917
+ const tokenString = yield token("BearerAuth", []);
918
+ if (tokenString) {
919
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
920
+ }
921
+ }
922
+ let urlPath = `/platform/principals/{id}/switch-on`;
923
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
924
+ return {
925
+ path: urlPath,
926
+ method: 'POST',
927
+ headers: headerParameters,
928
+ query: queryParameters,
929
+ };
930
+ });
931
+ }
932
+ /**
933
+ * 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).
934
+ * LTNP103 - Switch On Principal
935
+ */
936
+ lTNP103Raw(requestParameters, initOverrides) {
937
+ return __awaiter(this, void 0, void 0, function* () {
938
+ const requestOptions = yield this.lTNP103RequestOpts(requestParameters);
939
+ const response = yield this.request(requestOptions, initOverrides);
940
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalDTO_1.DataResponseDTOPrincipalDTOFromJSON)(jsonValue));
941
+ });
942
+ }
943
+ /**
944
+ * 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).
945
+ * LTNP103 - Switch On Principal
946
+ */
947
+ lTNP103(requestParameters, initOverrides) {
948
+ return __awaiter(this, void 0, void 0, function* () {
949
+ const response = yield this.lTNP103Raw(requestParameters, initOverrides);
950
+ return yield response.value();
951
+ });
952
+ }
953
+ /**
954
+ * Creates request options for lTNP104 without sending the request
955
+ */
956
+ lTNP104RequestOpts(requestParameters) {
957
+ return __awaiter(this, void 0, void 0, function* () {
958
+ if (requestParameters['id'] == null) {
959
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP104().');
960
+ }
961
+ if (requestParameters['xAppAccountId'] == null) {
962
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP104().');
963
+ }
964
+ const queryParameters = {};
965
+ const headerParameters = {};
966
+ if (requestParameters['acceptLanguage'] != null) {
967
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
968
+ }
969
+ if (requestParameters['xAppAccountId'] != null) {
970
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
971
+ }
972
+ if (requestParameters['vergefyVersion'] != null) {
973
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
974
+ }
975
+ if (requestParameters['acceptTimezone'] != null) {
976
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
977
+ }
978
+ if (this.configuration && this.configuration.accessToken) {
979
+ const token = this.configuration.accessToken;
980
+ const tokenString = yield token("BearerAuth", []);
981
+ if (tokenString) {
982
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
983
+ }
984
+ }
985
+ let urlPath = `/platform/principals/{id}/rotate-key`;
986
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
987
+ return {
988
+ path: urlPath,
989
+ method: 'POST',
990
+ headers: headerParameters,
991
+ query: queryParameters,
992
+ };
993
+ });
994
+ }
995
+ /**
996
+ * 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).
997
+ * LTNP104 - Rotate Agent Principal Key
998
+ */
999
+ lTNP104Raw(requestParameters, initOverrides) {
1000
+ return __awaiter(this, void 0, void 0, function* () {
1001
+ const requestOptions = yield this.lTNP104RequestOpts(requestParameters);
1002
+ const response = yield this.request(requestOptions, initOverrides);
1003
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOAgentPrincipalCredentialsDTO_1.DataResponseDTOAgentPrincipalCredentialsDTOFromJSON)(jsonValue));
1004
+ });
1005
+ }
1006
+ /**
1007
+ * 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).
1008
+ * LTNP104 - Rotate Agent Principal Key
1009
+ */
1010
+ lTNP104(requestParameters, initOverrides) {
1011
+ return __awaiter(this, void 0, void 0, function* () {
1012
+ const response = yield this.lTNP104Raw(requestParameters, initOverrides);
1013
+ return yield response.value();
1014
+ });
1015
+ }
1016
+ /**
1017
+ * Creates request options for lTNP105 without sending the request
1018
+ */
1019
+ lTNP105RequestOpts(requestParameters) {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ if (requestParameters['id'] == null) {
1022
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP105().');
1023
+ }
1024
+ if (requestParameters['xAppAccountId'] == null) {
1025
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP105().');
1026
+ }
1027
+ if (requestParameters['transferPrincipalSponsorDTO'] == null) {
1028
+ throw new runtime.RequiredError('transferPrincipalSponsorDTO', 'Required parameter "transferPrincipalSponsorDTO" was null or undefined when calling lTNP105().');
1029
+ }
1030
+ const queryParameters = {};
1031
+ const headerParameters = {};
1032
+ headerParameters['Content-Type'] = 'application/json';
1033
+ if (requestParameters['acceptLanguage'] != null) {
1034
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1035
+ }
1036
+ if (requestParameters['xAppAccountId'] != null) {
1037
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1038
+ }
1039
+ if (requestParameters['vergefyVersion'] != null) {
1040
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1041
+ }
1042
+ if (requestParameters['acceptTimezone'] != null) {
1043
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1044
+ }
1045
+ if (this.configuration && this.configuration.accessToken) {
1046
+ const token = this.configuration.accessToken;
1047
+ const tokenString = yield token("BearerAuth", []);
1048
+ if (tokenString) {
1049
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1050
+ }
1051
+ }
1052
+ let urlPath = `/platform/principals/{id}/sponsor`;
1053
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1054
+ return {
1055
+ path: urlPath,
1056
+ method: 'PUT',
1057
+ headers: headerParameters,
1058
+ query: queryParameters,
1059
+ body: (0, TransferPrincipalSponsorDTO_1.TransferPrincipalSponsorDTOToJSON)(requestParameters['transferPrincipalSponsorDTO']),
1060
+ };
1061
+ });
1062
+ }
1063
+ /**
1064
+ * 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).
1065
+ * LTNP105 - Transfer Agent Principal Sponsor
1066
+ */
1067
+ lTNP105Raw(requestParameters, initOverrides) {
1068
+ return __awaiter(this, void 0, void 0, function* () {
1069
+ const requestOptions = yield this.lTNP105RequestOpts(requestParameters);
1070
+ const response = yield this.request(requestOptions, initOverrides);
1071
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalDTO_1.DataResponseDTOPrincipalDTOFromJSON)(jsonValue));
1072
+ });
1073
+ }
1074
+ /**
1075
+ * 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).
1076
+ * LTNP105 - Transfer Agent Principal Sponsor
1077
+ */
1078
+ lTNP105(requestParameters, initOverrides) {
1079
+ return __awaiter(this, void 0, void 0, function* () {
1080
+ const response = yield this.lTNP105Raw(requestParameters, initOverrides);
1081
+ return yield response.value();
1082
+ });
1083
+ }
1084
+ /**
1085
+ * Creates request options for lTNP110 without sending the request
1086
+ */
1087
+ lTNP110RequestOpts(requestParameters) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ if (requestParameters['id'] == null) {
1090
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP110().');
1091
+ }
1092
+ if (requestParameters['xAppAccountId'] == null) {
1093
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP110().');
1094
+ }
1095
+ const queryParameters = {};
1096
+ const headerParameters = {};
1097
+ if (requestParameters['acceptLanguage'] != null) {
1098
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1099
+ }
1100
+ if (requestParameters['xAppAccountId'] != null) {
1101
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1102
+ }
1103
+ if (requestParameters['vergefyVersion'] != null) {
1104
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1105
+ }
1106
+ if (requestParameters['acceptTimezone'] != null) {
1107
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1108
+ }
1109
+ if (this.configuration && this.configuration.accessToken) {
1110
+ const token = this.configuration.accessToken;
1111
+ const tokenString = yield token("BearerAuth", []);
1112
+ if (tokenString) {
1113
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1114
+ }
1115
+ }
1116
+ let urlPath = `/platform/principals/approvals/{id}/approve`;
1117
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1118
+ return {
1119
+ path: urlPath,
1120
+ method: 'POST',
1121
+ headers: headerParameters,
1122
+ query: queryParameters,
1123
+ };
1124
+ });
1125
+ }
1126
+ /**
1127
+ * 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.
1128
+ * LTNP110 - Approve Principal Approval
1129
+ */
1130
+ lTNP110Raw(requestParameters, initOverrides) {
1131
+ return __awaiter(this, void 0, void 0, function* () {
1132
+ const requestOptions = yield this.lTNP110RequestOpts(requestParameters);
1133
+ const response = yield this.request(requestOptions, initOverrides);
1134
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalApprovalRequestDTO_1.DataResponseDTOPrincipalApprovalRequestDTOFromJSON)(jsonValue));
1135
+ });
1136
+ }
1137
+ /**
1138
+ * 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.
1139
+ * LTNP110 - Approve Principal Approval
1140
+ */
1141
+ lTNP110(requestParameters, initOverrides) {
1142
+ return __awaiter(this, void 0, void 0, function* () {
1143
+ const response = yield this.lTNP110Raw(requestParameters, initOverrides);
1144
+ return yield response.value();
1145
+ });
1146
+ }
1147
+ /**
1148
+ * Creates request options for lTNP111 without sending the request
1149
+ */
1150
+ lTNP111RequestOpts(requestParameters) {
1151
+ return __awaiter(this, void 0, void 0, function* () {
1152
+ if (requestParameters['id'] == null) {
1153
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP111().');
1154
+ }
1155
+ if (requestParameters['xAppAccountId'] == null) {
1156
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP111().');
1157
+ }
1158
+ if (requestParameters['principalApprovalDecisionDTO'] == null) {
1159
+ throw new runtime.RequiredError('principalApprovalDecisionDTO', 'Required parameter "principalApprovalDecisionDTO" was null or undefined when calling lTNP111().');
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/approvals/{id}/reject`;
1184
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
1185
+ return {
1186
+ path: urlPath,
1187
+ method: 'POST',
1188
+ headers: headerParameters,
1189
+ query: queryParameters,
1190
+ body: (0, PrincipalApprovalDecisionDTO_1.PrincipalApprovalDecisionDTOToJSON)(requestParameters['principalApprovalDecisionDTO']),
1191
+ };
1192
+ });
1193
+ }
1194
+ /**
1195
+ * Refuses the held action with a reason; it never runs. Refused to an agent.
1196
+ * LTNP111 - Reject Principal Approval
1197
+ */
1198
+ lTNP111Raw(requestParameters, initOverrides) {
1199
+ return __awaiter(this, void 0, void 0, function* () {
1200
+ const requestOptions = yield this.lTNP111RequestOpts(requestParameters);
1201
+ const response = yield this.request(requestOptions, initOverrides);
1202
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalApprovalRequestDTO_1.DataResponseDTOPrincipalApprovalRequestDTOFromJSON)(jsonValue));
1203
+ });
1204
+ }
1205
+ /**
1206
+ * Refuses the held action with a reason; it never runs. Refused to an agent.
1207
+ * LTNP111 - Reject Principal Approval
1208
+ */
1209
+ lTNP111(requestParameters, initOverrides) {
1210
+ return __awaiter(this, void 0, void 0, function* () {
1211
+ const response = yield this.lTNP111Raw(requestParameters, initOverrides);
1212
+ return yield response.value();
1213
+ });
1214
+ }
1215
+ /**
1216
+ * Creates request options for lTNP120 without sending the request
1217
+ */
1218
+ lTNP120RequestOpts(requestParameters) {
1219
+ return __awaiter(this, void 0, void 0, function* () {
1220
+ if (requestParameters['xAppAccountId'] == null) {
1221
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP120().');
1222
+ }
1223
+ if (requestParameters['principalPolicyDTO'] == null) {
1224
+ throw new runtime.RequiredError('principalPolicyDTO', 'Required parameter "principalPolicyDTO" was null or undefined when calling lTNP120().');
1225
+ }
1226
+ const queryParameters = {};
1227
+ const headerParameters = {};
1228
+ headerParameters['Content-Type'] = 'application/json';
1229
+ if (requestParameters['acceptLanguage'] != null) {
1230
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1231
+ }
1232
+ if (requestParameters['xAppAccountId'] != null) {
1233
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1234
+ }
1235
+ if (requestParameters['vergefyVersion'] != null) {
1236
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1237
+ }
1238
+ if (requestParameters['acceptTimezone'] != null) {
1239
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1240
+ }
1241
+ if (this.configuration && this.configuration.accessToken) {
1242
+ const token = this.configuration.accessToken;
1243
+ const tokenString = yield token("BearerAuth", []);
1244
+ if (tokenString) {
1245
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1246
+ }
1247
+ }
1248
+ let urlPath = `/platform/principals/policy`;
1249
+ return {
1250
+ path: urlPath,
1251
+ method: 'PUT',
1252
+ headers: headerParameters,
1253
+ query: queryParameters,
1254
+ body: (0, PrincipalPolicyDTO_1.PrincipalPolicyDTOToJSON)(requestParameters['principalPolicyDTO']),
1255
+ };
1256
+ });
1257
+ }
1258
+ /**
1259
+ * 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.
1260
+ * LTNP120 - Update Principal Policy
1261
+ */
1262
+ lTNP120Raw(requestParameters, initOverrides) {
1263
+ return __awaiter(this, void 0, void 0, function* () {
1264
+ const requestOptions = yield this.lTNP120RequestOpts(requestParameters);
1265
+ const response = yield this.request(requestOptions, initOverrides);
1266
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOPrincipalPolicyDTO_1.DataResponseDTOPrincipalPolicyDTOFromJSON)(jsonValue));
1267
+ });
1268
+ }
1269
+ /**
1270
+ * 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.
1271
+ * LTNP120 - Update Principal Policy
1272
+ */
1273
+ lTNP120(requestParameters, initOverrides) {
1274
+ return __awaiter(this, void 0, void 0, function* () {
1275
+ const response = yield this.lTNP120Raw(requestParameters, initOverrides);
1276
+ return yield response.value();
1277
+ });
1278
+ }
1279
+ /**
1280
+ * Creates request options for lTNP200 without sending the request
1281
+ */
1282
+ lTNP200RequestOpts(requestParameters) {
1283
+ return __awaiter(this, void 0, void 0, function* () {
1284
+ if (requestParameters['xAppAccountId'] == null) {
1285
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP200().');
1286
+ }
1287
+ if (requestParameters['agentTokenRequestDTO'] == null) {
1288
+ throw new runtime.RequiredError('agentTokenRequestDTO', 'Required parameter "agentTokenRequestDTO" was null or undefined when calling lTNP200().');
1289
+ }
1290
+ const queryParameters = {};
1291
+ const headerParameters = {};
1292
+ headerParameters['Content-Type'] = 'application/json';
1293
+ if (requestParameters['acceptLanguage'] != null) {
1294
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1295
+ }
1296
+ if (requestParameters['xAppAccountId'] != null) {
1297
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1298
+ }
1299
+ if (requestParameters['vergefyVersion'] != null) {
1300
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1301
+ }
1302
+ if (requestParameters['acceptTimezone'] != null) {
1303
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1304
+ }
1305
+ if (this.configuration && this.configuration.accessToken) {
1306
+ const token = this.configuration.accessToken;
1307
+ const tokenString = yield token("BearerAuth", []);
1308
+ if (tokenString) {
1309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1310
+ }
1311
+ }
1312
+ let urlPath = `/platform/principals/agent-tokens`;
1313
+ return {
1314
+ path: urlPath,
1315
+ method: 'POST',
1316
+ headers: headerParameters,
1317
+ query: queryParameters,
1318
+ body: (0, AgentTokenRequestDTO_1.AgentTokenRequestDTOToJSON)(requestParameters['agentTokenRequestDTO']),
1319
+ };
1320
+ });
1321
+ }
1322
+ /**
1323
+ * 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.
1324
+ * LTNP200 - Exchange Agent Token
1325
+ */
1326
+ lTNP200Raw(requestParameters, initOverrides) {
1327
+ return __awaiter(this, void 0, void 0, function* () {
1328
+ const requestOptions = yield this.lTNP200RequestOpts(requestParameters);
1329
+ const response = yield this.request(requestOptions, initOverrides);
1330
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOAgentTokenDTO_1.DataResponseDTOAgentTokenDTOFromJSON)(jsonValue));
1331
+ });
1332
+ }
1333
+ /**
1334
+ * 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.
1335
+ * LTNP200 - Exchange Agent Token
1336
+ */
1337
+ lTNP200(requestParameters, initOverrides) {
1338
+ return __awaiter(this, void 0, void 0, function* () {
1339
+ const response = yield this.lTNP200Raw(requestParameters, initOverrides);
1340
+ return yield response.value();
1341
+ });
1342
+ }
1343
+ }
1344
+ exports.PLATFORMLTNPTenantPrincipalsApi = PLATFORMLTNPTenantPrincipalsApi;
1345
+ /**
1346
+ * @export
1347
+ */
1348
+ exports.LTNP001TypeEnum = {
1349
+ Human: 'HUMAN',
1350
+ Service: 'SERVICE',
1351
+ Agent: 'AGENT'
1352
+ };
1353
+ /**
1354
+ * @export
1355
+ */
1356
+ exports.LTNP001StatusEnum = {
1357
+ Active: 'ACTIVE',
1358
+ Revoked: 'REVOKED',
1359
+ Suspended: 'SUSPENDED'
1360
+ };
1361
+ /**
1362
+ * @export
1363
+ */
1364
+ exports.LTNP001AudienceEnum = {
1365
+ Personal: 'PERSONAL',
1366
+ Shared: 'SHARED'
1367
+ };
1368
+ /**
1369
+ * @export
1370
+ */
1371
+ exports.LTNP010StatusEnum = {
1372
+ Pending: 'PENDING',
1373
+ Running: 'RUNNING',
1374
+ Approved: 'APPROVED',
1375
+ Rejected: 'REJECTED',
1376
+ Failed: 'FAILED',
1377
+ Expired: 'EXPIRED'
1378
+ };