@naturalpay/sdk 0.2.0 → 0.2.1

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 (489) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/LICENSE +7 -0
  3. package/README.md +340 -26
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +255 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +255 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +548 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +544 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +87 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +81 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/query.d.mts +2 -0
  239. package/internal/utils/query.d.mts.map +1 -0
  240. package/internal/utils/query.d.ts +2 -0
  241. package/internal/utils/query.d.ts.map +1 -0
  242. package/internal/utils/query.js +10 -0
  243. package/internal/utils/query.js.map +1 -0
  244. package/internal/utils/query.mjs +6 -0
  245. package/internal/utils/query.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +8 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +8 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +12 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +9 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/lib/envelope.d.mts +4 -0
  279. package/lib/envelope.d.mts.map +1 -0
  280. package/lib/envelope.d.ts +4 -0
  281. package/lib/envelope.d.ts.map +1 -0
  282. package/lib/envelope.js +43 -0
  283. package/lib/envelope.js.map +1 -0
  284. package/lib/envelope.mjs +39 -0
  285. package/lib/envelope.mjs.map +1 -0
  286. package/package.json +142 -76
  287. package/resource.d.mts +2 -0
  288. package/resource.d.mts.map +1 -0
  289. package/resource.d.ts +2 -0
  290. package/resource.d.ts.map +1 -0
  291. package/resource.js +6 -0
  292. package/resource.js.map +1 -0
  293. package/resource.mjs +2 -0
  294. package/resource.mjs.map +1 -0
  295. package/resources/agents.d.mts +1392 -0
  296. package/resources/agents.d.mts.map +1 -0
  297. package/resources/agents.d.ts +1392 -0
  298. package/resources/agents.d.ts.map +1 -0
  299. package/resources/agents.js +192 -0
  300. package/resources/agents.js.map +1 -0
  301. package/resources/agents.mjs +188 -0
  302. package/resources/agents.mjs.map +1 -0
  303. package/resources/api-keys.d.mts +539 -0
  304. package/resources/api-keys.d.mts.map +1 -0
  305. package/resources/api-keys.d.ts +539 -0
  306. package/resources/api-keys.d.ts.map +1 -0
  307. package/resources/api-keys.js +100 -0
  308. package/resources/api-keys.js.map +1 -0
  309. package/resources/api-keys.mjs +96 -0
  310. package/resources/api-keys.mjs.map +1 -0
  311. package/resources/counterparties.d.mts +139 -0
  312. package/resources/counterparties.d.mts.map +1 -0
  313. package/resources/counterparties.d.ts +139 -0
  314. package/resources/counterparties.d.ts.map +1 -0
  315. package/resources/counterparties.js +32 -0
  316. package/resources/counterparties.js.map +1 -0
  317. package/resources/counterparties.mjs +28 -0
  318. package/resources/counterparties.mjs.map +1 -0
  319. package/resources/customers.d.mts +272 -0
  320. package/resources/customers.d.mts.map +1 -0
  321. package/resources/customers.d.ts +272 -0
  322. package/resources/customers.d.ts.map +1 -0
  323. package/resources/customers.js +48 -0
  324. package/resources/customers.js.map +1 -0
  325. package/resources/customers.mjs +44 -0
  326. package/resources/customers.mjs.map +1 -0
  327. package/resources/delegations.d.mts +458 -0
  328. package/resources/delegations.d.mts.map +1 -0
  329. package/resources/delegations.d.ts +458 -0
  330. package/resources/delegations.d.ts.map +1 -0
  331. package/resources/delegations.js +47 -0
  332. package/resources/delegations.js.map +1 -0
  333. package/resources/delegations.mjs +43 -0
  334. package/resources/delegations.mjs.map +1 -0
  335. package/resources/index.d.mts +12 -0
  336. package/resources/index.d.mts.map +1 -0
  337. package/resources/index.d.ts +12 -0
  338. package/resources/index.d.ts.map +1 -0
  339. package/resources/index.js +27 -0
  340. package/resources/index.js.map +1 -0
  341. package/resources/index.mjs +13 -0
  342. package/resources/index.mjs.map +1 -0
  343. package/resources/invitations.d.mts +304 -0
  344. package/resources/invitations.d.mts.map +1 -0
  345. package/resources/invitations.d.ts +304 -0
  346. package/resources/invitations.d.ts.map +1 -0
  347. package/resources/invitations.js +85 -0
  348. package/resources/invitations.js.map +1 -0
  349. package/resources/invitations.mjs +81 -0
  350. package/resources/invitations.mjs.map +1 -0
  351. package/resources/parties.d.mts +364 -0
  352. package/resources/parties.d.mts.map +1 -0
  353. package/resources/parties.d.ts +364 -0
  354. package/resources/parties.d.ts.map +1 -0
  355. package/resources/parties.js +78 -0
  356. package/resources/parties.js.map +1 -0
  357. package/resources/parties.mjs +74 -0
  358. package/resources/parties.mjs.map +1 -0
  359. package/resources/payment-requests.d.mts +442 -0
  360. package/resources/payment-requests.d.mts.map +1 -0
  361. package/resources/payment-requests.d.ts +442 -0
  362. package/resources/payment-requests.d.ts.map +1 -0
  363. package/resources/payment-requests.js +87 -0
  364. package/resources/payment-requests.js.map +1 -0
  365. package/resources/payment-requests.mjs +83 -0
  366. package/resources/payment-requests.mjs.map +1 -0
  367. package/resources/payments.d.mts +174 -0
  368. package/resources/payments.d.mts.map +1 -0
  369. package/resources/payments.d.ts +174 -0
  370. package/resources/payments.d.ts.map +1 -0
  371. package/resources/payments.js +40 -0
  372. package/resources/payments.js.map +1 -0
  373. package/resources/payments.mjs +36 -0
  374. package/resources/payments.mjs.map +1 -0
  375. package/resources/transactions.d.mts +478 -0
  376. package/resources/transactions.d.mts.map +1 -0
  377. package/resources/transactions.d.ts +478 -0
  378. package/resources/transactions.d.ts.map +1 -0
  379. package/resources/transactions.js +48 -0
  380. package/resources/transactions.js.map +1 -0
  381. package/resources/transactions.mjs +44 -0
  382. package/resources/transactions.mjs.map +1 -0
  383. package/resources/wallet.d.mts +628 -0
  384. package/resources/wallet.d.mts.map +1 -0
  385. package/resources/wallet.d.ts +628 -0
  386. package/resources/wallet.d.ts.map +1 -0
  387. package/resources/wallet.js +161 -0
  388. package/resources/wallet.js.map +1 -0
  389. package/resources/wallet.mjs +157 -0
  390. package/resources/wallet.mjs.map +1 -0
  391. package/resources.d.mts +2 -0
  392. package/resources.d.mts.map +1 -0
  393. package/resources.d.ts +2 -0
  394. package/resources.d.ts.map +1 -0
  395. package/resources.js +5 -0
  396. package/resources.js.map +1 -0
  397. package/resources.mjs +2 -0
  398. package/resources.mjs.map +1 -0
  399. package/src/api-promise.ts +2 -0
  400. package/src/client.ts +1020 -0
  401. package/src/core/README.md +3 -0
  402. package/src/core/api-promise.ts +92 -0
  403. package/src/core/error.ts +130 -0
  404. package/src/core/resource.ts +11 -0
  405. package/src/core/uploads.ts +2 -0
  406. package/src/error.ts +2 -0
  407. package/src/index.ts +22 -0
  408. package/src/internal/README.md +3 -0
  409. package/src/internal/builtin-types.ts +93 -0
  410. package/src/internal/detect-platform.ts +196 -0
  411. package/src/internal/errors.ts +33 -0
  412. package/src/internal/headers.ts +97 -0
  413. package/src/internal/parse.ts +56 -0
  414. package/src/internal/qs/LICENSE.md +13 -0
  415. package/src/internal/qs/README.md +3 -0
  416. package/src/internal/qs/formats.ts +10 -0
  417. package/src/internal/qs/index.ts +13 -0
  418. package/src/internal/qs/stringify.ts +385 -0
  419. package/src/internal/qs/types.ts +71 -0
  420. package/src/internal/qs/utils.ts +265 -0
  421. package/src/internal/request-options.ts +91 -0
  422. package/src/internal/shim-types.ts +26 -0
  423. package/src/internal/shims.ts +107 -0
  424. package/src/internal/to-file.ts +154 -0
  425. package/src/internal/types.ts +93 -0
  426. package/src/internal/uploads.ts +187 -0
  427. package/src/internal/utils/base64.ts +40 -0
  428. package/src/internal/utils/bytes.ts +32 -0
  429. package/src/internal/utils/env.ts +18 -0
  430. package/src/internal/utils/log.ts +128 -0
  431. package/src/internal/utils/path.ts +88 -0
  432. package/src/internal/utils/query.ts +7 -0
  433. package/src/internal/utils/sleep.ts +3 -0
  434. package/src/internal/utils/uuid.ts +17 -0
  435. package/src/internal/utils/values.ts +105 -0
  436. package/src/internal/utils.ts +9 -0
  437. package/src/lib/.keep +4 -0
  438. package/src/lib/envelope.ts +32 -0
  439. package/src/resource.ts +2 -0
  440. package/src/resources/agents.ts +1785 -0
  441. package/src/resources/api-keys.ts +743 -0
  442. package/src/resources/counterparties.ts +187 -0
  443. package/src/resources/customers.ts +365 -0
  444. package/src/resources/delegations.ts +580 -0
  445. package/src/resources/index.ts +95 -0
  446. package/src/resources/invitations.ts +414 -0
  447. package/src/resources/parties.ts +493 -0
  448. package/src/resources/payment-requests.ts +601 -0
  449. package/src/resources/payments.ts +228 -0
  450. package/src/resources/transactions.ts +610 -0
  451. package/src/resources/wallet.ts +864 -0
  452. package/src/resources.ts +1 -0
  453. package/src/tsconfig.json +11 -0
  454. package/src/uploads.ts +2 -0
  455. package/src/version.ts +1 -0
  456. package/uploads.d.mts +2 -0
  457. package/uploads.d.mts.map +1 -0
  458. package/uploads.d.ts +2 -0
  459. package/uploads.d.ts.map +1 -0
  460. package/uploads.js +6 -0
  461. package/uploads.js.map +1 -0
  462. package/uploads.mjs +2 -0
  463. package/uploads.mjs.map +1 -0
  464. package/version.d.mts +2 -0
  465. package/version.d.mts.map +1 -0
  466. package/version.d.ts +2 -0
  467. package/version.d.ts.map +1 -0
  468. package/version.js +5 -0
  469. package/version.js.map +1 -0
  470. package/version.mjs +2 -0
  471. package/version.mjs.map +1 -0
  472. package/dist/index.cjs +0 -1737
  473. package/dist/index.cjs.map +0 -1
  474. package/dist/index.d.cts +0 -929
  475. package/dist/index.d.ts +0 -929
  476. package/dist/index.js +0 -1705
  477. package/dist/index.js.map +0 -1
  478. package/dist/mcp/cli.cjs +0 -166
  479. package/dist/mcp/cli.cjs.map +0 -1
  480. package/dist/mcp/cli.d.cts +0 -1
  481. package/dist/mcp/cli.d.ts +0 -1
  482. package/dist/mcp/cli.js +0 -164
  483. package/dist/mcp/cli.js.map +0 -1
  484. package/dist/mcp/index.cjs +0 -8
  485. package/dist/mcp/index.cjs.map +0 -1
  486. package/dist/mcp/index.d.cts +0 -9
  487. package/dist/mcp/index.d.ts +0 -9
  488. package/dist/mcp/index.js +0 -6
  489. package/dist/mcp/index.js.map +0 -1
