cribl-control-plane 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +30 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +87 -0
- package/README.md +452 -0
- package/RUNTIMES.md +48 -0
- package/bin/mcp-server.js +36958 -0
- package/bin/mcp-server.js.map +266 -0
- package/dist/commonjs/__tests__/assertions.d.ts +2 -0
- package/dist/commonjs/__tests__/assertions.d.ts.map +1 -0
- package/dist/commonjs/__tests__/assertions.js +14 -0
- package/dist/commonjs/__tests__/assertions.js.map +1 -0
- package/dist/commonjs/__tests__/diag.test.d.ts +2 -0
- package/dist/commonjs/__tests__/diag.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/diag.test.js +22 -0
- package/dist/commonjs/__tests__/diag.test.js.map +1 -0
- package/dist/commonjs/__tests__/files.d.ts +6 -0
- package/dist/commonjs/__tests__/files.d.ts.map +1 -0
- package/dist/commonjs/__tests__/files.js +51 -0
- package/dist/commonjs/__tests__/files.js.map +1 -0
- package/dist/commonjs/__tests__/testclient.d.ts +3 -0
- package/dist/commonjs/__tests__/testclient.d.ts.map +1 -0
- package/dist/commonjs/__tests__/testclient.js +38 -0
- package/dist/commonjs/__tests__/testclient.js.map +1 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/diagGetHealthInfo.d.ts +15 -0
- package/dist/commonjs/funcs/diagGetHealthInfo.d.ts.map +1 -0
- package/dist/commonjs/funcs/diagGetHealthInfo.js +100 -0
- package/dist/commonjs/funcs/diagGetHealthInfo.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +25 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +86 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts +3 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -0
- package/dist/commonjs/hooks/registration.js +15 -0
- package/dist/commonjs/hooks/registration.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +76 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +71 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +38 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +35 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/dlv.d.ts +14 -0
- package/dist/commonjs/lib/dlv.d.ts.map +1 -0
- package/dist/commonjs/lib/dlv.js +49 -0
- package/dist/commonjs/lib/dlv.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +52 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +368 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/env.d.ts +15 -0
- package/dist/commonjs/lib/env.d.ts.map +1 -0
- package/dist/commonjs/lib/env.js +65 -0
- package/dist/commonjs/lib/env.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +77 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +217 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
- package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
- package/dist/commonjs/lib/is-plain-object.js +41 -0
- package/dist/commonjs/lib/is-plain-object.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +222 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +26 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +111 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +153 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +19 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +62 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +273 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +83 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +144 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +25 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/command.d.ts +2 -0
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/command.js +126 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +16 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js +102 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -0
- package/dist/commonjs/mcp-server/cli.d.ts +6 -0
- package/dist/commonjs/mcp-server/cli.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/cli.js +10 -0
- package/dist/commonjs/mcp-server/cli.js.map +1 -0
- package/dist/commonjs/mcp-server/console-logger.d.ts +7 -0
- package/dist/commonjs/mcp-server/console-logger.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/console-logger.js +59 -0
- package/dist/commonjs/mcp-server/console-logger.js.map +1 -0
- package/dist/commonjs/mcp-server/extensions.d.ts +11 -0
- package/dist/commonjs/mcp-server/extensions.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/extensions.js +6 -0
- package/dist/commonjs/mcp-server/extensions.js.map +1 -0
- package/dist/commonjs/mcp-server/mcp-server.d.ts +2 -0
- package/dist/commonjs/mcp-server/mcp-server.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/mcp-server.js +29 -0
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -0
- package/dist/commonjs/mcp-server/prompts.d.ts +26 -0
- package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/prompts.js +51 -0
- package/dist/commonjs/mcp-server/prompts.js.map +1 -0
- package/dist/commonjs/mcp-server/resources.d.ts +32 -0
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/resources.js +87 -0
- package/dist/commonjs/mcp-server/resources.js.map +1 -0
- package/dist/commonjs/mcp-server/scopes.d.ts +3 -0
- package/dist/commonjs/mcp-server/scopes.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/scopes.js +8 -0
- package/dist/commonjs/mcp-server/scopes.js.map +1 -0
- package/dist/commonjs/mcp-server/server.d.ts +13 -0
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/server.js +34 -0
- package/dist/commonjs/mcp-server/server.js.map +1 -0
- package/dist/commonjs/mcp-server/shared.d.ts +7 -0
- package/dist/commonjs/mcp-server/shared.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/shared.js +98 -0
- package/dist/commonjs/mcp-server/shared.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/diagGetHealthInfo.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/diagGetHealthInfo.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/diagGetHealthInfo.js +24 -0
- package/dist/commonjs/mcp-server/tools/diagGetHealthInfo.js.map +1 -0
- package/dist/commonjs/mcp-server/tools.d.ts +25 -0
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools.js +82 -0
- package/dist/commonjs/mcp-server/tools.js.map +1 -0
- package/dist/commonjs/models/errors/criblcontrolplanedefaulterror.d.ts +10 -0
- package/dist/commonjs/models/errors/criblcontrolplanedefaulterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/criblcontrolplanedefaulterror.js +34 -0
- package/dist/commonjs/models/errors/criblcontrolplanedefaulterror.js.map +1 -0
- package/dist/commonjs/models/errors/criblcontrolplaneerror.d.ts +19 -0
- package/dist/commonjs/models/errors/criblcontrolplaneerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/criblcontrolplaneerror.js +20 -0
- package/dist/commonjs/models/errors/criblcontrolplaneerror.js.map +1 -0
- package/dist/commonjs/models/errors/healthstatuserror.d.ts +43 -0
- package/dist/commonjs/models/errors/healthstatuserror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/healthstatuserror.js +93 -0
- package/dist/commonjs/models/errors/healthstatuserror.js.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.js +78 -0
- package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +6 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/models/errors/index.js +25 -0
- package/dist/commonjs/models/errors/index.js.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js +129 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/commonjs/models/healthstatus.d.ts +87 -0
- package/dist/commonjs/models/healthstatus.d.ts.map +1 -0
- package/dist/commonjs/models/healthstatus.js +113 -0
- package/dist/commonjs/models/healthstatus.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +22 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +29 -0
- package/dist/commonjs/models/security.d.ts.map +1 -0
- package/dist/commonjs/models/security.js +69 -0
- package/dist/commonjs/models/security.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/diag.d.ts +9 -0
- package/dist/commonjs/sdk/diag.d.ts.map +1 -0
- package/dist/commonjs/sdk/diag.js +19 -0
- package/dist/commonjs/sdk/diag.js.map +1 -0
- package/dist/commonjs/sdk/health.d.ts +9 -0
- package/dist/commonjs/sdk/health.d.ts.map +1 -0
- package/dist/commonjs/sdk/health.js +19 -0
- package/dist/commonjs/sdk/health.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +10 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +19 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/types/async.d.ts +23 -0
- package/dist/commonjs/types/async.d.ts.map +1 -0
- package/dist/commonjs/types/async.js +44 -0
- package/dist/commonjs/types/async.js.map +1 -0
- package/dist/commonjs/types/blobs.d.ts +4 -0
- package/dist/commonjs/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/types/blobs.js +62 -0
- package/dist/commonjs/types/blobs.js.map +1 -0
- package/dist/commonjs/types/constdatetime.d.ts +3 -0
- package/dist/commonjs/types/constdatetime.d.ts.map +1 -0
- package/dist/commonjs/types/constdatetime.js +46 -0
- package/dist/commonjs/types/constdatetime.js.map +1 -0
- package/dist/commonjs/types/enums.d.ts +12 -0
- package/dist/commonjs/types/enums.d.ts.map +1 -0
- package/dist/commonjs/types/enums.js +10 -0
- package/dist/commonjs/types/enums.js.map +1 -0
- package/dist/commonjs/types/fp.d.ts +31 -0
- package/dist/commonjs/types/fp.d.ts.map +1 -0
- package/dist/commonjs/types/fp.js +37 -0
- package/dist/commonjs/types/fp.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +8 -0
- package/dist/commonjs/types/index.d.ts.map +1 -0
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/types/operations.d.ts +27 -0
- package/dist/commonjs/types/operations.d.ts.map +1 -0
- package/dist/commonjs/types/operations.js +83 -0
- package/dist/commonjs/types/operations.js.map +1 -0
- package/dist/commonjs/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/types/rfcdate.js +46 -0
- package/dist/commonjs/types/rfcdate.js.map +1 -0
- package/dist/commonjs/types/streams.d.ts +2 -0
- package/dist/commonjs/types/streams.d.ts.map +1 -0
- package/dist/commonjs/types/streams.js +18 -0
- package/dist/commonjs/types/streams.js.map +1 -0
- package/dist/esm/__tests__/assertions.d.ts +2 -0
- package/dist/esm/__tests__/assertions.d.ts.map +1 -0
- package/dist/esm/__tests__/assertions.js +11 -0
- package/dist/esm/__tests__/assertions.js.map +1 -0
- package/dist/esm/__tests__/diag.test.d.ts +2 -0
- package/dist/esm/__tests__/diag.test.d.ts.map +1 -0
- package/dist/esm/__tests__/diag.test.js +20 -0
- package/dist/esm/__tests__/diag.test.js.map +1 -0
- package/dist/esm/__tests__/files.d.ts +6 -0
- package/dist/esm/__tests__/files.d.ts.map +1 -0
- package/dist/esm/__tests__/files.js +44 -0
- package/dist/esm/__tests__/files.js.map +1 -0
- package/dist/esm/__tests__/testclient.d.ts +3 -0
- package/dist/esm/__tests__/testclient.d.ts.map +1 -0
- package/dist/esm/__tests__/testclient.js +35 -0
- package/dist/esm/__tests__/testclient.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/diagGetHealthInfo.d.ts +15 -0
- package/dist/esm/funcs/diagGetHealthInfo.d.ts.map +1 -0
- package/dist/esm/funcs/diagGetHealthInfo.js +64 -0
- package/dist/esm/funcs/diagGetHealthInfo.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +25 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +82 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts +3 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -0
- package/dist/esm/hooks/registration.js +12 -0
- package/dist/esm/hooks/registration.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +76 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +29 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +38 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +31 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/dlv.d.ts +14 -0
- package/dist/esm/lib/dlv.d.ts.map +1 -0
- package/dist/esm/lib/dlv.js +46 -0
- package/dist/esm/lib/dlv.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +52 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +354 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/env.d.ts +15 -0
- package/dist/esm/lib/env.d.ts.map +1 -0
- package/dist/esm/lib/env.js +27 -0
- package/dist/esm/lib/env.js.map +1 -0
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +73 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +207 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/is-plain-object.d.ts +2 -0
- package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
- package/dist/esm/lib/is-plain-object.js +38 -0
- package/dist/esm/lib/is-plain-object.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +203 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +26 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +103 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +147 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +19 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +269 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +83 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +137 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +22 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/mcp-server/build.d.mts.map +1 -0
- package/dist/esm/mcp-server/build.mjs +14 -0
- package/dist/esm/mcp-server/build.mjs.map +1 -0
- package/dist/esm/mcp-server/cli/start/command.d.ts +2 -0
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli/start/command.js +90 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts +16 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli/start/impl.js +96 -0
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -0
- package/dist/esm/mcp-server/cli.d.ts +6 -0
- package/dist/esm/mcp-server/cli.d.ts.map +1 -0
- package/dist/esm/mcp-server/cli.js +7 -0
- package/dist/esm/mcp-server/cli.js.map +1 -0
- package/dist/esm/mcp-server/console-logger.d.ts +7 -0
- package/dist/esm/mcp-server/console-logger.d.ts.map +1 -0
- package/dist/esm/mcp-server/console-logger.js +55 -0
- package/dist/esm/mcp-server/console-logger.js.map +1 -0
- package/dist/esm/mcp-server/extensions.d.ts +11 -0
- package/dist/esm/mcp-server/extensions.d.ts.map +1 -0
- package/dist/esm/mcp-server/extensions.js +5 -0
- package/dist/esm/mcp-server/extensions.js.map +1 -0
- package/dist/esm/mcp-server/mcp-server.d.ts +2 -0
- package/dist/esm/mcp-server/mcp-server.d.ts.map +1 -0
- package/dist/esm/mcp-server/mcp-server.js +23 -0
- package/dist/esm/mcp-server/mcp-server.js.map +1 -0
- package/dist/esm/mcp-server/prompts.d.ts +26 -0
- package/dist/esm/mcp-server/prompts.d.ts.map +1 -0
- package/dist/esm/mcp-server/prompts.js +47 -0
- package/dist/esm/mcp-server/prompts.js.map +1 -0
- package/dist/esm/mcp-server/resources.d.ts +32 -0
- package/dist/esm/mcp-server/resources.d.ts.map +1 -0
- package/dist/esm/mcp-server/resources.js +82 -0
- package/dist/esm/mcp-server/resources.js.map +1 -0
- package/dist/esm/mcp-server/scopes.d.ts +3 -0
- package/dist/esm/mcp-server/scopes.d.ts.map +1 -0
- package/dist/esm/mcp-server/scopes.js +5 -0
- package/dist/esm/mcp-server/scopes.js.map +1 -0
- package/dist/esm/mcp-server/server.d.ts +13 -0
- package/dist/esm/mcp-server/server.d.ts.map +1 -0
- package/dist/esm/mcp-server/server.js +31 -0
- package/dist/esm/mcp-server/server.js.map +1 -0
- package/dist/esm/mcp-server/shared.d.ts +7 -0
- package/dist/esm/mcp-server/shared.d.ts.map +1 -0
- package/dist/esm/mcp-server/shared.js +59 -0
- package/dist/esm/mcp-server/shared.js.map +1 -0
- package/dist/esm/mcp-server/tools/diagGetHealthInfo.d.ts +3 -0
- package/dist/esm/mcp-server/tools/diagGetHealthInfo.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/diagGetHealthInfo.js +21 -0
- package/dist/esm/mcp-server/tools/diagGetHealthInfo.js.map +1 -0
- package/dist/esm/mcp-server/tools.d.ts +25 -0
- package/dist/esm/mcp-server/tools.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools.js +78 -0
- package/dist/esm/mcp-server/tools.js.map +1 -0
- package/dist/esm/models/errors/criblcontrolplanedefaulterror.d.ts +10 -0
- package/dist/esm/models/errors/criblcontrolplanedefaulterror.d.ts.map +1 -0
- package/dist/esm/models/errors/criblcontrolplanedefaulterror.js +30 -0
- package/dist/esm/models/errors/criblcontrolplanedefaulterror.js.map +1 -0
- package/dist/esm/models/errors/criblcontrolplaneerror.d.ts +19 -0
- package/dist/esm/models/errors/criblcontrolplaneerror.d.ts.map +1 -0
- package/dist/esm/models/errors/criblcontrolplaneerror.js +16 -0
- package/dist/esm/models/errors/criblcontrolplaneerror.js.map +1 -0
- package/dist/esm/models/errors/healthstatuserror.d.ts +43 -0
- package/dist/esm/models/errors/healthstatuserror.d.ts.map +1 -0
- package/dist/esm/models/errors/healthstatuserror.js +56 -0
- package/dist/esm/models/errors/healthstatuserror.js.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.js +69 -0
- package/dist/esm/models/errors/httpclienterrors.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +6 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -0
- package/dist/esm/models/errors/index.js +9 -0
- package/dist/esm/models/errors/index.js.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.js +91 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/esm/models/healthstatus.d.ts +87 -0
- package/dist/esm/models/healthstatus.d.ts.map +1 -0
- package/dist/esm/models/healthstatus.js +75 -0
- package/dist/esm/models/healthstatus.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/security.d.ts +29 -0
- package/dist/esm/models/security.d.ts.map +1 -0
- package/dist/esm/models/security.js +31 -0
- package/dist/esm/models/security.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/diag.d.ts +9 -0
- package/dist/esm/sdk/diag.d.ts.map +1 -0
- package/dist/esm/sdk/diag.js +15 -0
- package/dist/esm/sdk/diag.js.map +1 -0
- package/dist/esm/sdk/health.d.ts +9 -0
- package/dist/esm/sdk/health.d.ts.map +1 -0
- package/dist/esm/sdk/health.js +15 -0
- package/dist/esm/sdk/health.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +10 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +15 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/types/async.d.ts +23 -0
- package/dist/esm/types/async.d.ts.map +1 -0
- package/dist/esm/types/async.js +40 -0
- package/dist/esm/types/async.js.map +1 -0
- package/dist/esm/types/blobs.d.ts +4 -0
- package/dist/esm/types/blobs.d.ts.map +1 -0
- package/dist/esm/types/blobs.js +25 -0
- package/dist/esm/types/blobs.js.map +1 -0
- package/dist/esm/types/constdatetime.d.ts +3 -0
- package/dist/esm/types/constdatetime.d.ts.map +1 -0
- package/dist/esm/types/constdatetime.js +10 -0
- package/dist/esm/types/constdatetime.js.map +1 -0
- package/dist/esm/types/enums.d.ts +12 -0
- package/dist/esm/types/enums.d.ts.map +1 -0
- package/dist/esm/types/enums.js +7 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/fp.d.ts +31 -0
- package/dist/esm/types/fp.d.ts.map +1 -0
- package/dist/esm/types/fp.js +31 -0
- package/dist/esm/types/fp.js.map +1 -0
- package/dist/esm/types/index.d.ts +8 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +8 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/operations.d.ts +27 -0
- package/dist/esm/types/operations.d.ts.map +1 -0
- package/dist/esm/types/operations.js +77 -0
- package/dist/esm/types/operations.js.map +1 -0
- package/dist/esm/types/rfcdate.d.ts +21 -0
- package/dist/esm/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/types/rfcdate.js +42 -0
- package/dist/esm/types/rfcdate.js.map +1 -0
- package/dist/esm/types/streams.d.ts +2 -0
- package/dist/esm/types/streams.d.ts.map +1 -0
- package/dist/esm/types/streams.js +15 -0
- package/dist/esm/types/streams.js.map +1 -0
- package/docs/sdks/criblcontrolplane/README.md +7 -0
- package/docs/sdks/diag/README.md +78 -0
- package/docs/sdks/health/README.md +78 -0
- package/examples/README.md +26 -0
- package/examples/diagGetHealthInfo.example.ts +24 -0
- package/examples/package-lock.json +629 -0
- package/examples/package.json +18 -0
- package/jsr.json +27 -0
- package/package.json +131 -0
- package/src/__tests__/assertions.ts +13 -0
- package/src/__tests__/diag.test.ts +23 -0
- package/src/__tests__/files.ts +56 -0
- package/src/__tests__/mockserver/README.md +52 -0
- package/src/__tests__/testclient.ts +48 -0
- package/src/core.ts +13 -0
- package/src/funcs/diagGetHealthInfo.ts +142 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +65 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +358 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +406 -0
- package/src/lib/security.ts +261 -0
- package/src/lib/url.ts +33 -0
- package/src/mcp-server/cli/start/command.ts +94 -0
- package/src/mcp-server/cli/start/impl.ts +130 -0
- package/src/mcp-server/cli.ts +13 -0
- package/src/mcp-server/console-logger.ts +71 -0
- package/src/mcp-server/extensions.ts +17 -0
- package/src/mcp-server/mcp-server.ts +26 -0
- package/src/mcp-server/prompts.ts +117 -0
- package/src/mcp-server/resources.ts +172 -0
- package/src/mcp-server/scopes.ts +7 -0
- package/src/mcp-server/server.ts +61 -0
- package/src/mcp-server/shared.ts +75 -0
- package/src/mcp-server/tools/diagGetHealthInfo.ts +28 -0
- package/src/mcp-server/tools.ts +129 -0
- package/src/models/errors/criblcontrolplanedefaulterror.ts +40 -0
- package/src/models/errors/criblcontrolplaneerror.ts +35 -0
- package/src/models/errors/healthstatuserror.ts +92 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +109 -0
- package/src/models/healthstatus.ts +123 -0
- package/src/models/index.ts +6 -0
- package/src/models/security.ts +62 -0
- package/src/sdk/diag.ts +22 -0
- package/src/sdk/health.ts +22 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +19 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
7
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
12
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
13
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _APIPromise_promise, _APIPromise_unwrapped, _a;
|
|
16
|
+
export class APIPromise {
|
|
17
|
+
constructor(p) {
|
|
18
|
+
_APIPromise_promise.set(this, void 0);
|
|
19
|
+
_APIPromise_unwrapped.set(this, void 0);
|
|
20
|
+
this[_a] = "APIPromise";
|
|
21
|
+
__classPrivateFieldSet(this, _APIPromise_promise, p instanceof Promise ? p : Promise.resolve(p), "f");
|
|
22
|
+
__classPrivateFieldSet(this, _APIPromise_unwrapped, p instanceof Promise
|
|
23
|
+
? __classPrivateFieldGet(this, _APIPromise_promise, "f").then(([value]) => value)
|
|
24
|
+
: Promise.resolve(p[0]), "f");
|
|
25
|
+
}
|
|
26
|
+
then(onfulfilled, onrejected) {
|
|
27
|
+
return __classPrivateFieldGet(this, _APIPromise_promise, "f").then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);
|
|
28
|
+
}
|
|
29
|
+
catch(onrejected) {
|
|
30
|
+
return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").catch(onrejected);
|
|
31
|
+
}
|
|
32
|
+
finally(onfinally) {
|
|
33
|
+
return __classPrivateFieldGet(this, _APIPromise_unwrapped, "f").finally(onfinally);
|
|
34
|
+
}
|
|
35
|
+
$inspect() {
|
|
36
|
+
return __classPrivateFieldGet(this, _APIPromise_promise, "f");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
_APIPromise_promise = new WeakMap(), _APIPromise_unwrapped = new WeakMap(), _a = Symbol.toStringTag;
|
|
40
|
+
//# sourceMappingURL=async.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/types/async.ts"],"names":[],"mappings":"AAAA;;GAEG;;;;;;;;;;;;;AAmBH,MAAM,OAAO,UAAU;IAMrB,YAAY,CAAuC;QAL1C,sCAAgC;QAChC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AAEL,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI,CAkBpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export const blobLikeSchema = z.custom(isBlobLike, {
|
|
6
|
+
message: "expected a Blob, File or Blob-like object",
|
|
7
|
+
fatal: true,
|
|
8
|
+
});
|
|
9
|
+
export function isBlobLike(val) {
|
|
10
|
+
if (val instanceof Blob) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
const name = val[Symbol.toStringTag];
|
|
17
|
+
if (typeof name !== "string") {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
if (name !== "Blob" && name !== "File") {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return "stream" in val && typeof val.stream === "function";
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=blobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blobs.js","sourceRoot":"","sources":["../../../src/types/blobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,CAAC,MAAM,cAAc,GACzB,CAAC,CAAC,MAAM,CAAO,UAAU,EAAE;IACzB,OAAO,EAAE,2CAA2C;IACpD,KAAK,EAAE,IAAI;CACZ,CAAC,CAAC;AAEL,MAAM,UAAU,UAAU,CAAC,GAAY;IACrC,IAAI,GAAG,YAAY,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,IAAI,GAAG,CAAC,EAAE,CAAC;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,UAAU,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constdatetime.d.ts","sourceRoot":"","sources":["../../../src/types/constdatetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,GACV,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAM1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
export function constDateTime(val) {
|
|
6
|
+
return z.custom((v) => {
|
|
7
|
+
return (typeof v === "string" && new Date(v).getTime() === new Date(val).getTime());
|
|
8
|
+
}, `Value must be equivalent to ${val}`);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=constdatetime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constdatetime.js","sourceRoot":"","sources":["../../../src/types/constdatetime.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,UAAU,aAAa,CAC3B,GAAW;IAEX,OAAO,CAAC,CAAC,MAAM,CAAS,CAAC,CAAC,EAAE,EAAE;QAC5B,OAAO,CACL,OAAO,CAAC,KAAK,QAAQ,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAC3E,CAAC;IACJ,CAAC,EAAE,+BAA+B,GAAG,EAAE,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
export type Unrecognized<T> = T & {
|
|
3
|
+
[__brand]: "unrecognized";
|
|
4
|
+
};
|
|
5
|
+
export declare function catchUnrecognizedEnum<T>(value: T): Unrecognized<T>;
|
|
6
|
+
type Prettify<T> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
} & {};
|
|
9
|
+
export type ClosedEnum<T> = T[keyof T];
|
|
10
|
+
export type OpenEnum<T> = Prettify<T[keyof T]> | Unrecognized<T[keyof T] extends number ? number : string>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEhE,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAElE;AAED,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,EAAE,CAAC;AACjD,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACvC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAClB,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACpB,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/types/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,UAAU,qBAAqB,CAAI,KAAQ;IAC/C,OAAO,KAAwB,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monad that captures the result of a function call or an error if it was not
|
|
3
|
+
* successful. Railway programming, enabled by this type, can be a nicer
|
|
4
|
+
* alternative to traditional exception throwing because it allows functions to
|
|
5
|
+
* declare all _known_ errors with static types and then check for them
|
|
6
|
+
* exhaustively in application code. Thrown exception have a type of `unknown`
|
|
7
|
+
* and break out of regular control flow of programs making them harder to
|
|
8
|
+
* inspect and more verbose work with due to try-catch blocks.
|
|
9
|
+
*/
|
|
10
|
+
export type Result<T, E = unknown> = {
|
|
11
|
+
ok: true;
|
|
12
|
+
value: T;
|
|
13
|
+
error?: never;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
value?: never;
|
|
17
|
+
error: E;
|
|
18
|
+
};
|
|
19
|
+
export declare function OK<V>(value: V): Result<V, never>;
|
|
20
|
+
export declare function ERR<E>(error: E): Result<never, E>;
|
|
21
|
+
/**
|
|
22
|
+
* unwrap is a convenience function for extracting a value from a result or
|
|
23
|
+
* throwing if there was an error.
|
|
24
|
+
*/
|
|
25
|
+
export declare function unwrap<T>(r: Result<T, unknown>): T;
|
|
26
|
+
/**
|
|
27
|
+
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
28
|
+
* of a result or rejecting if an error occurred.
|
|
29
|
+
*/
|
|
30
|
+
export declare function unwrapAsync<T>(pr: Promise<Result<T, unknown>>): Promise<T>;
|
|
31
|
+
//# sourceMappingURL=fp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fp.d.ts","sourceRoot":"","sources":["../../../src/types/fp.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,IAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GACrC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE3C,wBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAEhD;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAEjD;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAC9B,OAAO,CAAC,CAAC,CAAC,CAOZ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export function OK(value) {
|
|
5
|
+
return { ok: true, value };
|
|
6
|
+
}
|
|
7
|
+
export function ERR(error) {
|
|
8
|
+
return { ok: false, error };
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* unwrap is a convenience function for extracting a value from a result or
|
|
12
|
+
* throwing if there was an error.
|
|
13
|
+
*/
|
|
14
|
+
export function unwrap(r) {
|
|
15
|
+
if (!r.ok) {
|
|
16
|
+
throw r.error;
|
|
17
|
+
}
|
|
18
|
+
return r.value;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* unwrapAsync is a convenience function for resolving a value from a Promise
|
|
22
|
+
* of a result or rejecting if an error occurred.
|
|
23
|
+
*/
|
|
24
|
+
export async function unwrapAsync(pr) {
|
|
25
|
+
const r = await pr;
|
|
26
|
+
if (!r.ok) {
|
|
27
|
+
throw r.error;
|
|
28
|
+
}
|
|
29
|
+
return r.value;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=fp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fp.js","sourceRoot":"","sources":["../../../src/types/fp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,UAAU,EAAE,CAAI,KAAQ;IAC5B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,GAAG,CAAI,KAAQ;IAC7B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,MAAM,CAAI,CAAqB;IAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IACD,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,EAA+B;IAE/B,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACV,MAAM,CAAC,CAAC,KAAK,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,CAAC,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
2
|
+
export { catchUnrecognizedEnum } from "./enums.js";
|
|
3
|
+
export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js";
|
|
4
|
+
export type { Result } from "./fp.js";
|
|
5
|
+
export type { PageIterator, Paginator } from "./operations.js";
|
|
6
|
+
export { createPageIterator } from "./operations.js";
|
|
7
|
+
export { RFCDate } from "./rfcdate.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACrE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export { blobLikeSchema, isBlobLike } from "./blobs.js";
|
|
5
|
+
export { catchUnrecognizedEnum } from "./enums.js";
|
|
6
|
+
export { createPageIterator } from "./operations.js";
|
|
7
|
+
export { RFCDate } from "./rfcdate.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Result } from "./fp.js";
|
|
2
|
+
export type Paginator<V> = () => Promise<V & {
|
|
3
|
+
next: Paginator<V>;
|
|
4
|
+
}> | null;
|
|
5
|
+
export type PageIterator<V, PageState = unknown> = V & {
|
|
6
|
+
next: Paginator<V>;
|
|
7
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<V>;
|
|
8
|
+
"~next"?: PageState | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function createPageIterator<V>(page: V & {
|
|
11
|
+
next: Paginator<V>;
|
|
12
|
+
}, halt: (v: V) => boolean): {
|
|
13
|
+
[Symbol.asyncIterator]: () => AsyncIterableIterator<V>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* This utility create a special iterator that yields a single value and
|
|
17
|
+
* terminates. It is useful in paginated SDK functions that have early return
|
|
18
|
+
* paths when things go wrong.
|
|
19
|
+
*/
|
|
20
|
+
export declare function haltIterator<V extends object>(v: V): PageIterator<V, undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Converts an async iterator of `Result<V, E>` into an async iterator of `V`.
|
|
23
|
+
* When error results occur, the underlying error value is thrown.
|
|
24
|
+
*/
|
|
25
|
+
export declare function unwrapResultIterator<V, PageState>(iteratorPromise: Promise<PageIterator<Result<V, unknown>, PageState>>): Promise<PageIterator<V, PageState>>;
|
|
26
|
+
export declare const URL_OVERRIDE: unique symbol;
|
|
27
|
+
//# sourceMappingURL=operations.d.ts.map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eAAyB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export function createPageIterator(page, halt) {
|
|
5
|
+
return {
|
|
6
|
+
[Symbol.asyncIterator]: async function* paginator() {
|
|
7
|
+
yield page;
|
|
8
|
+
if (halt(page)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
let p = page;
|
|
12
|
+
for (p = await p.next(); p != null; p = await p.next()) {
|
|
13
|
+
yield p;
|
|
14
|
+
if (halt(p)) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This utility create a special iterator that yields a single value and
|
|
23
|
+
* terminates. It is useful in paginated SDK functions that have early return
|
|
24
|
+
* paths when things go wrong.
|
|
25
|
+
*/
|
|
26
|
+
export function haltIterator(v) {
|
|
27
|
+
return {
|
|
28
|
+
...v,
|
|
29
|
+
next: () => null,
|
|
30
|
+
[Symbol.asyncIterator]: async function* paginator() {
|
|
31
|
+
yield v;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Converts an async iterator of `Result<V, E>` into an async iterator of `V`.
|
|
37
|
+
* When error results occur, the underlying error value is thrown.
|
|
38
|
+
*/
|
|
39
|
+
export async function unwrapResultIterator(iteratorPromise) {
|
|
40
|
+
const resultIter = await iteratorPromise;
|
|
41
|
+
if (!resultIter.ok) {
|
|
42
|
+
throw resultIter.error;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
...resultIter.value,
|
|
46
|
+
next: unwrapPaginator(resultIter.next),
|
|
47
|
+
"~next": resultIter["~next"],
|
|
48
|
+
[Symbol.asyncIterator]: async function* paginator() {
|
|
49
|
+
for await (const page of resultIter) {
|
|
50
|
+
if (!page.ok) {
|
|
51
|
+
throw page.error;
|
|
52
|
+
}
|
|
53
|
+
yield page.value;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function unwrapPaginator(paginator) {
|
|
59
|
+
return () => {
|
|
60
|
+
const nextResult = paginator();
|
|
61
|
+
if (nextResult == null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return nextResult.then((res) => {
|
|
65
|
+
if (!res.ok) {
|
|
66
|
+
throw res.error;
|
|
67
|
+
}
|
|
68
|
+
const out = {
|
|
69
|
+
...res.value,
|
|
70
|
+
next: unwrapPaginator(res.next),
|
|
71
|
+
};
|
|
72
|
+
return out;
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export const URL_OVERRIDE = Symbol("URL_OVERRIDE");
|
|
77
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/types/operations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,MAAM,UAAU,kBAAkB,CAChC,IAAgC,EAChC,IAAuB;IAIvB,OAAO;QACL,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,SAAS;YAC/C,MAAM,IAAI,CAAC;YACX,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,IAAI,CAAC,GAAuB,IAAI,CAAC;YACjC,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;gBACvD,MAAM,CAAC,CAAC;gBACR,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;oBACZ,OAAO;gBACT,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG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AAM,GAAG,GAAG;gBACV,GAAG,GAAG,CAAC,KAAK;gBACZ,IAAI,EAAE,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC;aAChC,CAAC;YACF,OAAO,GAAG,CAAC;QACb,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class RFCDate {
|
|
2
|
+
private serialized;
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new RFCDate instance using today's date.
|
|
5
|
+
*/
|
|
6
|
+
static today(): RFCDate;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new RFCDate instance using the provided input.
|
|
9
|
+
* If a string is used then in must be in the format YYYY-MM-DD.
|
|
10
|
+
*
|
|
11
|
+
* @param date A Date object or a date string in YYYY-MM-DD format
|
|
12
|
+
* @example
|
|
13
|
+
* new RFCDate("2022-01-01")
|
|
14
|
+
* @example
|
|
15
|
+
* new RFCDate(new Date())
|
|
16
|
+
*/
|
|
17
|
+
constructor(date: Date | string);
|
|
18
|
+
toJSON(): string;
|
|
19
|
+
toString(): string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=rfcdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rfcdate.d.ts","sourceRoot":"","sources":["../../../src/types/rfcdate.ts"],"names":[],"mappings":"AAMA,qBAAa,OAAO;IAClB,OAAO,CAAC,UAAU,CAAS;IAE3B;;OAEG;IACH,MAAM,CAAC,KAAK,IAAI,OAAO;IAIvB;;;;;;;;;OASG;gBACS,IAAI,EAAE,IAAI,GAAG,MAAM;IAoB/B,MAAM,IAAI,MAAM;IAIhB,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
const dateRE = /^\d{4}-\d{2}-\d{2}$/;
|
|
5
|
+
export class RFCDate {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new RFCDate instance using today's date.
|
|
8
|
+
*/
|
|
9
|
+
static today() {
|
|
10
|
+
return new RFCDate(new Date());
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new RFCDate instance using the provided input.
|
|
14
|
+
* If a string is used then in must be in the format YYYY-MM-DD.
|
|
15
|
+
*
|
|
16
|
+
* @param date A Date object or a date string in YYYY-MM-DD format
|
|
17
|
+
* @example
|
|
18
|
+
* new RFCDate("2022-01-01")
|
|
19
|
+
* @example
|
|
20
|
+
* new RFCDate(new Date())
|
|
21
|
+
*/
|
|
22
|
+
constructor(date) {
|
|
23
|
+
if (typeof date === "string" && !dateRE.test(date)) {
|
|
24
|
+
throw new RangeError("RFCDate: date strings must be in the format YYYY-MM-DD: " + date);
|
|
25
|
+
}
|
|
26
|
+
const value = new Date(date);
|
|
27
|
+
if (isNaN(+value)) {
|
|
28
|
+
throw new RangeError("RFCDate: invalid date provided: " + date);
|
|
29
|
+
}
|
|
30
|
+
this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length);
|
|
31
|
+
if (!dateRE.test(this.serialized)) {
|
|
32
|
+
throw new TypeError(`RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
toJSON() {
|
|
36
|
+
return this.toString();
|
|
37
|
+
}
|
|
38
|
+
toString() {
|
|
39
|
+
return this.serialized;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=rfcdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rfcdate.js","sourceRoot":"","sources":["../../../src/types/rfcdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,GAAG,qBAAqB,CAAC;AAErC,MAAM,OAAO,OA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ated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
export function isReadableStream(val) {
|
|
5
|
+
if (typeof val !== "object" || val === null) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
// Check for the presence of methods specific to ReadableStream
|
|
9
|
+
const stream = val;
|
|
10
|
+
// ReadableStream has methods like getReader, cancel, and tee
|
|
11
|
+
return (typeof stream.getReader === "function" &&
|
|
12
|
+
typeof stream.cancel === "function" &&
|
|
13
|
+
typeof stream.tee === "function");
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=streams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../../../src/types/streams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,GAAY;IAEZ,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,+DAA+D;IAC/D,MAAM,MAAM,GAAG,GAAiC,CAAC;IAEjD,6DAA6D;IAC7D,OAAO,CACL,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU;QACtC,OAAO,MAAM,CAAC,MAAM,KAAK,UAAU;QACnC,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# CriblControlPlane SDK
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Cribl API Reference: This API Reference lists available REST endpoints, along with their supported operations for accessing, creating, updating, or deleting resources. See our complementary product documentation at [docs.cribl.io](http://docs.cribl.io).
|
|
6
|
+
|
|
7
|
+
### Available Operations
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Diag
|
|
2
|
+
(*diag*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Actions related to diagnostics
|
|
7
|
+
|
|
8
|
+
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [getHealthInfo](#gethealthinfo) - Provides health info for REST server
|
|
11
|
+
|
|
12
|
+
## getHealthInfo
|
|
13
|
+
|
|
14
|
+
Provides health info for REST server
|
|
15
|
+
|
|
16
|
+
### Example Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
20
|
+
|
|
21
|
+
const criblControlPlane = new CriblControlPlane({
|
|
22
|
+
serverURL: "https://api.example.com",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
async function run() {
|
|
26
|
+
const result = await criblControlPlane.diag.getHealthInfo();
|
|
27
|
+
|
|
28
|
+
console.log(result);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
run();
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Standalone function
|
|
35
|
+
|
|
36
|
+
The standalone function version of this method:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
40
|
+
import { diagGetHealthInfo } from "cribl-control-plane/funcs/diagGetHealthInfo.js";
|
|
41
|
+
|
|
42
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
43
|
+
// You can create one instance of it to use across an application.
|
|
44
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
45
|
+
serverURL: "https://api.example.com",
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
async function run() {
|
|
49
|
+
const res = await diagGetHealthInfo(criblControlPlane);
|
|
50
|
+
if (res.ok) {
|
|
51
|
+
const { value: result } = res;
|
|
52
|
+
console.log(result);
|
|
53
|
+
} else {
|
|
54
|
+
console.log("diagGetHealthInfo failed:", res.error);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
run();
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
| Parameter | Type | Required | Description |
|
|
64
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
65
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
66
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
67
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
68
|
+
|
|
69
|
+
### Response
|
|
70
|
+
|
|
71
|
+
**Promise\<[models.HealthStatus](../../models/healthstatus.md)\>**
|
|
72
|
+
|
|
73
|
+
### Errors
|
|
74
|
+
|
|
75
|
+
| Error Type | Status Code | Content Type |
|
|
76
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
77
|
+
| errors.HealthStatusError | 420 | application/json |
|
|
78
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Health
|
|
2
|
+
(*health*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Actions related to REST server health
|
|
7
|
+
|
|
8
|
+
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [getHealthInfo](#gethealthinfo) - Provides health info for REST server
|
|
11
|
+
|
|
12
|
+
## getHealthInfo
|
|
13
|
+
|
|
14
|
+
Provides health info for REST server
|
|
15
|
+
|
|
16
|
+
### Example Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CriblControlPlane } from "cribl-control-plane";
|
|
20
|
+
|
|
21
|
+
const criblControlPlane = new CriblControlPlane({
|
|
22
|
+
serverURL: "https://api.example.com",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
async function run() {
|
|
26
|
+
const result = await criblControlPlane.health.getHealthInfo();
|
|
27
|
+
|
|
28
|
+
console.log(result);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
run();
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Standalone function
|
|
35
|
+
|
|
36
|
+
The standalone function version of this method:
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { CriblControlPlaneCore } from "cribl-control-plane/core.js";
|
|
40
|
+
import { diagGetHealthInfo } from "cribl-control-plane/funcs/diagGetHealthInfo.js";
|
|
41
|
+
|
|
42
|
+
// Use `CriblControlPlaneCore` for best tree-shaking performance.
|
|
43
|
+
// You can create one instance of it to use across an application.
|
|
44
|
+
const criblControlPlane = new CriblControlPlaneCore({
|
|
45
|
+
serverURL: "https://api.example.com",
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
async function run() {
|
|
49
|
+
const res = await diagGetHealthInfo(criblControlPlane);
|
|
50
|
+
if (res.ok) {
|
|
51
|
+
const { value: result } = res;
|
|
52
|
+
console.log(result);
|
|
53
|
+
} else {
|
|
54
|
+
console.log("diagGetHealthInfo failed:", res.error);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
run();
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
| Parameter | Type | Required | Description |
|
|
64
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
65
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
66
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
67
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
68
|
+
|
|
69
|
+
### Response
|
|
70
|
+
|
|
71
|
+
**Promise\<[models.HealthStatus](../../models/healthstatus.md)\>**
|
|
72
|
+
|
|
73
|
+
### Errors
|
|
74
|
+
|
|
75
|
+
| Error Type | Status Code | Content Type |
|
|
76
|
+
| ------------------------------------ | ------------------------------------ | ------------------------------------ |
|
|
77
|
+
| errors.HealthStatusError | 420 | application/json |
|
|
78
|
+
| errors.CriblControlPlaneDefaultError | 4XX, 5XX | \*/\* |
|