@meetkai/mka1 0.51.31 → 0.51.32
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/README.md +226 -238
- package/bin/mcp-server.js +1691 -2076
- package/bin/mcp-server.js.map +17 -26
- package/dist/commonjs/funcs/computeJobsListJobEvents.js +1 -0
- package/dist/commonjs/funcs/computeJobsListJobEvents.js.map +1 -1
- package/dist/commonjs/funcs/computeJobsListJobLogs.js +1 -0
- package/dist/commonjs/funcs/computeJobsListJobLogs.js.map +1 -1
- package/dist/commonjs/funcs/computeServicesListServiceEvents.js +1 -0
- package/dist/commonjs/funcs/computeServicesListServiceEvents.js.map +1 -1
- package/dist/commonjs/funcs/computeServicesListServiceLogs.js +1 -0
- package/dist/commonjs/funcs/computeServicesListServiceLogs.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/computeorder.d.ts +12 -0
- package/dist/commonjs/models/components/computeorder.d.ts.map +1 -0
- package/dist/commonjs/models/components/{computehealth.js → computeorder.js} +8 -17
- package/dist/commonjs/models/components/computeorder.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listjobevents.d.ts +5 -0
- package/dist/commonjs/models/operations/listjobevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listjobevents.js +2 -0
- package/dist/commonjs/models/operations/listjobevents.js.map +1 -1
- package/dist/commonjs/models/operations/listjoblogs.d.ts +5 -0
- package/dist/commonjs/models/operations/listjoblogs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listjoblogs.js +2 -0
- package/dist/commonjs/models/operations/listjoblogs.js.map +1 -1
- package/dist/commonjs/models/operations/listserviceevents.d.ts +5 -0
- package/dist/commonjs/models/operations/listserviceevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listserviceevents.js +2 -0
- package/dist/commonjs/models/operations/listserviceevents.js.map +1 -1
- package/dist/commonjs/models/operations/listservicelogs.d.ts +5 -0
- package/dist/commonjs/models/operations/listservicelogs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listservicelogs.js +2 -0
- package/dist/commonjs/models/operations/listservicelogs.js.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobEvents.core.d.ts +2 -0
- package/dist/commonjs/react-query/computeJobsListJobEvents.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobEvents.core.js +1 -0
- package/dist/commonjs/react-query/computeJobsListJobEvents.core.js.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobEvents.d.ts +3 -0
- package/dist/commonjs/react-query/computeJobsListJobEvents.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobEvents.js.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobLogs.core.d.ts +1 -0
- package/dist/commonjs/react-query/computeJobsListJobLogs.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobLogs.core.js +1 -0
- package/dist/commonjs/react-query/computeJobsListJobLogs.core.js.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobLogs.d.ts +2 -0
- package/dist/commonjs/react-query/computeJobsListJobLogs.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeJobsListJobLogs.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceEvents.core.d.ts +2 -0
- package/dist/commonjs/react-query/computeServicesListServiceEvents.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceEvents.core.js +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceEvents.core.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceEvents.d.ts +3 -0
- package/dist/commonjs/react-query/computeServicesListServiceEvents.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceEvents.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceLogs.core.d.ts +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceLogs.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceLogs.core.js +1 -0
- package/dist/commonjs/react-query/computeServicesListServiceLogs.core.js.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceLogs.d.ts +2 -0
- package/dist/commonjs/react-query/computeServicesListServiceLogs.d.ts.map +1 -1
- package/dist/commonjs/react-query/computeServicesListServiceLogs.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +0 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +0 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/computeJobsListJobEvents.js +1 -0
- package/dist/esm/funcs/computeJobsListJobEvents.js.map +1 -1
- package/dist/esm/funcs/computeJobsListJobLogs.js +1 -0
- package/dist/esm/funcs/computeJobsListJobLogs.js.map +1 -1
- package/dist/esm/funcs/computeServicesListServiceEvents.js +1 -0
- package/dist/esm/funcs/computeServicesListServiceEvents.js.map +1 -1
- package/dist/esm/funcs/computeServicesListServiceLogs.js +1 -0
- package/dist/esm/funcs/computeServicesListServiceLogs.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/computeorder.d.ts +12 -0
- package/dist/esm/models/components/computeorder.d.ts.map +1 -0
- package/dist/esm/models/components/computeorder.js +13 -0
- package/dist/esm/models/components/computeorder.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listjobevents.d.ts +5 -0
- package/dist/esm/models/operations/listjobevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listjobevents.js +2 -0
- package/dist/esm/models/operations/listjobevents.js.map +1 -1
- package/dist/esm/models/operations/listjoblogs.d.ts +5 -0
- package/dist/esm/models/operations/listjoblogs.d.ts.map +1 -1
- package/dist/esm/models/operations/listjoblogs.js +2 -0
- package/dist/esm/models/operations/listjoblogs.js.map +1 -1
- package/dist/esm/models/operations/listserviceevents.d.ts +5 -0
- package/dist/esm/models/operations/listserviceevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listserviceevents.js +2 -0
- package/dist/esm/models/operations/listserviceevents.js.map +1 -1
- package/dist/esm/models/operations/listservicelogs.d.ts +5 -0
- package/dist/esm/models/operations/listservicelogs.d.ts.map +1 -1
- package/dist/esm/models/operations/listservicelogs.js +2 -0
- package/dist/esm/models/operations/listservicelogs.js.map +1 -1
- package/dist/esm/react-query/computeJobsListJobEvents.core.d.ts +2 -0
- package/dist/esm/react-query/computeJobsListJobEvents.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeJobsListJobEvents.core.js +1 -0
- package/dist/esm/react-query/computeJobsListJobEvents.core.js.map +1 -1
- package/dist/esm/react-query/computeJobsListJobEvents.d.ts +3 -0
- package/dist/esm/react-query/computeJobsListJobEvents.d.ts.map +1 -1
- package/dist/esm/react-query/computeJobsListJobEvents.js.map +1 -1
- package/dist/esm/react-query/computeJobsListJobLogs.core.d.ts +1 -0
- package/dist/esm/react-query/computeJobsListJobLogs.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeJobsListJobLogs.core.js +1 -0
- package/dist/esm/react-query/computeJobsListJobLogs.core.js.map +1 -1
- package/dist/esm/react-query/computeJobsListJobLogs.d.ts +2 -0
- package/dist/esm/react-query/computeJobsListJobLogs.d.ts.map +1 -1
- package/dist/esm/react-query/computeJobsListJobLogs.js.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceEvents.core.d.ts +2 -0
- package/dist/esm/react-query/computeServicesListServiceEvents.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceEvents.core.js +1 -0
- package/dist/esm/react-query/computeServicesListServiceEvents.core.js.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceEvents.d.ts +3 -0
- package/dist/esm/react-query/computeServicesListServiceEvents.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceEvents.js.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceLogs.core.d.ts +1 -0
- package/dist/esm/react-query/computeServicesListServiceLogs.core.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceLogs.core.js +1 -0
- package/dist/esm/react-query/computeServicesListServiceLogs.core.js.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceLogs.d.ts +2 -0
- package/dist/esm/react-query/computeServicesListServiceLogs.d.ts.map +1 -1
- package/dist/esm/react-query/computeServicesListServiceLogs.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +0 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +0 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +0 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/computeJobsListJobEvents.ts +1 -0
- package/src/funcs/computeJobsListJobLogs.ts +1 -0
- package/src/funcs/computeServicesListServiceEvents.ts +1 -0
- package/src/funcs/computeServicesListServiceLogs.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/components/computeorder.ts +19 -0
- package/src/models/components/index.ts +1 -1
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/listjobevents.ts +7 -0
- package/src/models/operations/listjoblogs.ts +7 -0
- package/src/models/operations/listserviceevents.ts +7 -0
- package/src/models/operations/listservicelogs.ts +7 -0
- package/src/react-query/computeJobsListJobEvents.core.ts +3 -0
- package/src/react-query/computeJobsListJobEvents.ts +3 -0
- package/src/react-query/computeJobsListJobLogs.core.ts +2 -0
- package/src/react-query/computeJobsListJobLogs.ts +2 -0
- package/src/react-query/computeServicesListServiceEvents.core.ts +3 -0
- package/src/react-query/computeServicesListServiceEvents.ts +3 -0
- package/src/react-query/computeServicesListServiceLogs.core.ts +2 -0
- package/src/react-query/computeServicesListServiceLogs.ts +2 -0
- package/src/react-query/index.ts +0 -3
- package/src/sdk/sdk.ts +0 -8
- package/dist/commonjs/funcs/computeInfrastructureGetComputeDocs.d.ts +0 -14
- package/dist/commonjs/funcs/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/commonjs/funcs/computeInfrastructureGetComputeDocs.js +0 -123
- package/dist/commonjs/funcs/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/commonjs/funcs/computeInfrastructureGetComputeHealth.d.ts +0 -15
- package/dist/commonjs/funcs/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/commonjs/funcs/computeInfrastructureGetComputeHealth.js +0 -123
- package/dist/commonjs/funcs/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/commonjs/funcs/computeInfrastructureGetComputeOpenAPI.d.ts +0 -14
- package/dist/commonjs/funcs/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/commonjs/funcs/computeInfrastructureGetComputeOpenAPI.js +0 -122
- package/dist/commonjs/funcs/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeDocs.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeDocs.js +0 -62
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeHealth.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeHealth.js +0 -62
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.js +0 -62
- package/dist/commonjs/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/commonjs/models/components/computehealth.d.ts +0 -17
- package/dist/commonjs/models/components/computehealth.d.ts.map +0 -1
- package/dist/commonjs/models/components/computehealth.js.map +0 -1
- package/dist/commonjs/models/operations/getcomputedocs.d.ts +0 -20
- package/dist/commonjs/models/operations/getcomputedocs.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getcomputedocs.js +0 -67
- package/dist/commonjs/models/operations/getcomputedocs.js.map +0 -1
- package/dist/commonjs/models/operations/getcomputehealth.d.ts +0 -20
- package/dist/commonjs/models/operations/getcomputehealth.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getcomputehealth.js +0 -67
- package/dist/commonjs/models/operations/getcomputehealth.js.map +0 -1
- package/dist/commonjs/models/operations/getcomputeopenapi.d.ts +0 -32
- package/dist/commonjs/models/operations/getcomputeopenapi.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getcomputeopenapi.js +0 -79
- package/dist/commonjs/models/operations/getcomputeopenapi.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.core.d.ts +0 -14
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.core.js +0 -41
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.core.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.d.ts +0 -28
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.js +0 -59
- package/dist/commonjs/react-query/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.core.d.ts +0 -15
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.core.js +0 -41
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.core.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.d.ts +0 -28
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.js +0 -59
- package/dist/commonjs/react-query/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.core.d.ts +0 -14
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.core.js +0 -41
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.core.js.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.d.ts +0 -28
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.js +0 -59
- package/dist/commonjs/react-query/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/commonjs/sdk/computeinfrastructure.d.ts +0 -18
- package/dist/commonjs/sdk/computeinfrastructure.d.ts.map +0 -1
- package/dist/commonjs/sdk/computeinfrastructure.js +0 -33
- package/dist/commonjs/sdk/computeinfrastructure.js.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeDocs.d.ts +0 -14
- package/dist/esm/funcs/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeDocs.js +0 -87
- package/dist/esm/funcs/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeHealth.d.ts +0 -15
- package/dist/esm/funcs/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeHealth.js +0 -87
- package/dist/esm/funcs/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeOpenAPI.d.ts +0 -14
- package/dist/esm/funcs/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/esm/funcs/computeInfrastructureGetComputeOpenAPI.js +0 -86
- package/dist/esm/funcs/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeDocs.d.ts +0 -8
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeDocs.js +0 -26
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeHealth.d.ts +0 -8
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeHealth.js +0 -26
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.d.ts +0 -8
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.js +0 -26
- package/dist/esm/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/esm/models/components/computehealth.d.ts +0 -17
- package/dist/esm/models/components/computehealth.d.ts.map +0 -1
- package/dist/esm/models/components/computehealth.js +0 -20
- package/dist/esm/models/components/computehealth.js.map +0 -1
- package/dist/esm/models/operations/getcomputedocs.d.ts +0 -20
- package/dist/esm/models/operations/getcomputedocs.d.ts.map +0 -1
- package/dist/esm/models/operations/getcomputedocs.js +0 -29
- package/dist/esm/models/operations/getcomputedocs.js.map +0 -1
- package/dist/esm/models/operations/getcomputehealth.d.ts +0 -20
- package/dist/esm/models/operations/getcomputehealth.d.ts.map +0 -1
- package/dist/esm/models/operations/getcomputehealth.js +0 -29
- package/dist/esm/models/operations/getcomputehealth.js.map +0 -1
- package/dist/esm/models/operations/getcomputeopenapi.d.ts +0 -32
- package/dist/esm/models/operations/getcomputeopenapi.d.ts.map +0 -1
- package/dist/esm/models/operations/getcomputeopenapi.js +0 -39
- package/dist/esm/models/operations/getcomputeopenapi.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.core.d.ts +0 -14
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.core.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.core.js +0 -36
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.core.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.d.ts +0 -28
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.js +0 -49
- package/dist/esm/react-query/computeInfrastructureGetComputeDocs.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.core.d.ts +0 -15
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.core.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.core.js +0 -36
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.core.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.d.ts +0 -28
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.js +0 -49
- package/dist/esm/react-query/computeInfrastructureGetComputeHealth.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.core.d.ts +0 -14
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.core.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.core.js +0 -36
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.core.js.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.d.ts +0 -28
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.d.ts.map +0 -1
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.js +0 -49
- package/dist/esm/react-query/computeInfrastructureGetComputeOpenAPI.js.map +0 -1
- package/dist/esm/sdk/computeinfrastructure.d.ts +0 -18
- package/dist/esm/sdk/computeinfrastructure.d.ts.map +0 -1
- package/dist/esm/sdk/computeinfrastructure.js +0 -29
- package/dist/esm/sdk/computeinfrastructure.js.map +0 -1
- package/src/funcs/computeInfrastructureGetComputeDocs.ts +0 -174
- package/src/funcs/computeInfrastructureGetComputeHealth.ts +0 -174
- package/src/funcs/computeInfrastructureGetComputeOpenAPI.ts +0 -173
- package/src/mcp-server/tools/computeInfrastructureGetComputeDocs.ts +0 -37
- package/src/mcp-server/tools/computeInfrastructureGetComputeHealth.ts +0 -37
- package/src/mcp-server/tools/computeInfrastructureGetComputeOpenAPI.ts +0 -37
- package/src/models/components/computehealth.ts +0 -47
- package/src/models/operations/getcomputedocs.ts +0 -63
- package/src/models/operations/getcomputehealth.ts +0 -63
- package/src/models/operations/getcomputeopenapi.ts +0 -103
- package/src/react-query/computeInfrastructureGetComputeDocs.core.ts +0 -79
- package/src/react-query/computeInfrastructureGetComputeDocs.ts +0 -140
- package/src/react-query/computeInfrastructureGetComputeHealth.core.ts +0 -81
- package/src/react-query/computeInfrastructureGetComputeHealth.ts +0 -140
- package/src/react-query/computeInfrastructureGetComputeOpenAPI.core.ts +0 -80
- package/src/react-query/computeInfrastructureGetComputeOpenAPI.ts +0 -140
- package/src/sdk/computeinfrastructure.ts +0 -55
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { computeInfrastructureGetComputeDocs } from "../funcs/computeInfrastructureGetComputeDocs.js";
|
|
5
|
-
import { computeInfrastructureGetComputeHealth } from "../funcs/computeInfrastructureGetComputeHealth.js";
|
|
6
|
-
import { computeInfrastructureGetComputeOpenAPI } from "../funcs/computeInfrastructureGetComputeOpenAPI.js";
|
|
7
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
export class ComputeInfrastructure extends ClientSDK {
|
|
10
|
-
/**
|
|
11
|
-
* View API documentation
|
|
12
|
-
*/
|
|
13
|
-
async getComputeDocs(request, options) {
|
|
14
|
-
return unwrapAsync(computeInfrastructureGetComputeDocs(this, request, options));
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Health check
|
|
18
|
-
*/
|
|
19
|
-
async getComputeHealth(request, options) {
|
|
20
|
-
return unwrapAsync(computeInfrastructureGetComputeHealth(this, request, options));
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get the OpenAPI document
|
|
24
|
-
*/
|
|
25
|
-
async getComputeOpenAPI(request, options) {
|
|
26
|
-
return unwrapAsync(computeInfrastructureGetComputeOpenAPI(this, request, options));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=computeinfrastructure.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computeinfrastructure.js","sourceRoot":"","sources":["../../../src/sdk/computeinfrastructure.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,qCAAqC,EAAE,MAAM,mDAAmD,CAAC;AAC1G,OAAO,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AAC5G,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD;;OAEG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,mCAAmC,CACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,qCAAqC,CACtD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,sCAAsC,CACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { SDKCore } from "../core.js";
|
|
7
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
-
import * as M from "../lib/matchers.js";
|
|
10
|
-
import { compactMap } from "../lib/primitives.js";
|
|
11
|
-
import { safeParse } from "../lib/schemas.js";
|
|
12
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
-
import { pathToFunc } from "../lib/url.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* View API documentation
|
|
31
|
-
*/
|
|
32
|
-
export function computeInfrastructureGetComputeDocs(
|
|
33
|
-
client: SDKCore,
|
|
34
|
-
request: operations.GetComputeDocsRequest,
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): APIPromise<
|
|
37
|
-
Result<
|
|
38
|
-
string,
|
|
39
|
-
| SDKError
|
|
40
|
-
| ResponseValidationError
|
|
41
|
-
| ConnectionError
|
|
42
|
-
| RequestAbortedError
|
|
43
|
-
| RequestTimeoutError
|
|
44
|
-
| InvalidRequestError
|
|
45
|
-
| UnexpectedClientError
|
|
46
|
-
| SDKValidationError
|
|
47
|
-
>
|
|
48
|
-
> {
|
|
49
|
-
return new APIPromise($do(
|
|
50
|
-
client,
|
|
51
|
-
request,
|
|
52
|
-
options,
|
|
53
|
-
));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
async function $do(
|
|
57
|
-
client: SDKCore,
|
|
58
|
-
request: operations.GetComputeDocsRequest,
|
|
59
|
-
options?: RequestOptions,
|
|
60
|
-
): Promise<
|
|
61
|
-
[
|
|
62
|
-
Result<
|
|
63
|
-
string,
|
|
64
|
-
| SDKError
|
|
65
|
-
| ResponseValidationError
|
|
66
|
-
| ConnectionError
|
|
67
|
-
| RequestAbortedError
|
|
68
|
-
| RequestTimeoutError
|
|
69
|
-
| InvalidRequestError
|
|
70
|
-
| UnexpectedClientError
|
|
71
|
-
| SDKValidationError
|
|
72
|
-
>,
|
|
73
|
-
APICall,
|
|
74
|
-
]
|
|
75
|
-
> {
|
|
76
|
-
const parsed = safeParse(
|
|
77
|
-
request,
|
|
78
|
-
(value) => operations.GetComputeDocsRequest$outboundSchema.parse(value),
|
|
79
|
-
"Input validation failed",
|
|
80
|
-
);
|
|
81
|
-
if (!parsed.ok) {
|
|
82
|
-
return [parsed, { status: "invalid" }];
|
|
83
|
-
}
|
|
84
|
-
const payload = parsed.value;
|
|
85
|
-
const body = null;
|
|
86
|
-
|
|
87
|
-
const path = pathToFunc("/api/v1/compute/docs")();
|
|
88
|
-
|
|
89
|
-
const headers = new Headers(compactMap({
|
|
90
|
-
Accept: "text/html",
|
|
91
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
92
|
-
"X-On-Behalf-Of",
|
|
93
|
-
payload["X-On-Behalf-Of"],
|
|
94
|
-
{ explode: false, charEncoding: "none" },
|
|
95
|
-
),
|
|
96
|
-
}));
|
|
97
|
-
|
|
98
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
99
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
100
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
-
|
|
102
|
-
const context = {
|
|
103
|
-
options: client._options,
|
|
104
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
-
operationID: "getComputeDocs",
|
|
106
|
-
oAuth2Scopes: null,
|
|
107
|
-
|
|
108
|
-
resolvedSecurity: requestSecurity,
|
|
109
|
-
|
|
110
|
-
securitySource: client._options.bearerAuth,
|
|
111
|
-
retryConfig: options?.retries
|
|
112
|
-
|| client._options.retryConfig
|
|
113
|
-
|| {
|
|
114
|
-
strategy: "backoff",
|
|
115
|
-
backoff: {
|
|
116
|
-
initialInterval: 500,
|
|
117
|
-
maxInterval: 5000,
|
|
118
|
-
exponent: 1.5,
|
|
119
|
-
maxElapsedTime: 15000,
|
|
120
|
-
},
|
|
121
|
-
retryConnectionErrors: true,
|
|
122
|
-
}
|
|
123
|
-
|| { strategy: "none" },
|
|
124
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const requestRes = client._createRequest(context, {
|
|
128
|
-
security: requestSecurity,
|
|
129
|
-
method: "GET",
|
|
130
|
-
baseURL: options?.serverURL,
|
|
131
|
-
path: path,
|
|
132
|
-
headers: headers,
|
|
133
|
-
body: body,
|
|
134
|
-
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
-
}, options);
|
|
137
|
-
if (!requestRes.ok) {
|
|
138
|
-
return [requestRes, { status: "invalid" }];
|
|
139
|
-
}
|
|
140
|
-
const req = requestRes.value;
|
|
141
|
-
|
|
142
|
-
const doResult = await client._do(req, {
|
|
143
|
-
context,
|
|
144
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
146
|
-
retryConfig: context.retryConfig,
|
|
147
|
-
retryCodes: context.retryCodes,
|
|
148
|
-
});
|
|
149
|
-
if (!doResult.ok) {
|
|
150
|
-
return [doResult, { status: "request-error", request: req }];
|
|
151
|
-
}
|
|
152
|
-
const response = doResult.value;
|
|
153
|
-
|
|
154
|
-
const [result] = await M.match<
|
|
155
|
-
string,
|
|
156
|
-
| SDKError
|
|
157
|
-
| ResponseValidationError
|
|
158
|
-
| ConnectionError
|
|
159
|
-
| RequestAbortedError
|
|
160
|
-
| RequestTimeoutError
|
|
161
|
-
| InvalidRequestError
|
|
162
|
-
| UnexpectedClientError
|
|
163
|
-
| SDKValidationError
|
|
164
|
-
>(
|
|
165
|
-
M.text(200, z.string(), { ctype: "text/html" }),
|
|
166
|
-
M.fail("4XX"),
|
|
167
|
-
M.fail("5XX"),
|
|
168
|
-
)(response, req);
|
|
169
|
-
if (!result.ok) {
|
|
170
|
-
return [result, { status: "complete", request: req, response }];
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return [result, { status: "complete", request: req, response }];
|
|
174
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Health check
|
|
31
|
-
*/
|
|
32
|
-
export function computeInfrastructureGetComputeHealth(
|
|
33
|
-
client: SDKCore,
|
|
34
|
-
request: operations.GetComputeHealthRequest,
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): APIPromise<
|
|
37
|
-
Result<
|
|
38
|
-
components.ComputeHealth,
|
|
39
|
-
| SDKError
|
|
40
|
-
| ResponseValidationError
|
|
41
|
-
| ConnectionError
|
|
42
|
-
| RequestAbortedError
|
|
43
|
-
| RequestTimeoutError
|
|
44
|
-
| InvalidRequestError
|
|
45
|
-
| UnexpectedClientError
|
|
46
|
-
| SDKValidationError
|
|
47
|
-
>
|
|
48
|
-
> {
|
|
49
|
-
return new APIPromise($do(
|
|
50
|
-
client,
|
|
51
|
-
request,
|
|
52
|
-
options,
|
|
53
|
-
));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
async function $do(
|
|
57
|
-
client: SDKCore,
|
|
58
|
-
request: operations.GetComputeHealthRequest,
|
|
59
|
-
options?: RequestOptions,
|
|
60
|
-
): Promise<
|
|
61
|
-
[
|
|
62
|
-
Result<
|
|
63
|
-
components.ComputeHealth,
|
|
64
|
-
| SDKError
|
|
65
|
-
| ResponseValidationError
|
|
66
|
-
| ConnectionError
|
|
67
|
-
| RequestAbortedError
|
|
68
|
-
| RequestTimeoutError
|
|
69
|
-
| InvalidRequestError
|
|
70
|
-
| UnexpectedClientError
|
|
71
|
-
| SDKValidationError
|
|
72
|
-
>,
|
|
73
|
-
APICall,
|
|
74
|
-
]
|
|
75
|
-
> {
|
|
76
|
-
const parsed = safeParse(
|
|
77
|
-
request,
|
|
78
|
-
(value) => operations.GetComputeHealthRequest$outboundSchema.parse(value),
|
|
79
|
-
"Input validation failed",
|
|
80
|
-
);
|
|
81
|
-
if (!parsed.ok) {
|
|
82
|
-
return [parsed, { status: "invalid" }];
|
|
83
|
-
}
|
|
84
|
-
const payload = parsed.value;
|
|
85
|
-
const body = null;
|
|
86
|
-
|
|
87
|
-
const path = pathToFunc("/api/v1/compute/health")();
|
|
88
|
-
|
|
89
|
-
const headers = new Headers(compactMap({
|
|
90
|
-
Accept: "application/json",
|
|
91
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
92
|
-
"X-On-Behalf-Of",
|
|
93
|
-
payload["X-On-Behalf-Of"],
|
|
94
|
-
{ explode: false, charEncoding: "none" },
|
|
95
|
-
),
|
|
96
|
-
}));
|
|
97
|
-
|
|
98
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
99
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
100
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
-
|
|
102
|
-
const context = {
|
|
103
|
-
options: client._options,
|
|
104
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
-
operationID: "getComputeHealth",
|
|
106
|
-
oAuth2Scopes: null,
|
|
107
|
-
|
|
108
|
-
resolvedSecurity: requestSecurity,
|
|
109
|
-
|
|
110
|
-
securitySource: client._options.bearerAuth,
|
|
111
|
-
retryConfig: options?.retries
|
|
112
|
-
|| client._options.retryConfig
|
|
113
|
-
|| {
|
|
114
|
-
strategy: "backoff",
|
|
115
|
-
backoff: {
|
|
116
|
-
initialInterval: 500,
|
|
117
|
-
maxInterval: 5000,
|
|
118
|
-
exponent: 1.5,
|
|
119
|
-
maxElapsedTime: 15000,
|
|
120
|
-
},
|
|
121
|
-
retryConnectionErrors: true,
|
|
122
|
-
}
|
|
123
|
-
|| { strategy: "none" },
|
|
124
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const requestRes = client._createRequest(context, {
|
|
128
|
-
security: requestSecurity,
|
|
129
|
-
method: "GET",
|
|
130
|
-
baseURL: options?.serverURL,
|
|
131
|
-
path: path,
|
|
132
|
-
headers: headers,
|
|
133
|
-
body: body,
|
|
134
|
-
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
-
}, options);
|
|
137
|
-
if (!requestRes.ok) {
|
|
138
|
-
return [requestRes, { status: "invalid" }];
|
|
139
|
-
}
|
|
140
|
-
const req = requestRes.value;
|
|
141
|
-
|
|
142
|
-
const doResult = await client._do(req, {
|
|
143
|
-
context,
|
|
144
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
146
|
-
retryConfig: context.retryConfig,
|
|
147
|
-
retryCodes: context.retryCodes,
|
|
148
|
-
});
|
|
149
|
-
if (!doResult.ok) {
|
|
150
|
-
return [doResult, { status: "request-error", request: req }];
|
|
151
|
-
}
|
|
152
|
-
const response = doResult.value;
|
|
153
|
-
|
|
154
|
-
const [result] = await M.match<
|
|
155
|
-
components.ComputeHealth,
|
|
156
|
-
| SDKError
|
|
157
|
-
| ResponseValidationError
|
|
158
|
-
| ConnectionError
|
|
159
|
-
| RequestAbortedError
|
|
160
|
-
| RequestTimeoutError
|
|
161
|
-
| InvalidRequestError
|
|
162
|
-
| UnexpectedClientError
|
|
163
|
-
| SDKValidationError
|
|
164
|
-
>(
|
|
165
|
-
M.json(200, components.ComputeHealth$inboundSchema),
|
|
166
|
-
M.fail("4XX"),
|
|
167
|
-
M.fail("5XX"),
|
|
168
|
-
)(response, req);
|
|
169
|
-
if (!result.ok) {
|
|
170
|
-
return [result, { status: "complete", request: req, response }];
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
return [result, { status: "complete", request: req, response }];
|
|
174
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Get the OpenAPI document
|
|
30
|
-
*/
|
|
31
|
-
export function computeInfrastructureGetComputeOpenAPI(
|
|
32
|
-
client: SDKCore,
|
|
33
|
-
request: operations.GetComputeOpenAPIRequest,
|
|
34
|
-
options?: RequestOptions,
|
|
35
|
-
): APIPromise<
|
|
36
|
-
Result<
|
|
37
|
-
operations.GetComputeOpenAPIResponseBody,
|
|
38
|
-
| SDKError
|
|
39
|
-
| ResponseValidationError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
| RequestAbortedError
|
|
42
|
-
| RequestTimeoutError
|
|
43
|
-
| InvalidRequestError
|
|
44
|
-
| UnexpectedClientError
|
|
45
|
-
| SDKValidationError
|
|
46
|
-
>
|
|
47
|
-
> {
|
|
48
|
-
return new APIPromise($do(
|
|
49
|
-
client,
|
|
50
|
-
request,
|
|
51
|
-
options,
|
|
52
|
-
));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
async function $do(
|
|
56
|
-
client: SDKCore,
|
|
57
|
-
request: operations.GetComputeOpenAPIRequest,
|
|
58
|
-
options?: RequestOptions,
|
|
59
|
-
): Promise<
|
|
60
|
-
[
|
|
61
|
-
Result<
|
|
62
|
-
operations.GetComputeOpenAPIResponseBody,
|
|
63
|
-
| SDKError
|
|
64
|
-
| ResponseValidationError
|
|
65
|
-
| ConnectionError
|
|
66
|
-
| RequestAbortedError
|
|
67
|
-
| RequestTimeoutError
|
|
68
|
-
| InvalidRequestError
|
|
69
|
-
| UnexpectedClientError
|
|
70
|
-
| SDKValidationError
|
|
71
|
-
>,
|
|
72
|
-
APICall,
|
|
73
|
-
]
|
|
74
|
-
> {
|
|
75
|
-
const parsed = safeParse(
|
|
76
|
-
request,
|
|
77
|
-
(value) => operations.GetComputeOpenAPIRequest$outboundSchema.parse(value),
|
|
78
|
-
"Input validation failed",
|
|
79
|
-
);
|
|
80
|
-
if (!parsed.ok) {
|
|
81
|
-
return [parsed, { status: "invalid" }];
|
|
82
|
-
}
|
|
83
|
-
const payload = parsed.value;
|
|
84
|
-
const body = null;
|
|
85
|
-
|
|
86
|
-
const path = pathToFunc("/api/v1/compute/openapi.json")();
|
|
87
|
-
|
|
88
|
-
const headers = new Headers(compactMap({
|
|
89
|
-
Accept: "application/json",
|
|
90
|
-
"X-On-Behalf-Of": encodeSimple(
|
|
91
|
-
"X-On-Behalf-Of",
|
|
92
|
-
payload["X-On-Behalf-Of"],
|
|
93
|
-
{ explode: false, charEncoding: "none" },
|
|
94
|
-
),
|
|
95
|
-
}));
|
|
96
|
-
|
|
97
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
98
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
99
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
-
|
|
101
|
-
const context = {
|
|
102
|
-
options: client._options,
|
|
103
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
-
operationID: "getComputeOpenAPI",
|
|
105
|
-
oAuth2Scopes: null,
|
|
106
|
-
|
|
107
|
-
resolvedSecurity: requestSecurity,
|
|
108
|
-
|
|
109
|
-
securitySource: client._options.bearerAuth,
|
|
110
|
-
retryConfig: options?.retries
|
|
111
|
-
|| client._options.retryConfig
|
|
112
|
-
|| {
|
|
113
|
-
strategy: "backoff",
|
|
114
|
-
backoff: {
|
|
115
|
-
initialInterval: 500,
|
|
116
|
-
maxInterval: 5000,
|
|
117
|
-
exponent: 1.5,
|
|
118
|
-
maxElapsedTime: 15000,
|
|
119
|
-
},
|
|
120
|
-
retryConnectionErrors: true,
|
|
121
|
-
}
|
|
122
|
-
|| { strategy: "none" },
|
|
123
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const requestRes = client._createRequest(context, {
|
|
127
|
-
security: requestSecurity,
|
|
128
|
-
method: "GET",
|
|
129
|
-
baseURL: options?.serverURL,
|
|
130
|
-
path: path,
|
|
131
|
-
headers: headers,
|
|
132
|
-
body: body,
|
|
133
|
-
userAgent: client._options.userAgent,
|
|
134
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
-
}, options);
|
|
136
|
-
if (!requestRes.ok) {
|
|
137
|
-
return [requestRes, { status: "invalid" }];
|
|
138
|
-
}
|
|
139
|
-
const req = requestRes.value;
|
|
140
|
-
|
|
141
|
-
const doResult = await client._do(req, {
|
|
142
|
-
context,
|
|
143
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
144
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
|
-
retryConfig: context.retryConfig,
|
|
146
|
-
retryCodes: context.retryCodes,
|
|
147
|
-
});
|
|
148
|
-
if (!doResult.ok) {
|
|
149
|
-
return [doResult, { status: "request-error", request: req }];
|
|
150
|
-
}
|
|
151
|
-
const response = doResult.value;
|
|
152
|
-
|
|
153
|
-
const [result] = await M.match<
|
|
154
|
-
operations.GetComputeOpenAPIResponseBody,
|
|
155
|
-
| SDKError
|
|
156
|
-
| ResponseValidationError
|
|
157
|
-
| ConnectionError
|
|
158
|
-
| RequestAbortedError
|
|
159
|
-
| RequestTimeoutError
|
|
160
|
-
| InvalidRequestError
|
|
161
|
-
| UnexpectedClientError
|
|
162
|
-
| SDKValidationError
|
|
163
|
-
>(
|
|
164
|
-
M.json(200, operations.GetComputeOpenAPIResponseBody$inboundSchema),
|
|
165
|
-
M.fail("4XX"),
|
|
166
|
-
M.fail("5XX"),
|
|
167
|
-
)(response, req);
|
|
168
|
-
if (!result.ok) {
|
|
169
|
-
return [result, { status: "complete", request: req, response }];
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return [result, { status: "complete", request: req, response }];
|
|
173
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { computeInfrastructureGetComputeDocs } from "../../funcs/computeInfrastructureGetComputeDocs.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetComputeDocsRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$computeInfrastructureGetComputeDocs: ToolDefinition<
|
|
14
|
-
typeof args
|
|
15
|
-
> = {
|
|
16
|
-
name: "compute-infrastructure-get-compute-docs",
|
|
17
|
-
description: `View API documentation`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await computeInfrastructureGetComputeDocs(
|
|
21
|
-
client,
|
|
22
|
-
args.request,
|
|
23
|
-
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
-
).$inspect();
|
|
25
|
-
|
|
26
|
-
if (!result.ok) {
|
|
27
|
-
return {
|
|
28
|
-
content: [{ type: "text", text: result.error.message }],
|
|
29
|
-
isError: true,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const value = result.value;
|
|
34
|
-
|
|
35
|
-
return formatResult(value, apiCall);
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { computeInfrastructureGetComputeHealth } from "../../funcs/computeInfrastructureGetComputeHealth.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetComputeHealthRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$computeInfrastructureGetComputeHealth: ToolDefinition<
|
|
14
|
-
typeof args
|
|
15
|
-
> = {
|
|
16
|
-
name: "compute-infrastructure-get-compute-health",
|
|
17
|
-
description: `Health check`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await computeInfrastructureGetComputeHealth(
|
|
21
|
-
client,
|
|
22
|
-
args.request,
|
|
23
|
-
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
-
).$inspect();
|
|
25
|
-
|
|
26
|
-
if (!result.ok) {
|
|
27
|
-
return {
|
|
28
|
-
content: [{ type: "text", text: result.error.message }],
|
|
29
|
-
isError: true,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const value = result.value;
|
|
34
|
-
|
|
35
|
-
return formatResult(value, apiCall);
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { computeInfrastructureGetComputeOpenAPI } from "../../funcs/computeInfrastructureGetComputeOpenAPI.js";
|
|
6
|
-
import * as operations from "../../models/operations/index.js";
|
|
7
|
-
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
-
|
|
9
|
-
const args = {
|
|
10
|
-
request: operations.GetComputeOpenAPIRequest$inboundSchema,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export const tool$computeInfrastructureGetComputeOpenAPI: ToolDefinition<
|
|
14
|
-
typeof args
|
|
15
|
-
> = {
|
|
16
|
-
name: "compute-infrastructure-get-compute-open-API",
|
|
17
|
-
description: `Get the OpenAPI document`,
|
|
18
|
-
args,
|
|
19
|
-
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await computeInfrastructureGetComputeOpenAPI(
|
|
21
|
-
client,
|
|
22
|
-
args.request,
|
|
23
|
-
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
-
).$inspect();
|
|
25
|
-
|
|
26
|
-
if (!result.ok) {
|
|
27
|
-
return {
|
|
28
|
-
content: [{ type: "text", text: result.error.message }],
|
|
29
|
-
isError: true,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const value = result.value;
|
|
34
|
-
|
|
35
|
-
return formatResult(value, apiCall);
|
|
36
|
-
},
|
|
37
|
-
};
|