@flowcore/sdk 1.49.0 → 1.51.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 (343) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +47 -0
  3. package/esm/_dnt.shims.d.ts +1 -1
  4. package/esm/commands/adapter/reset-adapter.d.ts +52 -0
  5. package/esm/commands/adapter/reset-adapter.d.ts.map +1 -0
  6. package/esm/commands/adapter/reset-adapter.js +38 -0
  7. package/esm/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
  8. package/esm/commands/api-key/api-key.create.js +8 -21
  9. package/esm/commands/api-key/api-key.delete.js +4 -12
  10. package/esm/commands/api-key/api-key.list.js +4 -12
  11. package/esm/commands/data-core/data-core.create.js +4 -12
  12. package/esm/commands/data-core/data-core.request-delete.js +4 -12
  13. package/esm/commands/event-type/event-type.create.js +4 -12
  14. package/esm/commands/event-type/event-type.request-delete.js +4 -12
  15. package/esm/commands/event-type/event-type.request-truncate.js +4 -12
  16. package/esm/commands/events/event.list.js +4 -12
  17. package/esm/commands/events/events.fetch-time-buckets-by-names.js +4 -12
  18. package/esm/commands/events/events.fetch.js +4 -12
  19. package/esm/commands/events/time-bucket.list.js +4 -12
  20. package/esm/commands/flow-type/flow-type.create.js +4 -12
  21. package/esm/commands/flow-type/flow-type.request-delete.js +4 -12
  22. package/esm/commands/iam/permissions/get-user-permissions.d.ts +48 -0
  23. package/esm/commands/iam/permissions/get-user-permissions.d.ts.map +1 -0
  24. package/esm/commands/iam/permissions/get-user-permissions.js +44 -0
  25. package/esm/commands/iam/policies/create-policy.d.ts +89 -0
  26. package/esm/commands/iam/policies/create-policy.d.ts.map +1 -0
  27. package/esm/commands/iam/policies/create-policy.js +68 -0
  28. package/esm/commands/iam/policies/get-policy.d.ts +35 -0
  29. package/esm/commands/iam/policies/get-policy.d.ts.map +1 -0
  30. package/esm/commands/iam/policies/get-policy.js +36 -0
  31. package/esm/commands/iam/policies/id/archive-policy.d.ts +45 -0
  32. package/esm/commands/iam/policies/id/archive-policy.d.ts.map +1 -0
  33. package/esm/commands/iam/policies/id/archive-policy.js +41 -0
  34. package/esm/commands/iam/policies/id/get-policy.d.ts +45 -0
  35. package/esm/commands/iam/policies/id/get-policy.d.ts.map +1 -0
  36. package/esm/commands/iam/policies/id/get-policy.js +39 -0
  37. package/esm/commands/iam/policies/id/update-policy.d.ts +53 -0
  38. package/esm/commands/iam/policies/id/update-policy.d.ts.map +1 -0
  39. package/esm/commands/iam/policies/id/update-policy.js +45 -0
  40. package/esm/commands/iam/policy-associations/get-key-policies.d.ts +35 -0
  41. package/esm/commands/iam/policy-associations/get-key-policies.d.ts.map +1 -0
  42. package/esm/commands/iam/policy-associations/get-key-policies.js +76 -0
  43. package/esm/commands/iam/policy-associations/get-organization-policies.d.ts +35 -0
  44. package/esm/commands/iam/policy-associations/get-organization-policies.d.ts.map +1 -0
  45. package/esm/commands/iam/policy-associations/get-organization-policies.js +79 -0
  46. package/esm/commands/iam/policy-associations/get-policy-associations.d.ts +83 -0
  47. package/esm/commands/iam/policy-associations/get-policy-associations.d.ts.map +1 -0
  48. package/esm/commands/iam/policy-associations/get-policy-associations.js +108 -0
  49. package/esm/commands/iam/policy-associations/get-role-policies.d.ts +35 -0
  50. package/esm/commands/iam/policy-associations/get-role-policies.d.ts.map +1 -0
  51. package/esm/commands/iam/policy-associations/get-role-policies.js +64 -0
  52. package/esm/commands/iam/policy-associations/get-user-policies.d.ts +37 -0
  53. package/esm/commands/iam/policy-associations/get-user-policies.d.ts.map +1 -0
  54. package/esm/commands/iam/policy-associations/get-user-policies.js +36 -0
  55. package/esm/commands/iam/policy-associations/link-key-policy.d.ts +53 -0
  56. package/esm/commands/iam/policy-associations/link-key-policy.d.ts.map +1 -0
  57. package/esm/commands/iam/policy-associations/link-key-policy.js +51 -0
  58. package/esm/commands/iam/policy-associations/link-role-policy.d.ts +53 -0
  59. package/esm/commands/iam/policy-associations/link-role-policy.d.ts.map +1 -0
  60. package/esm/commands/iam/policy-associations/link-role-policy.js +51 -0
  61. package/esm/commands/iam/policy-associations/link-user-policy.d.ts +53 -0
  62. package/esm/commands/iam/policy-associations/link-user-policy.d.ts.map +1 -0
  63. package/esm/commands/iam/policy-associations/link-user-policy.js +51 -0
  64. package/esm/commands/iam/policy-associations/unlink-key-policy.d.ts +41 -0
  65. package/esm/commands/iam/policy-associations/unlink-key-policy.d.ts.map +1 -0
  66. package/esm/commands/iam/policy-associations/unlink-key-policy.js +43 -0
  67. package/esm/commands/iam/policy-associations/unlink-role-policy.d.ts +41 -0
  68. package/esm/commands/iam/policy-associations/unlink-role-policy.d.ts.map +1 -0
  69. package/esm/commands/iam/policy-associations/unlink-role-policy.js +43 -0
  70. package/esm/commands/iam/policy-associations/unlink-user-policy.d.ts +41 -0
  71. package/esm/commands/iam/policy-associations/unlink-user-policy.d.ts.map +1 -0
  72. package/esm/commands/iam/policy-associations/unlink-user-policy.js +43 -0
  73. package/esm/commands/iam/role-associations/get-key-roles.d.ts +35 -0
  74. package/esm/commands/iam/role-associations/get-key-roles.d.ts.map +1 -0
  75. package/esm/commands/iam/role-associations/get-key-roles.js +36 -0
  76. package/esm/commands/iam/role-associations/get-organization-roles.d.ts +35 -0
  77. package/esm/commands/iam/role-associations/get-organization-roles.d.ts.map +1 -0
  78. package/esm/commands/iam/role-associations/get-organization-roles.js +53 -0
  79. package/esm/commands/iam/role-associations/get-role-associations.d.ts +70 -0
  80. package/esm/commands/iam/role-associations/get-role-associations.d.ts.map +1 -0
  81. package/esm/commands/iam/role-associations/get-role-associations.js +58 -0
  82. package/esm/commands/iam/role-associations/get-user-roles.d.ts +37 -0
  83. package/esm/commands/iam/role-associations/get-user-roles.d.ts.map +1 -0
  84. package/esm/commands/iam/role-associations/get-user-roles.js +41 -0
  85. package/esm/commands/iam/role-associations/link-key-role.d.ts +53 -0
  86. package/esm/commands/iam/role-associations/link-key-role.d.ts.map +1 -0
  87. package/esm/commands/iam/role-associations/link-key-role.js +51 -0
  88. package/esm/commands/iam/role-associations/link-user-role.d.ts +53 -0
  89. package/esm/commands/iam/role-associations/link-user-role.d.ts.map +1 -0
  90. package/esm/commands/iam/{user-role-association.create.js → role-associations/link-user-role.js} +19 -8
  91. package/esm/commands/iam/role-associations/unlink-key-role.d.ts +41 -0
  92. package/esm/commands/iam/role-associations/unlink-key-role.d.ts.map +1 -0
  93. package/esm/commands/iam/role-associations/unlink-key-role.js +43 -0
  94. package/esm/commands/iam/role-associations/unlink-user-role.d.ts +41 -0
  95. package/esm/commands/iam/role-associations/unlink-user-role.d.ts.map +1 -0
  96. package/esm/commands/iam/role-associations/unlink-user-role.js +43 -0
  97. package/esm/commands/iam/roles/create-role.d.ts +60 -0
  98. package/esm/commands/iam/roles/create-role.d.ts.map +1 -0
  99. package/esm/commands/iam/roles/create-role.js +55 -0
  100. package/{script/commands/iam/role.list.d.ts → esm/commands/iam/roles/get-roles.d.ts} +10 -8
  101. package/esm/commands/iam/roles/get-roles.d.ts.map +1 -0
  102. package/esm/commands/iam/roles/get-roles.js +36 -0
  103. package/esm/commands/iam/roles/id/archive-role.d.ts +45 -0
  104. package/esm/commands/iam/roles/id/archive-role.d.ts.map +1 -0
  105. package/esm/commands/iam/roles/id/archive-role.js +41 -0
  106. package/esm/commands/iam/roles/id/get-role.d.ts +35 -0
  107. package/esm/commands/iam/roles/id/get-role.d.ts.map +1 -0
  108. package/esm/commands/iam/roles/id/get-role.js +35 -0
  109. package/esm/commands/iam/roles/id/update-role.d.ts +47 -0
  110. package/esm/commands/iam/roles/id/update-role.d.ts.map +1 -0
  111. package/esm/commands/iam/roles/id/update-role.js +46 -0
  112. package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts +88 -0
  113. package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts.map +1 -0
  114. package/esm/commands/iam/tenant-iam-audit/get-audit-for-tenant.js +101 -0
  115. package/esm/commands/iam/validate/validate-key.d.ts +43 -0
  116. package/esm/commands/iam/validate/validate-key.d.ts.map +1 -0
  117. package/esm/commands/iam/validate/validate-key.js +42 -0
  118. package/esm/commands/iam/validate/validate-user.d.ts +77 -0
  119. package/esm/commands/iam/validate/validate-user.d.ts.map +1 -0
  120. package/esm/commands/iam/validate/validate-user.js +57 -0
  121. package/esm/commands/index.d.ts +34 -7
  122. package/esm/commands/index.d.ts.map +1 -1
  123. package/esm/commands/index.js +36 -8
  124. package/esm/commands/ingestion/ingest.batch.js +5 -18
  125. package/esm/commands/ingestion/ingest.event.js +5 -18
  126. package/esm/commands/scenario/scenario.create.js +4 -12
  127. package/esm/commands/scenario/scenario.delete.js +4 -12
  128. package/esm/commands/scenario/scenario.fetch.js +4 -12
  129. package/esm/commands/scenario/scenario.list.js +4 -12
  130. package/esm/commands/scenario/scenario.update.js +4 -12
  131. package/esm/commands/secret/secret.create.js +4 -12
  132. package/esm/commands/secret/secret.delete.js +4 -12
  133. package/esm/commands/secret/secret.list.js +4 -12
  134. package/esm/commands/security/pat.create.js +4 -12
  135. package/esm/commands/security/pat.delete.js +4 -12
  136. package/esm/commands/security/pat.exchange.js +4 -12
  137. package/esm/commands/security/pat.get.js +4 -12
  138. package/esm/commands/security/pat.list.js +4 -12
  139. package/esm/commands/tenant/tenant.list.js +4 -12
  140. package/esm/commands/variable/variable.create.js +4 -12
  141. package/esm/commands/variable/variable.delete.js +4 -12
  142. package/esm/commands/variable/variable.list.js +4 -12
  143. package/esm/common/command-graphql.js +4 -12
  144. package/esm/common/command.js +20 -45
  145. package/esm/common/flowcore-client.js +4 -18
  146. package/esm/common/notification-client.js +15 -72
  147. package/esm/common/websocket-client.js +16 -80
  148. package/esm/exceptions/client-error.js +6 -18
  149. package/esm/exceptions/invalid-response.js +2 -6
  150. package/esm/utils/local-cache.js +5 -19
  151. package/package.json +1 -1
  152. package/script/_dnt.shims.d.ts +1 -1
  153. package/script/commands/adapter/reset-adapter.d.ts +52 -0
  154. package/script/commands/adapter/reset-adapter.d.ts.map +1 -0
  155. package/script/commands/adapter/reset-adapter.js +42 -0
  156. package/script/commands/ai-agent-coordinator/conversation-stream.command.js +1 -6
  157. package/script/commands/api-key/api-key.create.js +8 -21
  158. package/script/commands/api-key/api-key.delete.js +4 -12
  159. package/script/commands/api-key/api-key.list.js +4 -12
  160. package/script/commands/data-core/data-core.create.js +4 -12
  161. package/script/commands/data-core/data-core.request-delete.js +4 -12
  162. package/script/commands/event-type/event-type.create.js +4 -12
  163. package/script/commands/event-type/event-type.request-delete.js +4 -12
  164. package/script/commands/event-type/event-type.request-truncate.js +4 -12
  165. package/script/commands/events/event.list.js +4 -12
  166. package/script/commands/events/events.fetch-time-buckets-by-names.js +4 -12
  167. package/script/commands/events/events.fetch.js +4 -12
  168. package/script/commands/events/time-bucket.list.js +4 -12
  169. package/script/commands/flow-type/flow-type.create.js +4 -12
  170. package/script/commands/flow-type/flow-type.request-delete.js +4 -12
  171. package/script/commands/iam/permissions/get-user-permissions.d.ts +48 -0
  172. package/script/commands/iam/permissions/get-user-permissions.d.ts.map +1 -0
  173. package/script/commands/iam/permissions/get-user-permissions.js +48 -0
  174. package/script/commands/iam/policies/create-policy.d.ts +89 -0
  175. package/script/commands/iam/policies/create-policy.d.ts.map +1 -0
  176. package/script/commands/iam/policies/create-policy.js +72 -0
  177. package/script/commands/iam/policies/get-policy.d.ts +35 -0
  178. package/script/commands/iam/policies/get-policy.d.ts.map +1 -0
  179. package/script/commands/iam/policies/get-policy.js +40 -0
  180. package/script/commands/iam/policies/id/archive-policy.d.ts +45 -0
  181. package/script/commands/iam/policies/id/archive-policy.d.ts.map +1 -0
  182. package/script/commands/iam/policies/id/archive-policy.js +45 -0
  183. package/script/commands/iam/policies/id/get-policy.d.ts +45 -0
  184. package/script/commands/iam/policies/id/get-policy.d.ts.map +1 -0
  185. package/script/commands/iam/policies/id/get-policy.js +43 -0
  186. package/script/commands/iam/policies/id/update-policy.d.ts +53 -0
  187. package/script/commands/iam/policies/id/update-policy.d.ts.map +1 -0
  188. package/script/commands/iam/policies/id/update-policy.js +49 -0
  189. package/script/commands/iam/policy-associations/get-key-policies.d.ts +35 -0
  190. package/script/commands/iam/policy-associations/get-key-policies.d.ts.map +1 -0
  191. package/script/commands/iam/policy-associations/get-key-policies.js +80 -0
  192. package/script/commands/iam/policy-associations/get-organization-policies.d.ts +35 -0
  193. package/script/commands/iam/policy-associations/get-organization-policies.d.ts.map +1 -0
  194. package/script/commands/iam/policy-associations/get-organization-policies.js +83 -0
  195. package/script/commands/iam/policy-associations/get-policy-associations.d.ts +83 -0
  196. package/script/commands/iam/policy-associations/get-policy-associations.d.ts.map +1 -0
  197. package/script/commands/iam/policy-associations/get-policy-associations.js +112 -0
  198. package/script/commands/iam/policy-associations/get-role-policies.d.ts +35 -0
  199. package/script/commands/iam/policy-associations/get-role-policies.d.ts.map +1 -0
  200. package/script/commands/iam/policy-associations/get-role-policies.js +68 -0
  201. package/script/commands/iam/policy-associations/get-user-policies.d.ts +37 -0
  202. package/script/commands/iam/policy-associations/get-user-policies.d.ts.map +1 -0
  203. package/script/commands/iam/policy-associations/get-user-policies.js +40 -0
  204. package/script/commands/iam/policy-associations/link-key-policy.d.ts +53 -0
  205. package/script/commands/iam/policy-associations/link-key-policy.d.ts.map +1 -0
  206. package/script/commands/iam/policy-associations/link-key-policy.js +55 -0
  207. package/script/commands/iam/policy-associations/link-role-policy.d.ts +53 -0
  208. package/script/commands/iam/policy-associations/link-role-policy.d.ts.map +1 -0
  209. package/script/commands/iam/policy-associations/link-role-policy.js +55 -0
  210. package/script/commands/iam/policy-associations/link-user-policy.d.ts +53 -0
  211. package/script/commands/iam/policy-associations/link-user-policy.d.ts.map +1 -0
  212. package/script/commands/iam/policy-associations/link-user-policy.js +55 -0
  213. package/script/commands/iam/policy-associations/unlink-key-policy.d.ts +41 -0
  214. package/script/commands/iam/policy-associations/unlink-key-policy.d.ts.map +1 -0
  215. package/script/commands/iam/policy-associations/unlink-key-policy.js +47 -0
  216. package/script/commands/iam/policy-associations/unlink-role-policy.d.ts +41 -0
  217. package/script/commands/iam/policy-associations/unlink-role-policy.d.ts.map +1 -0
  218. package/script/commands/iam/policy-associations/unlink-role-policy.js +47 -0
  219. package/script/commands/iam/policy-associations/unlink-user-policy.d.ts +41 -0
  220. package/script/commands/iam/policy-associations/unlink-user-policy.d.ts.map +1 -0
  221. package/script/commands/iam/policy-associations/unlink-user-policy.js +47 -0
  222. package/script/commands/iam/role-associations/get-key-roles.d.ts +35 -0
  223. package/script/commands/iam/role-associations/get-key-roles.d.ts.map +1 -0
  224. package/script/commands/iam/role-associations/get-key-roles.js +40 -0
  225. package/script/commands/iam/role-associations/get-organization-roles.d.ts +35 -0
  226. package/script/commands/iam/role-associations/get-organization-roles.d.ts.map +1 -0
  227. package/script/commands/iam/role-associations/get-organization-roles.js +57 -0
  228. package/script/commands/iam/role-associations/get-role-associations.d.ts +70 -0
  229. package/script/commands/iam/role-associations/get-role-associations.d.ts.map +1 -0
  230. package/script/commands/iam/role-associations/get-role-associations.js +62 -0
  231. package/script/commands/iam/role-associations/get-user-roles.d.ts +37 -0
  232. package/script/commands/iam/role-associations/get-user-roles.d.ts.map +1 -0
  233. package/script/commands/iam/role-associations/get-user-roles.js +45 -0
  234. package/script/commands/iam/role-associations/link-key-role.d.ts +53 -0
  235. package/script/commands/iam/role-associations/link-key-role.d.ts.map +1 -0
  236. package/script/commands/iam/role-associations/link-key-role.js +55 -0
  237. package/script/commands/iam/role-associations/link-user-role.d.ts +53 -0
  238. package/script/commands/iam/role-associations/link-user-role.d.ts.map +1 -0
  239. package/script/commands/iam/{user-role-association.create.js → role-associations/link-user-role.js} +21 -10
  240. package/script/commands/iam/role-associations/unlink-key-role.d.ts +41 -0
  241. package/script/commands/iam/role-associations/unlink-key-role.d.ts.map +1 -0
  242. package/script/commands/iam/role-associations/unlink-key-role.js +47 -0
  243. package/script/commands/iam/role-associations/unlink-user-role.d.ts +41 -0
  244. package/script/commands/iam/role-associations/unlink-user-role.d.ts.map +1 -0
  245. package/script/commands/iam/role-associations/unlink-user-role.js +47 -0
  246. package/script/commands/iam/roles/create-role.d.ts +60 -0
  247. package/script/commands/iam/roles/create-role.d.ts.map +1 -0
  248. package/script/commands/iam/roles/create-role.js +59 -0
  249. package/{esm/commands/iam/role.list.d.ts → script/commands/iam/roles/get-roles.d.ts} +10 -8
  250. package/script/commands/iam/roles/get-roles.d.ts.map +1 -0
  251. package/script/commands/iam/roles/get-roles.js +40 -0
  252. package/script/commands/iam/roles/id/archive-role.d.ts +45 -0
  253. package/script/commands/iam/roles/id/archive-role.d.ts.map +1 -0
  254. package/script/commands/iam/roles/id/archive-role.js +45 -0
  255. package/script/commands/iam/roles/id/get-role.d.ts +35 -0
  256. package/script/commands/iam/roles/id/get-role.d.ts.map +1 -0
  257. package/script/commands/iam/roles/id/get-role.js +39 -0
  258. package/script/commands/iam/roles/id/update-role.d.ts +47 -0
  259. package/script/commands/iam/roles/id/update-role.d.ts.map +1 -0
  260. package/script/commands/iam/roles/id/update-role.js +50 -0
  261. package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts +88 -0
  262. package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.d.ts.map +1 -0
  263. package/script/commands/iam/tenant-iam-audit/get-audit-for-tenant.js +105 -0
  264. package/script/commands/iam/validate/validate-key.d.ts +43 -0
  265. package/script/commands/iam/validate/validate-key.d.ts.map +1 -0
  266. package/script/commands/iam/validate/validate-key.js +46 -0
  267. package/script/commands/iam/validate/validate-user.d.ts +77 -0
  268. package/script/commands/iam/validate/validate-user.d.ts.map +1 -0
  269. package/script/commands/iam/validate/validate-user.js +61 -0
  270. package/script/commands/index.d.ts +34 -7
  271. package/script/commands/index.d.ts.map +1 -1
  272. package/script/commands/index.js +36 -8
  273. package/script/commands/ingestion/ingest.batch.js +5 -18
  274. package/script/commands/ingestion/ingest.event.js +5 -18
  275. package/script/commands/scenario/scenario.create.js +4 -12
  276. package/script/commands/scenario/scenario.delete.js +4 -12
  277. package/script/commands/scenario/scenario.fetch.js +4 -12
  278. package/script/commands/scenario/scenario.list.js +4 -12
  279. package/script/commands/scenario/scenario.update.js +4 -12
  280. package/script/commands/secret/secret.create.js +4 -12
  281. package/script/commands/secret/secret.delete.js +4 -12
  282. package/script/commands/secret/secret.list.js +4 -12
  283. package/script/commands/security/pat.create.js +4 -12
  284. package/script/commands/security/pat.delete.js +4 -12
  285. package/script/commands/security/pat.exchange.js +4 -12
  286. package/script/commands/security/pat.get.js +4 -12
  287. package/script/commands/security/pat.list.js +4 -12
  288. package/script/commands/tenant/tenant.list.js +4 -12
  289. package/script/commands/variable/variable.create.js +4 -12
  290. package/script/commands/variable/variable.delete.js +4 -12
  291. package/script/commands/variable/variable.list.js +4 -12
  292. package/script/common/command-graphql.js +4 -12
  293. package/script/common/command.js +20 -45
  294. package/script/common/flowcore-client.js +4 -18
  295. package/script/common/notification-client.js +15 -72
  296. package/script/common/websocket-client.js +16 -80
  297. package/script/exceptions/client-error.js +6 -18
  298. package/script/exceptions/invalid-response.js +2 -6
  299. package/script/utils/local-cache.js +5 -19
  300. package/esm/commands/iam/api-key-role-association.create.d.ts +0 -45
  301. package/esm/commands/iam/api-key-role-association.create.d.ts.map +0 -1
  302. package/esm/commands/iam/api-key-role-association.create.js +0 -44
  303. package/esm/commands/iam/api-key-role-association.delete.d.ts +0 -45
  304. package/esm/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
  305. package/esm/commands/iam/api-key-role-association.delete.js +0 -44
  306. package/esm/commands/iam/api-key-role-association.list.d.ts +0 -31
  307. package/esm/commands/iam/api-key-role-association.list.d.ts.map +0 -1
  308. package/esm/commands/iam/api-key-role-association.list.js +0 -37
  309. package/esm/commands/iam/role.list.d.ts.map +0 -1
  310. package/esm/commands/iam/role.list.js +0 -41
  311. package/esm/commands/iam/user-role-association.create.d.ts +0 -42
  312. package/esm/commands/iam/user-role-association.create.d.ts.map +0 -1
  313. package/esm/commands/iam/user-role-association.delete.d.ts +0 -42
  314. package/esm/commands/iam/user-role-association.delete.d.ts.map +0 -1
  315. package/esm/commands/iam/user-role-association.delete.js +0 -40
  316. package/esm/commands/iam/user-role-association.list.d.ts +0 -33
  317. package/esm/commands/iam/user-role-association.list.d.ts.map +0 -1
  318. package/esm/commands/iam/user-role-association.list.js +0 -39
  319. package/esm/contracts/iam.d.ts +0 -13
  320. package/esm/contracts/iam.d.ts.map +0 -1
  321. package/esm/contracts/iam.js +0 -9
  322. package/script/commands/iam/api-key-role-association.create.d.ts +0 -45
  323. package/script/commands/iam/api-key-role-association.create.d.ts.map +0 -1
  324. package/script/commands/iam/api-key-role-association.create.js +0 -48
  325. package/script/commands/iam/api-key-role-association.delete.d.ts +0 -45
  326. package/script/commands/iam/api-key-role-association.delete.d.ts.map +0 -1
  327. package/script/commands/iam/api-key-role-association.delete.js +0 -48
  328. package/script/commands/iam/api-key-role-association.list.d.ts +0 -31
  329. package/script/commands/iam/api-key-role-association.list.d.ts.map +0 -1
  330. package/script/commands/iam/api-key-role-association.list.js +0 -41
  331. package/script/commands/iam/role.list.d.ts.map +0 -1
  332. package/script/commands/iam/role.list.js +0 -45
  333. package/script/commands/iam/user-role-association.create.d.ts +0 -42
  334. package/script/commands/iam/user-role-association.create.d.ts.map +0 -1
  335. package/script/commands/iam/user-role-association.delete.d.ts +0 -42
  336. package/script/commands/iam/user-role-association.delete.d.ts.map +0 -1
  337. package/script/commands/iam/user-role-association.delete.js +0 -44
  338. package/script/commands/iam/user-role-association.list.d.ts +0 -33
  339. package/script/commands/iam/user-role-association.list.d.ts.map +0 -1
  340. package/script/commands/iam/user-role-association.list.js +0 -43
  341. package/script/contracts/iam.d.ts +0 -13
  342. package/script/contracts/iam.d.ts.map +0 -1
  343. package/script/contracts/iam.js +0 -12
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RolePoliciesCommand = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ const create_policy_js_1 = require("../policies/create-policy.js");
7
+ /**
8
+ * Custom parser to handle non-boolean flowcoreManaged values
9
+ */
10
+ const parseRolePoliciesResponse = (rawResponse) => {
11
+ try {
12
+ // First try standard parsing
13
+ return (0, sdk_1.parseResponseHelper)(typebox_1.Type.Array(create_policy_js_1.PolicySchema), rawResponse);
14
+ }
15
+ catch (error) {
16
+ // If there's an error, check if it's related to flowcoreManaged
17
+ if (error instanceof Error &&
18
+ error.message.includes("flowcoreManaged") &&
19
+ Array.isArray(rawResponse)) {
20
+ // Convert flowcoreManaged to boolean for each policy
21
+ const sanitizedPolicies = rawResponse.map((policy) => ({
22
+ ...policy,
23
+ // Convert to boolean with explicit type-safe conversion
24
+ flowcoreManaged: policy.flowcoreManaged === true ||
25
+ policy.flowcoreManaged === "true" ||
26
+ (typeof policy.flowcoreManaged === "boolean" && policy.flowcoreManaged),
27
+ }));
28
+ // Try parsing again with the sanitized data
29
+ return (0, sdk_1.parseResponseHelper)(typebox_1.Type.Array(create_policy_js_1.PolicySchema), sanitizedPolicies);
30
+ }
31
+ // If not a flowcoreManaged error or not an array, rethrow
32
+ throw error;
33
+ }
34
+ };
35
+ /**
36
+ * Fetch policies for a role
37
+ */
38
+ class RolePoliciesCommand extends sdk_1.Command {
39
+ /**
40
+ * Whether the command should retry on failure
41
+ */
42
+ retryOnFailure = true;
43
+ /**
44
+ * Get the method
45
+ */
46
+ getMethod() {
47
+ return "GET";
48
+ }
49
+ /**
50
+ * Get the base url
51
+ */
52
+ getBaseUrl() {
53
+ return "https://iam.api.flowcore.io";
54
+ }
55
+ /**
56
+ * Get the path
57
+ */
58
+ getPath() {
59
+ return `/api/v1/policy-associations/role/${this.input.roleId}/`;
60
+ }
61
+ /**
62
+ * Parse the response
63
+ */
64
+ parseResponse(rawResponse) {
65
+ return parseRolePoliciesResponse(rawResponse);
66
+ }
67
+ }
68
+ exports.RolePoliciesCommand = RolePoliciesCommand;
@@ -0,0 +1,37 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type Policy } from "../policies/create-policy.js";
3
+ /**
4
+ * The input for the user policies command
5
+ */
6
+ export interface UserPoliciesInput {
7
+ /** The user id */
8
+ userId: string;
9
+ /** The optional organization id */
10
+ organizationId?: string;
11
+ }
12
+ /**
13
+ * Fetch policies for a user
14
+ */
15
+ export declare class UserPoliciesCommand extends Command<UserPoliciesInput, Policy[]> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
20
+ /**
21
+ * Get the method
22
+ */
23
+ protected getMethod(): string;
24
+ /**
25
+ * Get the base url
26
+ */
27
+ protected getBaseUrl(): string;
28
+ /**
29
+ * Get the path
30
+ */
31
+ protected getPath(): string;
32
+ /**
33
+ * Parse the response
34
+ */
35
+ protected parseResponse(rawResponse: unknown): Policy[];
36
+ }
37
+ //# sourceMappingURL=get-user-policies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-policies.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/get-user-policies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAE5D,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,8BAA8B,CAAA;AAExE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,OAAO,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC3E;;OAEG;IACH,UAAmB,cAAc,UAAO;IAExC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE;CAGjE"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserPoliciesCommand = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ const create_policy_js_1 = require("../policies/create-policy.js");
7
+ /**
8
+ * Fetch policies for a user
9
+ */
10
+ class UserPoliciesCommand extends sdk_1.Command {
11
+ /**
12
+ * Whether the command should retry on failure
13
+ */
14
+ retryOnFailure = true;
15
+ /**
16
+ * Get the method
17
+ */
18
+ getMethod() {
19
+ return "GET";
20
+ }
21
+ /**
22
+ * Get the base url
23
+ */
24
+ getBaseUrl() {
25
+ return "https://iam.api.flowcore.io";
26
+ }
27
+ /**
28
+ * Get the path
29
+ */
30
+ getPath() {
31
+ return `/api/v1/policy-associations/user/${this.input.userId}/`;
32
+ }
33
+ /**
34
+ * Parse the response
35
+ */
36
+ parseResponse(rawResponse) {
37
+ return (0, sdk_1.parseResponseHelper)(typebox_1.Type.Array(create_policy_js_1.PolicySchema), rawResponse);
38
+ }
39
+ }
40
+ exports.UserPoliciesCommand = UserPoliciesCommand;
@@ -0,0 +1,53 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type Static, type TObject, type TString } from "@sinclair/typebox";
3
+ /**
4
+ * The schema for a key policy link response
5
+ */
6
+ export declare const KeyPolicyLinkSchema: TObject<{
7
+ policyId: TString;
8
+ organizationId: TString;
9
+ keyId: TString;
10
+ }>;
11
+ /**
12
+ * The key policy link response type
13
+ */
14
+ export type KeyPolicyLink = Static<typeof KeyPolicyLinkSchema>;
15
+ /**
16
+ * The input for the link key policy command
17
+ */
18
+ export interface LinkKeyPolicyInput {
19
+ /** The key id */
20
+ keyId: string;
21
+ /** The policy id */
22
+ policyId: string;
23
+ }
24
+ /**
25
+ * Link a policy to a key
26
+ */
27
+ export declare class LinkKeyPolicyCommand extends Command<LinkKeyPolicyInput, KeyPolicyLink> {
28
+ /**
29
+ * Whether the command should retry on failure
30
+ */
31
+ protected retryOnFailure: boolean;
32
+ /**
33
+ * Get the method
34
+ */
35
+ protected getMethod(): string;
36
+ /**
37
+ * Get the base url
38
+ */
39
+ protected getBaseUrl(): string;
40
+ /**
41
+ * Get the path
42
+ */
43
+ protected getPath(): string;
44
+ /**
45
+ * Get the body
46
+ */
47
+ protected getBody(): Record<string, unknown>;
48
+ /**
49
+ * Parse the response
50
+ */
51
+ protected parseResponse(rawResponse: unknown): KeyPolicyLink;
52
+ }
53
+ //# sourceMappingURL=link-key-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-key-policy.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/link-key-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,OAAO,CAAA;CACf,CAIC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,OAAO,CAC/C,kBAAkB,EAClB,aAAa,CACd;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,aAAa;CAGtE"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkKeyPolicyCommand = exports.KeyPolicyLinkSchema = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ /**
7
+ * The schema for a key policy link response
8
+ */
9
+ exports.KeyPolicyLinkSchema = typebox_1.Type.Object({
10
+ policyId: typebox_1.Type.String(),
11
+ organizationId: typebox_1.Type.String(),
12
+ keyId: typebox_1.Type.String(),
13
+ });
14
+ /**
15
+ * Link a policy to a key
16
+ */
17
+ class LinkKeyPolicyCommand extends sdk_1.Command {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ retryOnFailure = false;
22
+ /**
23
+ * Get the method
24
+ */
25
+ getMethod() {
26
+ return "POST";
27
+ }
28
+ /**
29
+ * Get the base url
30
+ */
31
+ getBaseUrl() {
32
+ return "https://iam.api.flowcore.io";
33
+ }
34
+ /**
35
+ * Get the path
36
+ */
37
+ getPath() {
38
+ return `/api/v1/policy-associations/key/${this.input.keyId}/`;
39
+ }
40
+ /**
41
+ * Get the body
42
+ */
43
+ getBody() {
44
+ return {
45
+ policyId: this.input.policyId,
46
+ };
47
+ }
48
+ /**
49
+ * Parse the response
50
+ */
51
+ parseResponse(rawResponse) {
52
+ return (0, sdk_1.parseResponseHelper)(exports.KeyPolicyLinkSchema, rawResponse);
53
+ }
54
+ }
55
+ exports.LinkKeyPolicyCommand = LinkKeyPolicyCommand;
@@ -0,0 +1,53 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type Static, type TObject, type TString } from "@sinclair/typebox";
3
+ /**
4
+ * The schema for a role policy link response
5
+ */
6
+ export declare const RolePolicyLinkSchema: TObject<{
7
+ policyId: TString;
8
+ organizationId: TString;
9
+ roleId: TString;
10
+ }>;
11
+ /**
12
+ * The role policy link response type
13
+ */
14
+ export type RolePolicyLink = Static<typeof RolePolicyLinkSchema>;
15
+ /**
16
+ * The input for the link role policy command
17
+ */
18
+ export interface LinkRolePolicyInput {
19
+ /** The role id */
20
+ roleId: string;
21
+ /** The policy id */
22
+ policyId: string;
23
+ }
24
+ /**
25
+ * Link a policy to a role
26
+ */
27
+ export declare class LinkRolePolicyCommand extends Command<LinkRolePolicyInput, RolePolicyLink> {
28
+ /**
29
+ * Whether the command should retry on failure
30
+ */
31
+ protected retryOnFailure: boolean;
32
+ /**
33
+ * Get the method
34
+ */
35
+ protected getMethod(): string;
36
+ /**
37
+ * Get the base url
38
+ */
39
+ protected getBaseUrl(): string;
40
+ /**
41
+ * Get the path
42
+ */
43
+ protected getPath(): string;
44
+ /**
45
+ * Get the body
46
+ */
47
+ protected getBody(): Record<string, unknown>;
48
+ /**
49
+ * Parse the response
50
+ */
51
+ protected parseResponse(rawResponse: unknown): RolePolicyLink;
52
+ }
53
+ //# sourceMappingURL=link-role-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-role-policy.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/link-role-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC;IACzC,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,MAAM,EAAE,OAAO,CAAA;CAChB,CAIC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEhE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAChD,mBAAmB,EACnB,cAAc,CACf;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc;CAGvE"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkRolePolicyCommand = exports.RolePolicyLinkSchema = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ /**
7
+ * The schema for a role policy link response
8
+ */
9
+ exports.RolePolicyLinkSchema = typebox_1.Type.Object({
10
+ policyId: typebox_1.Type.String(),
11
+ organizationId: typebox_1.Type.String(),
12
+ roleId: typebox_1.Type.String(),
13
+ });
14
+ /**
15
+ * Link a policy to a role
16
+ */
17
+ class LinkRolePolicyCommand extends sdk_1.Command {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ retryOnFailure = false;
22
+ /**
23
+ * Get the method
24
+ */
25
+ getMethod() {
26
+ return "POST";
27
+ }
28
+ /**
29
+ * Get the base url
30
+ */
31
+ getBaseUrl() {
32
+ return "https://iam.api.flowcore.io";
33
+ }
34
+ /**
35
+ * Get the path
36
+ */
37
+ getPath() {
38
+ return `/api/v1/policy-associations/role/${this.input.roleId}/`;
39
+ }
40
+ /**
41
+ * Get the body
42
+ */
43
+ getBody() {
44
+ return {
45
+ policyId: this.input.policyId,
46
+ };
47
+ }
48
+ /**
49
+ * Parse the response
50
+ */
51
+ parseResponse(rawResponse) {
52
+ return (0, sdk_1.parseResponseHelper)(exports.RolePolicyLinkSchema, rawResponse);
53
+ }
54
+ }
55
+ exports.LinkRolePolicyCommand = LinkRolePolicyCommand;
@@ -0,0 +1,53 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type Static, type TObject, type TString } from "@sinclair/typebox";
3
+ /**
4
+ * The schema for a user policy link response
5
+ */
6
+ export declare const UserPolicyLinkSchema: TObject<{
7
+ policyId: TString;
8
+ organizationId: TString;
9
+ userId: TString;
10
+ }>;
11
+ /**
12
+ * The user policy link response type
13
+ */
14
+ export type UserPolicyLink = Static<typeof UserPolicyLinkSchema>;
15
+ /**
16
+ * The input for the link user policy command
17
+ */
18
+ export interface LinkUserPolicyInput {
19
+ /** The user id */
20
+ userId: string;
21
+ /** The policy id */
22
+ policyId: string;
23
+ }
24
+ /**
25
+ * Link a policy to a user
26
+ */
27
+ export declare class LinkUserPolicyCommand extends Command<LinkUserPolicyInput, UserPolicyLink> {
28
+ /**
29
+ * Whether the command should retry on failure
30
+ */
31
+ protected retryOnFailure: boolean;
32
+ /**
33
+ * Get the method
34
+ */
35
+ protected getMethod(): string;
36
+ /**
37
+ * Get the base url
38
+ */
39
+ protected getBaseUrl(): string;
40
+ /**
41
+ * Get the path
42
+ */
43
+ protected getPath(): string;
44
+ /**
45
+ * Get the body
46
+ */
47
+ protected getBody(): Record<string, unknown>;
48
+ /**
49
+ * Parse the response
50
+ */
51
+ protected parseResponse(rawResponse: unknown): UserPolicyLink;
52
+ }
53
+ //# sourceMappingURL=link-user-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-user-policy.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/link-user-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC;IACzC,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,EAAE,OAAO,CAAA;IACvB,MAAM,EAAE,OAAO,CAAA;CAChB,CAIC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEhE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,OAAO,CAChD,mBAAmB,EACnB,cAAc,CACf;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc;CAGvE"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkUserPolicyCommand = exports.UserPolicyLinkSchema = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const typebox_1 = require("@sinclair/typebox");
6
+ /**
7
+ * The schema for a user policy link response
8
+ */
9
+ exports.UserPolicyLinkSchema = typebox_1.Type.Object({
10
+ policyId: typebox_1.Type.String(),
11
+ organizationId: typebox_1.Type.String(),
12
+ userId: typebox_1.Type.String(),
13
+ });
14
+ /**
15
+ * Link a policy to a user
16
+ */
17
+ class LinkUserPolicyCommand extends sdk_1.Command {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ retryOnFailure = false;
22
+ /**
23
+ * Get the method
24
+ */
25
+ getMethod() {
26
+ return "POST";
27
+ }
28
+ /**
29
+ * Get the base url
30
+ */
31
+ getBaseUrl() {
32
+ return "https://iam.api.flowcore.io";
33
+ }
34
+ /**
35
+ * Get the path
36
+ */
37
+ getPath() {
38
+ return `/api/v1/policy-associations/user/${this.input.userId}/`;
39
+ }
40
+ /**
41
+ * Get the body
42
+ */
43
+ getBody() {
44
+ return {
45
+ policyId: this.input.policyId,
46
+ };
47
+ }
48
+ /**
49
+ * Parse the response
50
+ */
51
+ parseResponse(rawResponse) {
52
+ return (0, sdk_1.parseResponseHelper)(exports.UserPolicyLinkSchema, rawResponse);
53
+ }
54
+ }
55
+ exports.LinkUserPolicyCommand = LinkUserPolicyCommand;
@@ -0,0 +1,41 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type KeyPolicyLink } from "./link-key-policy.js";
3
+ /**
4
+ * The input for the unlink key policy command
5
+ */
6
+ export interface UnlinkKeyPolicyInput {
7
+ /** The key id */
8
+ keyId: string;
9
+ /** The policy id */
10
+ policyId: string;
11
+ }
12
+ /**
13
+ * Unlink a policy from a key
14
+ */
15
+ export declare class UnlinkKeyPolicyCommand extends Command<UnlinkKeyPolicyInput, KeyPolicyLink> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
20
+ /**
21
+ * Get the method
22
+ */
23
+ protected getMethod(): string;
24
+ /**
25
+ * Get the base url
26
+ */
27
+ protected getBaseUrl(): string;
28
+ /**
29
+ * Get the path
30
+ */
31
+ protected getPath(): string;
32
+ /**
33
+ * Get the body
34
+ */
35
+ protected getBody(): Record<string, unknown>;
36
+ /**
37
+ * Parse the response
38
+ */
39
+ protected parseResponse(rawResponse: unknown): KeyPolicyLink;
40
+ }
41
+ //# sourceMappingURL=unlink-key-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlink-key-policy.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/unlink-key-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,sBAAsB,CAAA;AAE9E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CACjD,oBAAoB,EACpB,aAAa,CACd;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,aAAa;CAGtE"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnlinkKeyPolicyCommand = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const link_key_policy_js_1 = require("./link-key-policy.js");
6
+ /**
7
+ * Unlink a policy from a key
8
+ */
9
+ class UnlinkKeyPolicyCommand extends sdk_1.Command {
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ retryOnFailure = false;
14
+ /**
15
+ * Get the method
16
+ */
17
+ getMethod() {
18
+ return "DELETE";
19
+ }
20
+ /**
21
+ * Get the base url
22
+ */
23
+ getBaseUrl() {
24
+ return "https://iam.api.flowcore.io";
25
+ }
26
+ /**
27
+ * Get the path
28
+ */
29
+ getPath() {
30
+ return `/api/v1/policy-associations/key/${this.input.keyId}/`;
31
+ }
32
+ /**
33
+ * Get the body
34
+ */
35
+ getBody() {
36
+ return {
37
+ policyId: this.input.policyId,
38
+ };
39
+ }
40
+ /**
41
+ * Parse the response
42
+ */
43
+ parseResponse(rawResponse) {
44
+ return (0, sdk_1.parseResponseHelper)(link_key_policy_js_1.KeyPolicyLinkSchema, rawResponse);
45
+ }
46
+ }
47
+ exports.UnlinkKeyPolicyCommand = UnlinkKeyPolicyCommand;
@@ -0,0 +1,41 @@
1
+ import { Command } from "@flowcore/sdk";
2
+ import { type RolePolicyLink } from "./link-role-policy.js";
3
+ /**
4
+ * The input for the unlink role policy command
5
+ */
6
+ export interface UnlinkRolePolicyInput {
7
+ /** The role id */
8
+ roleId: string;
9
+ /** The policy id */
10
+ policyId: string;
11
+ }
12
+ /**
13
+ * Unlink a policy from a role
14
+ */
15
+ export declare class UnlinkRolePolicyCommand extends Command<UnlinkRolePolicyInput, RolePolicyLink> {
16
+ /**
17
+ * Whether the command should retry on failure
18
+ */
19
+ protected retryOnFailure: boolean;
20
+ /**
21
+ * Get the method
22
+ */
23
+ protected getMethod(): string;
24
+ /**
25
+ * Get the base url
26
+ */
27
+ protected getBaseUrl(): string;
28
+ /**
29
+ * Get the path
30
+ */
31
+ protected getPath(): string;
32
+ /**
33
+ * Get the body
34
+ */
35
+ protected getBody(): Record<string, unknown>;
36
+ /**
37
+ * Parse the response
38
+ */
39
+ protected parseResponse(rawResponse: unknown): RolePolicyLink;
40
+ }
41
+ //# sourceMappingURL=unlink-role-policy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unlink-role-policy.d.ts","sourceRoot":"","sources":["../../../../src/commands/iam/policy-associations/unlink-role-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAuB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,uBAAuB,CAAA;AAEjF;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,OAAO,CAClD,qBAAqB,EACrB,cAAc,CACf;IACC;;OAEG;IACH,UAAmB,cAAc,UAAQ;IAEzC;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAMrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc;CAGvE"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnlinkRolePolicyCommand = void 0;
4
+ const sdk_1 = require("@flowcore/sdk");
5
+ const link_role_policy_js_1 = require("./link-role-policy.js");
6
+ /**
7
+ * Unlink a policy from a role
8
+ */
9
+ class UnlinkRolePolicyCommand extends sdk_1.Command {
10
+ /**
11
+ * Whether the command should retry on failure
12
+ */
13
+ retryOnFailure = false;
14
+ /**
15
+ * Get the method
16
+ */
17
+ getMethod() {
18
+ return "DELETE";
19
+ }
20
+ /**
21
+ * Get the base url
22
+ */
23
+ getBaseUrl() {
24
+ return "https://iam.api.flowcore.io";
25
+ }
26
+ /**
27
+ * Get the path
28
+ */
29
+ getPath() {
30
+ return `/api/v1/policy-associations/role/${this.input.roleId}/`;
31
+ }
32
+ /**
33
+ * Get the body
34
+ */
35
+ getBody() {
36
+ return {
37
+ policyId: this.input.policyId,
38
+ };
39
+ }
40
+ /**
41
+ * Parse the response
42
+ */
43
+ parseResponse(rawResponse) {
44
+ return (0, sdk_1.parseResponseHelper)(link_role_policy_js_1.RolePolicyLinkSchema, rawResponse);
45
+ }
46
+ }
47
+ exports.UnlinkRolePolicyCommand = UnlinkRolePolicyCommand;