@keboola/api-client 47.0.0 → 49.0.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.
- package/AGENTS.md +10 -4
- package/API-SURFACE.md +6 -3
- package/CHANGELOG.md +65 -0
- package/README.md +1 -1
- package/dist/{adminRoles-CvdIUkiC.d.ts → adminRoles-BX1gk3At.d.ts} +2 -2
- package/dist/{adminRoles-DGM8SuuF.d.cts → adminRoles-BbxFgfX-.d.cts} +2 -2
- package/dist/ai/index.cjs +0 -5
- package/dist/ai/index.cjs.map +1 -1
- package/dist/ai/index.d.cts +2 -3
- package/dist/ai/index.d.ts +2 -3
- package/dist/ai/index.js +0 -5
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/types.d.cts +2 -2
- package/dist/ai/types.d.ts +2 -2
- package/dist/{appLogs-xW0-JQXg.d.ts → appLogs-DI2Y4imY.d.ts} +2 -2
- package/dist/{appLogs-Cxhm2Rkn.d.cts → appLogs-IhRA3xyv.d.cts} +2 -2
- package/dist/apps/index.cjs +3 -3
- package/dist/apps/index.cjs.map +1 -1
- package/dist/apps/index.d.cts +6 -3
- package/dist/apps/index.d.ts +6 -3
- package/dist/apps/index.js +3 -3
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/types.d.cts +2 -2
- package/dist/apps/types.d.ts +2 -2
- package/dist/assets/index.d.cts +1 -1
- package/dist/assets/index.d.ts +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/types.d.cts +1 -1
- package/dist/auth/types.d.ts +1 -1
- package/dist/{authClient-Bso5UaXS.d.ts → authClient-6Aau_4Zt.d.ts} +4 -4
- package/dist/{authClient-aud2dUZd.d.cts → authClient-B3P6WtWW.d.cts} +4 -4
- package/dist/billing/index.cjs +0 -1
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.d.cts +27 -27
- package/dist/billing/index.d.ts +27 -27
- package/dist/billing/index.js +0 -1
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/types.d.cts +26 -22
- package/dist/billing/types.d.ts +26 -22
- package/dist/chat/index.d.cts +2 -2
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/types.d.cts +1 -1
- package/dist/chat/types.d.ts +1 -1
- package/dist/componentsMcp/index.d.cts +1 -1
- package/dist/componentsMcp/index.d.ts +1 -1
- package/dist/componentsMcp/types.d.cts +1 -1
- package/dist/componentsMcp/types.d.ts +1 -1
- package/dist/{configurations-DcpUlC8I.js → configurations-B44z6BSO.js} +2 -2
- package/dist/{configurations-DcpUlC8I.js.map → configurations-B44z6BSO.js.map} +1 -1
- package/dist/{configurations-Chg_JwJ1.js → configurations-CL0ouUMa.js} +3 -3
- package/dist/configurations-CL0ouUMa.js.map +1 -0
- package/dist/{configurations-BTRHVSRq.cjs → configurations-D9J3jh3g.cjs} +3 -3
- package/dist/configurations-D9J3jh3g.cjs.map +1 -0
- package/dist/{configurations-D_Rbs0Wl.cjs → configurations-Dkxsa3Uf.cjs} +2 -2
- package/dist/{configurations-D_Rbs0Wl.cjs.map → configurations-Dkxsa3Uf.cjs.map} +1 -1
- package/dist/constants/index.cjs +4 -1
- package/dist/constants/index.d.cts +4 -3
- package/dist/constants/index.d.ts +4 -3
- package/dist/constants/index.js +2 -2
- package/dist/{constants-a0jswUeK.cjs → constants-DErcRkWl.cjs} +95 -2
- package/dist/constants-DErcRkWl.cjs.map +1 -0
- package/dist/{constants-CA4UN2Xv.js → constants-VpSwBtCb.js} +78 -3
- package/dist/constants-VpSwBtCb.js.map +1 -0
- package/dist/dataScience/index.d.cts +2 -2
- package/dist/dataScience/index.d.ts +2 -2
- package/dist/dataScience/types.d.cts +2 -2
- package/dist/dataScience/types.d.ts +2 -2
- package/dist/developerPortal/index.d.cts +2 -2
- package/dist/developerPortal/index.d.ts +2 -2
- package/dist/developerPortal/types.d.cts +1 -1
- package/dist/developerPortal/types.d.ts +1 -1
- package/dist/domain/permissions/index.cjs +8 -43
- package/dist/domain/permissions/index.d.cts +7 -3
- package/dist/domain/permissions/index.d.ts +7 -3
- package/dist/domain/permissions/index.js +3 -39
- package/dist/domain/storageTable/index.d.cts +1 -1
- package/dist/domain/storageTable/index.d.ts +1 -1
- package/dist/editor/index.d.cts +2 -2
- package/dist/editor/index.d.ts +2 -2
- package/dist/editor/types.d.cts +1 -1
- package/dist/editor/types.d.ts +1 -1
- package/dist/encryption/index.d.cts +1 -1
- package/dist/encryption/index.d.ts +1 -1
- package/dist/encryption/types.d.cts +1 -1
- package/dist/encryption/types.d.ts +1 -1
- package/dist/import/index.d.cts +3 -3
- package/dist/import/index.d.ts +3 -3
- package/dist/{index-DTysQ_yn.d.cts → index-BM_fXKq5.d.cts} +5 -5
- package/dist/{index-XaPb6unB.d.cts → index-BPMr8PQJ.d.ts} +271 -35
- package/dist/{index-BnPmXDVP.d.ts → index-BT88-GpA.d.ts} +73 -3
- package/dist/{index-x_kS_5x_.d.cts → index-BVjhAkXW.d.cts} +4 -4
- package/dist/{index-CkwZ5x7E.d.cts → index-Be2dNJ_N.d.cts} +336 -169
- package/dist/{index-C2OAOK0s.d.ts → index-BiZR9BjN.d.ts} +4 -4
- package/dist/{index-B_MzjCeE.d.ts → index-C6oPUTWZ.d.ts} +3 -3
- package/dist/{index-r6YSe8B-.d.ts → index-CL4iKFic.d.cts} +271 -35
- package/dist/{index-URgNfi5L.d.cts → index-CbZQCDkD.d.cts} +3 -3
- package/dist/{index-XG5cO-4H.d.cts → index-CrrHvDiX.d.cts} +18 -13
- package/dist/{index-ZYvgoqgW.d.cts → index-CtQl-Iqw.d.cts} +4 -4
- package/dist/{index-BIP0PoMW.d.ts → index-D6JMbJ9b.d.ts} +18 -13
- package/dist/{index-Ds0tViQS.d.cts → index-DGKCTQkb.d.cts} +3 -3
- package/dist/{index-BeOd45XE.d.ts → index-DReKz9Zt.d.ts} +4 -4
- package/dist/{index-DUB0BwQv.d.cts → index-DYNVbgm8.d.cts} +4 -4
- package/dist/{index-DloFSSj3.d.ts → index-DhZTIejy.d.ts} +3 -3
- package/dist/{index-BGEuaZqI.d.cts → index-Dkb8CynB.d.cts} +21 -5
- package/dist/{index-_Va9wynk.d.ts → index-DorowSay.d.ts} +21 -5
- package/dist/{index-8ZjY7YD8.d.cts → index-PqJGDHHl.d.cts} +73 -3
- package/dist/{index-HSkjm3QW.d.ts → index-XcnkRVb0.d.ts} +5 -5
- package/dist/{index-Dp-a2DdI.d.ts → index-dgu6udMy.d.ts} +4 -4
- package/dist/{index-P1vR966i.d.ts → index-fMoM8SeH.d.cts} +4 -4
- package/dist/{index-P1vR966i.d.cts → index-fMoM8SeH.d.ts} +4 -4
- package/dist/{index-CAWy1qjR.d.ts → index-uGRdAORl.d.ts} +336 -169
- package/dist/index.cjs +458 -259
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +455 -260
- package/dist/index.js.map +1 -1
- package/dist/kaiAgent/index.cjs +1 -1
- package/dist/kaiAgent/index.d.cts +3 -3
- package/dist/kaiAgent/index.d.ts +3 -3
- package/dist/kaiAgent/index.js +1 -1
- package/dist/kaiAgent/types.d.cts +1 -1
- package/dist/kaiAgent/types.d.ts +1 -1
- package/dist/{kaiAgent-CBPbMwBh.js → kaiAgent-CYvrS8oZ.js} +12 -3
- package/dist/kaiAgent-CYvrS8oZ.js.map +1 -0
- package/dist/{kaiAgent-BmfUG8bB.cjs → kaiAgent-N2qbUFZm.cjs} +12 -3
- package/dist/kaiAgent-N2qbUFZm.cjs.map +1 -0
- package/dist/management/index.cjs +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +1 -1
- package/dist/management/types.cjs +14 -0
- package/dist/management/types.cjs.map +1 -0
- package/dist/management/types.d.cts +2 -2
- package/dist/management/types.d.ts +2 -2
- package/dist/management/types.js +12 -1
- package/dist/management/types.js.map +1 -0
- package/dist/{management-BUGPJ1Bu.cjs → management-B1o6RpKF.cjs} +15 -14
- package/dist/management-B1o6RpKF.cjs.map +1 -0
- package/dist/{management-DAg2obYt.js → management-C9w3DNhs.js} +15 -14
- package/dist/management-C9w3DNhs.js.map +1 -0
- package/dist/metastore/index.d.cts +1 -1
- package/dist/metastore/index.d.ts +1 -1
- package/dist/metastore/types.d.cts +1 -1
- package/dist/metastore/types.d.ts +1 -1
- package/dist/microsoftGraph/index.d.cts +2 -2
- package/dist/microsoftGraph/index.d.ts +2 -2
- package/dist/microsoftGraph/types.d.cts +1 -1
- package/dist/microsoftGraph/types.d.ts +1 -1
- package/dist/{middleware-DU_5pFDW.cjs → middleware-CEP6uu_D.cjs} +4 -4
- package/dist/middleware-CEP6uu_D.cjs.map +1 -0
- package/dist/{middleware-CWaLMlG1.js → middleware-GOfx8Apu.js} +4 -4
- package/dist/middleware-GOfx8Apu.js.map +1 -0
- package/dist/notifications/index.d.cts +2 -2
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/types.d.cts +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/oauth/index.d.cts +2 -2
- package/dist/oauth/index.d.ts +2 -2
- package/dist/oauth/types.d.cts +1 -1
- package/dist/oauth/types.d.ts +1 -1
- package/dist/omnisearch/index.d.cts +2 -2
- package/dist/omnisearch/index.d.ts +2 -2
- package/dist/omnisearch/types.d.cts +1 -1
- package/dist/omnisearch/types.d.ts +1 -1
- package/dist/project-ClH22nzH.js +86 -0
- package/dist/project-ClH22nzH.js.map +1 -0
- package/dist/{project-BMmfPhXg.d.ts → project-DTfBtIJs.d.ts} +4 -3
- package/dist/project-Rh4nXiWh.cjs +139 -0
- package/dist/project-Rh4nXiWh.cjs.map +1 -0
- package/dist/{project-dxCJbFay.d.cts → project-vOnvjo80.d.cts} +4 -3
- package/dist/queryService/index.d.cts +1 -1
- package/dist/queryService/index.d.ts +1 -1
- package/dist/queryService/types.d.cts +1 -1
- package/dist/queryService/types.d.ts +1 -1
- package/dist/queue/index.d.cts +3 -3
- package/dist/queue/index.d.ts +3 -3
- package/dist/queue/types.d.cts +1 -1
- package/dist/queue/types.d.ts +1 -1
- package/dist/scheduler/index.d.cts +2 -2
- package/dist/scheduler/index.d.ts +2 -2
- package/dist/scheduler/types.d.cts +1 -1
- package/dist/scheduler/types.d.ts +1 -1
- package/dist/sdk/configurations/index.cjs +1 -1
- package/dist/sdk/configurations/index.d.cts +2 -2
- package/dist/sdk/configurations/index.d.ts +2 -2
- package/dist/sdk/configurations/index.js +1 -1
- package/dist/sdk/developerPortal/index.cjs +1 -1
- package/dist/sdk/developerPortal/index.d.cts +3 -3
- package/dist/sdk/developerPortal/index.d.ts +3 -3
- package/dist/sdk/developerPortal/index.js +1 -1
- package/dist/sdk/kaiMemory/index.d.cts +1 -1
- package/dist/sdk/kaiMemory/index.d.ts +1 -1
- package/dist/sdk/kaiMemory/types.d.cts +1 -1
- package/dist/sdk/kaiMemory/types.d.ts +1 -1
- package/dist/sdk/queryService/index.d.cts +1 -1
- package/dist/sdk/queryService/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/index.d.cts +1 -1
- package/dist/sdk/semanticLayer/index.d.ts +1 -1
- package/dist/sdk/semanticLayer/types.d.cts +1 -1
- package/dist/sdk/semanticLayer/types.d.ts +1 -1
- package/dist/sdk/tag/index.d.cts +2 -2
- package/dist/sdk/tag/index.d.ts +2 -2
- package/dist/sdk/tag/types.d.cts +1 -1
- package/dist/sdk/tag/types.d.ts +1 -1
- package/dist/sdk/vault/index.d.cts +1 -1
- package/dist/sdk/vault/index.d.ts +1 -1
- package/dist/status/index.d.cts +1 -1
- package/dist/status/index.d.ts +1 -1
- package/dist/storage/index.cjs +4 -1
- package/dist/storage/index.d.cts +3 -3
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.cts +6 -6
- package/dist/storage/types.d.ts +6 -6
- package/dist/{storage-DyR7hDdv.js → storage-CChfKlrb.js} +31 -3
- package/dist/storage-CChfKlrb.js.map +1 -0
- package/dist/{storage-yovv11k6.cjs → storage-Ci9gXgcw.cjs} +48 -2
- package/dist/storage-Ci9gXgcw.cjs.map +1 -0
- package/dist/stream/index.d.cts +2 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/types.d.cts +1 -1
- package/dist/stream/types.d.ts +1 -1
- package/dist/syncActions/index.d.cts +2 -2
- package/dist/syncActions/index.d.ts +2 -2
- package/dist/syncActions/types.d.cts +1 -1
- package/dist/syncActions/types.d.ts +1 -1
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/types.d.cts +1 -1
- package/dist/telemetry/types.d.ts +1 -1
- package/dist/{types-DHlXKVEM.d.ts → types-0R9-osUJ.d.ts} +3 -3
- package/dist/{types-CBrNIgEy.d.ts → types-302-NBaU.d.ts} +3 -3
- package/dist/{types-4HmtNuJf.d.ts → types-45O2dU2w.d.ts} +2 -2
- package/dist/{types-CZCPdPqv.d.cts → types-BAsYMltG.d.cts} +3 -3
- package/dist/{types-BiBBKcin.d.ts → types-BM6rri7-.d.ts} +3 -3
- package/dist/{types-BNPvFLgC.d.ts → types-BOT6TgOS.d.ts} +3 -4
- package/dist/{types-BiTn_JVW.d.cts → types-BT5e9TSQ.d.ts} +117 -37
- package/dist/{types-C2j6Jsie.d.ts → types-BUirSne-.d.ts} +3 -3
- package/dist/{types-BoH7NFCh.d.ts → types-BWzt1ju_.d.ts} +3 -3
- package/dist/{types-BjEiUOL6.d.ts → types-BXybSjn-.d.ts} +2 -2
- package/dist/{types-BIDKSQdc.d.ts → types-BZ--6pIt.d.ts} +169 -31
- package/dist/{types-B2ZLjagf.d.ts → types-BjwbzqJd.d.ts} +2 -2
- package/dist/{types-B6ozaDkl.d.cts → types-BnmsuDfH.d.cts} +2 -2
- package/dist/{types-Bx0TSdwF.d.cts → types-BrpIEj_N.d.ts} +2 -2
- package/dist/{types-BG0oWq8u.d.cts → types-C614wC5h.d.cts} +2 -2
- package/dist/{types-4CjbcUdD.d.cts → types-CTS2NSIb.d.cts} +2 -2
- package/dist/{types-BZBU3mwz.d.cts → types-CY8X39qv.d.cts} +3 -3
- package/dist/{types-Cw9UISvM.d.ts → types-CeqZuOEC.d.ts} +2 -2
- package/dist/{types-C3IQu1gV.d.ts → types-CfXqFz2e.d.ts} +5 -3
- package/dist/{types-BKIcow3B.d.cts → types-ChLWY8aU.d.cts} +2 -2
- package/dist/{types-B_3zoXA1.d.cts → types-CjNl7O7f.d.cts} +3 -3
- package/dist/{types-BwsE-pFo.d.cts → types-CkJxMoTk.d.cts} +2 -2
- package/dist/{types--qQPfxWt.d.cts → types-CpJhWBmH.d.cts} +2 -2
- package/dist/{types-DgIzXY-Y.d.ts → types-D2Pb_4FA.d.cts} +2 -2
- package/dist/{types-7DBpH7Rf.d.ts → types-D53zBV25.d.ts} +2 -2
- package/dist/{types-Dg8a7m7f.d.ts → types-D9ZKJYZk.d.ts} +2 -2
- package/dist/{types-BXgINefw.d.ts → types-DODAZKEm.d.ts} +2 -2
- package/dist/{types-BBbzWczQ.d.cts → types-DV7K07oX.d.cts} +3 -4
- package/dist/{types-TRJiPqJr.d.cts → types-DbXV0g8U.d.cts} +2 -2
- package/dist/{types-BcQ3j8xK.d.ts → types-DjadPty5.d.ts} +2 -2
- package/dist/{types-DWJVbskE.d.ts → types-DlhNay1n.d.ts} +2 -2
- package/dist/{types-DBJ8c3hN.d.cts → types-DmzSFOhK.d.cts} +2 -2
- package/dist/{types-B_1plf0y.d.cts → types-DpbrGDRf.d.cts} +2 -2
- package/dist/{types-ituiCs8g.d.ts → types-DqOxIujY.d.ts} +2 -2
- package/dist/{types-D8w9lyb8.d.cts → types-Duurgaqk.d.cts} +7 -3
- package/dist/{types-C7t_6FLh.d.ts → types-Dy6EdWPG.d.ts} +2 -2
- package/dist/{types-kbyIaA7p.d.cts → types-HmK8iKp5.d.cts} +3 -3
- package/dist/{types-BdF6NDvo.d.cts → types-JZ0Bdlpk.d.cts} +2 -2
- package/dist/{types-OkQWmonU.d.cts → types-O6XM48J8.d.cts} +2 -2
- package/dist/{types-CEw2IzWk.d.ts → types-RogkWzOu.d.ts} +2 -2
- package/dist/{types-C2JMisvL.d.ts → types-TmrPVMhy.d.cts} +117 -37
- package/dist/{types-ij6BpTzR.d.ts → types-_zKX6JmD.d.ts} +2 -2
- package/dist/{types-L50Y6ATu.d.cts → types-dn6MHur3.d.cts} +5 -3
- package/dist/{types-4bSZLxq3.d.cts → types-jN2KmMet.d.cts} +169 -31
- package/dist/{types-D51g4h9w.d.cts → types-jfPoUlO8.d.cts} +2 -2
- package/dist/{types-CMKIdreQ.d.cts → types-ptynVnkv.d.cts} +3 -3
- package/dist/{types-COQOzyac.d.ts → types-tdIo5FpR.d.ts} +7 -3
- package/dist/{types-DPDq8C4q.d.cts → types-vvw_H7wp.d.cts} +2 -2
- package/dist/vault/index.d.cts +1 -1
- package/dist/vault/index.d.ts +1 -1
- package/dist/vault/types.d.cts +1 -1
- package/dist/vault/types.d.ts +1 -1
- package/package.json +1 -1
- package/surface/ai.md +0 -1
- package/surface/apps.md +7 -7
- package/surface/billing.md +2 -2
- package/surface/kaiAgent.md +5 -4
- package/surface/management.md +3 -1
- package/surface/storage.md +3 -2
- package/dist/configurations-BTRHVSRq.cjs.map +0 -1
- package/dist/configurations-Chg_JwJ1.js.map +0 -1
- package/dist/constants-CA4UN2Xv.js.map +0 -1
- package/dist/constants-a0jswUeK.cjs.map +0 -1
- package/dist/domain/permissions/index.cjs.map +0 -1
- package/dist/domain/permissions/index.js.map +0 -1
- package/dist/kaiAgent-BmfUG8bB.cjs.map +0 -1
- package/dist/kaiAgent-CBPbMwBh.js.map +0 -1
- package/dist/management-BUGPJ1Bu.cjs.map +0 -1
- package/dist/management-DAg2obYt.js.map +0 -1
- package/dist/middleware-CWaLMlG1.js.map +0 -1
- package/dist/middleware-DU_5pFDW.cjs.map +0 -1
- package/dist/project-BXLFrWJ6.js +0 -45
- package/dist/project-BXLFrWJ6.js.map +0 -1
- package/dist/project-CpgplgCr.cjs +0 -62
- package/dist/project-CpgplgCr.cjs.map +0 -1
- package/dist/storage-DyR7hDdv.js.map +0 -1
- package/dist/storage-yovv11k6.cjs.map +0 -1
package/dist/kaiAgent/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h as ProjectToolPolicyValue, m as ProjectToolPolicy } from "../types-
|
|
2
|
-
import { a as
|
|
3
|
-
export { type AgentSettings, type ProjectToolPolicy, type ProjectToolPolicyValue, type UserAgentSettings, type UserMemory, createKaiAgentClient };
|
|
1
|
+
import { h as ProjectToolPolicyValue, m as ProjectToolPolicy } from "../types-ChLWY8aU.cjs";
|
|
2
|
+
import { a as UserAgentSettings, n as MemorySaveMode, o as UserMemory, s as createKaiAgentClient, t as AgentSettings } from "../index-CrrHvDiX.cjs";
|
|
3
|
+
export { type AgentSettings, type MemorySaveMode, type ProjectToolPolicy, type ProjectToolPolicyValue, type UserAgentSettings, type UserMemory, createKaiAgentClient };
|
package/dist/kaiAgent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h as ProjectToolPolicyValue, m as ProjectToolPolicy } from "../types-
|
|
2
|
-
import { a as
|
|
3
|
-
export { type AgentSettings, type ProjectToolPolicy, type ProjectToolPolicyValue, type UserAgentSettings, type UserMemory, createKaiAgentClient };
|
|
1
|
+
import { h as ProjectToolPolicyValue, m as ProjectToolPolicy } from "../types-DODAZKEm.js";
|
|
2
|
+
import { a as UserAgentSettings, n as MemorySaveMode, o as UserMemory, s as createKaiAgentClient, t as AgentSettings } from "../index-D6JMbJ9b.js";
|
|
3
|
+
export { type AgentSettings, type MemorySaveMode, type ProjectToolPolicy, type ProjectToolPolicyValue, type UserAgentSettings, type UserMemory, createKaiAgentClient };
|
package/dist/kaiAgent/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createKaiAgentClient } from "../kaiAgent-
|
|
1
|
+
import { t as createKaiAgentClient } from "../kaiAgent-CYvrS8oZ.js";
|
|
2
2
|
export { createKaiAgentClient };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatWithMessages, c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "../types-
|
|
1
|
+
import { a as ChatWithMessages, c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "../types-Duurgaqk.cjs";
|
|
2
2
|
export { ApprovalBody, ArtifactListResponse, ArtifactResponse, ChatRequest, ChatWithMessages, GetArtifactPath, GetArtifactsQuery, GetChatPath, GetHistoryQuery, GetVotesQuery, PrepareChatRequest, UsageResponse, VoteRequest };
|
package/dist/kaiAgent/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatWithMessages, c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "../types-
|
|
1
|
+
import { a as ChatWithMessages, c as GetChatPath, d as PrepareChatRequest, f as UsageResponse, i as ChatRequest, l as GetHistoryQuery, n as ArtifactListResponse, o as GetArtifactPath, p as VoteRequest, r as ArtifactResponse, s as GetArtifactsQuery, t as ApprovalBody, u as GetVotesQuery } from "../types-tdIo5FpR.js";
|
|
2
2
|
export { ApprovalBody, ArtifactListResponse, ArtifactResponse, ChatRequest, ChatWithMessages, GetArtifactPath, GetArtifactsQuery, GetChatPath, GetHistoryQuery, GetVotesQuery, PrepareChatRequest, UsageResponse, VoteRequest };
|
|
@@ -24,14 +24,16 @@ const userAgentSettingsSchema = z.object({
|
|
|
24
24
|
customInstructions: z.string().nullable(),
|
|
25
25
|
toolPermissions: z.record(z.string(), toolPermissionValueSchema).nullable(),
|
|
26
26
|
projectToolPermissions: z.record(z.string(), projectToolPolicyValueSchema).nullable().optional(),
|
|
27
|
+
memorySaveMode: z.enum(["auto", "ask"]).optional(),
|
|
27
28
|
createdAt: z.string(),
|
|
28
29
|
updatedAt: z.string()
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
+
const userMemorySchema = z.object({
|
|
31
32
|
id: z.string(),
|
|
32
33
|
content: z.string(),
|
|
33
34
|
createdAt: z.string()
|
|
34
|
-
})
|
|
35
|
+
});
|
|
36
|
+
const userMemoriesSchema = z.object({ memories: z.array(userMemorySchema) });
|
|
35
37
|
const toolInfoSchema = z.object({
|
|
36
38
|
name: z.string(),
|
|
37
39
|
description: z.string(),
|
|
@@ -227,6 +229,12 @@ const createKaiAgentClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
227
229
|
if (!result.success) throw new Error("Invalid user memories response format");
|
|
228
230
|
return result.data.memories;
|
|
229
231
|
};
|
|
232
|
+
const updateUserMemory = async (memoryId, content, signal) => {
|
|
233
|
+
const { data } = await genericClient.patch(`/api/settings/user/memories/${encodeURIComponent(memoryId)}`, { body: { content } }, { signal });
|
|
234
|
+
const result = userMemorySchema.safeParse(data);
|
|
235
|
+
if (!result.success) throw new Error("Invalid user memory response format");
|
|
236
|
+
return result.data;
|
|
237
|
+
};
|
|
230
238
|
const deleteUserMemory = async (memoryId, signal) => {
|
|
231
239
|
await genericClient.delete(`/api/settings/user/memories/${encodeURIComponent(memoryId)}`, {}, { signal });
|
|
232
240
|
};
|
|
@@ -314,6 +322,7 @@ const createKaiAgentClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
314
322
|
getUserAgentSettings,
|
|
315
323
|
updateUserAgentSettings,
|
|
316
324
|
getUserMemories,
|
|
325
|
+
updateUserMemory,
|
|
317
326
|
deleteUserMemory,
|
|
318
327
|
getSpendCaps,
|
|
319
328
|
updateSpendCaps,
|
|
@@ -330,4 +339,4 @@ const createKaiAgentClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
330
339
|
//#endregion
|
|
331
340
|
export { createKaiAgentClient as t };
|
|
332
341
|
|
|
333
|
-
//# sourceMappingURL=kaiAgent-
|
|
342
|
+
//# sourceMappingURL=kaiAgent-CYvrS8oZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kaiAgent-CYvrS8oZ.js","names":[],"sources":["../src/clients/kaiAgent/kaiAgentClient.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { createGenericFetchClient, createOpenapiFetchClient, isApiError } from '../../fetchClient';\nimport { HttpStatus } from '../../internal';\nimport { createAuthHeaders } from '../auth';\nimport type { SuggestionsApiResponse, SuggestionsRequestBody } from '../chat/suggestions';\nimport type { ProjectToolPolicy, ProjectToolPolicyValue } from '../chat/types';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n ApprovalBody,\n ArtifactListResponse,\n ArtifactResponse,\n ChatRequest,\n GetArtifactPath,\n GetArtifactsQuery,\n GetChatPath,\n GetHistoryQuery,\n GetVotesQuery,\n PrepareChatRequest,\n UsageResponse,\n VoteRequest,\n} from './types';\n\nconst projectToolPolicyValueSchema: z.ZodType<ProjectToolPolicyValue> = z.enum([\n 'blocked',\n 'always_ask',\n]);\n\nconst agentSettingsSchema = z.object({\n projectId: z.string(),\n customInstructions: z.string().nullable(),\n toolPermissions: z.record(z.string(), projectToolPolicyValueSchema).nullable().optional(),\n canWriteToolPolicy: z.boolean().optional(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nconst toolPermissionValueSchema = z.enum(['always_allow', 'always_ask', 'blocked']);\n\nconst userAgentSettingsSchema = z.object({\n projectId: z.string(),\n userId: z.string(),\n customInstructions: z.string().nullable(),\n toolPermissions: z.record(z.string(), toolPermissionValueSchema).nullable(),\n projectToolPermissions: z.record(z.string(), projectToolPolicyValueSchema).nullable().optional(),\n // Optional on the wire (rollout skew): an older kai-agent omits it, and its default is `auto`.\n memorySaveMode: z.enum(['auto', 'ask']).optional(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nconst userMemorySchema = z.object({ id: z.string(), content: z.string(), createdAt: z.string() });\n\nconst userMemoriesSchema = z.object({ memories: z.array(userMemorySchema) });\n\nconst toolInfoSchema = z.object({\n name: z.string(),\n description: z.string(),\n readOnly: z.boolean(),\n});\n\nconst toolsListResponseSchema = z.object({\n tools: z.array(toolInfoSchema),\n});\n\nconst skillInfoSchema = z.object({\n name: z.string(),\n description: z.string().nullable(),\n source: z.enum(['first-party', 'vendored', 'project']),\n});\n\nconst builtInCommandSchema = z.object({\n name: z.string(),\n description: z.string(),\n});\n\nconst skillsListResponseSchema = z.object({\n skills: z.array(skillInfoSchema),\n commands: z.array(builtInCommandSchema),\n});\n\nconst sandboxFileEntrySchema = z.object({\n name: z.string(),\n path: z.string(),\n type: z.enum(['file', 'dir']),\n size: z.number().int().nonnegative().optional(),\n});\n\nconst sandboxFileListingSchema = z.object({\n entries: z.array(sandboxFileEntrySchema),\n});\n\nconst sandboxFileContentSchema = z.object({\n content: z.string(),\n encoding: z.enum(['utf-8', 'binary']),\n truncated: z.boolean(),\n size: z.number().int().nonnegative(),\n});\n\nconst sandboxGitBranchSchema = z.object({\n branch: z.string().nullable(),\n});\n\n// `userId` only: kai-agent cannot resolve project members. Join it against\n// `api.management.projects.getProjectUsers`.\nconst spendCapMemberSchema = z.object({\n userId: z.string(),\n overrideLimitPpu: z.number().nullable(),\n effectiveLimitPpu: z.number().nullable(),\n usedPpu: z.number(),\n overrideUpdatedAt: z.string().nullable(),\n overrideUpdatedByUserId: z.string().nullable(),\n});\n\nconst spendCapsViewSchema = z.object({\n // `null` = no configured cap, not unlimited — see `effectiveProjectCapPpu`.\n projectCapPpu: z.number().nullable(),\n // The enforced cap (`projectCapPpu` or kai-agent's DEFAULT_PROJECT_CAP_PPU).\n // Render this; `projectCapPpu` only tells configured from default.\n effectiveProjectCapPpu: z.number(),\n // Platform default regardless of what's saved; validates a cleared-but-unsaved field.\n // Optional on the wire (rollout skew); `withDefaultProjectCap` fills it in.\n defaultProjectCapPpu: z.number().optional(),\n defaultUserLimitPpu: z.number().nullable(),\n projectUsedPpu: z.number(),\n canWrite: z.boolean(),\n members: z.array(spendCapMemberSchema),\n updatedAt: z.string().nullable(),\n updatedByUserId: z.string().nullable(),\n});\n\nconst votesResponseSchema = z.array(\n z.object({\n chatId: z.string(),\n messageId: z.string(),\n isUpvoted: z.boolean(),\n }),\n);\n\nexport type SpendCapMember = z.infer<typeof spendCapMemberSchema>;\n// `defaultProjectCapPpu` is always present here — `getSpendCaps`/`updateSpendCaps` fill it in.\nexport type SpendCapsView = Omit<z.infer<typeof spendCapsViewSchema>, 'defaultProjectCapPpu'> & {\n defaultProjectCapPpu: number;\n};\nexport type AgentSettings = z.infer<typeof agentSettingsSchema>;\nexport type UserAgentSettings = z.infer<typeof userAgentSettingsSchema>;\nexport type UserMemory = z.infer<typeof userMemorySchema>;\nexport type MemorySaveMode = NonNullable<UserAgentSettings['memorySaveMode']>;\ntype ToolsListResponse = z.infer<typeof toolsListResponseSchema>;\ntype SkillsListResponse = z.infer<typeof skillsListResponseSchema>;\ntype SandboxFileListing = z.infer<typeof sandboxFileListingSchema>;\ntype SandboxFileContent = z.infer<typeof sandboxFileContentSchema>;\ntype SandboxGitBranch = z.infer<typeof sandboxGitBranchSchema>;\ntype VotesResponse = z.infer<typeof votesResponseSchema>;\n\ntype UpdateAgentSettingsRequest = {\n customInstructions?: string | null;\n};\n\ntype UpdateUserAgentSettingsRequest = {\n customInstructions?: string | null;\n toolPermissions?: Record<string, z.infer<typeof toolPermissionValueSchema>> | null;\n memorySaveMode?: MemorySaveMode;\n};\n\ntype UpdateSpendCapsRequest = {\n projectCapPpu?: number | null;\n defaultUserLimitPpu?: number | null;\n};\n\nexport const createKaiAgentClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const clientOptions = {\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n };\n\n const client = createOpenapiFetchClient<paths>(clientOptions);\n const genericClient = createGenericFetchClient(clientOptions);\n\n const getHistory = async (params?: GetHistoryQuery, signal?: AbortSignal) => {\n const { data } = await client.get('/api/history', { query: params }, { signal });\n return data;\n };\n\n const getChat = async (chatId: GetChatPath['id'], signal?: AbortSignal) => {\n const { data } = await client.get('/api/chat/{id}', { path: { id: chatId } }, { signal });\n return data;\n };\n\n const deleteChat = async (chatId: string) => {\n const { data } = await client.delete('/api/chat', { query: { id: chatId } });\n return data;\n };\n\n const createChat = async (request: ChatRequest) => {\n const { response } = await client.post('/api/chat', { body: request });\n return response;\n };\n\n const getVotes = async (chatId: GetVotesQuery['chatId']): Promise<VotesResponse> => {\n const { data } = await client.get('/api/vote', { query: { chatId } });\n\n const result = votesResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid votes response format');\n }\n\n return result.data;\n };\n\n const submitVote = async (params: VoteRequest) => {\n await client.patch('/api/vote', { body: params });\n };\n\n /**\n * Every artifact a chat produced, oldest first.\n *\n * - Read-only by design: artifacts are derived server-side at the end of a turn, so there is\n * no write route to pair with this.\n * - The chat is the authorization — a chat the caller cannot read has no artifacts.\n */\n const getArtifacts = async (\n chatId: GetArtifactsQuery['chatId'],\n signal?: AbortSignal,\n ): Promise<ArtifactListResponse> => {\n const { data } = await client.get('/api/artifacts', { query: { chatId } }, { signal });\n return data;\n };\n\n const getArtifact = async (\n artifactId: GetArtifactPath['id'],\n signal?: AbortSignal,\n ): Promise<ArtifactResponse> => {\n const { data } = await client.get(\n '/api/artifacts/{id}',\n { path: { id: artifactId } },\n {\n signal,\n },\n );\n return data;\n };\n\n const getUsage = async (signal?: AbortSignal): Promise<UsageResponse> => {\n const { data } = await client.get('/api/usage', {}, { signal });\n // `freeAllowance` is ahead of the generated schema — a guard turns a missing field into `null`.\n const parsed = z\n .object({\n freeAllowance: z\n .object({ grantedPpu: z.number(), remainingPpu: z.number() })\n .nullable()\n .optional(),\n })\n .safeParse(data);\n const freeAllowance = parsed.success ? (parsed.data.freeAllowance ?? null) : null;\n return { ...data, freeAllowance };\n };\n\n const approveToolCall = async (chatId: string, body: ApprovalBody): Promise<void> => {\n await client.post('/api/chat/{id}/approval', { path: { id: chatId }, body });\n };\n\n const submitToolOutput = async (\n chatId: string,\n body: { toolUseId: string; output?: string; errorText?: string },\n ): Promise<void> => {\n await client.post('/api/chat/{id}/ui-tool-result', { path: { id: chatId }, body });\n };\n\n const stopChat = async (chatId: string): Promise<{ stopped: boolean }> => {\n const { data } = await client.post('/api/chat/{id}/stop', { path: { id: chatId } });\n return data;\n };\n\n /**\n * Ask the engine to build this chat's sandbox before a turn needs one.\n *\n * - The work continues after the response.\n * - A host that does not pre-warm answers 404, returned as `{ started: false }`.\n */\n const prepareChat = async (\n chatId: string,\n signal?: AbortSignal,\n body: PrepareChatRequest = {},\n ): Promise<{ started: boolean }> => {\n try {\n const { data } = await client.post(\n '/api/chat/{id}/prepare',\n { path: { id: chatId }, body },\n { signal },\n );\n return data;\n } catch (error) {\n // 404 = pre-warm not supported here.\n if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) {\n return { started: false };\n }\n throw error;\n }\n };\n\n const getSuggestions = async (\n request: SuggestionsRequestBody,\n signal?: AbortSignal,\n ): Promise<SuggestionsApiResponse> => {\n const { data } = await client.post('/api/suggestions', { body: request }, { signal });\n return data;\n };\n\n const getAgentSettings = async (signal?: AbortSignal): Promise<AgentSettings> => {\n const { data } = await genericClient.get<AgentSettings>('/api/settings', {}, { signal });\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const updateAgentSettings = async (\n request: UpdateAgentSettingsRequest,\n signal?: AbortSignal,\n ): Promise<AgentSettings> => {\n const { data } = await genericClient.patch<AgentSettings>(\n '/api/settings',\n { body: request },\n { signal },\n );\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const updateProjectToolPolicy = async (\n toolPermissions: ProjectToolPolicy,\n signal?: AbortSignal,\n ): Promise<AgentSettings> => {\n const { data } = await genericClient.put<AgentSettings>(\n '/api/settings/tool-permissions',\n { body: { toolPermissions } },\n { signal },\n );\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const getUserAgentSettings = async (signal?: AbortSignal): Promise<UserAgentSettings> => {\n const { data } = await genericClient.get<UserAgentSettings>(\n '/api/settings/user',\n {},\n { signal },\n );\n const result = userAgentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user agent settings response format');\n }\n return result.data;\n };\n\n const updateUserAgentSettings = async (\n request: UpdateUserAgentSettingsRequest,\n signal?: AbortSignal,\n ): Promise<UserAgentSettings> => {\n const { data } = await genericClient.patch<UserAgentSettings>(\n '/api/settings/user',\n { body: request },\n { signal },\n );\n const result = userAgentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user agent settings response format');\n }\n return result.data;\n };\n\n // Not in `__generated__/schema` yet, hence `genericClient` + zod, like the spend caps below.\n const getUserMemories = async (signal?: AbortSignal): Promise<UserMemory[]> => {\n const { data } = await genericClient.get('/api/settings/user/memories', {}, { signal });\n const result = userMemoriesSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user memories response format');\n }\n return result.data.memories;\n };\n\n const updateUserMemory = async (\n memoryId: string,\n content: string,\n signal?: AbortSignal,\n ): Promise<UserMemory> => {\n const { data } = await genericClient.patch(\n `/api/settings/user/memories/${encodeURIComponent(memoryId)}`,\n { body: { content } },\n { signal },\n );\n const result = userMemorySchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user memory response format');\n }\n return result.data;\n };\n\n const deleteUserMemory = async (memoryId: string, signal?: AbortSignal): Promise<void> => {\n await genericClient.delete(\n `/api/settings/user/memories/${encodeURIComponent(memoryId)}`,\n {},\n { signal },\n );\n };\n\n // An older kai-agent omits `defaultProjectCapPpu`; fall back rather than throw.\n const withDefaultProjectCap = (view: z.infer<typeof spendCapsViewSchema>): SpendCapsView => ({\n ...view,\n defaultProjectCapPpu: view.defaultProjectCapPpu ?? view.effectiveProjectCapPpu,\n });\n\n // Not in `__generated__/schema` yet (see docs/regenerate-api-types.md), hence `genericClient`\n // + zod. Switch to `client.get('/api/settings/spend-caps')` once it regenerates.\n const getSpendCaps = async (signal?: AbortSignal): Promise<SpendCapsView> => {\n const { data } = await genericClient.get<SpendCapsView>(\n '/api/settings/spend-caps',\n {},\n { signal },\n );\n const result = spendCapsViewSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend caps response format');\n }\n return withDefaultProjectCap(result.data);\n };\n\n const updateSpendCaps = async (\n request: UpdateSpendCapsRequest,\n signal?: AbortSignal,\n ): Promise<SpendCapsView> => {\n const { data } = await genericClient.patch<SpendCapsView>(\n '/api/settings/spend-caps',\n { body: request },\n { signal },\n );\n const result = spendCapsViewSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend caps response format');\n }\n return withDefaultProjectCap(result.data);\n };\n\n const setUserSpendLimit = async (\n userId: string,\n overrideLimitPpu: number | null,\n signal?: AbortSignal,\n ): Promise<SpendCapMember> => {\n const { data } = await genericClient.put<SpendCapMember>(\n `/api/settings/spend-caps/users/${encodeURIComponent(userId)}`,\n { body: { overrideLimitPpu } },\n { signal },\n );\n const result = spendCapMemberSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend cap member response format');\n }\n return result.data;\n };\n\n const getToolsList = async (signal?: AbortSignal): Promise<ToolsListResponse> => {\n const { data } = await genericClient.get<ToolsListResponse>(\n '/api/settings/tools',\n {},\n { signal },\n );\n const result = toolsListResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid tools list response format');\n }\n return result.data;\n };\n\n const getSkillsList = async (signal?: AbortSignal): Promise<SkillsListResponse> => {\n const { data } = await genericClient.get<SkillsListResponse>('/api/skills', {}, { signal });\n const result = skillsListResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid skills list response format');\n }\n return result.data;\n };\n\n const listSandboxFiles = async (\n chatId: string,\n path?: string,\n signal?: AbortSignal,\n ): Promise<SandboxFileListing> => {\n const { data } = await genericClient.get<SandboxFileListing>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/files`,\n { query: path ? { path } : undefined },\n { signal },\n );\n const result = sandboxFileListingSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox files response format');\n }\n return result.data;\n };\n\n const readSandboxFile = async (\n chatId: string,\n path: string,\n signal?: AbortSignal,\n ): Promise<SandboxFileContent> => {\n const { data } = await genericClient.get<SandboxFileContent>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/file`,\n { query: { path } },\n { signal },\n );\n const result = sandboxFileContentSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox file response format');\n }\n return result.data;\n };\n\n const downloadSandboxFile = async (\n chatId: string,\n path: string,\n signal?: AbortSignal,\n ): Promise<Blob> => {\n // `parseData` returns a declared octet-stream body as a Blob, bytes intact.\n const { data } = await genericClient.get<Blob>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/file/download`,\n { query: { path } },\n { signal },\n );\n if (!(data instanceof Blob)) {\n throw new Error('Invalid sandbox file download response format');\n }\n return data;\n };\n\n const getSandboxGitBranch = async (\n chatId: string,\n signal?: AbortSignal,\n ): Promise<SandboxGitBranch> => {\n const { data } = await genericClient.get<SandboxGitBranch>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/git-branch`,\n {},\n { signal },\n );\n const result = sandboxGitBranchSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox git-branch response format');\n }\n return result.data;\n };\n\n const chatStreamUrl = clientOptions.baseUrl + '/api/chat';\n\n // `/health`, not `/ping`: it returns `{\"status\":\"ok\"}` like other services, not a timestamp.\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n getHistory,\n getChat,\n deleteChat,\n createChat,\n getVotes,\n submitVote,\n getUsage,\n getArtifacts,\n getArtifact,\n approveToolCall,\n submitToolOutput,\n stopChat,\n prepareChat,\n getSuggestions,\n getAgentSettings,\n updateAgentSettings,\n updateProjectToolPolicy,\n getUserAgentSettings,\n updateUserAgentSettings,\n getUserMemories,\n updateUserMemory,\n deleteUserMemory,\n getSpendCaps,\n updateSpendCaps,\n setUserSpendLimit,\n getToolsList,\n getSkillsList,\n listSandboxFiles,\n readSandboxFile,\n downloadSandboxFile,\n getSandboxGitBranch,\n chatStreamUrl,\n };\n};\n"],"mappings":";;;;;;AAyBA,MAAM,+BAAkE,EAAE,KAAK,CAC7E,WACA,YACF,CAAC;AAED,MAAM,sBAAsB,EAAE,OAAO;CACnC,WAAW,EAAE,OAAO;CACpB,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS;CACzC,WAAW,EAAE,OAAO;CACpB,WAAW,EAAE,OAAO;AACtB,CAAC;AAED,MAAM,4BAA4B,EAAE,KAAK;CAAC;CAAgB;CAAc;AAAS,CAAC;AAElF,MAAM,0BAA0B,EAAE,OAAO;CACvC,WAAW,EAAE,OAAO;CACpB,QAAQ,EAAE,OAAO;CACjB,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,yBAAyB,CAAC,CAAC,SAAS;CAC1E,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAE/F,gBAAgB,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CA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,SACV,MAAM,IAAI,MAAM,sCAAsC;EAExD,OAAO,OAAO;CAChB;CAEA,MAAM,sBAAsB,OAC1B,QACA,MACA,WACkB;EAElB,MAAM,EAAE,SAAS,MAAM,cAAc,IACnC,aAAa,mBAAmB,MAAM,EAAE,yBACxC,EAAE,OAAO,EAAE,KAAK,EAAE,GAClB,EAAE,OAAO,CACX;EACA,IAAI,EAAE,gBAAgB,OACpB,MAAM,IAAI,MAAM,+CAA+C;EAEjE,OAAO;CACT;CAEA,MAAM,sBAAsB,OAC1B,QACA,WAC8B;EAC9B,MAAM,EAAE,SAAS,MAAM,cAAc,IACnC,aAAa,mBAAmB,MAAM,EAAE,sBACxC,CAAC,GACD,EAAE,OAAO,CACX;EACA,MAAM,SAAS,uBAAuB,UAAU,IAAI;EACpD,IAAI,CAAC,OAAO,SACV,MAAM,IAAI,MAAM,4CAA4C;EAE9D,OAAO,OAAO;CAChB;CAEA,MAAM,gBAAgB,cAAc,UAAU;CAG9C,MAAM,cAAc,OAAO,WAAyB;EAClD,MAAM,EAAE,SAAS,MAAM,cAAc,IAAI,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC;EAElE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -24,14 +24,16 @@ const userAgentSettingsSchema = zod.z.object({
|
|
|
24
24
|
customInstructions: zod.z.string().nullable(),
|
|
25
25
|
toolPermissions: zod.z.record(zod.z.string(), toolPermissionValueSchema).nullable(),
|
|
26
26
|
projectToolPermissions: zod.z.record(zod.z.string(), projectToolPolicyValueSchema).nullable().optional(),
|
|
27
|
+
memorySaveMode: zod.z.enum(["auto", "ask"]).optional(),
|
|
27
28
|
createdAt: zod.z.string(),
|
|
28
29
|
updatedAt: zod.z.string()
|
|
29
30
|
});
|
|
30
|
-
const
|
|
31
|
+
const userMemorySchema = zod.z.object({
|
|
31
32
|
id: zod.z.string(),
|
|
32
33
|
content: zod.z.string(),
|
|
33
34
|
createdAt: zod.z.string()
|
|
34
|
-
})
|
|
35
|
+
});
|
|
36
|
+
const userMemoriesSchema = zod.z.object({ memories: zod.z.array(userMemorySchema) });
|
|
35
37
|
const toolInfoSchema = zod.z.object({
|
|
36
38
|
name: zod.z.string(),
|
|
37
39
|
description: zod.z.string(),
|
|
@@ -227,6 +229,12 @@ const createKaiAgentClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
227
229
|
if (!result.success) throw new Error("Invalid user memories response format");
|
|
228
230
|
return result.data.memories;
|
|
229
231
|
};
|
|
232
|
+
const updateUserMemory = async (memoryId, content, signal) => {
|
|
233
|
+
const { data } = await genericClient.patch(`/api/settings/user/memories/${encodeURIComponent(memoryId)}`, { body: { content } }, { signal });
|
|
234
|
+
const result = userMemorySchema.safeParse(data);
|
|
235
|
+
if (!result.success) throw new Error("Invalid user memory response format");
|
|
236
|
+
return result.data;
|
|
237
|
+
};
|
|
230
238
|
const deleteUserMemory = async (memoryId, signal) => {
|
|
231
239
|
await genericClient.delete(`/api/settings/user/memories/${encodeURIComponent(memoryId)}`, {}, { signal });
|
|
232
240
|
};
|
|
@@ -314,6 +322,7 @@ const createKaiAgentClient = ({ baseUrl, middlewares, auth }) => {
|
|
|
314
322
|
getUserAgentSettings,
|
|
315
323
|
updateUserAgentSettings,
|
|
316
324
|
getUserMemories,
|
|
325
|
+
updateUserMemory,
|
|
317
326
|
deleteUserMemory,
|
|
318
327
|
getSpendCaps,
|
|
319
328
|
updateSpendCaps,
|
|
@@ -335,4 +344,4 @@ Object.defineProperty(exports, "createKaiAgentClient", {
|
|
|
335
344
|
}
|
|
336
345
|
});
|
|
337
346
|
|
|
338
|
-
//# sourceMappingURL=kaiAgent-
|
|
347
|
+
//# sourceMappingURL=kaiAgent-N2qbUFZm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kaiAgent-N2qbUFZm.cjs","names":["z","createAuthHeaders","createOpenapiFetchClient","createGenericFetchClient","isApiError","HttpStatus"],"sources":["../src/clients/kaiAgent/kaiAgentClient.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { createGenericFetchClient, createOpenapiFetchClient, isApiError } from '../../fetchClient';\nimport { HttpStatus } from '../../internal';\nimport { createAuthHeaders } from '../auth';\nimport type { SuggestionsApiResponse, SuggestionsRequestBody } from '../chat/suggestions';\nimport type { ProjectToolPolicy, ProjectToolPolicyValue } from '../chat/types';\nimport type { ClientInitOptions } from '../types';\n\nimport type { paths } from './__generated__/schema';\nimport type {\n ApprovalBody,\n ArtifactListResponse,\n ArtifactResponse,\n ChatRequest,\n GetArtifactPath,\n GetArtifactsQuery,\n GetChatPath,\n GetHistoryQuery,\n GetVotesQuery,\n PrepareChatRequest,\n UsageResponse,\n VoteRequest,\n} from './types';\n\nconst projectToolPolicyValueSchema: z.ZodType<ProjectToolPolicyValue> = z.enum([\n 'blocked',\n 'always_ask',\n]);\n\nconst agentSettingsSchema = z.object({\n projectId: z.string(),\n customInstructions: z.string().nullable(),\n toolPermissions: z.record(z.string(), projectToolPolicyValueSchema).nullable().optional(),\n canWriteToolPolicy: z.boolean().optional(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nconst toolPermissionValueSchema = z.enum(['always_allow', 'always_ask', 'blocked']);\n\nconst userAgentSettingsSchema = z.object({\n projectId: z.string(),\n userId: z.string(),\n customInstructions: z.string().nullable(),\n toolPermissions: z.record(z.string(), toolPermissionValueSchema).nullable(),\n projectToolPermissions: z.record(z.string(), projectToolPolicyValueSchema).nullable().optional(),\n // Optional on the wire (rollout skew): an older kai-agent omits it, and its default is `auto`.\n memorySaveMode: z.enum(['auto', 'ask']).optional(),\n createdAt: z.string(),\n updatedAt: z.string(),\n});\n\nconst userMemorySchema = z.object({ id: z.string(), content: z.string(), createdAt: z.string() });\n\nconst userMemoriesSchema = z.object({ memories: z.array(userMemorySchema) });\n\nconst toolInfoSchema = z.object({\n name: z.string(),\n description: z.string(),\n readOnly: z.boolean(),\n});\n\nconst toolsListResponseSchema = z.object({\n tools: z.array(toolInfoSchema),\n});\n\nconst skillInfoSchema = z.object({\n name: z.string(),\n description: z.string().nullable(),\n source: z.enum(['first-party', 'vendored', 'project']),\n});\n\nconst builtInCommandSchema = z.object({\n name: z.string(),\n description: z.string(),\n});\n\nconst skillsListResponseSchema = z.object({\n skills: z.array(skillInfoSchema),\n commands: z.array(builtInCommandSchema),\n});\n\nconst sandboxFileEntrySchema = z.object({\n name: z.string(),\n path: z.string(),\n type: z.enum(['file', 'dir']),\n size: z.number().int().nonnegative().optional(),\n});\n\nconst sandboxFileListingSchema = z.object({\n entries: z.array(sandboxFileEntrySchema),\n});\n\nconst sandboxFileContentSchema = z.object({\n content: z.string(),\n encoding: z.enum(['utf-8', 'binary']),\n truncated: z.boolean(),\n size: z.number().int().nonnegative(),\n});\n\nconst sandboxGitBranchSchema = z.object({\n branch: z.string().nullable(),\n});\n\n// `userId` only: kai-agent cannot resolve project members. Join it against\n// `api.management.projects.getProjectUsers`.\nconst spendCapMemberSchema = z.object({\n userId: z.string(),\n overrideLimitPpu: z.number().nullable(),\n effectiveLimitPpu: z.number().nullable(),\n usedPpu: z.number(),\n overrideUpdatedAt: z.string().nullable(),\n overrideUpdatedByUserId: z.string().nullable(),\n});\n\nconst spendCapsViewSchema = z.object({\n // `null` = no configured cap, not unlimited — see `effectiveProjectCapPpu`.\n projectCapPpu: z.number().nullable(),\n // The enforced cap (`projectCapPpu` or kai-agent's DEFAULT_PROJECT_CAP_PPU).\n // Render this; `projectCapPpu` only tells configured from default.\n effectiveProjectCapPpu: z.number(),\n // Platform default regardless of what's saved; validates a cleared-but-unsaved field.\n // Optional on the wire (rollout skew); `withDefaultProjectCap` fills it in.\n defaultProjectCapPpu: z.number().optional(),\n defaultUserLimitPpu: z.number().nullable(),\n projectUsedPpu: z.number(),\n canWrite: z.boolean(),\n members: z.array(spendCapMemberSchema),\n updatedAt: z.string().nullable(),\n updatedByUserId: z.string().nullable(),\n});\n\nconst votesResponseSchema = z.array(\n z.object({\n chatId: z.string(),\n messageId: z.string(),\n isUpvoted: z.boolean(),\n }),\n);\n\nexport type SpendCapMember = z.infer<typeof spendCapMemberSchema>;\n// `defaultProjectCapPpu` is always present here — `getSpendCaps`/`updateSpendCaps` fill it in.\nexport type SpendCapsView = Omit<z.infer<typeof spendCapsViewSchema>, 'defaultProjectCapPpu'> & {\n defaultProjectCapPpu: number;\n};\nexport type AgentSettings = z.infer<typeof agentSettingsSchema>;\nexport type UserAgentSettings = z.infer<typeof userAgentSettingsSchema>;\nexport type UserMemory = z.infer<typeof userMemorySchema>;\nexport type MemorySaveMode = NonNullable<UserAgentSettings['memorySaveMode']>;\ntype ToolsListResponse = z.infer<typeof toolsListResponseSchema>;\ntype SkillsListResponse = z.infer<typeof skillsListResponseSchema>;\ntype SandboxFileListing = z.infer<typeof sandboxFileListingSchema>;\ntype SandboxFileContent = z.infer<typeof sandboxFileContentSchema>;\ntype SandboxGitBranch = z.infer<typeof sandboxGitBranchSchema>;\ntype VotesResponse = z.infer<typeof votesResponseSchema>;\n\ntype UpdateAgentSettingsRequest = {\n customInstructions?: string | null;\n};\n\ntype UpdateUserAgentSettingsRequest = {\n customInstructions?: string | null;\n toolPermissions?: Record<string, z.infer<typeof toolPermissionValueSchema>> | null;\n memorySaveMode?: MemorySaveMode;\n};\n\ntype UpdateSpendCapsRequest = {\n projectCapPpu?: number | null;\n defaultUserLimitPpu?: number | null;\n};\n\nexport const createKaiAgentClient = ({ baseUrl, middlewares, auth }: ClientInitOptions) => {\n const clientOptions = {\n baseUrl,\n middlewares,\n headers: createAuthHeaders(auth),\n };\n\n const client = createOpenapiFetchClient<paths>(clientOptions);\n const genericClient = createGenericFetchClient(clientOptions);\n\n const getHistory = async (params?: GetHistoryQuery, signal?: AbortSignal) => {\n const { data } = await client.get('/api/history', { query: params }, { signal });\n return data;\n };\n\n const getChat = async (chatId: GetChatPath['id'], signal?: AbortSignal) => {\n const { data } = await client.get('/api/chat/{id}', { path: { id: chatId } }, { signal });\n return data;\n };\n\n const deleteChat = async (chatId: string) => {\n const { data } = await client.delete('/api/chat', { query: { id: chatId } });\n return data;\n };\n\n const createChat = async (request: ChatRequest) => {\n const { response } = await client.post('/api/chat', { body: request });\n return response;\n };\n\n const getVotes = async (chatId: GetVotesQuery['chatId']): Promise<VotesResponse> => {\n const { data } = await client.get('/api/vote', { query: { chatId } });\n\n const result = votesResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid votes response format');\n }\n\n return result.data;\n };\n\n const submitVote = async (params: VoteRequest) => {\n await client.patch('/api/vote', { body: params });\n };\n\n /**\n * Every artifact a chat produced, oldest first.\n *\n * - Read-only by design: artifacts are derived server-side at the end of a turn, so there is\n * no write route to pair with this.\n * - The chat is the authorization — a chat the caller cannot read has no artifacts.\n */\n const getArtifacts = async (\n chatId: GetArtifactsQuery['chatId'],\n signal?: AbortSignal,\n ): Promise<ArtifactListResponse> => {\n const { data } = await client.get('/api/artifacts', { query: { chatId } }, { signal });\n return data;\n };\n\n const getArtifact = async (\n artifactId: GetArtifactPath['id'],\n signal?: AbortSignal,\n ): Promise<ArtifactResponse> => {\n const { data } = await client.get(\n '/api/artifacts/{id}',\n { path: { id: artifactId } },\n {\n signal,\n },\n );\n return data;\n };\n\n const getUsage = async (signal?: AbortSignal): Promise<UsageResponse> => {\n const { data } = await client.get('/api/usage', {}, { signal });\n // `freeAllowance` is ahead of the generated schema — a guard turns a missing field into `null`.\n const parsed = z\n .object({\n freeAllowance: z\n .object({ grantedPpu: z.number(), remainingPpu: z.number() })\n .nullable()\n .optional(),\n })\n .safeParse(data);\n const freeAllowance = parsed.success ? (parsed.data.freeAllowance ?? null) : null;\n return { ...data, freeAllowance };\n };\n\n const approveToolCall = async (chatId: string, body: ApprovalBody): Promise<void> => {\n await client.post('/api/chat/{id}/approval', { path: { id: chatId }, body });\n };\n\n const submitToolOutput = async (\n chatId: string,\n body: { toolUseId: string; output?: string; errorText?: string },\n ): Promise<void> => {\n await client.post('/api/chat/{id}/ui-tool-result', { path: { id: chatId }, body });\n };\n\n const stopChat = async (chatId: string): Promise<{ stopped: boolean }> => {\n const { data } = await client.post('/api/chat/{id}/stop', { path: { id: chatId } });\n return data;\n };\n\n /**\n * Ask the engine to build this chat's sandbox before a turn needs one.\n *\n * - The work continues after the response.\n * - A host that does not pre-warm answers 404, returned as `{ started: false }`.\n */\n const prepareChat = async (\n chatId: string,\n signal?: AbortSignal,\n body: PrepareChatRequest = {},\n ): Promise<{ started: boolean }> => {\n try {\n const { data } = await client.post(\n '/api/chat/{id}/prepare',\n { path: { id: chatId }, body },\n { signal },\n );\n return data;\n } catch (error) {\n // 404 = pre-warm not supported here.\n if (isApiError(error) && error.response.status === HttpStatus.NOT_FOUND) {\n return { started: false };\n }\n throw error;\n }\n };\n\n const getSuggestions = async (\n request: SuggestionsRequestBody,\n signal?: AbortSignal,\n ): Promise<SuggestionsApiResponse> => {\n const { data } = await client.post('/api/suggestions', { body: request }, { signal });\n return data;\n };\n\n const getAgentSettings = async (signal?: AbortSignal): Promise<AgentSettings> => {\n const { data } = await genericClient.get<AgentSettings>('/api/settings', {}, { signal });\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const updateAgentSettings = async (\n request: UpdateAgentSettingsRequest,\n signal?: AbortSignal,\n ): Promise<AgentSettings> => {\n const { data } = await genericClient.patch<AgentSettings>(\n '/api/settings',\n { body: request },\n { signal },\n );\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const updateProjectToolPolicy = async (\n toolPermissions: ProjectToolPolicy,\n signal?: AbortSignal,\n ): Promise<AgentSettings> => {\n const { data } = await genericClient.put<AgentSettings>(\n '/api/settings/tool-permissions',\n { body: { toolPermissions } },\n { signal },\n );\n const result = agentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid agent settings response format');\n }\n return result.data;\n };\n\n const getUserAgentSettings = async (signal?: AbortSignal): Promise<UserAgentSettings> => {\n const { data } = await genericClient.get<UserAgentSettings>(\n '/api/settings/user',\n {},\n { signal },\n );\n const result = userAgentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user agent settings response format');\n }\n return result.data;\n };\n\n const updateUserAgentSettings = async (\n request: UpdateUserAgentSettingsRequest,\n signal?: AbortSignal,\n ): Promise<UserAgentSettings> => {\n const { data } = await genericClient.patch<UserAgentSettings>(\n '/api/settings/user',\n { body: request },\n { signal },\n );\n const result = userAgentSettingsSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user agent settings response format');\n }\n return result.data;\n };\n\n // Not in `__generated__/schema` yet, hence `genericClient` + zod, like the spend caps below.\n const getUserMemories = async (signal?: AbortSignal): Promise<UserMemory[]> => {\n const { data } = await genericClient.get('/api/settings/user/memories', {}, { signal });\n const result = userMemoriesSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user memories response format');\n }\n return result.data.memories;\n };\n\n const updateUserMemory = async (\n memoryId: string,\n content: string,\n signal?: AbortSignal,\n ): Promise<UserMemory> => {\n const { data } = await genericClient.patch(\n `/api/settings/user/memories/${encodeURIComponent(memoryId)}`,\n { body: { content } },\n { signal },\n );\n const result = userMemorySchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid user memory response format');\n }\n return result.data;\n };\n\n const deleteUserMemory = async (memoryId: string, signal?: AbortSignal): Promise<void> => {\n await genericClient.delete(\n `/api/settings/user/memories/${encodeURIComponent(memoryId)}`,\n {},\n { signal },\n );\n };\n\n // An older kai-agent omits `defaultProjectCapPpu`; fall back rather than throw.\n const withDefaultProjectCap = (view: z.infer<typeof spendCapsViewSchema>): SpendCapsView => ({\n ...view,\n defaultProjectCapPpu: view.defaultProjectCapPpu ?? view.effectiveProjectCapPpu,\n });\n\n // Not in `__generated__/schema` yet (see docs/regenerate-api-types.md), hence `genericClient`\n // + zod. Switch to `client.get('/api/settings/spend-caps')` once it regenerates.\n const getSpendCaps = async (signal?: AbortSignal): Promise<SpendCapsView> => {\n const { data } = await genericClient.get<SpendCapsView>(\n '/api/settings/spend-caps',\n {},\n { signal },\n );\n const result = spendCapsViewSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend caps response format');\n }\n return withDefaultProjectCap(result.data);\n };\n\n const updateSpendCaps = async (\n request: UpdateSpendCapsRequest,\n signal?: AbortSignal,\n ): Promise<SpendCapsView> => {\n const { data } = await genericClient.patch<SpendCapsView>(\n '/api/settings/spend-caps',\n { body: request },\n { signal },\n );\n const result = spendCapsViewSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend caps response format');\n }\n return withDefaultProjectCap(result.data);\n };\n\n const setUserSpendLimit = async (\n userId: string,\n overrideLimitPpu: number | null,\n signal?: AbortSignal,\n ): Promise<SpendCapMember> => {\n const { data } = await genericClient.put<SpendCapMember>(\n `/api/settings/spend-caps/users/${encodeURIComponent(userId)}`,\n { body: { overrideLimitPpu } },\n { signal },\n );\n const result = spendCapMemberSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid spend cap member response format');\n }\n return result.data;\n };\n\n const getToolsList = async (signal?: AbortSignal): Promise<ToolsListResponse> => {\n const { data } = await genericClient.get<ToolsListResponse>(\n '/api/settings/tools',\n {},\n { signal },\n );\n const result = toolsListResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid tools list response format');\n }\n return result.data;\n };\n\n const getSkillsList = async (signal?: AbortSignal): Promise<SkillsListResponse> => {\n const { data } = await genericClient.get<SkillsListResponse>('/api/skills', {}, { signal });\n const result = skillsListResponseSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid skills list response format');\n }\n return result.data;\n };\n\n const listSandboxFiles = async (\n chatId: string,\n path?: string,\n signal?: AbortSignal,\n ): Promise<SandboxFileListing> => {\n const { data } = await genericClient.get<SandboxFileListing>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/files`,\n { query: path ? { path } : undefined },\n { signal },\n );\n const result = sandboxFileListingSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox files response format');\n }\n return result.data;\n };\n\n const readSandboxFile = async (\n chatId: string,\n path: string,\n signal?: AbortSignal,\n ): Promise<SandboxFileContent> => {\n const { data } = await genericClient.get<SandboxFileContent>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/file`,\n { query: { path } },\n { signal },\n );\n const result = sandboxFileContentSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox file response format');\n }\n return result.data;\n };\n\n const downloadSandboxFile = async (\n chatId: string,\n path: string,\n signal?: AbortSignal,\n ): Promise<Blob> => {\n // `parseData` returns a declared octet-stream body as a Blob, bytes intact.\n const { data } = await genericClient.get<Blob>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/file/download`,\n { query: { path } },\n { signal },\n );\n if (!(data instanceof Blob)) {\n throw new Error('Invalid sandbox file download response format');\n }\n return data;\n };\n\n const getSandboxGitBranch = async (\n chatId: string,\n signal?: AbortSignal,\n ): Promise<SandboxGitBranch> => {\n const { data } = await genericClient.get<SandboxGitBranch>(\n `/api/chat/${encodeURIComponent(chatId)}/sandbox/git-branch`,\n {},\n { signal },\n );\n const result = sandboxGitBranchSchema.safeParse(data);\n if (!result.success) {\n throw new Error('Invalid sandbox git-branch response format');\n }\n return result.data;\n };\n\n const chatStreamUrl = clientOptions.baseUrl + '/api/chat';\n\n // `/health`, not `/ping`: it returns `{\"status\":\"ok\"}` like other services, not a timestamp.\n const healthCheck = async (signal?: AbortSignal) => {\n const { data } = await genericClient.get('/health', {}, { signal });\n\n return data;\n };\n\n return {\n healthCheck,\n getHistory,\n getChat,\n deleteChat,\n createChat,\n getVotes,\n submitVote,\n getUsage,\n getArtifacts,\n getArtifact,\n approveToolCall,\n submitToolOutput,\n stopChat,\n prepareChat,\n getSuggestions,\n getAgentSettings,\n updateAgentSettings,\n updateProjectToolPolicy,\n getUserAgentSettings,\n updateUserAgentSettings,\n getUserMemories,\n updateUserMemory,\n deleteUserMemory,\n getSpendCaps,\n updateSpendCaps,\n setUserSpendLimit,\n getToolsList,\n getSkillsList,\n listSandboxFiles,\n readSandboxFile,\n downloadSandboxFile,\n getSandboxGitBranch,\n chatStreamUrl,\n };\n};\n"],"mappings":";;;;;;AAyBA,MAAM,+BAAkEA,IAAAA,EAAE,KAAK,CAC7E,WACA,YACF,CAAC;AAED,MAAM,sBAAsBA,IAAAA,EAAE,OAAO;CACnC,WAAWA,IAAAA,EAAE,OAAO;CACpB,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAG,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CACzC,WAAWA,IAAAA,EAAE,OAAO;CACpB,WAAWA,IAAAA,EAAE,OAAO;AACtB,CAAC;AAED,MAAM,4BAA4BA,IAAAA,EAAE,KAAK;CAAC;CAAgB;CAAc;AAAS,CAAC;AAElF,MAAM,0BAA0BA,IAAAA,EAAE,OAAO;CACvC,WAAWA,IAAAA,EAAE,OAAO;CACpB,QAAQA,IAAAA,EAAE,OAAO;CACjB,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAG,yBAAyB,CAAC,CAAC,SAAS;CAC1E,wBAAwBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAG,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAE/F,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,SAAS;CACjD,WAAWA,IAA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E,OAAO,CAAC;EAElE,OAAO;CACT;CAEA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_management = require("../management-
|
|
2
|
+
const require_management = require("../management-B1o6RpKF.cjs");
|
|
3
3
|
exports.createManagementClient = require_management.createManagementClient;
|
|
4
4
|
exports.isManagementClientAuthError = require_management.isManagementClientAuthError;
|
|
5
5
|
exports.isManagementSessionMintError = require_management.isManagementSessionMintError;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-
|
|
1
|
+
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-Dkb8CynB.cjs";
|
|
2
2
|
export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError, isManagementSessionMintError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-
|
|
1
|
+
import { a as ManagementOpenApiFetchClient, i as ManagementGenericFetchClient, n as isManagementSessionMintError, o as createManagementClient, r as AuthStrategy, t as isManagementClientAuthError } from "../index-DorowSay.js";
|
|
2
2
|
export { AuthStrategy, ManagementGenericFetchClient, ManagementOpenApiFetchClient, createManagementClient, isManagementClientAuthError, isManagementSessionMintError };
|
package/dist/management/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isManagementClientAuthError, r as isManagementSessionMintError, t as createManagementClient } from "../management-
|
|
1
|
+
import { n as isManagementClientAuthError, r as isManagementSessionMintError, t as createManagementClient } from "../management-C9w3DNhs.js";
|
|
2
2
|
export { createManagementClient, isManagementClientAuthError, isManagementSessionMintError };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/clients/management/payAsYouGo/types.ts
|
|
3
|
+
/** The `invoiceTopUpType` of a credit purchase paid over x402. */
|
|
4
|
+
const X402_TOP_UP_TYPE = "x402";
|
|
5
|
+
const X402_PAYMENT_STATUS = {
|
|
6
|
+
PENDING: "pending",
|
|
7
|
+
SETTLED: "settled",
|
|
8
|
+
EXPIRED: "expired"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.X402_PAYMENT_STATUS = X402_PAYMENT_STATUS;
|
|
12
|
+
exports.X402_TOP_UP_TYPE = X402_TOP_UP_TYPE;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.cjs","names":[],"sources":["../../src/clients/management/payAsYouGo/types.ts"],"sourcesContent":["import type { OpenapiBodyType, OpenapiReturnType } from '../../../fetchClient';\nimport type { paths } from '../__generated__/schema';\n\n/** Tightens `credit-price`, which the endpoint always returns. `tax-rates` stays as generated —\n * the spec documents it as an empty object and no caller reads it yet. */\nexport type PayAsYouGoBillingConfiguration = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/configuration']['get']>,\n 'credit-price'\n> & { 'credit-price': number };\n\n/** The `invoiceTopUpType` of a credit purchase paid over x402. */\nexport const X402_TOP_UP_TYPE = 'x402';\n\nexport const X402_PAYMENT_STATUS = {\n PENDING: 'pending',\n SETTLED: 'settled',\n EXPIRED: 'expired',\n} as const;\nexport type X402PaymentStatus = (typeof X402_PAYMENT_STATUS)[keyof typeof X402_PAYMENT_STATUS];\n\n/**\n * A credit purchase of a pay-as-you-go project.\n *\n * - Tightens the two Stripe enums the spec types as bare strings, and marks `moneyAmount` nullable.\n * - `x402` rows carry the payment fields; every other row has them `null`, or omits them.\n * - The payment fields are typed by hand: the generated spec does not document them yet.\n */\nexport type CreditPurchase = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/credits']['post']>[number],\n 'moneyAmount' | 'invoiceTopUpType' | 'stripeInvoiceStatus'\n> & {\n moneyAmount: number | null;\n invoiceTopUpType: 'automatic' | 'manual' | typeof X402_TOP_UP_TYPE | null;\n stripeInvoiceStatus: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | null;\n /** The payment network, e.g. `x402-base`; it scopes `externalPaymentId`. */\n paymentProvider?: string | null;\n paymentStatus?: X402PaymentStatus | null;\n /** The settlement transaction hash; `null` until the payment settles. */\n externalPaymentId?: string | null;\n};\n\nexport type StripeCustomer = OpenapiReturnType<\n paths['/pay-as-you-go/billing/stripe-customer']['get']\n>;\nexport type StripeCustomerCard = StripeCustomer['cards'][number];\nexport type UpdateStripeCustomerBody = OpenapiBodyType<\n paths['/pay-as-you-go/billing/stripe-customer']['put']\n>;\n\n/** All three fields are optional in the spec; the endpoint returns them together or 404s. */\nexport type TopUpSetting = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/top-up/{projectId}']['get']>,\n 'limit' | 'amount' | 'enabled'\n> & { limit: number; amount: number; enabled: boolean };\nexport type UpdateTopUpSettingBody = OpenapiBodyType<paths['/pay-as-you-go/billing/top-up']['put']>;\n\n/** `clientSecret` is optional in the spec; a 200 always carries it. */\nexport type CreditPaymentRequest = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/create-payment-request']['post']>,\n 'clientSecret'\n> & { clientSecret: string };\nexport type CreatePaymentRequestBody = OpenapiBodyType<\n paths['/pay-as-you-go/billing/create-payment-request']['post']\n>;\n"],"mappings":";;;AAWA,MAAa,mBAAmB;AAEhC,MAAa,sBAAsB;CACjC,SAAS;CACT,SAAS;CACT,SAAS;AACX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as MoveProjectInput, $n as
|
|
2
|
-
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput,
|
|
1
|
+
import { $ as MoveProjectInput, $n as SetOrganizationMetadataInput, $t as TopUpSetting, A as UpdateStorageBackendInput, An as SetMaintainerMetadataInput, Ar as DeletedProjectsStats, At as DeleteUserMetadataPath, B as CreateProjectInvitationBody, Bn as CreateOrganizationProjectBody, Bt as UserMaintainerMembership, C as StorageBackendBigquery, Cn as MaintainerUser, Cr as FeatureType, Ct as SetProjectMetadataPath, D as UpdateBigqueryStorageBackendBody, Dn as SamlConfigPath, Dr as DeletedProjectsListFilter, Dt as UpdateProjectInput, E as StorageBackendProject, En as SamlConfigDetail, Er as DeletedProjectPurgeResult, Et as UpdateProjectBody, F as ChangeProjectUserRoleBody, Fn as AddOrganizationUserBody, Fr as ProjectJoinRequest, Ft as UpdateUserBody, G as GetProjectPath, Gn as OrganizationInvitationPath, Gt as ConfirmProgrammaticProjectResult, H as DeleteProjectInvitationPath, Hn as Organization, Ht as UserPath, I as ChangeProjectUserRoleInput, In as AddOrganizationUserInput, Ir as ApplicationToken, It as UpdateUserInput, J as JoinProjectInput, Jn as OrganizationMetadataItemPath, Jt as CreditPaymentRequest, K as GetProjectReviewersPath, Kn as OrganizationListItem, Kt as ProgrammaticProjectClaim, L as ChangeProjectUserRolePath, Ln as AdminUser, Lr as ApplicationTokenScope, Lt as User, M as AddProjectUserPath, Mn as UpdateMaintainerInput, Mr as MaintainerInvitation, Mt as RemoveUserFeaturePath, N as AssignFeatureBody, Nn as UpdateSamlConfigBody, Nr as OrganizationInvitation, Nt as SetUserMetadataBody, O as UpdateBigqueryStorageBackendInput, On as SamlConfigSummary, Or as DeletedProjectsListQuery, Ot as AddUserFeatureBody, P as AssignProjectTemplateFeatureInput, Pn as UpdateSamlConfigInput, Pr as ProjectInvitation, Pt as SetUserMetadataInput, Q as MoveProjectBody, Qn as SetOrganizationMetadataBody, Qt as StripeCustomerCard, R as CreateProjectFeatureBody, Rn as CreateOrganizationInvitationBody, Rr as CreateApplicationTokenBody, Rt as UserDetail, S as StorageBackend, Sn as MaintainerPath, Sr as FeatureProject, St as SetProjectMetadataBody, T as StorageBackendPath, Tn as MetadataItem, Tr as DeletedProject, Tt as SetProjectReviewersPath, U as DeleteProjectMetadataPath, Un as OrganizationDetail, Ut as UserProjectMembership, V as CreateProjectInvitationPath, Vn as CreateOrganizationProjectInput, Vt as UserOrganizationMembership, W as GetProjectMetadataPath, Wn as OrganizationInvitationDetail, Wt as ConfirmProgrammaticProjectBody, X as ListProjectJoinRequestsPath, Xn as OrganizationProject, Xt as PayAsYouGoBillingConfiguration, Y as ListProjectInvitationsPath, Yn as OrganizationPath, Yt as CreditPurchase, Z as ListProjectUsersPath, Zn as OrganizationUserPath, Zt as StripeCustomer, _ as PolicyTagEnablementGuide, _n as Maintainer, _r as RotateFileStorageS3Input, _t as Reviewer, a as GetUiAppsQuery, an as AddMaintainerUserBody, ar as CreateFileStorageS3Body, at as ProjectJoinRequestPath, b as PolicyTagEnablementGuideQuery, bn as MaintainerInvitationPath, br as Feature, bt as SetProjectLimitsBody, c as UiApp, cn as CompleteSamlSetupInput, cr as FileStorageGcs, ct as ProjectPath, d as UiAppVersion, dn as CreateMaintainerInvitationInput, dr as RotateFileStorageAbsInput, dt as RemoveProjectFeaturePath, en as UpdateStripeCustomerBody, er as UpdateOrganizationBody, et as Project, f as CreateBigqueryServerSideStorageBackendBody, fn as CreateMaintainerOrganizationBody, fr as RotateFileStorageAbsPath, ft as RemoveProjectLimitPath, g as GetStorageBackendProjectsQuery, gn as CreateSamlConfigPath, gr as RotateFileStorageS3Body, gt as RequestProjectAccessInput, h as CreateSnowflakeStorageBackendResponse, hn as CreateSamlConfigInput, hr as RotateFileStorageGcsPath, ht as RequestProjectAccessBody, i as ReactivateWorkspaceResult, in as X402_TOP_UP_TYPE, ir as CreateFileStorageGcsBody, it as ProjectJoinRequestDetail, j as AddProjectUserBody, jn as UpdateMaintainerBody, jr as DeletedProjectsStatus, jt as GetUsersQuery, k as UpdateStorageBackendBody, kn as SetMaintainerMetadataBody, kr as DeletedProjectsPage, kt as AddUserFeaturePath, l as UiAppDetail, ln as CreateMaintainerBody, lr as FileStorageS3, lt as ProjectTemplate, m as CreateSnowflakeStorageBackendBody, mn as CreateSamlConfigBody, mr as RotateFileStorageGcsInput, mt as RemoveProjectUserPath, n as ProjectRetentionWorkspace, nn as X402PaymentStatus, nr as SetUpBigQueryBody, nt as ProjectInvitableRole, o as RegisterUiAppBody, on as AddMaintainerUserInput, or as FileStorage, ot as ProjectMetadataInput, p as CreateBigqueryStorageBackendBody, pn as CreateMaintainerOrganizationInput, pr as RotateFileStorageGcsBody, pt as RemoveProjectTemplateFeaturePath, q as JoinProjectBody, qn as OrganizationMaintainer, qt as CreatePaymentRequestBody, r as ProjectRetentionWorkspaceState, rn as X402_PAYMENT_STATUS, rr as CreateFileStorageAbsBody, rt as ProjectInvitationDetail, s as RenameUiAppBody, sn as CompleteSamlSetupBody, sr as FileStorageAbs, st as ProjectMetadataItem, t as ManagementToken, tn as UpdateTopUpSettingBody, tr as UpdateOrganizationInput, tt as ProjectBase, u as UiAppRegistrationResult, un as CreateMaintainerInvitationBody, ur as RotateFileStorageAbsBody, ut as ProjectTemplatePath, v as PolicyTagEnablementGuideInput, vn as MaintainerDetail, vr as RotateFileStorageS3Path, vt as SetProjectDisabledBody, w as StorageBackendMaintainer, wn as MaintainerUserPath, wr as GetAllFeaturesQuery, wt as SetProjectReviewersBody, x as PolicyTagEnablementGuideSchemaQuery, xn as MaintainerMetadataItemPath, xr as FeatureAdmin, xt as SetProjectLimitsInput, y as PolicyTagEnablementGuidePath, yn as MaintainerInvitationDetail, yr as UpdateFileStorageBody, yt as SetProjectDisabledInput, z as CreateProjectFeaturePath, zn as CreateOrganizationInvitationInput, zr as CreatedApplicationToken, zt as UserListItem } from "../types-TmrPVMhy.cjs";
|
|
2
|
+
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectTemplate, ProjectTemplatePath, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as MoveProjectInput, $n as
|
|
2
|
-
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput,
|
|
1
|
+
import { $ as MoveProjectInput, $n as SetOrganizationMetadataInput, $t as TopUpSetting, A as UpdateStorageBackendInput, An as SetMaintainerMetadataInput, Ar as DeletedProjectsStats, At as DeleteUserMetadataPath, B as CreateProjectInvitationBody, Bn as CreateOrganizationProjectBody, Bt as UserMaintainerMembership, C as StorageBackendBigquery, Cn as MaintainerUser, Cr as FeatureType, Ct as SetProjectMetadataPath, D as UpdateBigqueryStorageBackendBody, Dn as SamlConfigPath, Dr as DeletedProjectsListFilter, Dt as UpdateProjectInput, E as StorageBackendProject, En as SamlConfigDetail, Er as DeletedProjectPurgeResult, Et as UpdateProjectBody, F as ChangeProjectUserRoleBody, Fn as AddOrganizationUserBody, Fr as ProjectJoinRequest, Ft as UpdateUserBody, G as GetProjectPath, Gn as OrganizationInvitationPath, Gt as ConfirmProgrammaticProjectResult, H as DeleteProjectInvitationPath, Hn as Organization, Ht as UserPath, I as ChangeProjectUserRoleInput, In as AddOrganizationUserInput, Ir as ApplicationToken, It as UpdateUserInput, J as JoinProjectInput, Jn as OrganizationMetadataItemPath, Jt as CreditPaymentRequest, K as GetProjectReviewersPath, Kn as OrganizationListItem, Kt as ProgrammaticProjectClaim, L as ChangeProjectUserRolePath, Ln as AdminUser, Lr as ApplicationTokenScope, Lt as User, M as AddProjectUserPath, Mn as UpdateMaintainerInput, Mr as MaintainerInvitation, Mt as RemoveUserFeaturePath, N as AssignFeatureBody, Nn as UpdateSamlConfigBody, Nr as OrganizationInvitation, Nt as SetUserMetadataBody, O as UpdateBigqueryStorageBackendInput, On as SamlConfigSummary, Or as DeletedProjectsListQuery, Ot as AddUserFeatureBody, P as AssignProjectTemplateFeatureInput, Pn as UpdateSamlConfigInput, Pr as ProjectInvitation, Pt as SetUserMetadataInput, Q as MoveProjectBody, Qn as SetOrganizationMetadataBody, Qt as StripeCustomerCard, R as CreateProjectFeatureBody, Rn as CreateOrganizationInvitationBody, Rr as CreateApplicationTokenBody, Rt as UserDetail, S as StorageBackend, Sn as MaintainerPath, Sr as FeatureProject, St as SetProjectMetadataBody, T as StorageBackendPath, Tn as MetadataItem, Tr as DeletedProject, Tt as SetProjectReviewersPath, U as DeleteProjectMetadataPath, Un as OrganizationDetail, Ut as UserProjectMembership, V as CreateProjectInvitationPath, Vn as CreateOrganizationProjectInput, Vt as UserOrganizationMembership, W as GetProjectMetadataPath, Wn as OrganizationInvitationDetail, Wt as ConfirmProgrammaticProjectBody, X as ListProjectJoinRequestsPath, Xn as OrganizationProject, Xt as PayAsYouGoBillingConfiguration, Y as ListProjectInvitationsPath, Yn as OrganizationPath, Yt as CreditPurchase, Z as ListProjectUsersPath, Zn as OrganizationUserPath, Zt as StripeCustomer, _ as PolicyTagEnablementGuide, _n as Maintainer, _r as RotateFileStorageS3Input, _t as Reviewer, a as GetUiAppsQuery, an as AddMaintainerUserBody, ar as CreateFileStorageS3Body, at as ProjectJoinRequestPath, b as PolicyTagEnablementGuideQuery, bn as MaintainerInvitationPath, br as Feature, bt as SetProjectLimitsBody, c as UiApp, cn as CompleteSamlSetupInput, cr as FileStorageGcs, ct as ProjectPath, d as UiAppVersion, dn as CreateMaintainerInvitationInput, dr as RotateFileStorageAbsInput, dt as RemoveProjectFeaturePath, en as UpdateStripeCustomerBody, er as UpdateOrganizationBody, et as Project, f as CreateBigqueryServerSideStorageBackendBody, fn as CreateMaintainerOrganizationBody, fr as RotateFileStorageAbsPath, ft as RemoveProjectLimitPath, g as GetStorageBackendProjectsQuery, gn as CreateSamlConfigPath, gr as RotateFileStorageS3Body, gt as RequestProjectAccessInput, h as CreateSnowflakeStorageBackendResponse, hn as CreateSamlConfigInput, hr as RotateFileStorageGcsPath, ht as RequestProjectAccessBody, i as ReactivateWorkspaceResult, in as X402_TOP_UP_TYPE, ir as CreateFileStorageGcsBody, it as ProjectJoinRequestDetail, j as AddProjectUserBody, jn as UpdateMaintainerBody, jr as DeletedProjectsStatus, jt as GetUsersQuery, k as UpdateStorageBackendBody, kn as SetMaintainerMetadataBody, kr as DeletedProjectsPage, kt as AddUserFeaturePath, l as UiAppDetail, ln as CreateMaintainerBody, lr as FileStorageS3, lt as ProjectTemplate, m as CreateSnowflakeStorageBackendBody, mn as CreateSamlConfigBody, mr as RotateFileStorageGcsInput, mt as RemoveProjectUserPath, n as ProjectRetentionWorkspace, nn as X402PaymentStatus, nr as SetUpBigQueryBody, nt as ProjectInvitableRole, o as RegisterUiAppBody, on as AddMaintainerUserInput, or as FileStorage, ot as ProjectMetadataInput, p as CreateBigqueryStorageBackendBody, pn as CreateMaintainerOrganizationInput, pr as RotateFileStorageGcsBody, pt as RemoveProjectTemplateFeaturePath, q as JoinProjectBody, qn as OrganizationMaintainer, qt as CreatePaymentRequestBody, r as ProjectRetentionWorkspaceState, rn as X402_PAYMENT_STATUS, rr as CreateFileStorageAbsBody, rt as ProjectInvitationDetail, s as RenameUiAppBody, sn as CompleteSamlSetupBody, sr as FileStorageAbs, st as ProjectMetadataItem, t as ManagementToken, tn as UpdateTopUpSettingBody, tr as UpdateOrganizationInput, tt as ProjectBase, u as UiAppRegistrationResult, un as CreateMaintainerInvitationBody, ur as RotateFileStorageAbsBody, ut as ProjectTemplatePath, v as PolicyTagEnablementGuideInput, vn as MaintainerDetail, vr as RotateFileStorageS3Path, vt as SetProjectDisabledBody, w as StorageBackendMaintainer, wn as MaintainerUserPath, wr as GetAllFeaturesQuery, wt as SetProjectReviewersBody, x as PolicyTagEnablementGuideSchemaQuery, xn as MaintainerMetadataItemPath, xr as FeatureAdmin, xt as SetProjectLimitsInput, y as PolicyTagEnablementGuidePath, yn as MaintainerInvitationDetail, yr as UpdateFileStorageBody, yt as SetProjectDisabledInput, z as CreateProjectFeaturePath, zn as CreateOrganizationInvitationInput, zr as CreatedApplicationToken, zt as UserListItem } from "../types-BT5e9TSQ.js";
|
|
2
|
+
export { AddMaintainerUserBody, AddMaintainerUserInput, AddOrganizationUserBody, AddOrganizationUserInput, AddProjectUserBody, AddProjectUserPath, AddUserFeatureBody, AddUserFeaturePath, AdminUser, ApplicationToken, ApplicationTokenScope, AssignFeatureBody, AssignProjectTemplateFeatureInput, ChangeProjectUserRoleBody, ChangeProjectUserRoleInput, ChangeProjectUserRolePath, CompleteSamlSetupBody, CompleteSamlSetupInput, ConfirmProgrammaticProjectBody, ConfirmProgrammaticProjectResult, CreateApplicationTokenBody, CreateBigqueryServerSideStorageBackendBody, CreateBigqueryStorageBackendBody, CreateFileStorageAbsBody, CreateFileStorageGcsBody, CreateFileStorageS3Body, CreateMaintainerBody, CreateMaintainerInvitationBody, CreateMaintainerInvitationInput, CreateMaintainerOrganizationBody, CreateMaintainerOrganizationInput, CreateOrganizationInvitationBody, CreateOrganizationInvitationInput, CreateOrganizationProjectBody, CreateOrganizationProjectInput, CreatePaymentRequestBody, CreateProjectFeatureBody, CreateProjectFeaturePath, CreateProjectInvitationBody, CreateProjectInvitationPath, CreateSamlConfigBody, CreateSamlConfigInput, CreateSamlConfigPath, CreateSnowflakeStorageBackendBody, CreateSnowflakeStorageBackendResponse, CreatedApplicationToken, CreditPaymentRequest, CreditPurchase, DeleteProjectInvitationPath, DeleteProjectMetadataPath, DeleteUserMetadataPath, DeletedProject, DeletedProjectPurgeResult, DeletedProjectsListFilter, DeletedProjectsListQuery, DeletedProjectsPage, DeletedProjectsStats, DeletedProjectsStatus, Feature, FeatureAdmin, FeatureProject, FeatureType, FileStorage, FileStorageAbs, FileStorageGcs, FileStorageS3, GetAllFeaturesQuery, GetProjectMetadataPath, GetProjectPath, GetProjectReviewersPath, GetStorageBackendProjectsQuery, GetUiAppsQuery, GetUsersQuery, JoinProjectBody, JoinProjectInput, ListProjectInvitationsPath, ListProjectJoinRequestsPath, ListProjectUsersPath, Maintainer, MaintainerDetail, MaintainerInvitation, MaintainerInvitationDetail, MaintainerInvitationPath, MaintainerMetadataItemPath, MaintainerPath, MaintainerUser, MaintainerUserPath, ManagementToken, MetadataItem, MoveProjectBody, MoveProjectInput, Organization, OrganizationDetail, OrganizationInvitation, OrganizationInvitationDetail, OrganizationInvitationPath, OrganizationListItem, OrganizationMaintainer, OrganizationMetadataItemPath, OrganizationPath, OrganizationProject, OrganizationUserPath, PayAsYouGoBillingConfiguration, PolicyTagEnablementGuide, PolicyTagEnablementGuideInput, PolicyTagEnablementGuidePath, PolicyTagEnablementGuideQuery, PolicyTagEnablementGuideSchemaQuery, ProgrammaticProjectClaim, Project, ProjectBase, ProjectInvitableRole, ProjectInvitation, ProjectInvitationDetail, ProjectJoinRequest, ProjectJoinRequestDetail, ProjectJoinRequestPath, ProjectMetadataInput, ProjectMetadataItem, ProjectPath, ProjectRetentionWorkspace, ProjectRetentionWorkspaceState, ProjectTemplate, ProjectTemplatePath, ReactivateWorkspaceResult, RegisterUiAppBody, RemoveProjectFeaturePath, RemoveProjectLimitPath, RemoveProjectTemplateFeaturePath, RemoveProjectUserPath, RemoveUserFeaturePath, RenameUiAppBody, RequestProjectAccessBody, RequestProjectAccessInput, Reviewer, RotateFileStorageAbsBody, RotateFileStorageAbsInput, RotateFileStorageAbsPath, RotateFileStorageGcsBody, RotateFileStorageGcsInput, RotateFileStorageGcsPath, RotateFileStorageS3Body, RotateFileStorageS3Input, RotateFileStorageS3Path, SamlConfigDetail, SamlConfigPath, SamlConfigSummary, SetMaintainerMetadataBody, SetMaintainerMetadataInput, SetOrganizationMetadataBody, SetOrganizationMetadataInput, SetProjectDisabledBody, SetProjectDisabledInput, SetProjectLimitsBody, SetProjectLimitsInput, SetProjectMetadataBody, SetProjectMetadataPath, SetProjectReviewersBody, SetProjectReviewersPath, SetUpBigQueryBody, SetUserMetadataBody, SetUserMetadataInput, StorageBackend, StorageBackendBigquery, StorageBackendMaintainer, StorageBackendPath, StorageBackendProject, StripeCustomer, StripeCustomerCard, TopUpSetting, UiApp, UiAppDetail, UiAppRegistrationResult, UiAppVersion, UpdateBigqueryStorageBackendBody, UpdateBigqueryStorageBackendInput, UpdateFileStorageBody, UpdateMaintainerBody, UpdateMaintainerInput, UpdateOrganizationBody, UpdateOrganizationInput, UpdateProjectBody, UpdateProjectInput, UpdateSamlConfigBody, UpdateSamlConfigInput, UpdateStorageBackendBody, UpdateStorageBackendInput, UpdateStripeCustomerBody, UpdateTopUpSettingBody, UpdateUserBody, UpdateUserInput, User, UserDetail, UserListItem, UserMaintainerMembership, UserOrganizationMembership, UserPath, UserProjectMembership, X402PaymentStatus, X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
package/dist/management/types.js
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/clients/management/payAsYouGo/types.ts
|
|
2
|
+
/** The `invoiceTopUpType` of a credit purchase paid over x402. */
|
|
3
|
+
const X402_TOP_UP_TYPE = "x402";
|
|
4
|
+
const X402_PAYMENT_STATUS = {
|
|
5
|
+
PENDING: "pending",
|
|
6
|
+
SETTLED: "settled",
|
|
7
|
+
EXPIRED: "expired"
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { X402_PAYMENT_STATUS, X402_TOP_UP_TYPE };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../src/clients/management/payAsYouGo/types.ts"],"sourcesContent":["import type { OpenapiBodyType, OpenapiReturnType } from '../../../fetchClient';\nimport type { paths } from '../__generated__/schema';\n\n/** Tightens `credit-price`, which the endpoint always returns. `tax-rates` stays as generated —\n * the spec documents it as an empty object and no caller reads it yet. */\nexport type PayAsYouGoBillingConfiguration = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/configuration']['get']>,\n 'credit-price'\n> & { 'credit-price': number };\n\n/** The `invoiceTopUpType` of a credit purchase paid over x402. */\nexport const X402_TOP_UP_TYPE = 'x402';\n\nexport const X402_PAYMENT_STATUS = {\n PENDING: 'pending',\n SETTLED: 'settled',\n EXPIRED: 'expired',\n} as const;\nexport type X402PaymentStatus = (typeof X402_PAYMENT_STATUS)[keyof typeof X402_PAYMENT_STATUS];\n\n/**\n * A credit purchase of a pay-as-you-go project.\n *\n * - Tightens the two Stripe enums the spec types as bare strings, and marks `moneyAmount` nullable.\n * - `x402` rows carry the payment fields; every other row has them `null`, or omits them.\n * - The payment fields are typed by hand: the generated spec does not document them yet.\n */\nexport type CreditPurchase = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/credits']['post']>[number],\n 'moneyAmount' | 'invoiceTopUpType' | 'stripeInvoiceStatus'\n> & {\n moneyAmount: number | null;\n invoiceTopUpType: 'automatic' | 'manual' | typeof X402_TOP_UP_TYPE | null;\n stripeInvoiceStatus: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | null;\n /** The payment network, e.g. `x402-base`; it scopes `externalPaymentId`. */\n paymentProvider?: string | null;\n paymentStatus?: X402PaymentStatus | null;\n /** The settlement transaction hash; `null` until the payment settles. */\n externalPaymentId?: string | null;\n};\n\nexport type StripeCustomer = OpenapiReturnType<\n paths['/pay-as-you-go/billing/stripe-customer']['get']\n>;\nexport type StripeCustomerCard = StripeCustomer['cards'][number];\nexport type UpdateStripeCustomerBody = OpenapiBodyType<\n paths['/pay-as-you-go/billing/stripe-customer']['put']\n>;\n\n/** All three fields are optional in the spec; the endpoint returns them together or 404s. */\nexport type TopUpSetting = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/top-up/{projectId}']['get']>,\n 'limit' | 'amount' | 'enabled'\n> & { limit: number; amount: number; enabled: boolean };\nexport type UpdateTopUpSettingBody = OpenapiBodyType<paths['/pay-as-you-go/billing/top-up']['put']>;\n\n/** `clientSecret` is optional in the spec; a 200 always carries it. */\nexport type CreditPaymentRequest = Omit<\n OpenapiReturnType<paths['/pay-as-you-go/billing/create-payment-request']['post']>,\n 'clientSecret'\n> & { clientSecret: string };\nexport type CreatePaymentRequestBody = OpenapiBodyType<\n paths['/pay-as-you-go/billing/create-payment-request']['post']\n>;\n"],"mappings":";;AAWA,MAAa,mBAAmB;AAEhC,MAAa,sBAAsB;CACjC,SAAS;CACT,SAAS;CACT,SAAS;AACX"}
|
|
@@ -704,20 +704,21 @@ const createPayAsYouGo = (client) => {
|
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region src/clients/management/programmaticProjects/programmaticProjects.ts
|
|
706
706
|
const createProgrammaticProjects = (client) => {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
*
|
|
710
|
-
* - The session decides who becomes the owner; the payload only proves possession of the link.
|
|
711
|
-
* - Single-use and irreversible: the claim is consumed before ownership is granted, so a second
|
|
712
|
-
* call is a 400, never an idempotent success. Callers must not retry.
|
|
713
|
-
* - A 400 covers malformed, unknown, expired, already-redeemed and never-provisioned alike. The
|
|
714
|
-
* backend collapses them on purpose, because the claim is bearer-only.
|
|
715
|
-
*/
|
|
716
|
-
const confirm = async (payload, signal) => {
|
|
717
|
-
const { data } = await client.post("/manage/programmatic-projects/confirm", { body: payload }, { signal });
|
|
707
|
+
const getClaim = async (signal) => {
|
|
708
|
+
const { data } = await client.get("/manage/programmatic-projects/claim", {}, { signal });
|
|
718
709
|
return data;
|
|
719
710
|
};
|
|
720
|
-
|
|
711
|
+
const _confirm = async (body, signal) => {
|
|
712
|
+
const { data } = await client.post("/manage/programmatic-projects/confirm", { body }, { signal });
|
|
713
|
+
return data;
|
|
714
|
+
};
|
|
715
|
+
const confirmByToken = (claimToken, signal) => _confirm({ claimToken }, signal);
|
|
716
|
+
const confirmByCookie = (signal) => _confirm({}, signal);
|
|
717
|
+
return {
|
|
718
|
+
getClaim,
|
|
719
|
+
confirmByToken,
|
|
720
|
+
confirmByCookie
|
|
721
|
+
};
|
|
721
722
|
};
|
|
722
723
|
//#endregion
|
|
723
724
|
//#region src/clients/management/projects/projects.ts
|
|
@@ -1284,7 +1285,7 @@ const createManagementClient = ({ baseUrl, middlewares = [], auth, withAuthMiddl
|
|
|
1284
1285
|
gcpPartner: createGcpPartner(client),
|
|
1285
1286
|
projects: createProjects(client),
|
|
1286
1287
|
snowflakePartnerConnect: createSnowflakePartnerConnect(client),
|
|
1287
|
-
programmaticProjects: createProgrammaticProjects(
|
|
1288
|
+
programmaticProjects: createProgrammaticProjects(client),
|
|
1288
1289
|
storageBackends: createStorageBackends(client),
|
|
1289
1290
|
uiApps: createUiApps(client),
|
|
1290
1291
|
users: createUsers(client),
|
|
@@ -1312,4 +1313,4 @@ Object.defineProperty(exports, "isManagementSessionMintError", {
|
|
|
1312
1313
|
}
|
|
1313
1314
|
});
|
|
1314
1315
|
|
|
1315
|
-
//# sourceMappingURL=management-
|
|
1316
|
+
//# sourceMappingURL=management-B1o6RpKF.cjs.map
|