@puku-ai/sdk 4.0.0 → 4.0.2
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 +29 -10
- package/dist/index.d.ts +26 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.d.ts +2 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.js +223 -0
- package/dist/vendor/_vendor/partial-json-parser/parser.js.map +1 -0
- package/dist/vendor/api-promise.d.ts +2 -0
- package/dist/vendor/api-promise.js +3 -0
- package/dist/vendor/api-promise.js.map +1 -0
- package/dist/vendor/client.d.ts +399 -0
- package/dist/vendor/client.js +976 -0
- package/dist/vendor/client.js.map +1 -0
- package/dist/vendor/core/api-promise.d.ts +49 -0
- package/dist/vendor/core/api-promise.js +77 -0
- package/dist/vendor/core/api-promise.js.map +1 -0
- package/dist/vendor/core/api.d.ts +10 -0
- package/dist/vendor/core/api.js +2 -0
- package/dist/vendor/core/api.js.map +1 -0
- package/dist/vendor/core/credentials.d.ts +130 -0
- package/dist/vendor/core/credentials.js +274 -0
- package/dist/vendor/core/credentials.js.map +1 -0
- package/dist/vendor/core/error.d.ts +82 -0
- package/dist/vendor/core/error.js +140 -0
- package/dist/vendor/core/error.js.map +1 -0
- package/dist/vendor/core/middleware.d.ts +153 -0
- package/dist/vendor/core/middleware.js +168 -0
- package/dist/vendor/core/middleware.js.map +1 -0
- package/dist/vendor/core/pagination.d.ts +121 -0
- package/dist/vendor/core/pagination.js +207 -0
- package/dist/vendor/core/pagination.js.map +1 -0
- package/dist/vendor/core/resource.d.ts +5 -0
- package/dist/vendor/core/resource.js +8 -0
- package/dist/vendor/core/resource.js.map +1 -0
- package/dist/vendor/core/streaming.d.ts +41 -0
- package/dist/vendor/core/streaming.js +342 -0
- package/dist/vendor/core/streaming.js.map +1 -0
- package/dist/vendor/core/uploads.d.ts +2 -0
- package/dist/vendor/core/uploads.js +2 -0
- package/dist/vendor/core/uploads.js.map +1 -0
- package/dist/vendor/error.d.ts +2 -0
- package/dist/vendor/error.js +3 -0
- package/dist/vendor/error.js.map +1 -0
- package/dist/vendor/helpers/beta/environments.d.ts +22 -0
- package/dist/vendor/helpers/beta/environments.js +23 -0
- package/dist/vendor/helpers/beta/environments.js.map +1 -0
- package/dist/vendor/helpers/beta/json-schema.d.ts +36 -0
- package/dist/vendor/helpers/beta/json-schema.js +53 -0
- package/dist/vendor/helpers/beta/json-schema.js.map +1 -0
- package/dist/vendor/helpers/beta/mcp.d.ts +302 -0
- package/dist/vendor/helpers/beta/mcp.js +406 -0
- package/dist/vendor/helpers/beta/mcp.js.map +1 -0
- package/dist/vendor/helpers/beta/memory.d.ts +10 -0
- package/dist/vendor/helpers/beta/memory.js +15 -0
- package/dist/vendor/helpers/beta/memory.js.map +1 -0
- package/dist/vendor/helpers/beta/standard-schema.d.ts +44 -0
- package/dist/vendor/helpers/beta/standard-schema.js +54 -0
- package/dist/vendor/helpers/beta/standard-schema.js.map +1 -0
- package/dist/vendor/helpers/beta/zod.d.ts +32 -0
- package/dist/vendor/helpers/beta/zod.js +52 -0
- package/dist/vendor/helpers/beta/zod.js.map +1 -0
- package/dist/vendor/helpers/index.d.ts +2 -0
- package/dist/vendor/helpers/index.js +3 -0
- package/dist/vendor/helpers/index.js.map +1 -0
- package/dist/vendor/helpers/json-schema.d.ts +17 -0
- package/dist/vendor/helpers/json-schema.js +34 -0
- package/dist/vendor/helpers/json-schema.js.map +1 -0
- package/dist/vendor/helpers/zod.d.ts +12 -0
- package/dist/vendor/helpers/zod.js +42 -0
- package/dist/vendor/helpers/zod.js.map +1 -0
- package/dist/vendor/index.d.ts +16 -0
- package/dist/vendor/index.js +23 -0
- package/dist/vendor/index.js.map +1 -0
- package/dist/vendor/internal/builtin-types.d.ts +72 -0
- package/dist/vendor/internal/builtin-types.js +3 -0
- package/dist/vendor/internal/builtin-types.js.map +1 -0
- package/dist/vendor/internal/constants.d.ts +4 -0
- package/dist/vendor/internal/constants.js +10 -0
- package/dist/vendor/internal/constants.js.map +1 -0
- package/dist/vendor/internal/decoders/jsonl.d.ts +9 -0
- package/dist/vendor/internal/decoders/jsonl.js +37 -0
- package/dist/vendor/internal/decoders/jsonl.js.map +1 -0
- package/dist/vendor/internal/decoders/line.d.ts +16 -0
- package/dist/vendor/internal/decoders/line.js +105 -0
- package/dist/vendor/internal/decoders/line.js.map +1 -0
- package/dist/vendor/internal/detect-platform.d.ts +14 -0
- package/dist/vendor/internal/detect-platform.js +155 -0
- package/dist/vendor/internal/detect-platform.js.map +1 -0
- package/dist/vendor/internal/errors.d.ts +2 -0
- package/dist/vendor/internal/errors.js +38 -0
- package/dist/vendor/internal/errors.js.map +1 -0
- package/dist/vendor/internal/file-store.d.ts +135 -0
- package/dist/vendor/internal/file-store.js +529 -0
- package/dist/vendor/internal/file-store.js.map +1 -0
- package/dist/vendor/internal/headers.d.ts +28 -0
- package/dist/vendor/internal/headers.js +114 -0
- package/dist/vendor/internal/headers.js.map +1 -0
- package/dist/vendor/internal/message-stream-utils.d.ts +9 -0
- package/dist/vendor/internal/message-stream-utils.js +30 -0
- package/dist/vendor/internal/message-stream-utils.js.map +1 -0
- package/dist/vendor/internal/node.browser.d.ts +8 -0
- package/dist/vendor/internal/node.browser.js +19 -0
- package/dist/vendor/internal/node.browser.js.map +1 -0
- package/dist/vendor/internal/node.d.ts +13 -0
- package/dist/vendor/internal/node.js +14 -0
- package/dist/vendor/internal/node.js.map +1 -0
- package/dist/vendor/internal/parse.d.ts +17 -0
- package/dist/vendor/internal/parse.js +62 -0
- package/dist/vendor/internal/parse.js.map +1 -0
- package/dist/vendor/internal/qs/formats.d.ts +6 -0
- package/dist/vendor/internal/qs/formats.js +9 -0
- package/dist/vendor/internal/qs/formats.js.map +1 -0
- package/dist/vendor/internal/qs/index.d.ts +9 -0
- package/dist/vendor/internal/qs/index.js +10 -0
- package/dist/vendor/internal/qs/index.js.map +1 -0
- package/dist/vendor/internal/qs/stringify.d.ts +2 -0
- package/dist/vendor/internal/qs/stringify.js +274 -0
- package/dist/vendor/internal/qs/stringify.js.map +1 -0
- package/dist/vendor/internal/qs/types.d.ts +56 -0
- package/dist/vendor/internal/qs/types.js +2 -0
- package/dist/vendor/internal/qs/types.js.map +1 -0
- package/dist/vendor/internal/qs/utils.d.ts +14 -0
- package/dist/vendor/internal/qs/utils.js +217 -0
- package/dist/vendor/internal/qs/utils.js.map +1 -0
- package/dist/vendor/internal/request-options.d.ts +126 -0
- package/dist/vendor/internal/request-options.js +27 -0
- package/dist/vendor/internal/request-options.js.map +1 -0
- package/dist/vendor/internal/request-signal.d.ts +3 -0
- package/dist/vendor/internal/request-signal.js +45 -0
- package/dist/vendor/internal/request-signal.js.map +1 -0
- package/dist/vendor/internal/shim-types.d.ts +16 -0
- package/dist/vendor/internal/shim-types.js +3 -0
- package/dist/vendor/internal/shim-types.js.map +1 -0
- package/dist/vendor/internal/shims.d.ts +25 -0
- package/dist/vendor/internal/shims.js +85 -0
- package/dist/vendor/internal/shims.js.map +1 -0
- package/dist/vendor/internal/stainless-helper-header.d.ts +59 -0
- package/dist/vendor/internal/stainless-helper-header.js +83 -0
- package/dist/vendor/internal/stainless-helper-header.js.map +1 -0
- package/dist/vendor/internal/stream-utils.d.ts +7 -0
- package/dist/vendor/internal/stream-utils.js +35 -0
- package/dist/vendor/internal/stream-utils.js.map +1 -0
- package/dist/vendor/internal/to-file.d.ts +44 -0
- package/dist/vendor/internal/to-file.js +93 -0
- package/dist/vendor/internal/to-file.js.map +1 -0
- package/dist/vendor/internal/types.d.ts +62 -0
- package/dist/vendor/internal/types.js +3 -0
- package/dist/vendor/internal/types.js.map +1 -0
- package/dist/vendor/internal/uploads.d.ts +41 -0
- package/dist/vendor/internal/uploads.js +139 -0
- package/dist/vendor/internal/uploads.js.map +1 -0
- package/dist/vendor/internal/utils/abort.d.ts +11 -0
- package/dist/vendor/internal/utils/abort.js +22 -0
- package/dist/vendor/internal/utils/abort.js.map +1 -0
- package/dist/vendor/internal/utils/async-queue.d.ts +30 -0
- package/dist/vendor/internal/utils/async-queue.js +66 -0
- package/dist/vendor/internal/utils/async-queue.js.map +1 -0
- package/dist/vendor/internal/utils/backoff.d.ts +22 -0
- package/dist/vendor/internal/utils/backoff.js +36 -0
- package/dist/vendor/internal/utils/backoff.js.map +1 -0
- package/dist/vendor/internal/utils/base64.d.ts +2 -0
- package/dist/vendor/internal/utils/base64.js +33 -0
- package/dist/vendor/internal/utils/base64.js.map +1 -0
- package/dist/vendor/internal/utils/bytes.d.ts +3 -0
- package/dist/vendor/internal/utils/bytes.js +26 -0
- package/dist/vendor/internal/utils/bytes.js.map +1 -0
- package/dist/vendor/internal/utils/env.d.ts +8 -0
- package/dist/vendor/internal/utils/env.js +18 -0
- package/dist/vendor/internal/utils/env.js.map +1 -0
- package/dist/vendor/internal/utils/log.d.ts +46 -0
- package/dist/vendor/internal/utils/log.js +105 -0
- package/dist/vendor/internal/utils/log.js.map +1 -0
- package/dist/vendor/internal/utils/path.d.ts +14 -0
- package/dist/vendor/internal/utils/path.js +74 -0
- package/dist/vendor/internal/utils/path.js.map +1 -0
- package/dist/vendor/internal/utils/promise.d.ts +10 -0
- package/dist/vendor/internal/utils/promise.js +15 -0
- package/dist/vendor/internal/utils/promise.js.map +1 -0
- package/dist/vendor/internal/utils/query.d.ts +1 -0
- package/dist/vendor/internal/utils/query.js +6 -0
- package/dist/vendor/internal/utils/query.js.map +1 -0
- package/dist/vendor/internal/utils/sleep.d.ts +9 -0
- package/dist/vendor/internal/utils/sleep.js +24 -0
- package/dist/vendor/internal/utils/sleep.js.map +1 -0
- package/dist/vendor/internal/utils/time.d.ts +2 -0
- package/dist/vendor/internal/utils/time.js +5 -0
- package/dist/vendor/internal/utils/time.js.map +1 -0
- package/dist/vendor/internal/utils/uuid.d.ts +4 -0
- package/dist/vendor/internal/utils/uuid.js +15 -0
- package/dist/vendor/internal/utils/uuid.js.map +1 -0
- package/dist/vendor/internal/utils/values.d.ts +24 -0
- package/dist/vendor/internal/utils/values.js +106 -0
- package/dist/vendor/internal/utils/values.js.map +1 -0
- package/dist/vendor/internal/utils.d.ts +7 -0
- package/dist/vendor/internal/utils.js +9 -0
- package/dist/vendor/internal/utils.js.map +1 -0
- package/dist/vendor/lib/BetaMessageStream.d.ts +123 -0
- package/dist/vendor/lib/BetaMessageStream.js +662 -0
- package/dist/vendor/lib/BetaMessageStream.js.map +1 -0
- package/dist/vendor/lib/MessageStream.d.ts +122 -0
- package/dist/vendor/lib/MessageStream.js +609 -0
- package/dist/vendor/lib/MessageStream.js.map +1 -0
- package/dist/vendor/lib/beta-parser.d.ts +36 -0
- package/dist/vendor/lib/beta-parser.js +75 -0
- package/dist/vendor/lib/beta-parser.js.map +1 -0
- package/dist/vendor/lib/credentials/credential-chain.d.ts +38 -0
- package/dist/vendor/lib/credentials/credential-chain.js +208 -0
- package/dist/vendor/lib/credentials/credential-chain.js.map +1 -0
- package/dist/vendor/lib/credentials/identity-token.d.ts +10 -0
- package/dist/vendor/lib/credentials/identity-token.js +35 -0
- package/dist/vendor/lib/credentials/identity-token.js.map +1 -0
- package/dist/vendor/lib/credentials/oidc-federation.d.ts +39 -0
- package/dist/vendor/lib/credentials/oidc-federation.js +79 -0
- package/dist/vendor/lib/credentials/oidc-federation.js.map +1 -0
- package/dist/vendor/lib/credentials/token-cache.d.ts +53 -0
- package/dist/vendor/lib/credentials/token-cache.js +110 -0
- package/dist/vendor/lib/credentials/token-cache.js.map +1 -0
- package/dist/vendor/lib/credentials/types.d.ts +95 -0
- package/dist/vendor/lib/credentials/types.js +226 -0
- package/dist/vendor/lib/credentials/types.js.map +1 -0
- package/dist/vendor/lib/credentials/user-oauth.d.ts +20 -0
- package/dist/vendor/lib/credentials/user-oauth.js +94 -0
- package/dist/vendor/lib/credentials/user-oauth.js.map +1 -0
- package/dist/vendor/lib/credentials.d.ts +3 -0
- package/dist/vendor/lib/credentials.js +3 -0
- package/dist/vendor/lib/credentials.js.map +1 -0
- package/dist/vendor/lib/environments/index.d.ts +3 -0
- package/dist/vendor/lib/environments/index.js +4 -0
- package/dist/vendor/lib/environments/index.js.map +1 -0
- package/dist/vendor/lib/environments/poller.d.ts +94 -0
- package/dist/vendor/lib/environments/poller.js +218 -0
- package/dist/vendor/lib/environments/poller.js.map +1 -0
- package/dist/vendor/lib/environments/worker.d.ts +226 -0
- package/dist/vendor/lib/environments/worker.js +572 -0
- package/dist/vendor/lib/environments/worker.js.map +1 -0
- package/dist/vendor/lib/helper-client.d.ts +30 -0
- package/dist/vendor/lib/helper-client.js +55 -0
- package/dist/vendor/lib/helper-client.js.map +1 -0
- package/dist/vendor/lib/middleware.d.ts +97 -0
- package/dist/vendor/lib/middleware.js +775 -0
- package/dist/vendor/lib/middleware.js.map +1 -0
- package/dist/vendor/lib/parser.d.ts +31 -0
- package/dist/vendor/lib/parser.js +62 -0
- package/dist/vendor/lib/parser.js.map +1 -0
- package/dist/vendor/lib/sessions/accumulate.d.ts +22 -0
- package/dist/vendor/lib/sessions/accumulate.js +42 -0
- package/dist/vendor/lib/sessions/accumulate.js.map +1 -0
- package/dist/vendor/lib/standard-schema.d.ts +130 -0
- package/dist/vendor/lib/standard-schema.js +41 -0
- package/dist/vendor/lib/standard-schema.js.map +1 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.d.ts +48 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.js +26 -0
- package/dist/vendor/lib/tools/BetaRunnableTool.js.map +1 -0
- package/dist/vendor/lib/tools/BetaToolRunner.d.ts +160 -0
- package/dist/vendor/lib/tools/BetaToolRunner.js +497 -0
- package/dist/vendor/lib/tools/BetaToolRunner.js.map +1 -0
- package/dist/vendor/lib/tools/CompactionControl.d.ts +29 -0
- package/dist/vendor/lib/tools/CompactionControl.js +25 -0
- package/dist/vendor/lib/tools/CompactionControl.js.map +1 -0
- package/dist/vendor/lib/tools/SessionToolRunner.d.ts +178 -0
- package/dist/vendor/lib/tools/SessionToolRunner.js +737 -0
- package/dist/vendor/lib/tools/SessionToolRunner.js.map +1 -0
- package/dist/vendor/lib/tools/ToolError.d.ts +32 -0
- package/dist/vendor/lib/tools/ToolError.js +43 -0
- package/dist/vendor/lib/tools/ToolError.js.map +1 -0
- package/dist/vendor/lib/transform-json-schema.d.ts +2 -0
- package/dist/vendor/lib/transform-json-schema.js +111 -0
- package/dist/vendor/lib/transform-json-schema.js.map +1 -0
- package/dist/vendor/pagination.d.ts +2 -0
- package/dist/vendor/pagination.js +3 -0
- package/dist/vendor/pagination.js.map +1 -0
- package/dist/vendor/resource.d.ts +2 -0
- package/dist/vendor/resource.js +3 -0
- package/dist/vendor/resource.js.map +1 -0
- package/dist/vendor/resources/beta/agents/agents.d.ts +1128 -0
- package/dist/vendor/resources/beta/agents/agents.js +123 -0
- package/dist/vendor/resources/beta/agents/agents.js.map +1 -0
- package/dist/vendor/resources/beta/agents/index.d.ts +2 -0
- package/dist/vendor/resources/beta/agents/index.js +4 -0
- package/dist/vendor/resources/beta/agents/index.js.map +1 -0
- package/dist/vendor/resources/beta/agents/versions.d.ts +32 -0
- package/dist/vendor/resources/beta/agents/versions.js +32 -0
- package/dist/vendor/resources/beta/agents/versions.js.map +1 -0
- package/dist/vendor/resources/beta/agents.d.ts +1 -0
- package/dist/vendor/resources/beta/agents.js +3 -0
- package/dist/vendor/resources/beta/agents.js.map +1 -0
- package/dist/vendor/resources/beta/beta.d.ts +131 -0
- package/dist/vendor/resources/beta/beta.js +69 -0
- package/dist/vendor/resources/beta/beta.js.map +1 -0
- package/dist/vendor/resources/beta/deployment-runs.d.ts +305 -0
- package/dist/vendor/resources/beta/deployment-runs.js +51 -0
- package/dist/vendor/resources/beta/deployment-runs.js.map +1 -0
- package/dist/vendor/resources/beta/deployments.d.ts +698 -0
- package/dist/vendor/resources/beta/deployments.js +192 -0
- package/dist/vendor/resources/beta/deployments.js.map +1 -0
- package/dist/vendor/resources/beta/dreams.d.ts +335 -0
- package/dist/vendor/resources/beta/dreams.js +112 -0
- package/dist/vendor/resources/beta/dreams.js.map +1 -0
- package/dist/vendor/resources/beta/environments/environments.d.ts +432 -0
- package/dist/vendor/resources/beta/environments/environments.js +142 -0
- package/dist/vendor/resources/beta/environments/environments.js.map +1 -0
- package/dist/vendor/resources/beta/environments/index.d.ts +2 -0
- package/dist/vendor/resources/beta/environments/index.js +4 -0
- package/dist/vendor/resources/beta/environments/index.js.map +1 -0
- package/dist/vendor/resources/beta/environments/work.d.ts +500 -0
- package/dist/vendor/resources/beta/environments/work.js +251 -0
- package/dist/vendor/resources/beta/environments/work.js.map +1 -0
- package/dist/vendor/resources/beta/environments.d.ts +1 -0
- package/dist/vendor/resources/beta/environments.js +3 -0
- package/dist/vendor/resources/beta/environments.js.map +1 -0
- package/dist/vendor/resources/beta/files.d.ts +190 -0
- package/dist/vendor/resources/beta/files.js +120 -0
- package/dist/vendor/resources/beta/files.js.map +1 -0
- package/dist/vendor/resources/beta/index.d.ts +17 -0
- package/dist/vendor/resources/beta/index.js +19 -0
- package/dist/vendor/resources/beta/index.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/index.d.ts +3 -0
- package/dist/vendor/resources/beta/memory-stores/index.js +5 -0
- package/dist/vendor/resources/beta/memory-stores/index.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memories.d.ts +346 -0
- package/dist/vendor/resources/beta/memory-stores/memories.js +126 -0
- package/dist/vendor/resources/beta/memory-stores/memories.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.d.ts +230 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.js +137 -0
- package/dist/vendor/resources/beta/memory-stores/memory-stores.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.d.ts +252 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.js +77 -0
- package/dist/vendor/resources/beta/memory-stores/memory-versions.js.map +1 -0
- package/dist/vendor/resources/beta/memory-stores.d.ts +1 -0
- package/dist/vendor/resources/beta/memory-stores.js +3 -0
- package/dist/vendor/resources/beta/memory-stores.js.map +1 -0
- package/dist/vendor/resources/beta/messages/batches.d.ts +685 -0
- package/dist/vendor/resources/beta/messages/batches.js +203 -0
- package/dist/vendor/resources/beta/messages/batches.js.map +1 -0
- package/dist/vendor/resources/beta/messages/index.d.ts +3 -0
- package/dist/vendor/resources/beta/messages/index.js +5 -0
- package/dist/vendor/resources/beta/messages/index.js.map +1 -0
- package/dist/vendor/resources/beta/messages/messages.d.ts +5376 -0
- package/dist/vendor/resources/beta/messages/messages.js +158 -0
- package/dist/vendor/resources/beta/messages/messages.js.map +1 -0
- package/dist/vendor/resources/beta/messages.d.ts +1 -0
- package/dist/vendor/resources/beta/messages.js +3 -0
- package/dist/vendor/resources/beta/messages.js.map +1 -0
- package/dist/vendor/resources/beta/models.d.ts +217 -0
- package/dist/vendor/resources/beta/models.js +56 -0
- package/dist/vendor/resources/beta/models.js.map +1 -0
- package/dist/vendor/resources/beta/organization/api-keys.d.ts +176 -0
- package/dist/vendor/resources/beta/organization/api-keys.js +52 -0
- package/dist/vendor/resources/beta/organization/api-keys.js.map +1 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.d.ts +73 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.js +48 -0
- package/dist/vendor/resources/beta/organization/compliance-settings.js.map +1 -0
- package/dist/vendor/resources/beta/organization/external-keys.d.ts +271 -0
- package/dist/vendor/resources/beta/organization/external-keys.js +115 -0
- package/dist/vendor/resources/beta/organization/external-keys.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/federation.d.ts +13 -0
- package/dist/vendor/resources/beta/organization/federation/federation.js +13 -0
- package/dist/vendor/resources/beta/organization/federation/federation.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/index.d.ts +3 -0
- package/dist/vendor/resources/beta/organization/federation/index.js +5 -0
- package/dist/vendor/resources/beta/organization/federation/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.d.ts +352 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.js +165 -0
- package/dist/vendor/resources/beta/organization/federation/issuers.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.d.ts +2 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.js +4 -0
- package/dist/vendor/resources/beta/organization/federation/rules/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.d.ts +467 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.js +190 -0
- package/dist/vendor/resources/beta/organization/federation/rules/rules.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.d.ts +123 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.js +110 -0
- package/dist/vendor/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/federation/rules.js +3 -0
- package/dist/vendor/resources/beta/organization/federation/rules.js.map +1 -0
- package/dist/vendor/resources/beta/organization/federation.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/federation.js +3 -0
- package/dist/vendor/resources/beta/organization/federation.js.map +1 -0
- package/dist/vendor/resources/beta/organization/index.d.ts +10 -0
- package/dist/vendor/resources/beta/organization/index.js +12 -0
- package/dist/vendor/resources/beta/organization/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/invites.d.ts +161 -0
- package/dist/vendor/resources/beta/organization/invites.js +72 -0
- package/dist/vendor/resources/beta/organization/invites.js.map +1 -0
- package/dist/vendor/resources/beta/organization/organization.d.ts +72 -0
- package/dist/vendor/resources/beta/organization/organization.js +54 -0
- package/dist/vendor/resources/beta/organization/organization.js.map +1 -0
- package/dist/vendor/resources/beta/organization/rate-limits.d.ts +76 -0
- package/dist/vendor/resources/beta/organization/rate-limits.js +27 -0
- package/dist/vendor/resources/beta/organization/rate-limits.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.d.ts +2 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.js +4 -0
- package/dist/vendor/resources/beta/organization/service-accounts/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.d.ts +257 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.js +166 -0
- package/dist/vendor/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.d.ts +140 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.js +121 -0
- package/dist/vendor/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/service-accounts.js +3 -0
- package/dist/vendor/resources/beta/organization/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/users.d.ts +123 -0
- package/dist/vendor/resources/beta/organization/users.js +63 -0
- package/dist/vendor/resources/beta/organization/users.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.d.ts +4 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.js +6 -0
- package/dist/vendor/resources/beta/organization/workspaces/index.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.d.ts +134 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.js +98 -0
- package/dist/vendor/resources/beta/organization/workspaces/members.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.d.ts +82 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.js +30 -0
- package/dist/vendor/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.d.ts +209 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.js +185 -0
- package/dist/vendor/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.d.ts +302 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.js +104 -0
- package/dist/vendor/resources/beta/organization/workspaces/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization/workspaces.d.ts +1 -0
- package/dist/vendor/resources/beta/organization/workspaces.js +3 -0
- package/dist/vendor/resources/beta/organization/workspaces.js.map +1 -0
- package/dist/vendor/resources/beta/organization.d.ts +1 -0
- package/dist/vendor/resources/beta/organization.js +3 -0
- package/dist/vendor/resources/beta/organization.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/events.d.ts +1513 -0
- package/dist/vendor/resources/beta/sessions/events.js +115 -0
- package/dist/vendor/resources/beta/sessions/events.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/index.d.ts +4 -0
- package/dist/vendor/resources/beta/sessions/index.js +6 -0
- package/dist/vendor/resources/beta/sessions/index.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/resources.d.ts +227 -0
- package/dist/vendor/resources/beta/sessions/resources.js +128 -0
- package/dist/vendor/resources/beta/sessions/resources.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/sessions.d.ts +866 -0
- package/dist/vendor/resources/beta/sessions/sessions.js +150 -0
- package/dist/vendor/resources/beta/sessions/sessions.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/events.d.ts +77 -0
- package/dist/vendor/resources/beta/sessions/threads/events.js +57 -0
- package/dist/vendor/resources/beta/sessions/threads/events.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/index.d.ts +2 -0
- package/dist/vendor/resources/beta/sessions/threads/index.js +4 -0
- package/dist/vendor/resources/beta/sessions/threads/index.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.d.ts +195 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.js +80 -0
- package/dist/vendor/resources/beta/sessions/threads/threads.js.map +1 -0
- package/dist/vendor/resources/beta/sessions/threads.d.ts +1 -0
- package/dist/vendor/resources/beta/sessions/threads.js +3 -0
- package/dist/vendor/resources/beta/sessions/threads.js.map +1 -0
- package/dist/vendor/resources/beta/sessions.d.ts +1 -0
- package/dist/vendor/resources/beta/sessions.js +3 -0
- package/dist/vendor/resources/beta/sessions.js.map +1 -0
- package/dist/vendor/resources/beta/skills/index.d.ts +2 -0
- package/dist/vendor/resources/beta/skills/index.js +4 -0
- package/dist/vendor/resources/beta/skills/index.js.map +1 -0
- package/dist/vendor/resources/beta/skills/skills.d.ts +178 -0
- package/dist/vendor/resources/beta/skills/skills.js +96 -0
- package/dist/vendor/resources/beta/skills/skills.js.map +1 -0
- package/dist/vendor/resources/beta/skills/versions.d.ts +181 -0
- package/dist/vendor/resources/beta/skills/versions.js +125 -0
- package/dist/vendor/resources/beta/skills/versions.js.map +1 -0
- package/dist/vendor/resources/beta/skills.d.ts +1 -0
- package/dist/vendor/resources/beta/skills.js +3 -0
- package/dist/vendor/resources/beta/skills.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/certificates.d.ts +162 -0
- package/dist/vendor/resources/beta/tunnels/certificates.js +125 -0
- package/dist/vendor/resources/beta/tunnels/certificates.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/index.d.ts +2 -0
- package/dist/vendor/resources/beta/tunnels/index.js +4 -0
- package/dist/vendor/resources/beta/tunnels/index.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.d.ts +211 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.js +173 -0
- package/dist/vendor/resources/beta/tunnels/tunnels.js.map +1 -0
- package/dist/vendor/resources/beta/tunnels.d.ts +1 -0
- package/dist/vendor/resources/beta/tunnels.js +3 -0
- package/dist/vendor/resources/beta/tunnels.js.map +1 -0
- package/dist/vendor/resources/beta/user-profiles.d.ts +244 -0
- package/dist/vendor/resources/beta/user-profiles.js +114 -0
- package/dist/vendor/resources/beta/user-profiles.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/credentials.d.ts +715 -0
- package/dist/vendor/resources/beta/vaults/credentials.js +173 -0
- package/dist/vendor/resources/beta/vaults/credentials.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/index.d.ts +2 -0
- package/dist/vendor/resources/beta/vaults/index.js +4 -0
- package/dist/vendor/resources/beta/vaults/index.js.map +1 -0
- package/dist/vendor/resources/beta/vaults/vaults.d.ts +191 -0
- package/dist/vendor/resources/beta/vaults/vaults.js +141 -0
- package/dist/vendor/resources/beta/vaults/vaults.js.map +1 -0
- package/dist/vendor/resources/beta/vaults.d.ts +1 -0
- package/dist/vendor/resources/beta/vaults.js +3 -0
- package/dist/vendor/resources/beta/vaults.js.map +1 -0
- package/dist/vendor/resources/beta/webhooks.d.ts +464 -0
- package/dist/vendor/resources/beta/webhooks.js +29 -0
- package/dist/vendor/resources/beta/webhooks.js.map +1 -0
- package/dist/vendor/resources/beta.d.ts +1 -0
- package/dist/vendor/resources/beta.js +3 -0
- package/dist/vendor/resources/beta.js.map +1 -0
- package/dist/vendor/resources/completions.d.ts +172 -0
- package/dist/vendor/resources/completions.js +19 -0
- package/dist/vendor/resources/completions.js.map +1 -0
- package/dist/vendor/resources/files.d.ts +104 -0
- package/dist/vendor/resources/files.js +48 -0
- package/dist/vendor/resources/files.js.map +1 -0
- package/dist/vendor/resources/index.d.ts +7 -0
- package/dist/vendor/resources/index.js +9 -0
- package/dist/vendor/resources/index.js.map +1 -0
- package/dist/vendor/resources/messages/batches.d.ts +312 -0
- package/dist/vendor/resources/messages/batches.js +157 -0
- package/dist/vendor/resources/messages/batches.js.map +1 -0
- package/dist/vendor/resources/messages/index.d.ts +2 -0
- package/dist/vendor/resources/messages/index.js +4 -0
- package/dist/vendor/resources/messages/index.js.map +1 -0
- package/dist/vendor/resources/messages/messages.d.ts +3886 -0
- package/dist/vendor/resources/messages/messages.js +130 -0
- package/dist/vendor/resources/messages/messages.js.map +1 -0
- package/dist/vendor/resources/messages.d.ts +1 -0
- package/dist/vendor/resources/messages.js +3 -0
- package/dist/vendor/resources/messages.js.map +1 -0
- package/dist/vendor/resources/models.d.ts +196 -0
- package/dist/vendor/resources/models.js +41 -0
- package/dist/vendor/resources/models.js.map +1 -0
- package/dist/vendor/resources/shared.d.ts +43 -0
- package/dist/vendor/resources/shared.js +3 -0
- package/dist/vendor/resources/shared.js.map +1 -0
- package/dist/vendor/resources/skills/index.d.ts +2 -0
- package/dist/vendor/resources/skills/index.js +4 -0
- package/dist/vendor/resources/skills/index.js.map +1 -0
- package/dist/vendor/resources/skills/skills.d.ts +128 -0
- package/dist/vendor/resources/skills/skills.js +36 -0
- package/dist/vendor/resources/skills/skills.js.map +1 -0
- package/dist/vendor/resources/skills/versions.d.ts +103 -0
- package/dist/vendor/resources/skills/versions.js +37 -0
- package/dist/vendor/resources/skills/versions.js.map +1 -0
- package/dist/vendor/resources/skills.d.ts +1 -0
- package/dist/vendor/resources/skills.js +3 -0
- package/dist/vendor/resources/skills.js.map +1 -0
- package/dist/vendor/resources/top-level.d.ts +1 -0
- package/dist/vendor/resources/top-level.js +3 -0
- package/dist/vendor/resources/top-level.js.map +1 -0
- package/dist/vendor/resources.d.ts +1 -0
- package/dist/vendor/resources.js +2 -0
- package/dist/vendor/resources.js.map +1 -0
- package/dist/vendor/streaming.d.ts +2 -0
- package/dist/vendor/streaming.js +3 -0
- package/dist/vendor/streaming.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/fs-util.d.ts +74 -0
- package/dist/vendor/tools/agent-toolset/fs-util.js +184 -0
- package/dist/vendor/tools/agent-toolset/fs-util.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/memories.d.ts +172 -0
- package/dist/vendor/tools/agent-toolset/memories.js +910 -0
- package/dist/vendor/tools/agent-toolset/memories.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/node.browser.d.ts +80 -0
- package/dist/vendor/tools/agent-toolset/node.browser.js +129 -0
- package/dist/vendor/tools/agent-toolset/node.browser.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/node.d.ts +191 -0
- package/dist/vendor/tools/agent-toolset/node.js +886 -0
- package/dist/vendor/tools/agent-toolset/node.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/skills.d.ts +73 -0
- package/dist/vendor/tools/agent-toolset/skills.js +320 -0
- package/dist/vendor/tools/agent-toolset/skills.js.map +1 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.d.ts +18 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.js +25 -0
- package/dist/vendor/tools/agent-toolset/sync-interval.js.map +1 -0
- package/dist/vendor/tools/memory/node.browser.d.ts +26 -0
- package/dist/vendor/tools/memory/node.browser.js +44 -0
- package/dist/vendor/tools/memory/node.browser.js.map +1 -0
- package/dist/vendor/tools/memory/node.d.ts +17 -0
- package/dist/vendor/tools/memory/node.js +327 -0
- package/dist/vendor/tools/memory/node.js.map +1 -0
- package/dist/vendor/uploads.d.ts +2 -0
- package/dist/vendor/uploads.js +3 -0
- package/dist/vendor/uploads.js.map +1 -0
- package/dist/vendor/version.d.ts +1 -0
- package/dist/vendor/version.js +2 -0
- package/dist/vendor/version.js.map +1 -0
- package/package.json +7 -14
- package/sdk.cjs +6 -6
- package/sdk.cjs.map +18 -18
- package/sdk.d.ts +10 -10
- package/sdk.mjs +21 -21
- package/sdk.mjs.map +18 -18
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '../../../core/resource.js';
|
|
3
|
+
import * as APIKeysAPI from './api-keys.js';
|
|
4
|
+
import { APIKeys, } from './api-keys.js';
|
|
5
|
+
import * as ComplianceSettingsAPI from './compliance-settings.js';
|
|
6
|
+
import { ComplianceSettings, } from './compliance-settings.js';
|
|
7
|
+
import * as ExternalKeysAPI from './external-keys.js';
|
|
8
|
+
import { ExternalKeys, } from './external-keys.js';
|
|
9
|
+
import * as InvitesAPI from './invites.js';
|
|
10
|
+
import { Invites, } from './invites.js';
|
|
11
|
+
import * as RateLimitsAPI from './rate-limits.js';
|
|
12
|
+
import { RateLimits, } from './rate-limits.js';
|
|
13
|
+
import * as UsersAPI from './users.js';
|
|
14
|
+
import { Users, } from './users.js';
|
|
15
|
+
import * as FederationAPI from './federation/federation.js';
|
|
16
|
+
import { Federation } from './federation/federation.js';
|
|
17
|
+
import * as ServiceAccountsAPI from './service-accounts/service-accounts.js';
|
|
18
|
+
import { ServiceAccounts, } from './service-accounts/service-accounts.js';
|
|
19
|
+
import * as WorkspacesAPI from './workspaces/workspaces.js';
|
|
20
|
+
import { Workspaces, } from './workspaces/workspaces.js';
|
|
21
|
+
export class Organization extends APIResource {
|
|
22
|
+
apiKeys = new APIKeysAPI.APIKeys(this._client);
|
|
23
|
+
externalKeys = new ExternalKeysAPI.ExternalKeys(this._client);
|
|
24
|
+
federation = new FederationAPI.Federation(this._client);
|
|
25
|
+
invites = new InvitesAPI.Invites(this._client);
|
|
26
|
+
serviceAccounts = new ServiceAccountsAPI.ServiceAccounts(this._client);
|
|
27
|
+
users = new UsersAPI.Users(this._client);
|
|
28
|
+
workspaces = new WorkspacesAPI.Workspaces(this._client);
|
|
29
|
+
rateLimits = new RateLimitsAPI.RateLimits(this._client);
|
|
30
|
+
complianceSettings = new ComplianceSettingsAPI.ComplianceSettings(this._client);
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve information about the organization associated with the authenticated
|
|
33
|
+
* API key.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const betaOrganization =
|
|
38
|
+
* await client.beta.organization.retrieve();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(options) {
|
|
42
|
+
return this._client.get('/v1/organizations/me?beta=true', options);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
Organization.APIKeys = APIKeys;
|
|
46
|
+
Organization.ExternalKeys = ExternalKeys;
|
|
47
|
+
Organization.Federation = Federation;
|
|
48
|
+
Organization.Invites = Invites;
|
|
49
|
+
Organization.ServiceAccounts = ServiceAccounts;
|
|
50
|
+
Organization.Users = Users;
|
|
51
|
+
Organization.Workspaces = Workspaces;
|
|
52
|
+
Organization.RateLimits = RateLimits;
|
|
53
|
+
Organization.ComplianceSettings = ComplianceSettings;
|
|
54
|
+
//# sourceMappingURL=organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/organization/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,UAAU,MAAM,YAAY,CAAC;AACzC,OAAO,EAGL,OAAO,GAQR,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,qBAAqB,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAOL,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAcL,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAML,OAAO,GACR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,EAKL,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EAML,KAAK,GACN,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,kBAAkB,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EASL,eAAe,GAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,aAAa,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAaL,UAAU,GACX,MAAM,yBAAyB,CAAC;AAIjC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C,OAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnE,YAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5F,UAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClF,OAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnE,eAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3G,KAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzD,UAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClF,UAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClF,kBAAkB,GAA6C,IAAI,qBAAqB,CAAC,kBAAkB,CACzG,IAAI,CAAC,OAAO,CACb,CAAC;IAEF;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAgCD,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC;AACzC,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC;AACrC,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,YAAY,CAAC,eAAe,GAAG,eAAe,CAAC;AAC/C,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC;AAC3B,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC;AACrC,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC;AACrC,YAAY,CAAC,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { APIResource } from '../../../core/resource';
|
|
2
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../../core/pagination';
|
|
3
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
4
|
+
export declare class RateLimits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List Messages API rate limits for your organization.
|
|
7
|
+
*
|
|
8
|
+
* Each entry corresponds to one rate-limit group (either a model family or an
|
|
9
|
+
* API-surface category such as the Files API or Message Batches) and contains the
|
|
10
|
+
* set of limiter values that apply to it.
|
|
11
|
+
*
|
|
12
|
+
* When `limit` is omitted, every matching entry is returned in a single page; when
|
|
13
|
+
* `limit` truncates the result, follow `next_page` to fetch the remaining entries.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // Automatically fetches more pages as needed.
|
|
18
|
+
* for await (const betaOrganizationRateLimit of client.beta.organization.rateLimits.list()) {
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(query?: RateLimitListParams | null | undefined, options?: RequestOptions): PagePromise<BetaOrganizationRateLimitsPageCursor, BetaOrganizationRateLimit>;
|
|
24
|
+
}
|
|
25
|
+
export type BetaOrganizationRateLimitsPageCursor = PageCursor<BetaOrganizationRateLimit>;
|
|
26
|
+
export interface BetaOrganizationRateLimit {
|
|
27
|
+
/**
|
|
28
|
+
* Stable identifier for this rate-limit group within the organization.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The kind of rate-limit group this entry represents. `model_group` entries apply
|
|
33
|
+
* to a family of models (listed in `models`); other values apply to an API-surface
|
|
34
|
+
* category and have `models` set to `null`.
|
|
35
|
+
*/
|
|
36
|
+
group_type: 'batch' | 'files' | 'model_group' | 'skills' | 'token_count' | 'web_search';
|
|
37
|
+
/**
|
|
38
|
+
* The limiter values that apply to this group.
|
|
39
|
+
*/
|
|
40
|
+
limits: Array<BetaOrganizationRateLimitValue>;
|
|
41
|
+
/**
|
|
42
|
+
* Model names this entry's limits apply to, including aliases. `null` when
|
|
43
|
+
* `group_type` is not `"model_group"`.
|
|
44
|
+
*/
|
|
45
|
+
models: Array<string> | null;
|
|
46
|
+
/**
|
|
47
|
+
* Object type. Always `rate_limit` for organization rate-limit entries.
|
|
48
|
+
*/
|
|
49
|
+
type: 'rate_limit';
|
|
50
|
+
}
|
|
51
|
+
export interface BetaOrganizationRateLimitValue {
|
|
52
|
+
/**
|
|
53
|
+
* The limiter type (for example, `requests_per_minute` or
|
|
54
|
+
* `input_tokens_per_minute`).
|
|
55
|
+
*/
|
|
56
|
+
type: string;
|
|
57
|
+
/**
|
|
58
|
+
* The configured limit value for this limiter type.
|
|
59
|
+
*/
|
|
60
|
+
value: number;
|
|
61
|
+
}
|
|
62
|
+
export interface RateLimitListParams extends PageCursorParams {
|
|
63
|
+
/**
|
|
64
|
+
* Filter by group type.
|
|
65
|
+
*/
|
|
66
|
+
group_type?: 'batch' | 'files' | 'model_group' | 'skills' | 'token_count' | 'web_search' | null;
|
|
67
|
+
/**
|
|
68
|
+
* Filter to the single entry containing this model. Accepts full model names and
|
|
69
|
+
* aliases. Returns 404 if the model is not found or has no rate limits for this
|
|
70
|
+
* organization.
|
|
71
|
+
*/
|
|
72
|
+
model?: string | null;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace RateLimits {
|
|
75
|
+
export { type BetaOrganizationRateLimit as BetaOrganizationRateLimit, type BetaOrganizationRateLimitValue as BetaOrganizationRateLimitValue, type BetaOrganizationRateLimitsPageCursor as BetaOrganizationRateLimitsPageCursor, type RateLimitListParams as RateLimitListParams, };
|
|
76
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '../../../core/resource.js';
|
|
3
|
+
import { PageCursor } from '../../../core/pagination.js';
|
|
4
|
+
export class RateLimits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List Messages API rate limits for your organization.
|
|
7
|
+
*
|
|
8
|
+
* Each entry corresponds to one rate-limit group (either a model family or an
|
|
9
|
+
* API-surface category such as the Files API or Message Batches) and contains the
|
|
10
|
+
* set of limiter values that apply to it.
|
|
11
|
+
*
|
|
12
|
+
* When `limit` is omitted, every matching entry is returned in a single page; when
|
|
13
|
+
* `limit` truncates the result, follow `next_page` to fetch the remaining entries.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // Automatically fetches more pages as needed.
|
|
18
|
+
* for await (const betaOrganizationRateLimit of client.beta.organization.rateLimits.list()) {
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(query = {}, options) {
|
|
24
|
+
return this._client.getAPIList('/v1/organizations/rate_limits?beta=true', (PageCursor), { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=rate-limits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limits.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/organization/rate-limits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAsC,MAAM,0BAA0B,CAAC;AAG1F,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,yCAAyC,EACzC,CAAA,UAAqC,CAAA,EACrC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ServiceAccounts, type BetaServiceAccount, type BetaServiceAccountWorkspaceMember, type ServiceAccountCreateParams, type ServiceAccountRetrieveParams, type ServiceAccountUpdateParams, type ServiceAccountListParams, type ServiceAccountArchiveParams, type BetaServiceAccountWorkspaceMembersPageCursor, type BetaServiceAccountsPageCursor, } from './service-accounts';
|
|
2
|
+
export { Workspaces, type WorkspaceRemoveResponse, type WorkspaceListParams, type WorkspaceAddParams, type WorkspaceRemoveParams, } from './workspaces';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/vendor/resources/beta/organization/service-accounts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,eAAe,GAUhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,GAKX,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { APIResource } from '../../../../core/resource';
|
|
2
|
+
import * as BetaAPI from '../../beta';
|
|
3
|
+
import * as WorkspacesAPI from './workspaces';
|
|
4
|
+
import { WorkspaceAddParams, WorkspaceListParams, WorkspaceRemoveParams, WorkspaceRemoveResponse, Workspaces } from './workspaces';
|
|
5
|
+
import * as OrganizationWorkspacesAPI from '../workspaces/workspaces';
|
|
6
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
7
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
|
+
export declare class ServiceAccounts extends APIResource {
|
|
10
|
+
workspaces: WorkspacesAPI.Workspaces;
|
|
11
|
+
/**
|
|
12
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
13
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
14
|
+
* API keys are not accepted. See
|
|
15
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
16
|
+
*
|
|
17
|
+
* Create a service account.
|
|
18
|
+
*
|
|
19
|
+
* A service account is a named workload identity that federation rules target.
|
|
20
|
+
* `organization_role` is `developer` (default) or `admin`; a rule may only be
|
|
21
|
+
* created or retargeted to grant `org:admin` scope when the target's
|
|
22
|
+
* `organization_role` is `admin`. Creating an `admin`-role service account
|
|
23
|
+
* requires an interactive credential (a user OAuth token or a Console session) — a
|
|
24
|
+
* workload may only create `developer`-role service accounts.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const betaServiceAccount =
|
|
29
|
+
* await client.beta.organization.serviceAccounts.create({
|
|
30
|
+
* name: 'ci-deploy-bot',
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(params: ServiceAccountCreateParams, options?: RequestOptions): APIPromise<BetaServiceAccount>;
|
|
35
|
+
/**
|
|
36
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
37
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
38
|
+
* API keys are not accepted. See
|
|
39
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
40
|
+
*
|
|
41
|
+
* Retrieve a service account by its ID (`svac_...`).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const betaServiceAccount =
|
|
46
|
+
* await client.beta.organization.serviceAccounts.retrieve(
|
|
47
|
+
* 'service_account_id',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(serviceAccountID: string, params?: ServiceAccountRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BetaServiceAccount>;
|
|
52
|
+
/**
|
|
53
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
54
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
55
|
+
* API keys are not accepted. See
|
|
56
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
57
|
+
*
|
|
58
|
+
* Update a service account.
|
|
59
|
+
*
|
|
60
|
+
* Only `description` and `organization_role` are mutable; `name` cannot be
|
|
61
|
+
* changed. Archived service accounts cannot be updated; this returns 400. Setting
|
|
62
|
+
* `organization_role` to `admin` (even when unchanged) requires an interactive
|
|
63
|
+
* credential (a user OAuth token or a Console session).
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const betaServiceAccount =
|
|
68
|
+
* await client.beta.organization.serviceAccounts.update(
|
|
69
|
+
* 'service_account_id',
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
update(serviceAccountID: string, params: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<BetaServiceAccount>;
|
|
74
|
+
/**
|
|
75
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
76
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
77
|
+
* API keys are not accepted. See
|
|
78
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
79
|
+
*
|
|
80
|
+
* List service accounts in the caller's organization.
|
|
81
|
+
*
|
|
82
|
+
* Results are ordered by creation time, newest first. Use `limit` and the
|
|
83
|
+
* `next_page` cursor to paginate; set `include_archived=true` to include archived
|
|
84
|
+
* service accounts.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* // Automatically fetches more pages as needed.
|
|
89
|
+
* for await (const betaServiceAccount of client.beta.organization.serviceAccounts.list()) {
|
|
90
|
+
* // ...
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
list(params?: ServiceAccountListParams | null | undefined, options?: RequestOptions): PagePromise<BetaServiceAccountsPageCursor, BetaServiceAccount>;
|
|
95
|
+
/**
|
|
96
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
97
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
98
|
+
* API keys are not accepted. See
|
|
99
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
100
|
+
*
|
|
101
|
+
* Archive a service account.
|
|
102
|
+
*
|
|
103
|
+
* Idempotent; re-archiving returns the service account with its original
|
|
104
|
+
* `archived_at`. Rejected with 400 if any live (non-archived) federation rule
|
|
105
|
+
* still targets this service account, same as issuer archival; archive those rules
|
|
106
|
+
* first or change their target to another service account.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* const betaServiceAccount =
|
|
111
|
+
* await client.beta.organization.serviceAccounts.archive(
|
|
112
|
+
* 'service_account_id',
|
|
113
|
+
* );
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
archive(serviceAccountID: string, params?: ServiceAccountArchiveParams | null | undefined, options?: RequestOptions): APIPromise<BetaServiceAccount>;
|
|
117
|
+
}
|
|
118
|
+
export type BetaServiceAccountsPageCursor = PageCursor<BetaServiceAccount>;
|
|
119
|
+
export type BetaServiceAccountWorkspaceMembersPageCursor = PageCursor<BetaServiceAccountWorkspaceMember>;
|
|
120
|
+
/**
|
|
121
|
+
* Named non-human identity within the caller's organization.
|
|
122
|
+
*
|
|
123
|
+
* A service account is a pure identity: name + org. Authorization lives on
|
|
124
|
+
* whatever references it (federation rules).
|
|
125
|
+
*/
|
|
126
|
+
export interface BetaServiceAccount {
|
|
127
|
+
/**
|
|
128
|
+
* Tagged ID of the service account.
|
|
129
|
+
*/
|
|
130
|
+
id: string;
|
|
131
|
+
/**
|
|
132
|
+
* If set, this service account is archived.
|
|
133
|
+
*/
|
|
134
|
+
archived_at: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Tagged ID (`user_`/`svac_`) of the actor that archived this service account.
|
|
137
|
+
*/
|
|
138
|
+
archived_by_actor_id: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* When this service account was created.
|
|
141
|
+
*/
|
|
142
|
+
created_at: string;
|
|
143
|
+
/**
|
|
144
|
+
* Tagged ID (`user_`/`svac_`) of the actor that created this service account.
|
|
145
|
+
*/
|
|
146
|
+
created_by_actor_id: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Optional free-text description.
|
|
149
|
+
*/
|
|
150
|
+
description: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* Admin-chosen slug identifier.
|
|
153
|
+
*/
|
|
154
|
+
name: string;
|
|
155
|
+
/**
|
|
156
|
+
* Org-level role. A federation rule may only be created or retargeted to grant
|
|
157
|
+
* `org:admin` scope when this is `admin`. A rule granting `org:admin` whose target
|
|
158
|
+
* is later demoted to `developer` is rejected at token exchange. Rules granting
|
|
159
|
+
* `org:admin` are managed in the Console.
|
|
160
|
+
*/
|
|
161
|
+
organization_role: 'admin' | 'developer';
|
|
162
|
+
type: 'service_account';
|
|
163
|
+
/**
|
|
164
|
+
* When this service account was last updated.
|
|
165
|
+
*/
|
|
166
|
+
updated_at: string;
|
|
167
|
+
/**
|
|
168
|
+
* Tagged ID (`user_`/`svac_`) of the actor that last updated this service account.
|
|
169
|
+
*/
|
|
170
|
+
updated_by_actor_id: string | null;
|
|
171
|
+
}
|
|
172
|
+
export interface BetaServiceAccountWorkspaceMember {
|
|
173
|
+
/**
|
|
174
|
+
* Tagged ID (`user_...`/`svac_...`) of the actor who created this membership.
|
|
175
|
+
*/
|
|
176
|
+
created_by_actor_id: string | null;
|
|
177
|
+
/**
|
|
178
|
+
* True when this is the implicit default-workspace membership every service
|
|
179
|
+
* account has when no explicit membership exists. Implicit memberships have role
|
|
180
|
+
* `workspace_user` and cannot be removed.
|
|
181
|
+
*/
|
|
182
|
+
implicit: boolean | null;
|
|
183
|
+
/**
|
|
184
|
+
* Tagged service account ID (`svac_...`).
|
|
185
|
+
*/
|
|
186
|
+
service_account_id: string;
|
|
187
|
+
type: 'service_account_workspace_member';
|
|
188
|
+
/**
|
|
189
|
+
* Tagged workspace ID (`wrkspc_...`).
|
|
190
|
+
*/
|
|
191
|
+
workspace_id: string;
|
|
192
|
+
/**
|
|
193
|
+
* Role of the service account in this workspace. Service accounts cannot hold the
|
|
194
|
+
* `workspace_billing` role.
|
|
195
|
+
*/
|
|
196
|
+
workspace_role: OrganizationWorkspacesAPI.BetaWorkspaceRole;
|
|
197
|
+
}
|
|
198
|
+
export interface ServiceAccountCreateParams {
|
|
199
|
+
/**
|
|
200
|
+
* Body param: Slug identifier (lowercase, digits, hyphens). Unique within the
|
|
201
|
+
* organization; a duplicate name returns 409.
|
|
202
|
+
*/
|
|
203
|
+
name: string;
|
|
204
|
+
/**
|
|
205
|
+
* Body param: Optional free-text description.
|
|
206
|
+
*/
|
|
207
|
+
description?: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* Body param: Org-level role. Defaults to `developer`.
|
|
210
|
+
*/
|
|
211
|
+
organization_role?: 'admin' | 'developer';
|
|
212
|
+
/**
|
|
213
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
214
|
+
*/
|
|
215
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
216
|
+
}
|
|
217
|
+
export interface ServiceAccountRetrieveParams {
|
|
218
|
+
/**
|
|
219
|
+
* Optional header to specify the beta version(s) you want to use.
|
|
220
|
+
*/
|
|
221
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
222
|
+
}
|
|
223
|
+
export interface ServiceAccountUpdateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Body param: Replaces the description. Omit to leave unchanged; send `null` to
|
|
226
|
+
* clear (the field is stored as an empty string).
|
|
227
|
+
*/
|
|
228
|
+
description?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Body param: Replaces the org-level role. Omit or send `null` to leave unchanged.
|
|
231
|
+
*/
|
|
232
|
+
organization_role?: 'admin' | 'developer' | null;
|
|
233
|
+
/**
|
|
234
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
235
|
+
*/
|
|
236
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
237
|
+
}
|
|
238
|
+
export interface ServiceAccountListParams extends PageCursorParams {
|
|
239
|
+
/**
|
|
240
|
+
* Query param: Include archived resources. Defaults to false.
|
|
241
|
+
*/
|
|
242
|
+
include_archived?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
245
|
+
*/
|
|
246
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
247
|
+
}
|
|
248
|
+
export interface ServiceAccountArchiveParams {
|
|
249
|
+
/**
|
|
250
|
+
* Optional header to specify the beta version(s) you want to use.
|
|
251
|
+
*/
|
|
252
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
253
|
+
}
|
|
254
|
+
export declare namespace ServiceAccounts {
|
|
255
|
+
export { type BetaServiceAccount as BetaServiceAccount, type BetaServiceAccountWorkspaceMember as BetaServiceAccountWorkspaceMember, type BetaServiceAccountsPageCursor as BetaServiceAccountsPageCursor, type ServiceAccountCreateParams as ServiceAccountCreateParams, type ServiceAccountRetrieveParams as ServiceAccountRetrieveParams, type ServiceAccountUpdateParams as ServiceAccountUpdateParams, type ServiceAccountListParams as ServiceAccountListParams, type ServiceAccountArchiveParams as ServiceAccountArchiveParams, };
|
|
256
|
+
export { Workspaces as Workspaces, type WorkspaceRemoveResponse as WorkspaceRemoveResponse, type WorkspaceListParams as WorkspaceListParams, type WorkspaceAddParams as WorkspaceAddParams, type WorkspaceRemoveParams as WorkspaceRemoveParams, };
|
|
257
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '../../../../core/resource.js';
|
|
3
|
+
import * as WorkspacesAPI from './workspaces.js';
|
|
4
|
+
import { Workspaces, } from './workspaces.js';
|
|
5
|
+
import { PageCursor } from '../../../../core/pagination.js';
|
|
6
|
+
import { buildHeaders } from '../../../../internal/headers.js';
|
|
7
|
+
import { path } from '../../../../internal/utils/path.js';
|
|
8
|
+
export class ServiceAccounts extends APIResource {
|
|
9
|
+
workspaces = new WorkspacesAPI.Workspaces(this._client);
|
|
10
|
+
/**
|
|
11
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
12
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
13
|
+
* API keys are not accepted. See
|
|
14
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
15
|
+
*
|
|
16
|
+
* Create a service account.
|
|
17
|
+
*
|
|
18
|
+
* A service account is a named workload identity that federation rules target.
|
|
19
|
+
* `organization_role` is `developer` (default) or `admin`; a rule may only be
|
|
20
|
+
* created or retargeted to grant `org:admin` scope when the target's
|
|
21
|
+
* `organization_role` is `admin`. Creating an `admin`-role service account
|
|
22
|
+
* requires an interactive credential (a user OAuth token or a Console session) — a
|
|
23
|
+
* workload may only create `developer`-role service accounts.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const betaServiceAccount =
|
|
28
|
+
* await client.beta.organization.serviceAccounts.create({
|
|
29
|
+
* name: 'ci-deploy-bot',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(params, options) {
|
|
34
|
+
const { betas, ...body } = params;
|
|
35
|
+
return this._client.post('/v1/organizations/service_accounts?beta=true', {
|
|
36
|
+
body,
|
|
37
|
+
...options,
|
|
38
|
+
headers: buildHeaders([
|
|
39
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
46
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
47
|
+
* API keys are not accepted. See
|
|
48
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
49
|
+
*
|
|
50
|
+
* Retrieve a service account by its ID (`svac_...`).
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const betaServiceAccount =
|
|
55
|
+
* await client.beta.organization.serviceAccounts.retrieve(
|
|
56
|
+
* 'service_account_id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
retrieve(serviceAccountID, params = {}, options) {
|
|
61
|
+
const { betas } = params ?? {};
|
|
62
|
+
return this._client.get(path `/v1/organizations/service_accounts/${serviceAccountID}?beta=true`, {
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
66
|
+
options?.headers,
|
|
67
|
+
]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
72
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
73
|
+
* API keys are not accepted. See
|
|
74
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
75
|
+
*
|
|
76
|
+
* Update a service account.
|
|
77
|
+
*
|
|
78
|
+
* Only `description` and `organization_role` are mutable; `name` cannot be
|
|
79
|
+
* changed. Archived service accounts cannot be updated; this returns 400. Setting
|
|
80
|
+
* `organization_role` to `admin` (even when unchanged) requires an interactive
|
|
81
|
+
* credential (a user OAuth token or a Console session).
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const betaServiceAccount =
|
|
86
|
+
* await client.beta.organization.serviceAccounts.update(
|
|
87
|
+
* 'service_account_id',
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
update(serviceAccountID, params, options) {
|
|
92
|
+
const { betas, ...body } = params;
|
|
93
|
+
return this._client.post(path `/v1/organizations/service_accounts/${serviceAccountID}?beta=true`, {
|
|
94
|
+
body,
|
|
95
|
+
...options,
|
|
96
|
+
headers: buildHeaders([
|
|
97
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
98
|
+
options?.headers,
|
|
99
|
+
]),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
104
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
105
|
+
* API keys are not accepted. See
|
|
106
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
107
|
+
*
|
|
108
|
+
* List service accounts in the caller's organization.
|
|
109
|
+
*
|
|
110
|
+
* Results are ordered by creation time, newest first. Use `limit` and the
|
|
111
|
+
* `next_page` cursor to paginate; set `include_archived=true` to include archived
|
|
112
|
+
* service accounts.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* // Automatically fetches more pages as needed.
|
|
117
|
+
* for await (const betaServiceAccount of client.beta.organization.serviceAccounts.list()) {
|
|
118
|
+
* // ...
|
|
119
|
+
* }
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
list(params = {}, options) {
|
|
123
|
+
const { betas, ...query } = params ?? {};
|
|
124
|
+
return this._client.getAPIList('/v1/organizations/service_accounts?beta=true', (PageCursor), {
|
|
125
|
+
query,
|
|
126
|
+
...options,
|
|
127
|
+
headers: buildHeaders([
|
|
128
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
129
|
+
options?.headers,
|
|
130
|
+
]),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
135
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
136
|
+
* API keys are not accepted. See
|
|
137
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
138
|
+
*
|
|
139
|
+
* Archive a service account.
|
|
140
|
+
*
|
|
141
|
+
* Idempotent; re-archiving returns the service account with its original
|
|
142
|
+
* `archived_at`. Rejected with 400 if any live (non-archived) federation rule
|
|
143
|
+
* still targets this service account, same as issuer archival; archive those rules
|
|
144
|
+
* first or change their target to another service account.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* const betaServiceAccount =
|
|
149
|
+
* await client.beta.organization.serviceAccounts.archive(
|
|
150
|
+
* 'service_account_id',
|
|
151
|
+
* );
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
archive(serviceAccountID, params = {}, options) {
|
|
155
|
+
const { betas } = params ?? {};
|
|
156
|
+
return this._client.post(path `/v1/organizations/service_accounts/${serviceAccountID}/archive?beta=true`, {
|
|
157
|
+
...options,
|
|
158
|
+
headers: buildHeaders([
|
|
159
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
160
|
+
options?.headers,
|
|
161
|
+
]),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
ServiceAccounts.Workspaces = Workspaces;
|
|
166
|
+
//# sourceMappingURL=service-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-accounts.js","sourceRoot":"","sources":["../../../../../../src/vendor/resources/beta/organization/service-accounts/service-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,EAKL,UAAU,GACX,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAEvD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C,UAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAElF;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,MAAkC,EAAE,OAAwB;QACjE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE;YACvE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,gBAAwB,EACxB,SAA0D,EAAE,EAC5D,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sCAAsC,gBAAgB,YAAY,EAAE;YAC9F,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,gBAAwB,EACxB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sCAAsC,gBAAgB,YAAY,EAAE;YAC/F,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACF,SAAsD,EAAE,EACxD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,8CAA8C,EAC9C,CAAA,UAA8B,CAAA,EAC9B;YACE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CACL,gBAAwB,EACxB,SAAyD,EAAE,EAC3D,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sCAAsC,gBAAgB,oBAAoB,EAAE;YACvG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACnF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAwKD,eAAe,CAAC,UAAU,GAAG,UAAU,CAAC"}
|