@@ -0,0 +1,1785 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { buildHeaders } from '../internal/headers';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ /**
10
+ * Agent management
11
+ */
12
+ export class Agents extends APIResource {
13
+ /**
14
+ * Create a new agent for the authenticated party.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const agent = await client.agents.create({
19
+ * name: 'x',
20
+ * 'Idempotency-Key': 'Idempotency-Key',
21
+ * });
22
+ * ```
23
+ */
24
+ create(params: AgentCreateParams, options?: RequestOptions): APIPromise<AgentCreateResponse> {
25
+ const {
26
+ 'Idempotency-Key': idempotencyKey,
27
+ 'X-Agent-ID': xAgentID,
28
+ 'X-Instance-ID': xInstanceID,
29
+ ...body
30
+ } = params;
31
+ return this._client.post('/agents', {
32
+ body,
33
+ ...options,
34
+ headers: buildHeaders([
35
+ {
36
+ 'Idempotency-Key': idempotencyKey,
37
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
38
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
39
+ },
40
+ options?.headers,
41
+ ]),
42
+ });
43
+ }
44
+
45
+ /**
46
+ * Update an existing agent's mutable fields or revoke it.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const agent = await client.agents.update(
51
+ * 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
52
+ * { 'Idempotency-Key': 'Idempotency-Key' },
53
+ * );
54
+ * ```
55
+ */
56
+ update(
57
+ agentID: string,
58
+ params: AgentUpdateParams,
59
+ options?: RequestOptions,
60
+ ): APIPromise<AgentUpdateResponse> {
61
+ const {
62
+ 'Idempotency-Key': idempotencyKey,
63
+ 'X-Agent-ID': xAgentID,
64
+ 'X-Instance-ID': xInstanceID,
65
+ ...body
66
+ } = params;
67
+ return this._client.put(path`/agents/${agentID}`, {
68
+ body,
69
+ ...options,
70
+ headers: buildHeaders([
71
+ {
72
+ 'Idempotency-Key': idempotencyKey,
73
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
74
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
75
+ },
76
+ options?.headers,
77
+ ]),
78
+ });
79
+ }
80
+
81
+ /**
82
+ * List agents for the authenticated user's party.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const agents = await client.agents.list();
87
+ * ```
88
+ */
89
+ list(
90
+ params: AgentListParams | null | undefined = {},
91
+ options?: RequestOptions,
92
+ ): APIPromise<AgentListResponse> {
93
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
94
+ return this._client.get('/agents', {
95
+ query,
96
+ ...options,
97
+ headers: buildHeaders([
98
+ {
99
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
100
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
101
+ },
102
+ options?.headers,
103
+ ]),
104
+ });
105
+ }
106
+
107
+ /**
108
+ * Developer-only. Creates one invitation per agent and sends a single Resend email
109
+ * to the customer.
110
+ *
111
+ * @example
112
+ * ```ts
113
+ * const response = await client.agents.createInvitations({
114
+ * agents: [
115
+ * {
116
+ * agentId: 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
117
+ * permissions: ['string'],
118
+ * },
119
+ * ],
120
+ * customerEmail: 'dev@stainless.com',
121
+ * 'Idempotency-Key': 'Idempotency-Key',
122
+ * });
123
+ * ```
124
+ */
125
+ createInvitations(
126
+ params: AgentCreateInvitationsParams,
127
+ options?: RequestOptions,
128
+ ): APIPromise<AgentCreateInvitationsResponse> {
129
+ const {
130
+ 'Idempotency-Key': idempotencyKey,
131
+ 'X-Agent-ID': xAgentID,
132
+ 'X-Instance-ID': xInstanceID,
133
+ ...body
134
+ } = params;
135
+ return this._client.post('/agents/invitations', {
136
+ body,
137
+ ...options,
138
+ headers: buildHeaders([
139
+ {
140
+ 'Idempotency-Key': idempotencyKey,
141
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
142
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
143
+ },
144
+ options?.headers,
145
+ ]),
146
+ });
147
+ }
148
+
149
+ /**
150
+ * Get agent details by its unique ID.
151
+ *
152
+ * @example
153
+ * ```ts
154
+ * const agent = await client.agents.get(
155
+ * 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
156
+ * );
157
+ * ```
158
+ */
159
+ get(
160
+ agentID: string,
161
+ params: AgentGetParams | null | undefined = {},
162
+ options?: RequestOptions,
163
+ ): APIPromise<AgentGetResponse> {
164
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID } = params ?? {};
165
+ return this._client.get(path`/agents/${agentID}`, {
166
+ ...options,
167
+ headers: buildHeaders([
168
+ {
169
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
170
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
171
+ },
172
+ options?.headers,
173
+ ]),
174
+ });
175
+ }
176
+
177
+ /**
178
+ * List agent delegation invitations
179
+ *
180
+ * @example
181
+ * ```ts
182
+ * const response =
183
+ * await client.agents.listInvitationsForDeveloper();
184
+ * ```
185
+ */
186
+ listInvitationsForDeveloper(
187
+ params: AgentListInvitationsForDeveloperParams | null | undefined = {},
188
+ options?: RequestOptions,
189
+ ): APIPromise<AgentListInvitationsForDeveloperResponse> {
190
+ const { 'X-Agent-ID': xAgentID, 'X-Instance-ID': xInstanceID, ...query } = params ?? {};
191
+ return this._client.get('/agents/invitations', {
192
+ query,
193
+ ...options,
194
+ headers: buildHeaders([
195
+ {
196
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
197
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
198
+ },
199
+ options?.headers,
200
+ ]),
201
+ });
202
+ }
203
+
204
+ /**
205
+ * Delete an agent and clean up its delegations and policies.
206
+ *
207
+ * @example
208
+ * ```ts
209
+ * const agent = await client.agents.remove(
210
+ * 'agt_ecc2efdd09bd231a9ad9bd2aada37aa7',
211
+ * { 'Idempotency-Key': 'Idempotency-Key' },
212
+ * );
213
+ * ```
214
+ */
215
+ remove(
216
+ agentID: string,
217
+ params: AgentRemoveParams,
218
+ options?: RequestOptions,
219
+ ): APIPromise<AgentRemoveResponse> {
220
+ const {
221
+ 'Idempotency-Key': idempotencyKey,
222
+ 'X-Agent-ID': xAgentID,
223
+ 'X-Instance-ID': xInstanceID,
224
+ } = params;
225
+ return this._client.delete(path`/agents/${agentID}`, {
226
+ ...options,
227
+ headers: buildHeaders([
228
+ {
229
+ 'Idempotency-Key': idempotencyKey,
230
+ ...(xAgentID != null ? { 'X-Agent-ID': xAgentID } : undefined),
231
+ ...(xInstanceID != null ? { 'X-Instance-ID': xInstanceID } : undefined),
232
+ },
233
+ options?.headers,
234
+ ]),
235
+ });
236
+ }
237
+ }
238
+
239
+ export interface AgentCreateResponse {
240
+ data: AgentCreateResponse.Data;
241
+ }
242
+
243
+ export namespace AgentCreateResponse {
244
+ export interface Data {
245
+ /**
246
+ * Resource ID
247
+ */
248
+ id: string;
249
+
250
+ /**
251
+ * Resource attributes
252
+ */
253
+ attributes: Data.Attributes;
254
+
255
+ /**
256
+ * Resource relationships
257
+ */
258
+ relationships: Data.Relationships;
259
+
260
+ /**
261
+ * Resource type
262
+ */
263
+ type: string;
264
+ }
265
+
266
+ export namespace Data {
267
+ /**
268
+ * Resource attributes
269
+ */
270
+ export interface Attributes {
271
+ /**
272
+ * When this agent was created
273
+ */
274
+ createdAt: string | null;
275
+
276
+ /**
277
+ * User who created this agent (usr\_\*)
278
+ */
279
+ createdBy: string | null;
280
+
281
+ /**
282
+ * Agent description
283
+ */
284
+ description: string | null;
285
+
286
+ /**
287
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
288
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
289
+ */
290
+ limits: Attributes.Limits | null;
291
+
292
+ /**
293
+ * Agent display name
294
+ */
295
+ name: string;
296
+
297
+ /**
298
+ * Observability stats (null when unavailable)
299
+ */
300
+ observability: Attributes.Observability | null;
301
+
302
+ /**
303
+ * Agent status
304
+ */
305
+ status: 'ACTIVE' | 'REVOKED';
306
+
307
+ /**
308
+ * When this agent was last updated
309
+ */
310
+ updatedAt: string | null;
311
+
312
+ /**
313
+ * User who last updated this agent (usr\_\*)
314
+ */
315
+ updatedBy: string | null;
316
+ }
317
+
318
+ export namespace Attributes {
319
+ /**
320
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
321
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
322
+ */
323
+ export interface Limits {
324
+ /**
325
+ * Positive per-transaction limit in cents. null means no per-payment limit.
326
+ */
327
+ perTransaction?: number | null;
328
+ }
329
+
330
+ /**
331
+ * Observability stats (null when unavailable)
332
+ */
333
+ export interface Observability {
334
+ /**
335
+ * Errors in last 24h
336
+ */
337
+ errorCount: number;
338
+
339
+ /**
340
+ * Last activity timestamp
341
+ */
342
+ lastActiveAt: string | null;
343
+
344
+ /**
345
+ * Requests in last 24h
346
+ */
347
+ requestCount: number;
348
+ }
349
+ }
350
+
351
+ /**
352
+ * Resource relationships
353
+ */
354
+ export interface Relationships {
355
+ /**
356
+ * Party that owns the agent
357
+ */
358
+ party: Relationships.Party;
359
+ }
360
+
361
+ export namespace Relationships {
362
+ /**
363
+ * Party that owns the agent
364
+ */
365
+ export interface Party {
366
+ /**
367
+ * Related resource identifier
368
+ */
369
+ data: Party.Data;
370
+ }
371
+
372
+ export namespace Party {
373
+ /**
374
+ * Related resource identifier
375
+ */
376
+ export interface Data {
377
+ id: string;
378
+
379
+ /**
380
+ * Resource type
381
+ */
382
+ type: string;
383
+ }
384
+ }
385
+ }
386
+ }
387
+ }
388
+
389
+ export interface AgentUpdateResponse {
390
+ data: AgentUpdateResponse.Data;
391
+ }
392
+
393
+ export namespace AgentUpdateResponse {
394
+ export interface Data {
395
+ /**
396
+ * Resource ID
397
+ */
398
+ id: string;
399
+
400
+ /**
401
+ * Resource attributes
402
+ */
403
+ attributes: Data.Attributes;
404
+
405
+ /**
406
+ * Resource relationships
407
+ */
408
+ relationships: Data.Relationships;
409
+
410
+ /**
411
+ * Resource type
412
+ */
413
+ type: string;
414
+ }
415
+
416
+ export namespace Data {
417
+ /**
418
+ * Resource attributes
419
+ */
420
+ export interface Attributes {
421
+ /**
422
+ * When this agent was created
423
+ */
424
+ createdAt: string | null;
425
+
426
+ /**
427
+ * User who created this agent (usr\_\*)
428
+ */
429
+ createdBy: string | null;
430
+
431
+ /**
432
+ * Agent description
433
+ */
434
+ description: string | null;
435
+
436
+ /**
437
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
438
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
439
+ */
440
+ limits: Attributes.Limits | null;
441
+
442
+ /**
443
+ * Agent display name
444
+ */
445
+ name: string;
446
+
447
+ /**
448
+ * Observability stats (null when unavailable)
449
+ */
450
+ observability: Attributes.Observability | null;
451
+
452
+ /**
453
+ * Agent status
454
+ */
455
+ status: 'ACTIVE' | 'REVOKED';
456
+
457
+ /**
458
+ * When this agent was last updated
459
+ */
460
+ updatedAt: string | null;
461
+
462
+ /**
463
+ * User who last updated this agent (usr\_\*)
464
+ */
465
+ updatedBy: string | null;
466
+ }
467
+
468
+ export namespace Attributes {
469
+ /**
470
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
471
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
472
+ */
473
+ export interface Limits {
474
+ /**
475
+ * Positive per-transaction limit in cents. null means no per-payment limit.
476
+ */
477
+ perTransaction?: number | null;
478
+ }
479
+
480
+ /**
481
+ * Observability stats (null when unavailable)
482
+ */
483
+ export interface Observability {
484
+ /**
485
+ * Errors in last 24h
486
+ */
487
+ errorCount: number;
488
+
489
+ /**
490
+ * Last activity timestamp
491
+ */
492
+ lastActiveAt: string | null;
493
+
494
+ /**
495
+ * Requests in last 24h
496
+ */
497
+ requestCount: number;
498
+ }
499
+ }
500
+
501
+ /**
502
+ * Resource relationships
503
+ */
504
+ export interface Relationships {
505
+ /**
506
+ * Party that owns the agent
507
+ */
508
+ party: Relationships.Party;
509
+ }
510
+
511
+ export namespace Relationships {
512
+ /**
513
+ * Party that owns the agent
514
+ */
515
+ export interface Party {
516
+ /**
517
+ * Related resource identifier
518
+ */
519
+ data: Party.Data;
520
+ }
521
+
522
+ export namespace Party {
523
+ /**
524
+ * Related resource identifier
525
+ */
526
+ export interface Data {
527
+ id: string;
528
+
529
+ /**
530
+ * Resource type
531
+ */
532
+ type: string;
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+
539
+ export interface AgentListResponse {
540
+ data: Array<AgentListResponse.Data>;
541
+
542
+ meta: AgentListResponse.Meta;
543
+ }
544
+
545
+ export namespace AgentListResponse {
546
+ export interface Data {
547
+ /**
548
+ * Resource ID
549
+ */
550
+ id: string;
551
+
552
+ /**
553
+ * Resource attributes
554
+ */
555
+ attributes: Data.Attributes;
556
+
557
+ /**
558
+ * Resource relationships
559
+ */
560
+ relationships: Data.Relationships;
561
+
562
+ /**
563
+ * Resource type
564
+ */
565
+ type: string;
566
+ }
567
+
568
+ export namespace Data {
569
+ /**
570
+ * Resource attributes
571
+ */
572
+ export interface Attributes {
573
+ /**
574
+ * When this agent was created
575
+ */
576
+ createdAt: string | null;
577
+
578
+ /**
579
+ * User who created this agent (usr\_\*)
580
+ */
581
+ createdBy: string | null;
582
+
583
+ /**
584
+ * Agent description
585
+ */
586
+ description: string | null;
587
+
588
+ /**
589
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
590
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
591
+ */
592
+ limits: Attributes.Limits | null;
593
+
594
+ /**
595
+ * Agent display name
596
+ */
597
+ name: string;
598
+
599
+ /**
600
+ * Observability stats (null when unavailable)
601
+ */
602
+ observability: Attributes.Observability | null;
603
+
604
+ /**
605
+ * Agent status
606
+ */
607
+ status: 'ACTIVE' | 'REVOKED';
608
+
609
+ /**
610
+ * When this agent was last updated
611
+ */
612
+ updatedAt: string | null;
613
+
614
+ /**
615
+ * User who last updated this agent (usr\_\*)
616
+ */
617
+ updatedBy: string | null;
618
+ }
619
+
620
+ export namespace Attributes {
621
+ /**
622
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
623
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
624
+ */
625
+ export interface Limits {
626
+ /**
627
+ * Positive per-transaction limit in cents. null means no per-payment limit.
628
+ */
629
+ perTransaction?: number | null;
630
+ }
631
+
632
+ /**
633
+ * Observability stats (null when unavailable)
634
+ */
635
+ export interface Observability {
636
+ /**
637
+ * Errors in last 24h
638
+ */
639
+ errorCount: number;
640
+
641
+ /**
642
+ * Last activity timestamp
643
+ */
644
+ lastActiveAt: string | null;
645
+
646
+ /**
647
+ * Requests in last 24h
648
+ */
649
+ requestCount: number;
650
+ }
651
+ }
652
+
653
+ /**
654
+ * Resource relationships
655
+ */
656
+ export interface Relationships {
657
+ /**
658
+ * Party that owns the agent
659
+ */
660
+ party: Relationships.Party;
661
+ }
662
+
663
+ export namespace Relationships {
664
+ /**
665
+ * Party that owns the agent
666
+ */
667
+ export interface Party {
668
+ /**
669
+ * Related resource identifier
670
+ */
671
+ data: Party.Data;
672
+ }
673
+
674
+ export namespace Party {
675
+ /**
676
+ * Related resource identifier
677
+ */
678
+ export interface Data {
679
+ id: string;
680
+
681
+ /**
682
+ * Resource type
683
+ */
684
+ type: string;
685
+ }
686
+ }
687
+ }
688
+ }
689
+
690
+ export interface Meta {
691
+ pagination: Meta.Pagination;
692
+ }
693
+
694
+ export namespace Meta {
695
+ export interface Pagination {
696
+ hasMore: boolean;
697
+
698
+ nextCursor: string | null;
699
+ }
700
+ }
701
+ }
702
+
703
+ export interface AgentCreateInvitationsResponse {
704
+ /**
705
+ * Successfully created invitation resources
706
+ */
707
+ data: Array<AgentCreateInvitationsResponse.Data>;
708
+
709
+ /**
710
+ * Batch invitation metadata
711
+ */
712
+ meta: AgentCreateInvitationsResponse.Meta;
713
+ }
714
+
715
+ export namespace AgentCreateInvitationsResponse {
716
+ export interface Data {
717
+ /**
718
+ * Invitation ID (adi\_\*)
719
+ */
720
+ id: string;
721
+
722
+ /**
723
+ * Resource attributes
724
+ */
725
+ attributes: Data.Attributes;
726
+
727
+ /**
728
+ * Related resource identifiers
729
+ */
730
+ relationships: Data.Relationships;
731
+
732
+ /**
733
+ * Resource type
734
+ */
735
+ type: string;
736
+ }
737
+
738
+ export namespace Data {
739
+ /**
740
+ * Resource attributes
741
+ */
742
+ export interface Attributes {
743
+ /**
744
+ * When this invitation was accepted
745
+ */
746
+ acceptedAt: string | null;
747
+
748
+ /**
749
+ * Display name of the agent being delegated
750
+ */
751
+ agentName: string;
752
+
753
+ /**
754
+ * Why the invitation was cancelled
755
+ */
756
+ cancelReason: 'AGENT_RETIRED' | 'DEVELOPER_RETIRED' | null;
757
+
758
+ /**
759
+ * When this invitation was created
760
+ */
761
+ createdAt: string;
762
+
763
+ /**
764
+ * When this invitation was declined
765
+ */
766
+ declinedAt: string | null;
767
+
768
+ /**
769
+ * Display name of the developer party
770
+ */
771
+ developerName: string;
772
+
773
+ /**
774
+ * Status after applying expiry and cancel-reason overlays
775
+ */
776
+ effectiveStatus: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
777
+
778
+ /**
779
+ * Customer email the invitation was sent to
780
+ */
781
+ email: string;
782
+
783
+ /**
784
+ * When this invitation expires
785
+ */
786
+ expiresAt: string;
787
+
788
+ /**
789
+ * Per-agent transaction limits
790
+ */
791
+ limits: Attributes.Limits | null;
792
+
793
+ /**
794
+ * Permissions the agent will hold on accept
795
+ */
796
+ permissions: Array<string>;
797
+
798
+ /**
799
+ * Raw persisted status
800
+ */
801
+ status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
802
+
803
+ /**
804
+ * When this invitation was last updated
805
+ */
806
+ updatedAt: string;
807
+ }
808
+
809
+ export namespace Attributes {
810
+ /**
811
+ * Per-agent transaction limits
812
+ */
813
+ export interface Limits {
814
+ /**
815
+ * Per-transaction cap, integer cents (USD).
816
+ */
817
+ perTransaction?: number | null;
818
+ }
819
+ }
820
+
821
+ /**
822
+ * Related resource identifiers
823
+ */
824
+ export interface Relationships {
825
+ /**
826
+ * Agent being delegated
827
+ */
828
+ agent: Relationships.Agent;
829
+
830
+ /**
831
+ * Resulting agent delegation once accepted; currently null on public create/list
832
+ * responses
833
+ */
834
+ agentDelegation: Relationships.AgentDelegation;
835
+
836
+ /**
837
+ * Customer party the invitation was accepted on (null until accept)
838
+ */
839
+ customerParty: Relationships.CustomerParty;
840
+
841
+ /**
842
+ * Developer party that issued the invitation
843
+ */
844
+ developerParty: Relationships.DeveloperParty;
845
+ }
846
+
847
+ export namespace Relationships {
848
+ /**
849
+ * Agent being delegated
850
+ */
851
+ export interface Agent {
852
+ /**
853
+ * Related resource identifier
854
+ */
855
+ data: Agent.Data;
856
+ }
857
+
858
+ export namespace Agent {
859
+ /**
860
+ * Related resource identifier
861
+ */
862
+ export interface Data {
863
+ id: string;
864
+
865
+ /**
866
+ * Resource type
867
+ */
868
+ type: string;
869
+ }
870
+ }
871
+
872
+ /**
873
+ * Resulting agent delegation once accepted; currently null on public create/list
874
+ * responses
875
+ */
876
+ export interface AgentDelegation {
877
+ /**
878
+ * Related resource identifier
879
+ */
880
+ data: AgentDelegation.Data | null;
881
+ }
882
+
883
+ export namespace AgentDelegation {
884
+ /**
885
+ * Related resource identifier
886
+ */
887
+ export interface Data {
888
+ id: string;
889
+
890
+ /**
891
+ * Resource type
892
+ */
893
+ type: string;
894
+ }
895
+ }
896
+
897
+ /**
898
+ * Customer party the invitation was accepted on (null until accept)
899
+ */
900
+ export interface CustomerParty {
901
+ /**
902
+ * Related resource identifier
903
+ */
904
+ data: CustomerParty.Data | null;
905
+ }
906
+
907
+ export namespace CustomerParty {
908
+ /**
909
+ * Related resource identifier
910
+ */
911
+ export interface Data {
912
+ id: string;
913
+
914
+ /**
915
+ * Resource type
916
+ */
917
+ type: string;
918
+ }
919
+ }
920
+
921
+ /**
922
+ * Developer party that issued the invitation
923
+ */
924
+ export interface DeveloperParty {
925
+ /**
926
+ * Related resource identifier
927
+ */
928
+ data: DeveloperParty.Data;
929
+ }
930
+
931
+ export namespace DeveloperParty {
932
+ /**
933
+ * Related resource identifier
934
+ */
935
+ export interface Data {
936
+ id: string;
937
+
938
+ /**
939
+ * Resource type
940
+ */
941
+ type: string;
942
+ }
943
+ }
944
+ }
945
+ }
946
+
947
+ /**
948
+ * Batch invitation metadata
949
+ */
950
+ export interface Meta {
951
+ /**
952
+ * Invitation IDs whose welcome-email send failed. Invitations are still persisted;
953
+ * use the resend-email flow to retry.
954
+ */
955
+ emailFailures: Array<string>;
956
+ }
957
+ }
958
+
959
+ export interface AgentGetResponse {
960
+ data: AgentGetResponse.Data;
961
+ }
962
+
963
+ export namespace AgentGetResponse {
964
+ export interface Data {
965
+ /**
966
+ * Resource ID
967
+ */
968
+ id: string;
969
+
970
+ /**
971
+ * Resource attributes
972
+ */
973
+ attributes: Data.Attributes;
974
+
975
+ /**
976
+ * Resource relationships
977
+ */
978
+ relationships: Data.Relationships;
979
+
980
+ /**
981
+ * Resource type
982
+ */
983
+ type: string;
984
+ }
985
+
986
+ export namespace Data {
987
+ /**
988
+ * Resource attributes
989
+ */
990
+ export interface Attributes {
991
+ /**
992
+ * When this agent was created
993
+ */
994
+ createdAt: string | null;
995
+
996
+ /**
997
+ * User who created this agent (usr\_\*)
998
+ */
999
+ createdBy: string | null;
1000
+
1001
+ /**
1002
+ * Agent description
1003
+ */
1004
+ description: string | null;
1005
+
1006
+ /**
1007
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
1008
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
1009
+ */
1010
+ limits: Attributes.Limits | null;
1011
+
1012
+ /**
1013
+ * Agent display name
1014
+ */
1015
+ name: string;
1016
+
1017
+ /**
1018
+ * Observability stats (null when unavailable)
1019
+ */
1020
+ observability: Attributes.Observability | null;
1021
+
1022
+ /**
1023
+ * Agent status
1024
+ */
1025
+ status: 'ACTIVE' | 'REVOKED';
1026
+
1027
+ /**
1028
+ * When this agent was last updated
1029
+ */
1030
+ updatedAt: string | null;
1031
+
1032
+ /**
1033
+ * User who last updated this agent (usr\_\*)
1034
+ */
1035
+ updatedBy: string | null;
1036
+ }
1037
+
1038
+ export namespace Attributes {
1039
+ /**
1040
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
1041
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
1042
+ */
1043
+ export interface Limits {
1044
+ /**
1045
+ * Positive per-transaction limit in cents. null means no per-payment limit.
1046
+ */
1047
+ perTransaction?: number | null;
1048
+ }
1049
+
1050
+ /**
1051
+ * Observability stats (null when unavailable)
1052
+ */
1053
+ export interface Observability {
1054
+ /**
1055
+ * Errors in last 24h
1056
+ */
1057
+ errorCount: number;
1058
+
1059
+ /**
1060
+ * Last activity timestamp
1061
+ */
1062
+ lastActiveAt: string | null;
1063
+
1064
+ /**
1065
+ * Requests in last 24h
1066
+ */
1067
+ requestCount: number;
1068
+ }
1069
+ }
1070
+
1071
+ /**
1072
+ * Resource relationships
1073
+ */
1074
+ export interface Relationships {
1075
+ /**
1076
+ * Party that owns the agent
1077
+ */
1078
+ party: Relationships.Party;
1079
+ }
1080
+
1081
+ export namespace Relationships {
1082
+ /**
1083
+ * Party that owns the agent
1084
+ */
1085
+ export interface Party {
1086
+ /**
1087
+ * Related resource identifier
1088
+ */
1089
+ data: Party.Data;
1090
+ }
1091
+
1092
+ export namespace Party {
1093
+ /**
1094
+ * Related resource identifier
1095
+ */
1096
+ export interface Data {
1097
+ id: string;
1098
+
1099
+ /**
1100
+ * Resource type
1101
+ */
1102
+ type: string;
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+
1109
+ export interface AgentListInvitationsForDeveloperResponse {
1110
+ data: Array<AgentListInvitationsForDeveloperResponse.Data>;
1111
+
1112
+ meta: AgentListInvitationsForDeveloperResponse.Meta;
1113
+ }
1114
+
1115
+ export namespace AgentListInvitationsForDeveloperResponse {
1116
+ export interface Data {
1117
+ /**
1118
+ * Invitation ID (adi\_\*)
1119
+ */
1120
+ id: string;
1121
+
1122
+ /**
1123
+ * Resource attributes
1124
+ */
1125
+ attributes: Data.Attributes;
1126
+
1127
+ /**
1128
+ * Related resource identifiers
1129
+ */
1130
+ relationships: Data.Relationships;
1131
+
1132
+ /**
1133
+ * Resource type
1134
+ */
1135
+ type: string;
1136
+ }
1137
+
1138
+ export namespace Data {
1139
+ /**
1140
+ * Resource attributes
1141
+ */
1142
+ export interface Attributes {
1143
+ /**
1144
+ * When this invitation was accepted
1145
+ */
1146
+ acceptedAt: string | null;
1147
+
1148
+ /**
1149
+ * Display name of the agent being delegated
1150
+ */
1151
+ agentName: string;
1152
+
1153
+ /**
1154
+ * Why the invitation was cancelled
1155
+ */
1156
+ cancelReason: 'AGENT_RETIRED' | 'DEVELOPER_RETIRED' | null;
1157
+
1158
+ /**
1159
+ * When this invitation was created
1160
+ */
1161
+ createdAt: string;
1162
+
1163
+ /**
1164
+ * When this invitation was declined
1165
+ */
1166
+ declinedAt: string | null;
1167
+
1168
+ /**
1169
+ * Display name of the developer party
1170
+ */
1171
+ developerName: string;
1172
+
1173
+ /**
1174
+ * Status after applying expiry and cancel-reason overlays
1175
+ */
1176
+ effectiveStatus: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
1177
+
1178
+ /**
1179
+ * Customer email the invitation was sent to
1180
+ */
1181
+ email: string;
1182
+
1183
+ /**
1184
+ * When this invitation expires
1185
+ */
1186
+ expiresAt: string;
1187
+
1188
+ /**
1189
+ * Per-agent transaction limits
1190
+ */
1191
+ limits: Attributes.Limits | null;
1192
+
1193
+ /**
1194
+ * Permissions the agent will hold on accept
1195
+ */
1196
+ permissions: Array<string>;
1197
+
1198
+ /**
1199
+ * Raw persisted status
1200
+ */
1201
+ status: 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
1202
+
1203
+ /**
1204
+ * When this invitation was last updated
1205
+ */
1206
+ updatedAt: string;
1207
+ }
1208
+
1209
+ export namespace Attributes {
1210
+ /**
1211
+ * Per-agent transaction limits
1212
+ */
1213
+ export interface Limits {
1214
+ /**
1215
+ * Per-transaction cap, integer cents (USD).
1216
+ */
1217
+ perTransaction?: number | null;
1218
+ }
1219
+ }
1220
+
1221
+ /**
1222
+ * Related resource identifiers
1223
+ */
1224
+ export interface Relationships {
1225
+ /**
1226
+ * Agent being delegated
1227
+ */
1228
+ agent: Relationships.Agent;
1229
+
1230
+ /**
1231
+ * Resulting agent delegation once accepted; currently null on public create/list
1232
+ * responses
1233
+ */
1234
+ agentDelegation: Relationships.AgentDelegation;
1235
+
1236
+ /**
1237
+ * Customer party the invitation was accepted on (null until accept)
1238
+ */
1239
+ customerParty: Relationships.CustomerParty;
1240
+
1241
+ /**
1242
+ * Developer party that issued the invitation
1243
+ */
1244
+ developerParty: Relationships.DeveloperParty;
1245
+ }
1246
+
1247
+ export namespace Relationships {
1248
+ /**
1249
+ * Agent being delegated
1250
+ */
1251
+ export interface Agent {
1252
+ /**
1253
+ * Related resource identifier
1254
+ */
1255
+ data: Agent.Data;
1256
+ }
1257
+
1258
+ export namespace Agent {
1259
+ /**
1260
+ * Related resource identifier
1261
+ */
1262
+ export interface Data {
1263
+ id: string;
1264
+
1265
+ /**
1266
+ * Resource type
1267
+ */
1268
+ type: string;
1269
+ }
1270
+ }
1271
+
1272
+ /**
1273
+ * Resulting agent delegation once accepted; currently null on public create/list
1274
+ * responses
1275
+ */
1276
+ export interface AgentDelegation {
1277
+ /**
1278
+ * Related resource identifier
1279
+ */
1280
+ data: AgentDelegation.Data | null;
1281
+ }
1282
+
1283
+ export namespace AgentDelegation {
1284
+ /**
1285
+ * Related resource identifier
1286
+ */
1287
+ export interface Data {
1288
+ id: string;
1289
+
1290
+ /**
1291
+ * Resource type
1292
+ */
1293
+ type: string;
1294
+ }
1295
+ }
1296
+
1297
+ /**
1298
+ * Customer party the invitation was accepted on (null until accept)
1299
+ */
1300
+ export interface CustomerParty {
1301
+ /**
1302
+ * Related resource identifier
1303
+ */
1304
+ data: CustomerParty.Data | null;
1305
+ }
1306
+
1307
+ export namespace CustomerParty {
1308
+ /**
1309
+ * Related resource identifier
1310
+ */
1311
+ export interface Data {
1312
+ id: string;
1313
+
1314
+ /**
1315
+ * Resource type
1316
+ */
1317
+ type: string;
1318
+ }
1319
+ }
1320
+
1321
+ /**
1322
+ * Developer party that issued the invitation
1323
+ */
1324
+ export interface DeveloperParty {
1325
+ /**
1326
+ * Related resource identifier
1327
+ */
1328
+ data: DeveloperParty.Data;
1329
+ }
1330
+
1331
+ export namespace DeveloperParty {
1332
+ /**
1333
+ * Related resource identifier
1334
+ */
1335
+ export interface Data {
1336
+ id: string;
1337
+
1338
+ /**
1339
+ * Resource type
1340
+ */
1341
+ type: string;
1342
+ }
1343
+ }
1344
+ }
1345
+ }
1346
+
1347
+ export interface Meta {
1348
+ pagination: Meta.Pagination;
1349
+ }
1350
+
1351
+ export namespace Meta {
1352
+ export interface Pagination {
1353
+ hasMore: boolean;
1354
+
1355
+ nextCursor: string | null;
1356
+ }
1357
+ }
1358
+ }
1359
+
1360
+ export interface AgentRemoveResponse {
1361
+ data: AgentRemoveResponse.Data;
1362
+
1363
+ meta: AgentRemoveResponse.Meta;
1364
+ }
1365
+
1366
+ export namespace AgentRemoveResponse {
1367
+ export interface Data {
1368
+ /**
1369
+ * Resource ID
1370
+ */
1371
+ id: string;
1372
+
1373
+ /**
1374
+ * Resource attributes
1375
+ */
1376
+ attributes: Data.Attributes;
1377
+
1378
+ /**
1379
+ * Resource relationships
1380
+ */
1381
+ relationships: Data.Relationships;
1382
+
1383
+ /**
1384
+ * Resource type
1385
+ */
1386
+ type: string;
1387
+ }
1388
+
1389
+ export namespace Data {
1390
+ /**
1391
+ * Resource attributes
1392
+ */
1393
+ export interface Attributes {
1394
+ /**
1395
+ * When this agent was created
1396
+ */
1397
+ createdAt: string | null;
1398
+
1399
+ /**
1400
+ * User who created this agent (usr\_\*)
1401
+ */
1402
+ createdBy: string | null;
1403
+
1404
+ /**
1405
+ * Agent description
1406
+ */
1407
+ description: string | null;
1408
+
1409
+ /**
1410
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
1411
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
1412
+ */
1413
+ limits: Attributes.Limits | null;
1414
+
1415
+ /**
1416
+ * Agent display name
1417
+ */
1418
+ name: string;
1419
+
1420
+ /**
1421
+ * Observability stats (null when unavailable)
1422
+ */
1423
+ observability: Attributes.Observability | null;
1424
+
1425
+ /**
1426
+ * Agent status
1427
+ */
1428
+ status: 'ACTIVE' | 'REVOKED';
1429
+
1430
+ /**
1431
+ * When this agent was last updated
1432
+ */
1433
+ updatedAt: string | null;
1434
+
1435
+ /**
1436
+ * User who last updated this agent (usr\_\*)
1437
+ */
1438
+ updatedBy: string | null;
1439
+ }
1440
+
1441
+ export namespace Attributes {
1442
+ /**
1443
+ * Per-transaction spend cap for actions this agent initiates on its owner's party.
1444
+ * null = no limit. Stored as Policy(scope=Agent(id)) in the policy service.
1445
+ */
1446
+ export interface Limits {
1447
+ /**
1448
+ * Positive per-transaction limit in cents. null means no per-payment limit.
1449
+ */
1450
+ perTransaction?: number | null;
1451
+ }
1452
+
1453
+ /**
1454
+ * Observability stats (null when unavailable)
1455
+ */
1456
+ export interface Observability {
1457
+ /**
1458
+ * Errors in last 24h
1459
+ */
1460
+ errorCount: number;
1461
+
1462
+ /**
1463
+ * Last activity timestamp
1464
+ */
1465
+ lastActiveAt: string | null;
1466
+
1467
+ /**
1468
+ * Requests in last 24h
1469
+ */
1470
+ requestCount: number;
1471
+ }
1472
+ }
1473
+
1474
+ /**
1475
+ * Resource relationships
1476
+ */
1477
+ export interface Relationships {
1478
+ /**
1479
+ * Party that owns the agent
1480
+ */
1481
+ party: Relationships.Party;
1482
+ }
1483
+
1484
+ export namespace Relationships {
1485
+ /**
1486
+ * Party that owns the agent
1487
+ */
1488
+ export interface Party {
1489
+ /**
1490
+ * Related resource identifier
1491
+ */
1492
+ data: Party.Data;
1493
+ }
1494
+
1495
+ export namespace Party {
1496
+ /**
1497
+ * Related resource identifier
1498
+ */
1499
+ export interface Data {
1500
+ id: string;
1501
+
1502
+ /**
1503
+ * Resource type
1504
+ */
1505
+ type: string;
1506
+ }
1507
+ }
1508
+ }
1509
+ }
1510
+
1511
+ export interface Meta {
1512
+ /**
1513
+ * Indicates the resource was deleted
1514
+ */
1515
+ deleted: true;
1516
+ }
1517
+ }
1518
+
1519
+ export interface AgentCreateParams {
1520
+ /**
1521
+ * Body param: Agent display name
1522
+ */
1523
+ name: string;
1524
+
1525
+ /**
1526
+ * Header param: Unique key for idempotent request handling. If a request with the
1527
+ * same key was already processed, the original response is returned.
1528
+ */
1529
+ 'Idempotency-Key': string;
1530
+
1531
+ /**
1532
+ * Body param: Agent description
1533
+ */
1534
+ description?: string;
1535
+
1536
+ /**
1537
+ * Body param: Optional per-transaction limit for the agent
1538
+ */
1539
+ limits?: AgentCreateParams.Limits;
1540
+
1541
+ /**
1542
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1543
+ */
1544
+ 'X-Agent-ID'?: string;
1545
+
1546
+ /**
1547
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1548
+ * for agent observability.
1549
+ */
1550
+ 'X-Instance-ID'?: string;
1551
+ }
1552
+
1553
+ export namespace AgentCreateParams {
1554
+ /**
1555
+ * Optional per-transaction limit for the agent
1556
+ */
1557
+ export interface Limits {
1558
+ /**
1559
+ * Positive per-transaction limit in cents. null means no per-payment limit.
1560
+ */
1561
+ perTransaction?: number | null;
1562
+ }
1563
+ }
1564
+
1565
+ export interface AgentUpdateParams {
1566
+ /**
1567
+ * Header param: Unique key for idempotent request handling. If a request with the
1568
+ * same key was already processed, the original response is returned.
1569
+ */
1570
+ 'Idempotency-Key': string;
1571
+
1572
+ /**
1573
+ * Body param: Updated description
1574
+ */
1575
+ description?: string | null;
1576
+
1577
+ /**
1578
+ * Body param: Per-transaction spend cap. null clears the limit; omitted leaves it
1579
+ * unchanged.
1580
+ */
1581
+ limits?: AgentUpdateParams.Limits | null;
1582
+
1583
+ /**
1584
+ * Body param: Updated name for the agent
1585
+ */
1586
+ name?: string | null;
1587
+
1588
+ /**
1589
+ * Body param: Updated status
1590
+ */
1591
+ status?: 'ACTIVE' | 'REVOKED' | null;
1592
+
1593
+ /**
1594
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1595
+ */
1596
+ 'X-Agent-ID'?: string;
1597
+
1598
+ /**
1599
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1600
+ * for agent observability.
1601
+ */
1602
+ 'X-Instance-ID'?: string;
1603
+ }
1604
+
1605
+ export namespace AgentUpdateParams {
1606
+ /**
1607
+ * Per-transaction spend cap. null clears the limit; omitted leaves it unchanged.
1608
+ */
1609
+ export interface Limits {
1610
+ /**
1611
+ * Positive per-transaction limit in cents. null means no per-payment limit.
1612
+ */
1613
+ perTransaction?: number | null;
1614
+ }
1615
+ }
1616
+
1617
+ export interface AgentListParams {
1618
+ /**
1619
+ * Query param: Cursor for the next page
1620
+ */
1621
+ cursor?: string;
1622
+
1623
+ /**
1624
+ * Query param: Maximum number of agents to return
1625
+ */
1626
+ limit?: number;
1627
+
1628
+ /**
1629
+ * Query param: Filter by status
1630
+ */
1631
+ status?: 'ACTIVE' | 'REVOKED';
1632
+
1633
+ /**
1634
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1635
+ */
1636
+ 'X-Agent-ID'?: string;
1637
+
1638
+ /**
1639
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1640
+ * for agent observability.
1641
+ */
1642
+ 'X-Instance-ID'?: string;
1643
+ }
1644
+
1645
+ export interface AgentCreateInvitationsParams {
1646
+ /**
1647
+ * Body param: Per-agent delegation requests (1-50)
1648
+ */
1649
+ agents: Array<AgentCreateInvitationsParams.Agent>;
1650
+
1651
+ /**
1652
+ * Body param: Email address of the customer to invite
1653
+ */
1654
+ customerEmail: string;
1655
+
1656
+ /**
1657
+ * Header param: Unique key for idempotent request handling. If a request with the
1658
+ * same key was already processed, the original response is returned.
1659
+ */
1660
+ 'Idempotency-Key': string;
1661
+
1662
+ /**
1663
+ * Body param: Optional explicit expiry timestamp; server defaults to 7 days
1664
+ */
1665
+ expiresAt?: string;
1666
+
1667
+ /**
1668
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1669
+ */
1670
+ 'X-Agent-ID'?: string;
1671
+
1672
+ /**
1673
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1674
+ * for agent observability.
1675
+ */
1676
+ 'X-Instance-ID'?: string;
1677
+ }
1678
+
1679
+ export namespace AgentCreateInvitationsParams {
1680
+ export interface Agent {
1681
+ agentId: string;
1682
+
1683
+ permissions: Array<string>;
1684
+
1685
+ limits?: Agent.Limits;
1686
+ }
1687
+
1688
+ export namespace Agent {
1689
+ export interface Limits {
1690
+ /**
1691
+ * Per-transaction cap, integer cents (USD).
1692
+ */
1693
+ perTransaction?: number | null;
1694
+ }
1695
+ }
1696
+ }
1697
+
1698
+ export interface AgentGetParams {
1699
+ /**
1700
+ * Agent ID (agt_xxx) identifying which agent is making the request.
1701
+ */
1702
+ 'X-Agent-ID'?: string;
1703
+
1704
+ /**
1705
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
1706
+ * observability.
1707
+ */
1708
+ 'X-Instance-ID'?: string;
1709
+ }
1710
+
1711
+ export interface AgentListInvitationsForDeveloperParams {
1712
+ /**
1713
+ * Query param
1714
+ */
1715
+ agentId?: string;
1716
+
1717
+ /**
1718
+ * Query param
1719
+ */
1720
+ cursor?: string;
1721
+
1722
+ /**
1723
+ * Query param
1724
+ */
1725
+ customerEmail?: string;
1726
+
1727
+ /**
1728
+ * Query param
1729
+ */
1730
+ limit?: number;
1731
+
1732
+ /**
1733
+ * Query param
1734
+ */
1735
+ status?: Array<'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED'>;
1736
+
1737
+ /**
1738
+ * Header param: Agent ID (agt_xxx) identifying which agent is making the request.
1739
+ */
1740
+ 'X-Agent-ID'?: string;
1741
+
1742
+ /**
1743
+ * Header param: Required when X-Agent-ID is present. Session or conversation ID
1744
+ * for agent observability.
1745
+ */
1746
+ 'X-Instance-ID'?: string;
1747
+ }
1748
+
1749
+ export interface AgentRemoveParams {
1750
+ /**
1751
+ * Unique key for idempotent request handling. If a request with the same key was
1752
+ * already processed, the original response is returned.
1753
+ */
1754
+ 'Idempotency-Key': string;
1755
+
1756
+ /**
1757
+ * Agent ID (agt_xxx) identifying which agent is making the request.
1758
+ */
1759
+ 'X-Agent-ID'?: string;
1760
+
1761
+ /**
1762
+ * Required when X-Agent-ID is present. Session or conversation ID for agent
1763
+ * observability.
1764
+ */
1765
+ 'X-Instance-ID'?: string;
1766
+ }
1767
+
1768
+ export declare namespace Agents {
1769
+ export {
1770
+ type AgentCreateResponse as AgentCreateResponse,
1771
+ type AgentUpdateResponse as AgentUpdateResponse,
1772
+ type AgentListResponse as AgentListResponse,
1773
+ type AgentCreateInvitationsResponse as AgentCreateInvitationsResponse,
1774
+ type AgentGetResponse as AgentGetResponse,
1775
+ type AgentListInvitationsForDeveloperResponse as AgentListInvitationsForDeveloperResponse,
1776
+ type AgentRemoveResponse as AgentRemoveResponse,
1777
+ type AgentCreateParams as AgentCreateParams,
1778
+ type AgentUpdateParams as AgentUpdateParams,
1779
+ type AgentListParams as AgentListParams,
1780
+ type AgentCreateInvitationsParams as AgentCreateInvitationsParams,
1781
+ type AgentGetParams as AgentGetParams,
1782
+ type AgentListInvitationsForDeveloperParams as AgentListInvitationsForDeveloperParams,
1783
+ type AgentRemoveParams as AgentRemoveParams,
1784
+ };
1785
+ }