@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,123 @@
|
|
|
1
|
+
import { APIResource } from '../../../../../core/resource';
|
|
2
|
+
import * as BetaAPI from '../../../beta';
|
|
3
|
+
import * as RulesAPI from './rules';
|
|
4
|
+
import { BetaFederationRuleWorkspacesPageCursor } from './rules';
|
|
5
|
+
import { APIPromise } from '../../../../../core/api-promise';
|
|
6
|
+
import { type PageCursorParams, PagePromise } from '../../../../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../../../../internal/request-options';
|
|
8
|
+
export declare class Workspaces extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
11
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
12
|
+
* API keys are not accepted. See
|
|
13
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
14
|
+
*
|
|
15
|
+
* List workspaces where this federation rule is enabled.
|
|
16
|
+
*
|
|
17
|
+
* Returns all workspace enablements in a single response; the `limit` and `page`
|
|
18
|
+
* parameters are accepted but have no effect, and `next_page` is always `null`.
|
|
19
|
+
* Returns explicit per-workspace enablements only; for rules with
|
|
20
|
+
* `applies_to_all_workspaces` or a legacy single `workspace_id`, check those
|
|
21
|
+
* fields on the rule itself.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const betaFederationRuleWorkspace of client.beta.organization.federation.rules.workspaces.list(
|
|
27
|
+
* 'federation_rule_id',
|
|
28
|
+
* )) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(federationRuleID: string, params?: WorkspaceListParams | null | undefined, options?: RequestOptions): PagePromise<BetaFederationRuleWorkspacesPageCursor, RulesAPI.BetaFederationRuleWorkspace>;
|
|
34
|
+
/**
|
|
35
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
36
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
37
|
+
* API keys are not accepted. See
|
|
38
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
39
|
+
*
|
|
40
|
+
* Enable a federation rule for a workspace.
|
|
41
|
+
*
|
|
42
|
+
* Idempotent; re-enabling returns the existing enablement. The rule and workspace
|
|
43
|
+
* must both belong to your organization. Membership of the rule's target service
|
|
44
|
+
* account in this workspace is not checked at enablement: token exchange into this
|
|
45
|
+
* workspace is rejected unless the target is a member (it is implicitly a member
|
|
46
|
+
* of the default workspace). Archived rules are rejected with 400. OAuth callers
|
|
47
|
+
* may only manage rules whose `oauth_scope` is `workspace:developer` or
|
|
48
|
+
* `workspace:inference`; other scopes require a Console session.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const betaFederationRuleWorkspace =
|
|
53
|
+
* await client.beta.organization.federation.rules.workspaces.add(
|
|
54
|
+
* 'federation_rule_id',
|
|
55
|
+
* { workspace_id: 'workspace_id' },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
add(federationRuleID: string, params: WorkspaceAddParams, options?: RequestOptions): APIPromise<RulesAPI.BetaFederationRuleWorkspace>;
|
|
60
|
+
/**
|
|
61
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
62
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
63
|
+
* API keys are not accepted. See
|
|
64
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
65
|
+
*
|
|
66
|
+
* Disable a federation rule for a workspace.
|
|
67
|
+
*
|
|
68
|
+
* Idempotent; succeeds even if the enablement was already removed. OAuth callers
|
|
69
|
+
* may only manage rules whose `oauth_scope` is `workspace:developer` or
|
|
70
|
+
* `workspace:inference`; other scopes require a Console session.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const workspace =
|
|
75
|
+
* await client.beta.organization.federation.rules.workspaces.remove(
|
|
76
|
+
* 'workspace_id',
|
|
77
|
+
* { federation_rule_id: 'federation_rule_id' },
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
remove(workspaceID: string, params: WorkspaceRemoveParams, options?: RequestOptions): APIPromise<WorkspaceRemoveResponse>;
|
|
82
|
+
}
|
|
83
|
+
export interface WorkspaceRemoveResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Tagged ID of the federation rule.
|
|
86
|
+
*/
|
|
87
|
+
federation_rule_id: string;
|
|
88
|
+
type: 'federation_rule_workspace_deleted';
|
|
89
|
+
/**
|
|
90
|
+
* Tagged ID of the workspace named in the delete request. Removal is idempotent.
|
|
91
|
+
*/
|
|
92
|
+
workspace_id: string;
|
|
93
|
+
}
|
|
94
|
+
export interface WorkspaceListParams extends PageCursorParams {
|
|
95
|
+
/**
|
|
96
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
97
|
+
*/
|
|
98
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
99
|
+
}
|
|
100
|
+
export interface WorkspaceAddParams {
|
|
101
|
+
/**
|
|
102
|
+
* Body param: Tagged ID of the workspace to enable this rule for.
|
|
103
|
+
*/
|
|
104
|
+
workspace_id: string;
|
|
105
|
+
/**
|
|
106
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
107
|
+
*/
|
|
108
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
109
|
+
}
|
|
110
|
+
export interface WorkspaceRemoveParams {
|
|
111
|
+
/**
|
|
112
|
+
* Path param: ID of the federation rule.
|
|
113
|
+
*/
|
|
114
|
+
federation_rule_id: string;
|
|
115
|
+
/**
|
|
116
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
117
|
+
*/
|
|
118
|
+
betas?: Array<BetaAPI.PukuBeta>;
|
|
119
|
+
}
|
|
120
|
+
export declare namespace Workspaces {
|
|
121
|
+
export { type WorkspaceRemoveResponse as WorkspaceRemoveResponse, type WorkspaceListParams as WorkspaceListParams, type WorkspaceAddParams as WorkspaceAddParams, type WorkspaceRemoveParams as WorkspaceRemoveParams, };
|
|
122
|
+
}
|
|
123
|
+
export { type BetaFederationRuleWorkspacesPageCursor };
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import { buildHeaders } from '../../../../../internal/headers.js';
|
|
5
|
+
import { path } from '../../../../../internal/utils/path.js';
|
|
6
|
+
export class Workspaces extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
9
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
10
|
+
* API keys are not accepted. See
|
|
11
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
12
|
+
*
|
|
13
|
+
* List workspaces where this federation rule is enabled.
|
|
14
|
+
*
|
|
15
|
+
* Returns all workspace enablements in a single response; the `limit` and `page`
|
|
16
|
+
* parameters are accepted but have no effect, and `next_page` is always `null`.
|
|
17
|
+
* Returns explicit per-workspace enablements only; for rules with
|
|
18
|
+
* `applies_to_all_workspaces` or a legacy single `workspace_id`, check those
|
|
19
|
+
* fields on the rule itself.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const betaFederationRuleWorkspace of client.beta.organization.federation.rules.workspaces.list(
|
|
25
|
+
* 'federation_rule_id',
|
|
26
|
+
* )) {
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(federationRuleID, params = {}, options) {
|
|
32
|
+
const { betas, ...query } = params ?? {};
|
|
33
|
+
return this._client.getAPIList(path `/v1/organizations/federation_rules/${federationRuleID}/workspaces?beta=true`, (PageCursor), {
|
|
34
|
+
query,
|
|
35
|
+
...options,
|
|
36
|
+
headers: buildHeaders([
|
|
37
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
44
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
45
|
+
* API keys are not accepted. See
|
|
46
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
47
|
+
*
|
|
48
|
+
* Enable a federation rule for a workspace.
|
|
49
|
+
*
|
|
50
|
+
* Idempotent; re-enabling returns the existing enablement. The rule and workspace
|
|
51
|
+
* must both belong to your organization. Membership of the rule's target service
|
|
52
|
+
* account in this workspace is not checked at enablement: token exchange into this
|
|
53
|
+
* workspace is rejected unless the target is a member (it is implicitly a member
|
|
54
|
+
* of the default workspace). Archived rules are rejected with 400. OAuth callers
|
|
55
|
+
* may only manage rules whose `oauth_scope` is `workspace:developer` or
|
|
56
|
+
* `workspace:inference`; other scopes require a Console session.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const betaFederationRuleWorkspace =
|
|
61
|
+
* await client.beta.organization.federation.rules.workspaces.add(
|
|
62
|
+
* 'federation_rule_id',
|
|
63
|
+
* { workspace_id: 'workspace_id' },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
add(federationRuleID, params, options) {
|
|
68
|
+
const { betas, ...body } = params;
|
|
69
|
+
return this._client.post(path `/v1/organizations/federation_rules/${federationRuleID}/workspaces?beta=true`, {
|
|
70
|
+
body,
|
|
71
|
+
...options,
|
|
72
|
+
headers: buildHeaders([
|
|
73
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
74
|
+
options?.headers,
|
|
75
|
+
]),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
80
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
81
|
+
* API keys are not accepted. See
|
|
82
|
+
* [Manage WIF with the Admin API](/docs/en/manage-puku/wif-admin-api).
|
|
83
|
+
*
|
|
84
|
+
* Disable a federation rule for a workspace.
|
|
85
|
+
*
|
|
86
|
+
* Idempotent; succeeds even if the enablement was already removed. OAuth callers
|
|
87
|
+
* may only manage rules whose `oauth_scope` is `workspace:developer` or
|
|
88
|
+
* `workspace:inference`; other scopes require a Console session.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const workspace =
|
|
93
|
+
* await client.beta.organization.federation.rules.workspaces.remove(
|
|
94
|
+
* 'workspace_id',
|
|
95
|
+
* { federation_rule_id: 'federation_rule_id' },
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
remove(workspaceID, params, options) {
|
|
100
|
+
const { federation_rule_id, betas } = params;
|
|
101
|
+
return this._client.delete(path `/v1/organizations/federation_rules/${federation_rule_id}/workspaces/${workspaceID}?beta=true`, {
|
|
102
|
+
...options,
|
|
103
|
+
headers: buildHeaders([
|
|
104
|
+
{ ...(betas?.toString() != null ? { 'puku-beta': betas?.toString() } : undefined) },
|
|
105
|
+
options?.headers,
|
|
106
|
+
]),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=workspaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../../../../../src/vendor/resources/beta/organization/federation/rules/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAK3D,OAAO,EAAE,UAAU,EAAsC,MAAM,gCAAgC,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE1D,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,IAAI,CACF,gBAAwB,EACxB,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,sCAAsC,gBAAgB,uBAAuB,EACjF,CAAA,UAAgD,CAAA,EAChD;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;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,GAAG,CACD,gBAAwB,EACxB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,sCAAsC,gBAAgB,uBAAuB,EACjF;YACE,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,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,sCAAsC,kBAAkB,eAAe,WAAW,YAAY,EAClG;YACE,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;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './rules/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../../../src/vendor/resources/beta/organization/federation/rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './federation/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/organization/federation.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { APIKeys, type BetaAPIKey, type BetaAPIKeyCreatedBy, type BetaAPIKeyOrganizationScope, type BetaAPIKeyServiceAccountActor, type BetaAPIKeyUserActor, type BetaAPIKeyWorkspaceScope, type APIKeyUpdateParams, type APIKeyListParams, type BetaAPIKeysPage, } from './api-keys';
|
|
2
|
+
export { ComplianceSettings, type BetaComplianceSettings, type BetaComplianceSettingsStateDisabled, type BetaComplianceSettingsStateDisabledParam, type BetaComplianceSettingsStateEnabled, type BetaComplianceSettingsStateEnabledParam, type ComplianceSettingUpdateParams, } from './compliance-settings';
|
|
3
|
+
export { ExternalKeys, type BetaAWSExternalKeyConfig, type BetaAzureExternalKeyConfig, type BetaAzureExternalKeyConfigParam, type BetaExternalKey, type BetaExternalKeyAttachedAttachment, type BetaExternalKeyUnattachedAttachment, type BetaGCPExternalKeyConfig, type ExternalKeyDeleteResponse, type ExternalKeyValidateResponse, type ExternalKeyCreateParams, type ExternalKeyUpdateParams, type ExternalKeyListParams, type BetaExternalKeysPageCursor, } from './external-keys';
|
|
4
|
+
export { Federation } from './federation/index';
|
|
5
|
+
export { Invites, type BetaOrganizationInvite, type InviteDeleteResponse, type InviteCreateParams, type InviteListParams, type BetaOrganizationInvitesPage, } from './invites';
|
|
6
|
+
export { Organization, type BetaOrganization, type BetaOrganizationRole } from './organization';
|
|
7
|
+
export { RateLimits, type BetaOrganizationRateLimit, type BetaOrganizationRateLimitValue, type RateLimitListParams, type BetaOrganizationRateLimitsPageCursor, } from './rate-limits';
|
|
8
|
+
export { ServiceAccounts, type BetaServiceAccount, type BetaServiceAccountWorkspaceMember, type ServiceAccountCreateParams, type ServiceAccountRetrieveParams, type ServiceAccountUpdateParams, type ServiceAccountListParams, type ServiceAccountArchiveParams, type BetaServiceAccountWorkspaceMembersPageCursor, type BetaServiceAccountsPageCursor, } from './service-accounts/index';
|
|
9
|
+
export { Users, type BetaOrganizationUser, type UserRemoveResponse, type UserUpdateParams, type UserListParams, type BetaOrganizationUsersPage, } from './users';
|
|
10
|
+
export { Workspaces, type BetaAllowedInferenceGeo, type BetaDataResidency, type BetaDataResidencyCreateConfig, type BetaDataResidencyUpdateConfig, type BetaNoBillingWorkspaceRole, type BetaWorkspace, type BetaWorkspaceMember, type BetaWorkspaceRole, type WorkspaceCreateParams, type WorkspaceUpdateParams, type WorkspaceListParams, type BetaWorkspaceMembersPage, type BetaWorkspacesPage, } from './workspaces/index';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { APIKeys, } from './api-keys.js';
|
|
3
|
+
export { ComplianceSettings, } from './compliance-settings.js';
|
|
4
|
+
export { ExternalKeys, } from './external-keys.js';
|
|
5
|
+
export { Federation } from './federation/index.js';
|
|
6
|
+
export { Invites, } from './invites.js';
|
|
7
|
+
export { Organization } from './organization.js';
|
|
8
|
+
export { RateLimits, } from './rate-limits.js';
|
|
9
|
+
export { ServiceAccounts, } from './service-accounts/index.js';
|
|
10
|
+
export { Users, } from './users.js';
|
|
11
|
+
export { Workspaces, } from './workspaces/index.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAUR,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kBAAkB,GAOnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,GAcb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EACL,OAAO,GAMR,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,YAAY,EAAoD,MAAM,gBAAgB,CAAC;AAChG,OAAO,EACL,UAAU,GAKX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,GAUhB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,GAMN,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,UAAU,GAcX,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { APIResource } from '../../../core/resource';
|
|
2
|
+
import * as OrganizationAPI from './organization';
|
|
3
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
4
|
+
import { Page, type PageParams, PagePromise } from '../../../core/pagination';
|
|
5
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
export declare class Invites extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Invite a user to join the organization by email.
|
|
9
|
+
*
|
|
10
|
+
* On plans that draw members from a finite pool of purchased seats, the invite
|
|
11
|
+
* automatically consumes a seat from the lowest tier with availability; there is
|
|
12
|
+
* no seat-tier parameter. When no seat is free the request fails with a 400 error
|
|
13
|
+
* rather than purchasing a seat.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const betaOrganizationInvite =
|
|
18
|
+
* await client.beta.organization.invites.create({
|
|
19
|
+
* email: 'user@emaildomain.com',
|
|
20
|
+
* role: 'user',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: InviteCreateParams, options?: RequestOptions): APIPromise<BetaOrganizationInvite>;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve an invite by ID.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const betaOrganizationInvite =
|
|
31
|
+
* await client.beta.organization.invites.retrieve(
|
|
32
|
+
* 'invite_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(inviteID: string, options?: RequestOptions): APIPromise<BetaOrganizationInvite>;
|
|
37
|
+
/**
|
|
38
|
+
* List the organization's invites.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* // Automatically fetches more pages as needed.
|
|
43
|
+
* for await (const betaOrganizationInvite of client.beta.organization.invites.list()) {
|
|
44
|
+
* // ...
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(query?: InviteListParams | null | undefined, options?: RequestOptions): PagePromise<BetaOrganizationInvitesPage, BetaOrganizationInvite>;
|
|
49
|
+
/**
|
|
50
|
+
* Delete a pending invite.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const invite =
|
|
55
|
+
* await client.beta.organization.invites.delete(
|
|
56
|
+
* 'invite_id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(inviteID: string, options?: RequestOptions): APIPromise<InviteDeleteResponse>;
|
|
61
|
+
}
|
|
62
|
+
export type BetaOrganizationInvitesPage = Page<BetaOrganizationInvite>;
|
|
63
|
+
export interface BetaOrganizationInvite {
|
|
64
|
+
/**
|
|
65
|
+
* ID of the Invite.
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* RFC 3339 datetime string indicating when the Invite was accepted, or null.
|
|
70
|
+
*/
|
|
71
|
+
accepted_at: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Email of the User being invited.
|
|
74
|
+
*/
|
|
75
|
+
email: string;
|
|
76
|
+
/**
|
|
77
|
+
* RFC 3339 datetime string indicating when the Invite expires.
|
|
78
|
+
*/
|
|
79
|
+
expires_at: string;
|
|
80
|
+
/**
|
|
81
|
+
* RFC 3339 datetime string indicating when the Invite was created.
|
|
82
|
+
*/
|
|
83
|
+
invited_at: string;
|
|
84
|
+
/**
|
|
85
|
+
* RBAC group IDs recorded on the Invite (Puku Enterprise organizations), to be
|
|
86
|
+
* assigned to the User when the Invite is accepted. `[]` when none.
|
|
87
|
+
*/
|
|
88
|
+
rbac_group_ids: Array<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Organization role of the User.
|
|
91
|
+
*/
|
|
92
|
+
role: OrganizationAPI.BetaOrganizationRole;
|
|
93
|
+
/**
|
|
94
|
+
* Status of the Invite.
|
|
95
|
+
*/
|
|
96
|
+
status: 'accepted' | 'deleted' | 'expired' | 'pending';
|
|
97
|
+
/**
|
|
98
|
+
* Object type.
|
|
99
|
+
*
|
|
100
|
+
* For Invites, this is always `"invite"`.
|
|
101
|
+
*/
|
|
102
|
+
type: 'invite';
|
|
103
|
+
}
|
|
104
|
+
export interface InviteDeleteResponse {
|
|
105
|
+
/**
|
|
106
|
+
* ID of the Invite.
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Deleted object type.
|
|
111
|
+
*
|
|
112
|
+
* For Invites, this is always `"invite_deleted"`.
|
|
113
|
+
*/
|
|
114
|
+
type: 'invite_deleted';
|
|
115
|
+
}
|
|
116
|
+
export interface InviteCreateParams {
|
|
117
|
+
/**
|
|
118
|
+
* Email of the User.
|
|
119
|
+
*/
|
|
120
|
+
email: string;
|
|
121
|
+
/**
|
|
122
|
+
* Role for the invited User.
|
|
123
|
+
*
|
|
124
|
+
* The accepted values depend on the organization type. Console and API
|
|
125
|
+
* organizations accept `user`, `developer`, `billing`, and `puku_code_user`;
|
|
126
|
+
* `admin` cannot be assigned through the API. Puku Enterprise organizations
|
|
127
|
+
* accept `user` and `managed`.
|
|
128
|
+
*/
|
|
129
|
+
role: 'billing' | 'puku_code_user' | 'developer' | 'managed' | 'user';
|
|
130
|
+
/**
|
|
131
|
+
* RBAC group IDs to assign to the User when the Invite is accepted. A non-empty
|
|
132
|
+
* array is accepted only for a Puku Enterprise organization with RBAC groups,
|
|
133
|
+
* and requires the key to carry the `write:rbac_groups` scope.
|
|
134
|
+
*/
|
|
135
|
+
rbac_group_ids?: Array<string>;
|
|
136
|
+
}
|
|
137
|
+
export interface InviteListParams extends PageParams {
|
|
138
|
+
/**
|
|
139
|
+
* Filter by the email address the Invite was sent to. Matches the same way as the
|
|
140
|
+
* Users list's `email` filter (normalized, case-insensitive).
|
|
141
|
+
*/
|
|
142
|
+
email?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Filter to items whose `role` equals one of the supplied values. Repeatable;
|
|
145
|
+
* values are OR'ed together.
|
|
146
|
+
*
|
|
147
|
+
* Accepted values depend on the organization type: Console and API organizations
|
|
148
|
+
* accept `user`, `developer`, `billing`, `admin`, and `puku_code_user`; Puku
|
|
149
|
+
* Enterprise organizations accept `user`, `owner`, `primary_owner`,
|
|
150
|
+
* `membership_admin`, and `managed`.
|
|
151
|
+
*/
|
|
152
|
+
roles?: Array<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Filter by Invite status. Repeatable; values are OR'ed together. Omit to return
|
|
155
|
+
* `pending`, `accepted`, and `expired` Invites alike.
|
|
156
|
+
*/
|
|
157
|
+
statuses?: Array<'accepted' | 'expired' | 'pending'>;
|
|
158
|
+
}
|
|
159
|
+
export declare namespace Invites {
|
|
160
|
+
export { type BetaOrganizationInvite as BetaOrganizationInvite, type InviteDeleteResponse as InviteDeleteResponse, type BetaOrganizationInvitesPage as BetaOrganizationInvitesPage, type InviteCreateParams as InviteCreateParams, type InviteListParams as InviteListParams, };
|
|
161
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from '../../../core/resource.js';
|
|
3
|
+
import { Page } from '../../../core/pagination.js';
|
|
4
|
+
import { path } from '../../../internal/utils/path.js';
|
|
5
|
+
export class Invites extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Invite a user to join the organization by email.
|
|
8
|
+
*
|
|
9
|
+
* On plans that draw members from a finite pool of purchased seats, the invite
|
|
10
|
+
* automatically consumes a seat from the lowest tier with availability; there is
|
|
11
|
+
* no seat-tier parameter. When no seat is free the request fails with a 400 error
|
|
12
|
+
* rather than purchasing a seat.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const betaOrganizationInvite =
|
|
17
|
+
* await client.beta.organization.invites.create({
|
|
18
|
+
* email: 'user@emaildomain.com',
|
|
19
|
+
* role: 'user',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/v1/organizations/invites?beta=true', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve an invite by ID.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const betaOrganizationInvite =
|
|
32
|
+
* await client.beta.organization.invites.retrieve(
|
|
33
|
+
* 'invite_id',
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(inviteID, options) {
|
|
38
|
+
return this._client.get(path `/v1/organizations/invites/${inviteID}?beta=true`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* List the organization's invites.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* // Automatically fetches more pages as needed.
|
|
46
|
+
* for await (const betaOrganizationInvite of client.beta.organization.invites.list()) {
|
|
47
|
+
* // ...
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
list(query = {}, options) {
|
|
52
|
+
return this._client.getAPIList('/v1/organizations/invites?beta=true', (Page), {
|
|
53
|
+
query,
|
|
54
|
+
...options,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Delete a pending invite.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const invite =
|
|
63
|
+
* await client.beta.organization.invites.delete(
|
|
64
|
+
* 'invite_id',
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
delete(inviteID, options) {
|
|
69
|
+
return this._client.delete(path `/v1/organizations/invites/${inviteID}?beta=true`, options);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=invites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invites.js","sourceRoot":"","sources":["../../../../../src/vendor/resources/beta/organization/invites.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EAAE,IAAI,EAAgC,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEpD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,QAAQ,YAAY,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE,CAAA,IAA4B,CAAA,EAAE;YAClG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,QAAQ,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { APIResource } from '../../../core/resource';
|
|
2
|
+
import * as APIKeysAPI from './api-keys';
|
|
3
|
+
import { APIKeyListParams, APIKeyUpdateParams, APIKeys, BetaAPIKey, BetaAPIKeyCreatedBy, BetaAPIKeyOrganizationScope, BetaAPIKeyServiceAccountActor, BetaAPIKeyUserActor, BetaAPIKeyWorkspaceScope, BetaAPIKeysPage } from './api-keys';
|
|
4
|
+
import * as ComplianceSettingsAPI from './compliance-settings';
|
|
5
|
+
import { BetaComplianceSettings, BetaComplianceSettingsStateDisabled, BetaComplianceSettingsStateDisabledParam, BetaComplianceSettingsStateEnabled, BetaComplianceSettingsStateEnabledParam, ComplianceSettingUpdateParams, ComplianceSettings } from './compliance-settings';
|
|
6
|
+
import * as ExternalKeysAPI from './external-keys';
|
|
7
|
+
import { BetaAWSExternalKeyConfig, BetaAzureExternalKeyConfig, BetaAzureExternalKeyConfigParam, BetaExternalKey, BetaExternalKeyAttachedAttachment, BetaExternalKeyUnattachedAttachment, BetaExternalKeysPageCursor, BetaGCPExternalKeyConfig, ExternalKeyCreateParams, ExternalKeyDeleteResponse, ExternalKeyListParams, ExternalKeyUpdateParams, ExternalKeyValidateResponse, ExternalKeys } from './external-keys';
|
|
8
|
+
import * as InvitesAPI from './invites';
|
|
9
|
+
import { BetaOrganizationInvite, BetaOrganizationInvitesPage, InviteCreateParams, InviteDeleteResponse, InviteListParams, Invites } from './invites';
|
|
10
|
+
import * as RateLimitsAPI from './rate-limits';
|
|
11
|
+
import { BetaOrganizationRateLimit, BetaOrganizationRateLimitValue, BetaOrganizationRateLimitsPageCursor, RateLimitListParams, RateLimits } from './rate-limits';
|
|
12
|
+
import * as UsersAPI from './users';
|
|
13
|
+
import { BetaOrganizationUser, BetaOrganizationUsersPage, UserListParams, UserRemoveResponse, UserUpdateParams, Users } from './users';
|
|
14
|
+
import * as FederationAPI from './federation/federation';
|
|
15
|
+
import { Federation } from './federation/federation';
|
|
16
|
+
import * as ServiceAccountsAPI from './service-accounts/service-accounts';
|
|
17
|
+
import { BetaServiceAccount, BetaServiceAccountWorkspaceMember, BetaServiceAccountsPageCursor, ServiceAccountArchiveParams, ServiceAccountCreateParams, ServiceAccountListParams, ServiceAccountRetrieveParams, ServiceAccountUpdateParams, ServiceAccounts } from './service-accounts/service-accounts';
|
|
18
|
+
import * as WorkspacesAPI from './workspaces/workspaces';
|
|
19
|
+
import { BetaAllowedInferenceGeo, BetaDataResidency, BetaDataResidencyCreateConfig, BetaDataResidencyUpdateConfig, BetaNoBillingWorkspaceRole, BetaWorkspace, BetaWorkspaceMember, BetaWorkspaceRole, BetaWorkspacesPage, WorkspaceCreateParams, WorkspaceListParams, WorkspaceUpdateParams, Workspaces } from './workspaces/workspaces';
|
|
20
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
21
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
22
|
+
export declare class Organization extends APIResource {
|
|
23
|
+
apiKeys: APIKeysAPI.APIKeys;
|
|
24
|
+
externalKeys: ExternalKeysAPI.ExternalKeys;
|
|
25
|
+
federation: FederationAPI.Federation;
|
|
26
|
+
invites: InvitesAPI.Invites;
|
|
27
|
+
serviceAccounts: ServiceAccountsAPI.ServiceAccounts;
|
|
28
|
+
users: UsersAPI.Users;
|
|
29
|
+
workspaces: WorkspacesAPI.Workspaces;
|
|
30
|
+
rateLimits: RateLimitsAPI.RateLimits;
|
|
31
|
+
complianceSettings: ComplianceSettingsAPI.ComplianceSettings;
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve information about the organization associated with the authenticated
|
|
34
|
+
* API key.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const betaOrganization =
|
|
39
|
+
* await client.beta.organization.retrieve();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieve(options?: RequestOptions): APIPromise<BetaOrganization>;
|
|
43
|
+
}
|
|
44
|
+
export interface BetaOrganization {
|
|
45
|
+
/**
|
|
46
|
+
* ID of the Organization.
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Name of the Organization.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Object type.
|
|
55
|
+
*
|
|
56
|
+
* For Organizations, this is always `"organization"`.
|
|
57
|
+
*/
|
|
58
|
+
type: 'organization';
|
|
59
|
+
}
|
|
60
|
+
export type BetaOrganizationRole = 'admin' | 'billing' | 'puku_code_user' | 'developer' | 'managed' | 'membership_admin' | 'owner' | 'primary_owner' | 'user';
|
|
61
|
+
export declare namespace Organization {
|
|
62
|
+
export { type BetaOrganization as BetaOrganization, type BetaOrganizationRole as BetaOrganizationRole };
|
|
63
|
+
export { APIKeys as APIKeys, type BetaAPIKey as BetaAPIKey, type BetaAPIKeyCreatedBy as BetaAPIKeyCreatedBy, type BetaAPIKeyOrganizationScope as BetaAPIKeyOrganizationScope, type BetaAPIKeyServiceAccountActor as BetaAPIKeyServiceAccountActor, type BetaAPIKeyUserActor as BetaAPIKeyUserActor, type BetaAPIKeyWorkspaceScope as BetaAPIKeyWorkspaceScope, type BetaAPIKeysPage as BetaAPIKeysPage, type APIKeyUpdateParams as APIKeyUpdateParams, type APIKeyListParams as APIKeyListParams, };
|
|
64
|
+
export { ExternalKeys as ExternalKeys, type BetaAWSExternalKeyConfig as BetaAWSExternalKeyConfig, type BetaAzureExternalKeyConfig as BetaAzureExternalKeyConfig, type BetaAzureExternalKeyConfigParam as BetaAzureExternalKeyConfigParam, type BetaExternalKey as BetaExternalKey, type BetaExternalKeyAttachedAttachment as BetaExternalKeyAttachedAttachment, type BetaExternalKeyUnattachedAttachment as BetaExternalKeyUnattachedAttachment, type BetaGCPExternalKeyConfig as BetaGCPExternalKeyConfig, type ExternalKeyDeleteResponse as ExternalKeyDeleteResponse, type ExternalKeyValidateResponse as ExternalKeyValidateResponse, type BetaExternalKeysPageCursor as BetaExternalKeysPageCursor, type ExternalKeyCreateParams as ExternalKeyCreateParams, type ExternalKeyUpdateParams as ExternalKeyUpdateParams, type ExternalKeyListParams as ExternalKeyListParams, };
|
|
65
|
+
export { Federation as Federation };
|
|
66
|
+
export { Invites as Invites, type BetaOrganizationInvite as BetaOrganizationInvite, type InviteDeleteResponse as InviteDeleteResponse, type BetaOrganizationInvitesPage as BetaOrganizationInvitesPage, type InviteCreateParams as InviteCreateParams, type InviteListParams as InviteListParams, };
|
|
67
|
+
export { ServiceAccounts as ServiceAccounts, 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, };
|
|
68
|
+
export { Users as Users, type BetaOrganizationUser as BetaOrganizationUser, type UserRemoveResponse as UserRemoveResponse, type BetaOrganizationUsersPage as BetaOrganizationUsersPage, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, };
|
|
69
|
+
export { Workspaces as Workspaces, type BetaAllowedInferenceGeo as BetaAllowedInferenceGeo, type BetaDataResidency as BetaDataResidency, type BetaDataResidencyCreateConfig as BetaDataResidencyCreateConfig, type BetaDataResidencyUpdateConfig as BetaDataResidencyUpdateConfig, type BetaNoBillingWorkspaceRole as BetaNoBillingWorkspaceRole, type BetaWorkspace as BetaWorkspace, type BetaWorkspaceMember as BetaWorkspaceMember, type BetaWorkspaceRole as BetaWorkspaceRole, type BetaWorkspacesPage as BetaWorkspacesPage, type WorkspaceCreateParams as WorkspaceCreateParams, type WorkspaceUpdateParams as WorkspaceUpdateParams, type WorkspaceListParams as WorkspaceListParams, };
|
|
70
|
+
export { RateLimits as RateLimits, type BetaOrganizationRateLimit as BetaOrganizationRateLimit, type BetaOrganizationRateLimitValue as BetaOrganizationRateLimitValue, type BetaOrganizationRateLimitsPageCursor as BetaOrganizationRateLimitsPageCursor, type RateLimitListParams as RateLimitListParams, };
|
|
71
|
+
export { ComplianceSettings as ComplianceSettings, type BetaComplianceSettings as BetaComplianceSettings, type BetaComplianceSettingsStateDisabled as BetaComplianceSettingsStateDisabled, type BetaComplianceSettingsStateDisabledParam as BetaComplianceSettingsStateDisabledParam, type BetaComplianceSettingsStateEnabled as BetaComplianceSettingsStateEnabled, type BetaComplianceSettingsStateEnabledParam as BetaComplianceSettingsStateEnabledParam, type ComplianceSettingUpdateParams as ComplianceSettingUpdateParams, };
|
|
72
|
+
}
|