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