@vibesdotdev/integrations-digitalocean 0.0.0-stage → 1.0.0-rc.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/LICENSE +126 -0
- package/README.md +78 -2
- package/dist/ai/index.d.ts +4 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +4 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/inference.transport.impl.d.ts +5 -0
- package/dist/ai/inference.transport.impl.d.ts.map +1 -0
- package/dist/ai/inference.transport.impl.js +54 -0
- package/dist/ai/inference.transport.impl.js.map +1 -0
- package/dist/ai/provider.plugin.d.ts +6 -0
- package/dist/ai/provider.plugin.d.ts.map +1 -0
- package/dist/ai/provider.plugin.js +126 -0
- package/dist/ai/provider.plugin.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.d.ts +62 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.js +73 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/index.d.ts +2 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/index.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/index.js +2 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/index.js.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.d.ts +183 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.d.ts.map +1 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.js +66 -0
- package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.js.map +1 -0
- package/dist/apps/api-client.d.ts +45 -0
- package/dist/apps/api-client.d.ts.map +1 -0
- package/dist/apps/api-client.js +47 -0
- package/dist/apps/api-client.js.map +1 -0
- package/dist/apps/build-spec.d.ts +44 -0
- package/dist/apps/build-spec.d.ts.map +1 -0
- package/dist/apps/build-spec.js +463 -0
- package/dist/apps/build-spec.js.map +1 -0
- package/dist/apps/deploy-client.d.ts +42 -0
- package/dist/apps/deploy-client.d.ts.map +1 -0
- package/dist/apps/deploy-client.js +300 -0
- package/dist/apps/deploy-client.js.map +1 -0
- package/dist/apps/index.d.ts +5 -0
- package/dist/apps/index.d.ts.map +1 -0
- package/dist/apps/index.js +4 -0
- package/dist/apps/index.js.map +1 -0
- package/dist/apps/types.d.ts +204 -0
- package/dist/apps/types.d.ts.map +1 -0
- package/dist/apps/types.js +13 -0
- package/dist/apps/types.js.map +1 -0
- package/dist/client/control-plane.d.ts +49 -0
- package/dist/client/control-plane.d.ts.map +1 -0
- package/dist/client/control-plane.js +85 -0
- package/dist/client/control-plane.js.map +1 -0
- package/dist/client/do-fetch.d.ts +41 -0
- package/dist/client/do-fetch.d.ts.map +1 -0
- package/dist/client/do-fetch.js +199 -0
- package/dist/client/do-fetch.js.map +1 -0
- package/dist/client/errors.d.ts +6 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +34 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/factory.d.ts +53 -0
- package/dist/client/factory.d.ts.map +1 -0
- package/dist/client/factory.js +220 -0
- package/dist/client/factory.js.map +1 -0
- package/dist/client/helpers.d.ts +5 -0
- package/dist/client/helpers.d.ts.map +1 -0
- package/dist/client/helpers.js +8 -0
- package/dist/client/helpers.js.map +1 -0
- package/dist/client/index.d.ts +12 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +10 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/paginated.d.ts +19 -0
- package/dist/client/paginated.d.ts.map +1 -0
- package/dist/client/paginated.js +56 -0
- package/dist/client/paginated.js.map +1 -0
- package/dist/client/retry.d.ts +34 -0
- package/dist/client/retry.d.ts.map +1 -0
- package/dist/client/retry.js +53 -0
- package/dist/client/retry.js.map +1 -0
- package/dist/config/digitalocean.config.descriptor.d.ts +197 -0
- package/dist/config/digitalocean.config.descriptor.d.ts.map +1 -0
- package/dist/config/digitalocean.config.descriptor.js +59 -0
- package/dist/config/digitalocean.config.descriptor.js.map +1 -0
- package/dist/credentials/index.d.ts +38 -0
- package/dist/credentials/index.d.ts.map +1 -0
- package/dist/credentials/index.js +56 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/databases/index.d.ts +82 -0
- package/dist/databases/index.d.ts.map +1 -0
- package/dist/databases/index.js +57 -0
- package/dist/databases/index.js.map +1 -0
- package/dist/digitalocean-friction.policy.d.ts +29 -0
- package/dist/digitalocean-friction.policy.d.ts.map +1 -0
- package/dist/digitalocean-friction.policy.js +21 -0
- package/dist/digitalocean-friction.policy.js.map +1 -0
- package/dist/digitalocean.plugin.d.ts +3 -0
- package/dist/digitalocean.plugin.d.ts.map +1 -0
- package/dist/digitalocean.plugin.js +27 -0
- package/dist/digitalocean.plugin.js.map +1 -0
- package/dist/droplets/index.d.ts +106 -0
- package/dist/droplets/index.d.ts.map +1 -0
- package/dist/droplets/index.js +227 -0
- package/dist/droplets/index.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/inference-control-plane/index.d.ts +63 -0
- package/dist/inference-control-plane/index.d.ts.map +1 -0
- package/dist/inference-control-plane/index.js +93 -0
- package/dist/inference-control-plane/index.js.map +1 -0
- package/dist/infra/billing.d.ts +26 -0
- package/dist/infra/billing.d.ts.map +1 -0
- package/dist/infra/billing.js +43 -0
- package/dist/infra/billing.js.map +1 -0
- package/dist/infra/credentials.d.ts +11 -0
- package/dist/infra/credentials.d.ts.map +1 -0
- package/dist/infra/credentials.js +15 -0
- package/dist/infra/credentials.js.map +1 -0
- package/dist/infra/deployment-provider/deploy-secrets.d.ts +10 -0
- package/dist/infra/deployment-provider/deploy-secrets.d.ts.map +1 -0
- package/dist/infra/deployment-provider/deploy-secrets.js +66 -0
- package/dist/infra/deployment-provider/deploy-secrets.js.map +1 -0
- package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.d.ts +97 -0
- package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.d.ts.map +1 -0
- package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.js +242 -0
- package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.js.map +1 -0
- package/dist/infra/deployment-provider/image-publish.d.ts +39 -0
- package/dist/infra/deployment-provider/image-publish.d.ts.map +1 -0
- package/dist/infra/deployment-provider/image-publish.js +146 -0
- package/dist/infra/deployment-provider/image-publish.js.map +1 -0
- package/dist/infra/deployment-provider.descriptor.d.ts +34 -0
- package/dist/infra/deployment-provider.descriptor.d.ts.map +1 -0
- package/dist/infra/deployment-provider.descriptor.js +9 -0
- package/dist/infra/deployment-provider.descriptor.js.map +1 -0
- package/dist/infra/digitalocean-infra.plugin.d.ts +101 -0
- package/dist/infra/digitalocean-infra.plugin.d.ts.map +1 -0
- package/dist/infra/digitalocean-infra.plugin.js +283 -0
- package/dist/infra/digitalocean-infra.plugin.js.map +1 -0
- package/dist/infra/doks/clients.d.ts +183 -0
- package/dist/infra/doks/clients.d.ts.map +1 -0
- package/dist/infra/doks/clients.js +172 -0
- package/dist/infra/doks/clients.js.map +1 -0
- package/dist/infra/doks/digitalocean.d.ts +34 -0
- package/dist/infra/doks/digitalocean.d.ts.map +1 -0
- package/dist/infra/doks/digitalocean.js +267 -0
- package/dist/infra/doks/digitalocean.js.map +1 -0
- package/dist/infra/doks/service-release-schemas.d.ts +1037 -0
- package/dist/infra/doks/service-release-schemas.d.ts.map +1 -0
- package/dist/infra/doks/service-release-schemas.js +51 -0
- package/dist/infra/doks/service-release-schemas.js.map +1 -0
- package/dist/infra/doks/service-release.d.ts +415 -0
- package/dist/infra/doks/service-release.d.ts.map +1 -0
- package/dist/infra/doks/service-release.js +3201 -0
- package/dist/infra/doks/service-release.js.map +1 -0
- package/dist/infra/doks/worker.d.ts +14 -0
- package/dist/infra/doks/worker.d.ts.map +1 -0
- package/dist/infra/doks/worker.js +343 -0
- package/dist/infra/doks/worker.js.map +1 -0
- package/dist/infra/droplet.impl.d.ts +172 -0
- package/dist/infra/droplet.impl.d.ts.map +1 -0
- package/dist/infra/droplet.impl.js +379 -0
- package/dist/infra/droplet.impl.js.map +1 -0
- package/dist/infra/functions.impl.d.ts +123 -0
- package/dist/infra/functions.impl.d.ts.map +1 -0
- package/dist/infra/functions.impl.js +202 -0
- package/dist/infra/functions.impl.js.map +1 -0
- package/dist/infra/index.d.ts +15 -0
- package/dist/infra/index.d.ts.map +1 -0
- package/dist/infra/index.js +12 -0
- package/dist/infra/index.js.map +1 -0
- package/dist/infra/inventory.d.ts +7 -0
- package/dist/infra/inventory.d.ts.map +1 -0
- package/dist/infra/inventory.js +259 -0
- package/dist/infra/inventory.js.map +1 -0
- package/dist/infra/kubernetes-log-stream.d.ts +5 -0
- package/dist/infra/kubernetes-log-stream.d.ts.map +1 -0
- package/dist/infra/kubernetes-log-stream.js +186 -0
- package/dist/infra/kubernetes-log-stream.js.map +1 -0
- package/dist/infra/kubernetes-logs.d.ts +33 -0
- package/dist/infra/kubernetes-logs.d.ts.map +1 -0
- package/dist/infra/kubernetes-logs.descriptor.d.ts +14 -0
- package/dist/infra/kubernetes-logs.descriptor.d.ts.map +1 -0
- package/dist/infra/kubernetes-logs.descriptor.js +28 -0
- package/dist/infra/kubernetes-logs.descriptor.js.map +1 -0
- package/dist/infra/kubernetes-logs.js +196 -0
- package/dist/infra/kubernetes-logs.js.map +1 -0
- package/dist/infra/utilization.d.ts +44 -0
- package/dist/infra/utilization.d.ts.map +1 -0
- package/dist/infra/utilization.js +108 -0
- package/dist/infra/utilization.js.map +1 -0
- package/dist/kubernetes/authority.d.ts +40 -0
- package/dist/kubernetes/authority.d.ts.map +1 -0
- package/dist/kubernetes/authority.js +90 -0
- package/dist/kubernetes/authority.js.map +1 -0
- package/dist/kubernetes/encoding.d.ts +4 -0
- package/dist/kubernetes/encoding.d.ts.map +1 -0
- package/dist/kubernetes/encoding.js +8 -0
- package/dist/kubernetes/encoding.js.map +1 -0
- package/dist/kubernetes/index.d.ts +105 -0
- package/dist/kubernetes/index.d.ts.map +1 -0
- package/dist/kubernetes/index.js +99 -0
- package/dist/kubernetes/index.js.map +1 -0
- package/dist/kubernetes/transport.d.ts +11 -0
- package/dist/kubernetes/transport.d.ts.map +1 -0
- package/dist/kubernetes/transport.js +27 -0
- package/dist/kubernetes/transport.js.map +1 -0
- package/dist/network/index.d.ts +24 -0
- package/dist/network/index.d.ts.map +1 -0
- package/dist/network/index.js +16 -0
- package/dist/network/index.js.map +1 -0
- package/dist/registry/index.d.ts +39 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +20 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/schemas/app-deployment.d.ts +1474 -0
- package/dist/schemas/app-deployment.d.ts.map +1 -0
- package/dist/schemas/app-deployment.js +156 -0
- package/dist/schemas/app-deployment.js.map +1 -0
- package/dist/schemas/app-platform.d.ts +755 -0
- package/dist/schemas/app-platform.d.ts.map +1 -0
- package/dist/schemas/app-platform.js +253 -0
- package/dist/schemas/app-platform.js.map +1 -0
- package/dist/schemas/cache-database.d.ts +210 -0
- package/dist/schemas/cache-database.d.ts.map +1 -0
- package/dist/schemas/cache-database.js +105 -0
- package/dist/schemas/cache-database.js.map +1 -0
- package/dist/schemas/control-plane.d.ts +456 -0
- package/dist/schemas/control-plane.d.ts.map +1 -0
- package/dist/schemas/control-plane.js +123 -0
- package/dist/schemas/control-plane.js.map +1 -0
- package/dist/schemas/credential-use.d.ts +714 -0
- package/dist/schemas/credential-use.d.ts.map +1 -0
- package/dist/schemas/credential-use.js +73 -0
- package/dist/schemas/credential-use.js.map +1 -0
- package/dist/schemas/doks-worker.d.ts +4071 -0
- package/dist/schemas/doks-worker.d.ts.map +1 -0
- package/dist/schemas/doks-worker.js +330 -0
- package/dist/schemas/doks-worker.js.map +1 -0
- package/dist/schemas/droplet.d.ts +110 -0
- package/dist/schemas/droplet.d.ts.map +1 -0
- package/dist/schemas/droplet.js +22 -0
- package/dist/schemas/droplet.js.map +1 -0
- package/dist/schemas/functions.d.ts +22 -0
- package/dist/schemas/functions.d.ts.map +1 -0
- package/dist/schemas/functions.js +25 -0
- package/dist/schemas/functions.js.map +1 -0
- package/dist/schemas/gitea-git-hosting.d.ts +20 -0
- package/dist/schemas/gitea-git-hosting.d.ts.map +1 -0
- package/dist/schemas/gitea-git-hosting.js +26 -0
- package/dist/schemas/gitea-git-hosting.js.map +1 -0
- package/dist/schemas/http.d.ts +2594 -0
- package/dist/schemas/http.d.ts.map +1 -0
- package/dist/schemas/http.js +4548 -0
- package/dist/schemas/http.js.map +1 -0
- package/dist/schemas/infra-kinds.d.ts +113 -0
- package/dist/schemas/infra-kinds.d.ts.map +1 -0
- package/dist/schemas/infra-kinds.js +93 -0
- package/dist/schemas/infra-kinds.js.map +1 -0
- package/dist/schemas/kubernetes-responses.d.ts +457 -0
- package/dist/schemas/kubernetes-responses.d.ts.map +1 -0
- package/dist/schemas/kubernetes-responses.js +681 -0
- package/dist/schemas/kubernetes-responses.js.map +1 -0
- package/dist/schemas/kubernetes.d.ts +143 -0
- package/dist/schemas/kubernetes.d.ts.map +1 -0
- package/dist/schemas/kubernetes.js +68 -0
- package/dist/schemas/kubernetes.js.map +1 -0
- package/dist/schemas/logs.d.ts +15 -0
- package/dist/schemas/logs.d.ts.map +1 -0
- package/dist/schemas/logs.js +11 -0
- package/dist/schemas/logs.js.map +1 -0
- package/dist/schemas/object-storage.d.ts +167 -0
- package/dist/schemas/object-storage.d.ts.map +1 -0
- package/dist/schemas/object-storage.js +124 -0
- package/dist/schemas/object-storage.js.map +1 -0
- package/dist/schemas/service-settings.d.ts +9 -0
- package/dist/schemas/service-settings.d.ts.map +1 -0
- package/dist/schemas/service-settings.js +21 -0
- package/dist/schemas/service-settings.js.map +1 -0
- package/dist/schemas/utilization.d.ts +57 -0
- package/dist/schemas/utilization.d.ts.map +1 -0
- package/dist/schemas/utilization.js +58 -0
- package/dist/schemas/utilization.js.map +1 -0
- package/dist/schemas/worker-status.d.ts +22 -0
- package/dist/schemas/worker-status.d.ts.map +1 -0
- package/dist/schemas/worker-status.js +14 -0
- package/dist/schemas/worker-status.js.map +1 -0
- package/dist/schemas/worker.d.ts +125 -0
- package/dist/schemas/worker.d.ts.map +1 -0
- package/dist/schemas/worker.js +129 -0
- package/dist/schemas/worker.js.map +1 -0
- package/dist/secrets/app-platform/app-credentials.impl.d.ts +14 -0
- package/dist/secrets/app-platform/app-credentials.impl.d.ts.map +1 -0
- package/dist/secrets/app-platform/app-credentials.impl.js +237 -0
- package/dist/secrets/app-platform/app-credentials.impl.js.map +1 -0
- package/dist/secrets/container-registry/image-publish-settings.descriptor.d.ts +11 -0
- package/dist/secrets/container-registry/image-publish-settings.descriptor.d.ts.map +1 -0
- package/dist/secrets/container-registry/image-publish-settings.descriptor.js +26 -0
- package/dist/secrets/container-registry/image-publish-settings.descriptor.js.map +1 -0
- package/dist/secrets/doks-secret.descriptor.d.ts +18 -0
- package/dist/secrets/doks-secret.descriptor.d.ts.map +1 -0
- package/dist/secrets/doks-secret.descriptor.js +35 -0
- package/dist/secrets/doks-secret.descriptor.js.map +1 -0
- package/dist/secrets/doks-secret.impl.d.ts +98 -0
- package/dist/secrets/doks-secret.impl.d.ts.map +1 -0
- package/dist/secrets/doks-secret.impl.js +451 -0
- package/dist/secrets/doks-secret.impl.js.map +1 -0
- package/dist/secrets/index.d.ts +4 -0
- package/dist/secrets/index.d.ts.map +1 -0
- package/dist/secrets/index.js +4 -0
- package/dist/secrets/index.js.map +1 -0
- package/dist/secrets/secrets-backend-doks.plugin.d.ts +3 -0
- package/dist/secrets/secrets-backend-doks.plugin.d.ts.map +1 -0
- package/dist/secrets/secrets-backend-doks.plugin.js +35 -0
- package/dist/secrets/secrets-backend-doks.plugin.js.map +1 -0
- package/dist/storage/index.d.ts +50 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +92 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/spaces-keys.d.ts +25 -0
- package/dist/storage/spaces-keys.d.ts.map +1 -0
- package/dist/storage/spaces-keys.js +32 -0
- package/dist/storage/spaces-keys.js.map +1 -0
- package/package.json +172 -4
|
@@ -0,0 +1,714 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import type { RuntimeClient } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import { CredentialCandidatesSchema } from '@vibesdotdev/secrets/schemas';
|
|
4
|
+
import { type DigitalOceanCredentialUseOutcome, type DigitalOceanSpacesCredentialUseOutcome } from './control-plane.ts';
|
|
5
|
+
export declare const DigitalOceanAuthenticatedRequestOptionsSchema: z.ZodObject<{
|
|
6
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
PUT: "PUT";
|
|
8
|
+
PATCH: "PATCH";
|
|
9
|
+
POST: "POST";
|
|
10
|
+
DELETE: "DELETE";
|
|
11
|
+
GET: "GET";
|
|
12
|
+
}>>;
|
|
13
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
14
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodInstanceOf<Blob>, z.ZodInstanceOf<FormData>, z.ZodInstanceOf<URLSearchParams>, z.ZodInstanceOf<ArrayBuffer>, z.ZodCustom<ArrayBufferView<ArrayBuffer>, ArrayBufferView<ArrayBuffer>>]>>;
|
|
15
|
+
credentialBindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"header">;
|
|
17
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
source: z.ZodLiteral<"secret">;
|
|
19
|
+
key: z.ZodString;
|
|
20
|
+
store: z.ZodOptional<z.ZodString>;
|
|
21
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
22
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
23
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
24
|
+
providerId: z.ZodString;
|
|
25
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
26
|
+
accessToken: "accessToken";
|
|
27
|
+
refreshToken: "refreshToken";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strict>]>>;
|
|
30
|
+
header: z.ZodString;
|
|
31
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
32
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"basic-auth">;
|
|
35
|
+
username: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
source: z.ZodLiteral<"secret">;
|
|
37
|
+
key: z.ZodString;
|
|
38
|
+
store: z.ZodOptional<z.ZodString>;
|
|
39
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
40
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
41
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
42
|
+
providerId: z.ZodString;
|
|
43
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
44
|
+
accessToken: "accessToken";
|
|
45
|
+
refreshToken: "refreshToken";
|
|
46
|
+
}>>;
|
|
47
|
+
}, z.core.$strict>]>>;
|
|
48
|
+
password: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
49
|
+
source: z.ZodLiteral<"secret">;
|
|
50
|
+
key: z.ZodString;
|
|
51
|
+
store: z.ZodOptional<z.ZodString>;
|
|
52
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
53
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
54
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
55
|
+
providerId: z.ZodString;
|
|
56
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
57
|
+
accessToken: "accessToken";
|
|
58
|
+
refreshToken: "refreshToken";
|
|
59
|
+
}>>;
|
|
60
|
+
}, z.core.$strict>]>>;
|
|
61
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"json-field">;
|
|
64
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
+
source: z.ZodLiteral<"secret">;
|
|
66
|
+
key: z.ZodString;
|
|
67
|
+
store: z.ZodOptional<z.ZodString>;
|
|
68
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
69
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
70
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
71
|
+
providerId: z.ZodString;
|
|
72
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
accessToken: "accessToken";
|
|
74
|
+
refreshToken: "refreshToken";
|
|
75
|
+
}>>;
|
|
76
|
+
}, z.core.$strict>]>>;
|
|
77
|
+
path: z.ZodArray<z.ZodString>;
|
|
78
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"form-field">;
|
|
81
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
82
|
+
source: z.ZodLiteral<"secret">;
|
|
83
|
+
key: z.ZodString;
|
|
84
|
+
store: z.ZodOptional<z.ZodString>;
|
|
85
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
86
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
87
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
88
|
+
providerId: z.ZodString;
|
|
89
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
90
|
+
accessToken: "accessToken";
|
|
91
|
+
refreshToken: "refreshToken";
|
|
92
|
+
}>>;
|
|
93
|
+
}, z.core.$strict>]>>;
|
|
94
|
+
field: z.ZodString;
|
|
95
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
98
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
99
|
+
source: z.ZodLiteral<"secret">;
|
|
100
|
+
key: z.ZodString;
|
|
101
|
+
store: z.ZodOptional<z.ZodString>;
|
|
102
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
103
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
104
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
105
|
+
providerId: z.ZodString;
|
|
106
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
107
|
+
accessToken: "accessToken";
|
|
108
|
+
refreshToken: "refreshToken";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>]>>;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"oauth-client-credentials">;
|
|
115
|
+
tokenEndpoint: z.ZodURL;
|
|
116
|
+
tokenEndpointBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
118
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
+
source: z.ZodLiteral<"secret">;
|
|
120
|
+
key: z.ZodString;
|
|
121
|
+
store: z.ZodOptional<z.ZodString>;
|
|
122
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
123
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
124
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
125
|
+
providerId: z.ZodString;
|
|
126
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
127
|
+
accessToken: "accessToken";
|
|
128
|
+
refreshToken: "refreshToken";
|
|
129
|
+
}>>;
|
|
130
|
+
}, z.core.$strict>]>>;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strict>>>;
|
|
134
|
+
clientId: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
135
|
+
source: z.ZodLiteral<"secret">;
|
|
136
|
+
key: z.ZodString;
|
|
137
|
+
store: z.ZodOptional<z.ZodString>;
|
|
138
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
139
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
140
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
141
|
+
providerId: z.ZodString;
|
|
142
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
accessToken: "accessToken";
|
|
144
|
+
refreshToken: "refreshToken";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strict>]>>;
|
|
147
|
+
clientSecret: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
148
|
+
source: z.ZodLiteral<"secret">;
|
|
149
|
+
key: z.ZodString;
|
|
150
|
+
store: z.ZodOptional<z.ZodString>;
|
|
151
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
152
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
153
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
154
|
+
providerId: z.ZodString;
|
|
155
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
accessToken: "accessToken";
|
|
157
|
+
refreshToken: "refreshToken";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strict>]>>;
|
|
160
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
161
|
+
}, z.core.$strict>], "kind">>>;
|
|
162
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
163
|
+
bodyTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
164
|
+
maxRedirects: z.ZodDefault<z.ZodNumber>;
|
|
165
|
+
joinRuntimeLifecycle: z.ZodDefault<z.ZodLiteral<true>>;
|
|
166
|
+
}, z.core.$strict>;
|
|
167
|
+
export type DigitalOceanAuthenticatedRequestOptions = z.infer<typeof DigitalOceanAuthenticatedRequestOptionsSchema>;
|
|
168
|
+
/**
|
|
169
|
+
* An ordered provider request. Candidate values never cross this boundary.
|
|
170
|
+
*
|
|
171
|
+
* `candidates` are complete references in the order to try; the factory selects
|
|
172
|
+
* one and hands it to the Secrets transport as a binding, so resolution,
|
|
173
|
+
* placement and sending all stay with the owner. `operation` is the context a
|
|
174
|
+
* guarded store issued for the caller: the factory forwards it to the transport,
|
|
175
|
+
* which hands it to the store it reads, so a backend that bootstraps its own
|
|
176
|
+
* authority through that same store receives `store-recursion` instead of a
|
|
177
|
+
* fresh resolution root that could await its own pending connection.
|
|
178
|
+
*/
|
|
179
|
+
export declare const DigitalOceanCredentialUseRequestSchema: z.ZodObject<{
|
|
180
|
+
url: z.ZodURL;
|
|
181
|
+
options: z.ZodObject<{
|
|
182
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
183
|
+
PUT: "PUT";
|
|
184
|
+
PATCH: "PATCH";
|
|
185
|
+
POST: "POST";
|
|
186
|
+
DELETE: "DELETE";
|
|
187
|
+
GET: "GET";
|
|
188
|
+
}>>;
|
|
189
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
190
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodInstanceOf<Blob>, z.ZodInstanceOf<FormData>, z.ZodInstanceOf<URLSearchParams>, z.ZodInstanceOf<ArrayBuffer>, z.ZodCustom<ArrayBufferView<ArrayBuffer>, ArrayBufferView<ArrayBuffer>>]>>;
|
|
191
|
+
credentialBindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
192
|
+
kind: z.ZodLiteral<"header">;
|
|
193
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
|
+
source: z.ZodLiteral<"secret">;
|
|
195
|
+
key: z.ZodString;
|
|
196
|
+
store: z.ZodOptional<z.ZodString>;
|
|
197
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
198
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
199
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
200
|
+
providerId: z.ZodString;
|
|
201
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
202
|
+
accessToken: "accessToken";
|
|
203
|
+
refreshToken: "refreshToken";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strict>]>>;
|
|
206
|
+
header: z.ZodString;
|
|
207
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
208
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"basic-auth">;
|
|
211
|
+
username: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
212
|
+
source: z.ZodLiteral<"secret">;
|
|
213
|
+
key: z.ZodString;
|
|
214
|
+
store: z.ZodOptional<z.ZodString>;
|
|
215
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
216
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
217
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
218
|
+
providerId: z.ZodString;
|
|
219
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
220
|
+
accessToken: "accessToken";
|
|
221
|
+
refreshToken: "refreshToken";
|
|
222
|
+
}>>;
|
|
223
|
+
}, z.core.$strict>]>>;
|
|
224
|
+
password: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
225
|
+
source: z.ZodLiteral<"secret">;
|
|
226
|
+
key: z.ZodString;
|
|
227
|
+
store: z.ZodOptional<z.ZodString>;
|
|
228
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
229
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
230
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
231
|
+
providerId: z.ZodString;
|
|
232
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
233
|
+
accessToken: "accessToken";
|
|
234
|
+
refreshToken: "refreshToken";
|
|
235
|
+
}>>;
|
|
236
|
+
}, z.core.$strict>]>>;
|
|
237
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
238
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"json-field">;
|
|
240
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
241
|
+
source: z.ZodLiteral<"secret">;
|
|
242
|
+
key: z.ZodString;
|
|
243
|
+
store: z.ZodOptional<z.ZodString>;
|
|
244
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
245
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
246
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
247
|
+
providerId: z.ZodString;
|
|
248
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
249
|
+
accessToken: "accessToken";
|
|
250
|
+
refreshToken: "refreshToken";
|
|
251
|
+
}>>;
|
|
252
|
+
}, z.core.$strict>]>>;
|
|
253
|
+
path: z.ZodArray<z.ZodString>;
|
|
254
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
255
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
256
|
+
kind: z.ZodLiteral<"form-field">;
|
|
257
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
258
|
+
source: z.ZodLiteral<"secret">;
|
|
259
|
+
key: z.ZodString;
|
|
260
|
+
store: z.ZodOptional<z.ZodString>;
|
|
261
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
262
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
263
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
264
|
+
providerId: z.ZodString;
|
|
265
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
266
|
+
accessToken: "accessToken";
|
|
267
|
+
refreshToken: "refreshToken";
|
|
268
|
+
}>>;
|
|
269
|
+
}, z.core.$strict>]>>;
|
|
270
|
+
field: z.ZodString;
|
|
271
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
272
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
274
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
275
|
+
source: z.ZodLiteral<"secret">;
|
|
276
|
+
key: z.ZodString;
|
|
277
|
+
store: z.ZodOptional<z.ZodString>;
|
|
278
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
279
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
280
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
281
|
+
providerId: z.ZodString;
|
|
282
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
283
|
+
accessToken: "accessToken";
|
|
284
|
+
refreshToken: "refreshToken";
|
|
285
|
+
}>>;
|
|
286
|
+
}, z.core.$strict>]>>;
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"oauth-client-credentials">;
|
|
291
|
+
tokenEndpoint: z.ZodURL;
|
|
292
|
+
tokenEndpointBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
294
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
295
|
+
source: z.ZodLiteral<"secret">;
|
|
296
|
+
key: z.ZodString;
|
|
297
|
+
store: z.ZodOptional<z.ZodString>;
|
|
298
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
299
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
300
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
301
|
+
providerId: z.ZodString;
|
|
302
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
303
|
+
accessToken: "accessToken";
|
|
304
|
+
refreshToken: "refreshToken";
|
|
305
|
+
}>>;
|
|
306
|
+
}, z.core.$strict>]>>;
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
}, z.core.$strict>>>;
|
|
310
|
+
clientId: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
source: z.ZodLiteral<"secret">;
|
|
312
|
+
key: z.ZodString;
|
|
313
|
+
store: z.ZodOptional<z.ZodString>;
|
|
314
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
315
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
316
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
317
|
+
providerId: z.ZodString;
|
|
318
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
319
|
+
accessToken: "accessToken";
|
|
320
|
+
refreshToken: "refreshToken";
|
|
321
|
+
}>>;
|
|
322
|
+
}, z.core.$strict>]>>;
|
|
323
|
+
clientSecret: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
324
|
+
source: z.ZodLiteral<"secret">;
|
|
325
|
+
key: z.ZodString;
|
|
326
|
+
store: z.ZodOptional<z.ZodString>;
|
|
327
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
328
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
329
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
330
|
+
providerId: z.ZodString;
|
|
331
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
332
|
+
accessToken: "accessToken";
|
|
333
|
+
refreshToken: "refreshToken";
|
|
334
|
+
}>>;
|
|
335
|
+
}, z.core.$strict>]>>;
|
|
336
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
337
|
+
}, z.core.$strict>], "kind">>>;
|
|
338
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
339
|
+
bodyTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
340
|
+
maxRedirects: z.ZodDefault<z.ZodNumber>;
|
|
341
|
+
joinRuntimeLifecycle: z.ZodDefault<z.ZodLiteral<true>>;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
signal: z.ZodOptional<z.ZodInstanceOf<AbortSignal>>;
|
|
344
|
+
candidates: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<readonly {
|
|
345
|
+
reference: {
|
|
346
|
+
source: "secret";
|
|
347
|
+
key: string;
|
|
348
|
+
store?: string | undefined;
|
|
349
|
+
operation?: object | undefined;
|
|
350
|
+
};
|
|
351
|
+
kind: "vibes-system" | "user-token" | "user-api-token" | "user-api-key" | "explicit";
|
|
352
|
+
}[], readonly {
|
|
353
|
+
reference: {
|
|
354
|
+
source: "secret";
|
|
355
|
+
key: string;
|
|
356
|
+
store?: string | undefined;
|
|
357
|
+
operation?: object | undefined;
|
|
358
|
+
};
|
|
359
|
+
kind: "vibes-system" | "user-token" | "user-api-token" | "user-api-key" | "explicit";
|
|
360
|
+
}[]>, z.ZodArray<z.ZodObject<{
|
|
361
|
+
reference: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
362
|
+
source: z.ZodLiteral<"secret">;
|
|
363
|
+
key: z.ZodString;
|
|
364
|
+
store: z.ZodOptional<z.ZodString>;
|
|
365
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
366
|
+
}, z.core.$strict>], "source">;
|
|
367
|
+
kind: z.ZodEnum<{
|
|
368
|
+
"vibes-system": "vibes-system";
|
|
369
|
+
"user-token": "user-token";
|
|
370
|
+
"user-api-token": "user-api-token";
|
|
371
|
+
"user-api-key": "user-api-key";
|
|
372
|
+
explicit: "explicit";
|
|
373
|
+
}>;
|
|
374
|
+
}, z.core.$strict>>>, z.ZodTransform<readonly {
|
|
375
|
+
reference: {
|
|
376
|
+
source: "secret";
|
|
377
|
+
key: string;
|
|
378
|
+
store?: string | undefined;
|
|
379
|
+
operation?: object | undefined;
|
|
380
|
+
};
|
|
381
|
+
kind: "vibes-system" | "user-token" | "user-api-token" | "user-api-key" | "explicit";
|
|
382
|
+
}[], {
|
|
383
|
+
reference: {
|
|
384
|
+
source: "secret";
|
|
385
|
+
key: string;
|
|
386
|
+
store?: string | undefined;
|
|
387
|
+
operation?: object | undefined;
|
|
388
|
+
};
|
|
389
|
+
kind: "vibes-system" | "user-token" | "user-api-token" | "user-api-key" | "explicit";
|
|
390
|
+
}[]>>>;
|
|
391
|
+
operation: z.ZodOptional<z.ZodCustom<Readonly<{
|
|
392
|
+
[x: string]: string | number | boolean | null | undefined;
|
|
393
|
+
traceId?: string | undefined;
|
|
394
|
+
}>, Readonly<{
|
|
395
|
+
[x: string]: string | number | boolean | null | undefined;
|
|
396
|
+
traceId?: string | undefined;
|
|
397
|
+
}>>>;
|
|
398
|
+
}, z.core.$strict>;
|
|
399
|
+
export type DigitalOceanCredentialUseRequest = z.input<typeof DigitalOceanCredentialUseRequestSchema>;
|
|
400
|
+
/** Safe account of which complete reference authenticated a request. */
|
|
401
|
+
export declare const DigitalOceanCredentialProvenanceSchema: z.ZodObject<{
|
|
402
|
+
reference: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
403
|
+
source: z.ZodLiteral<"secret">;
|
|
404
|
+
key: z.ZodString;
|
|
405
|
+
store: z.ZodOptional<z.ZodString>;
|
|
406
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
407
|
+
}, z.core.$strict>], "source">;
|
|
408
|
+
kind: z.ZodEnum<{
|
|
409
|
+
"vibes-system": "vibes-system";
|
|
410
|
+
"user-token": "user-token";
|
|
411
|
+
"user-api-token": "user-api-token";
|
|
412
|
+
"user-api-key": "user-api-key";
|
|
413
|
+
explicit: "explicit";
|
|
414
|
+
}>;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
export type DigitalOceanCredentialProvenance = z.infer<typeof DigitalOceanCredentialProvenanceSchema>;
|
|
417
|
+
export declare const DigitalOceanModelAuthenticatedRequestSchema: z.ZodObject<{
|
|
418
|
+
operation: z.ZodOptional<z.ZodCustom<Readonly<{
|
|
419
|
+
[x: string]: string | number | boolean | null | undefined;
|
|
420
|
+
traceId?: string | undefined;
|
|
421
|
+
}>, Readonly<{
|
|
422
|
+
[x: string]: string | number | boolean | null | undefined;
|
|
423
|
+
traceId?: string | undefined;
|
|
424
|
+
}>>>;
|
|
425
|
+
url: z.ZodURL;
|
|
426
|
+
options: z.ZodObject<{
|
|
427
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
428
|
+
PUT: "PUT";
|
|
429
|
+
PATCH: "PATCH";
|
|
430
|
+
POST: "POST";
|
|
431
|
+
DELETE: "DELETE";
|
|
432
|
+
GET: "GET";
|
|
433
|
+
}>>;
|
|
434
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
435
|
+
body: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInstanceOf<ReadableStream<Uint8Array<ArrayBufferLike>>>, z.ZodInstanceOf<Blob>, z.ZodInstanceOf<FormData>, z.ZodInstanceOf<URLSearchParams>, z.ZodInstanceOf<ArrayBuffer>, z.ZodCustom<ArrayBufferView<ArrayBuffer>, ArrayBufferView<ArrayBuffer>>]>>;
|
|
436
|
+
credentialBindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
437
|
+
kind: z.ZodLiteral<"header">;
|
|
438
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
|
+
source: z.ZodLiteral<"secret">;
|
|
440
|
+
key: z.ZodString;
|
|
441
|
+
store: z.ZodOptional<z.ZodString>;
|
|
442
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
443
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
444
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
445
|
+
providerId: z.ZodString;
|
|
446
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
447
|
+
accessToken: "accessToken";
|
|
448
|
+
refreshToken: "refreshToken";
|
|
449
|
+
}>>;
|
|
450
|
+
}, z.core.$strict>]>>;
|
|
451
|
+
header: z.ZodString;
|
|
452
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
453
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
454
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
455
|
+
kind: z.ZodLiteral<"basic-auth">;
|
|
456
|
+
username: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
457
|
+
source: z.ZodLiteral<"secret">;
|
|
458
|
+
key: z.ZodString;
|
|
459
|
+
store: z.ZodOptional<z.ZodString>;
|
|
460
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
461
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
462
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
463
|
+
providerId: z.ZodString;
|
|
464
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
465
|
+
accessToken: "accessToken";
|
|
466
|
+
refreshToken: "refreshToken";
|
|
467
|
+
}>>;
|
|
468
|
+
}, z.core.$strict>]>>;
|
|
469
|
+
password: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
470
|
+
source: z.ZodLiteral<"secret">;
|
|
471
|
+
key: z.ZodString;
|
|
472
|
+
store: z.ZodOptional<z.ZodString>;
|
|
473
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
474
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
475
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
476
|
+
providerId: z.ZodString;
|
|
477
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
478
|
+
accessToken: "accessToken";
|
|
479
|
+
refreshToken: "refreshToken";
|
|
480
|
+
}>>;
|
|
481
|
+
}, z.core.$strict>]>>;
|
|
482
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
483
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
484
|
+
kind: z.ZodLiteral<"json-field">;
|
|
485
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
486
|
+
source: z.ZodLiteral<"secret">;
|
|
487
|
+
key: z.ZodString;
|
|
488
|
+
store: z.ZodOptional<z.ZodString>;
|
|
489
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
490
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
491
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
492
|
+
providerId: z.ZodString;
|
|
493
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
494
|
+
accessToken: "accessToken";
|
|
495
|
+
refreshToken: "refreshToken";
|
|
496
|
+
}>>;
|
|
497
|
+
}, z.core.$strict>]>>;
|
|
498
|
+
path: z.ZodArray<z.ZodString>;
|
|
499
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
500
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
501
|
+
kind: z.ZodLiteral<"form-field">;
|
|
502
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
503
|
+
source: z.ZodLiteral<"secret">;
|
|
504
|
+
key: z.ZodString;
|
|
505
|
+
store: z.ZodOptional<z.ZodString>;
|
|
506
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
507
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
508
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
509
|
+
providerId: z.ZodString;
|
|
510
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
511
|
+
accessToken: "accessToken";
|
|
512
|
+
refreshToken: "refreshToken";
|
|
513
|
+
}>>;
|
|
514
|
+
}, z.core.$strict>]>>;
|
|
515
|
+
field: z.ZodString;
|
|
516
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
517
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
518
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
519
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
520
|
+
source: z.ZodLiteral<"secret">;
|
|
521
|
+
key: z.ZodString;
|
|
522
|
+
store: z.ZodOptional<z.ZodString>;
|
|
523
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
524
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
525
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
526
|
+
providerId: z.ZodString;
|
|
527
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
528
|
+
accessToken: "accessToken";
|
|
529
|
+
refreshToken: "refreshToken";
|
|
530
|
+
}>>;
|
|
531
|
+
}, z.core.$strict>]>>;
|
|
532
|
+
name: z.ZodString;
|
|
533
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
535
|
+
kind: z.ZodLiteral<"oauth-client-credentials">;
|
|
536
|
+
tokenEndpoint: z.ZodURL;
|
|
537
|
+
tokenEndpointBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
538
|
+
kind: z.ZodLiteral<"path-segment">;
|
|
539
|
+
candidates: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
540
|
+
source: z.ZodLiteral<"secret">;
|
|
541
|
+
key: z.ZodString;
|
|
542
|
+
store: z.ZodOptional<z.ZodString>;
|
|
543
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
544
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
545
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
546
|
+
providerId: z.ZodString;
|
|
547
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
548
|
+
accessToken: "accessToken";
|
|
549
|
+
refreshToken: "refreshToken";
|
|
550
|
+
}>>;
|
|
551
|
+
}, z.core.$strict>]>>;
|
|
552
|
+
name: z.ZodString;
|
|
553
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
554
|
+
}, z.core.$strict>>>;
|
|
555
|
+
clientId: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
556
|
+
source: z.ZodLiteral<"secret">;
|
|
557
|
+
key: z.ZodString;
|
|
558
|
+
store: z.ZodOptional<z.ZodString>;
|
|
559
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
560
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
561
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
562
|
+
providerId: z.ZodString;
|
|
563
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
564
|
+
accessToken: "accessToken";
|
|
565
|
+
refreshToken: "refreshToken";
|
|
566
|
+
}>>;
|
|
567
|
+
}, z.core.$strict>]>>;
|
|
568
|
+
clientSecret: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
569
|
+
source: z.ZodLiteral<"secret">;
|
|
570
|
+
key: z.ZodString;
|
|
571
|
+
store: z.ZodOptional<z.ZodString>;
|
|
572
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
573
|
+
}, z.core.$strict>], "source">, z.ZodObject<{
|
|
574
|
+
source: z.ZodLiteral<"oauth-account">;
|
|
575
|
+
providerId: z.ZodString;
|
|
576
|
+
token: z.ZodDefault<z.ZodEnum<{
|
|
577
|
+
accessToken: "accessToken";
|
|
578
|
+
refreshToken: "refreshToken";
|
|
579
|
+
}>>;
|
|
580
|
+
}, z.core.$strict>]>>;
|
|
581
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
582
|
+
}, z.core.$strict>], "kind">>>;
|
|
583
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
584
|
+
bodyTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
585
|
+
maxRedirects: z.ZodDefault<z.ZodNumber>;
|
|
586
|
+
joinRuntimeLifecycle: z.ZodDefault<z.ZodLiteral<true>>;
|
|
587
|
+
}, z.core.$strict>;
|
|
588
|
+
signal: z.ZodOptional<z.ZodInstanceOf<AbortSignal>>;
|
|
589
|
+
}, z.core.$strict>;
|
|
590
|
+
export type DigitalOceanModelAuthenticatedRequest = z.input<typeof DigitalOceanModelAuthenticatedRequestSchema>;
|
|
591
|
+
export declare const DigitalOceanModelCredentialProvenanceSchema: z.ZodObject<{
|
|
592
|
+
reference: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
593
|
+
source: z.ZodLiteral<"secret">;
|
|
594
|
+
key: z.ZodString;
|
|
595
|
+
store: z.ZodOptional<z.ZodString>;
|
|
596
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
597
|
+
}, z.core.$strict>], "source">;
|
|
598
|
+
kind: z.ZodLiteral<"model-access-key">;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
export type DigitalOceanModelCredentialProvenance = z.infer<typeof DigitalOceanModelCredentialProvenanceSchema>;
|
|
601
|
+
/**
|
|
602
|
+
* Ordered references for a non-token credential availability check. This
|
|
603
|
+
* reports presence only; it does not sign, authenticate, or execute a request.
|
|
604
|
+
*/
|
|
605
|
+
export declare const DigitalOceanCredentialUseReadSchema: z.ZodObject<{
|
|
606
|
+
candidates: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<readonly {
|
|
607
|
+
source: "secret";
|
|
608
|
+
key: string;
|
|
609
|
+
store?: string | undefined;
|
|
610
|
+
operation?: object | undefined;
|
|
611
|
+
}[], readonly {
|
|
612
|
+
source: "secret";
|
|
613
|
+
key: string;
|
|
614
|
+
store?: string | undefined;
|
|
615
|
+
operation?: object | undefined;
|
|
616
|
+
}[]>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
617
|
+
source: z.ZodLiteral<"secret">;
|
|
618
|
+
key: z.ZodString;
|
|
619
|
+
store: z.ZodOptional<z.ZodString>;
|
|
620
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
621
|
+
}, z.core.$strict>], "source">>>, z.ZodTransform<readonly {
|
|
622
|
+
source: "secret";
|
|
623
|
+
key: string;
|
|
624
|
+
store?: string | undefined;
|
|
625
|
+
operation?: object | undefined;
|
|
626
|
+
}[], {
|
|
627
|
+
source: "secret";
|
|
628
|
+
key: string;
|
|
629
|
+
store?: string | undefined;
|
|
630
|
+
operation?: object | undefined;
|
|
631
|
+
}[]>>>;
|
|
632
|
+
}, z.core.$strict>;
|
|
633
|
+
export type DigitalOceanCredentialUseRead = z.input<typeof DigitalOceanCredentialUseReadSchema>;
|
|
634
|
+
export declare const DigitalOceanSpacesCredentialUseRequestSchema: z.ZodObject<{
|
|
635
|
+
accessKeyId: z.ZodObject<{
|
|
636
|
+
candidates: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<readonly {
|
|
637
|
+
source: "secret";
|
|
638
|
+
key: string;
|
|
639
|
+
store?: string | undefined;
|
|
640
|
+
operation?: object | undefined;
|
|
641
|
+
}[], readonly {
|
|
642
|
+
source: "secret";
|
|
643
|
+
key: string;
|
|
644
|
+
store?: string | undefined;
|
|
645
|
+
operation?: object | undefined;
|
|
646
|
+
}[]>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
647
|
+
source: z.ZodLiteral<"secret">;
|
|
648
|
+
key: z.ZodString;
|
|
649
|
+
store: z.ZodOptional<z.ZodString>;
|
|
650
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
651
|
+
}, z.core.$strict>], "source">>>, z.ZodTransform<readonly {
|
|
652
|
+
source: "secret";
|
|
653
|
+
key: string;
|
|
654
|
+
store?: string | undefined;
|
|
655
|
+
operation?: object | undefined;
|
|
656
|
+
}[], {
|
|
657
|
+
source: "secret";
|
|
658
|
+
key: string;
|
|
659
|
+
store?: string | undefined;
|
|
660
|
+
operation?: object | undefined;
|
|
661
|
+
}[]>>>;
|
|
662
|
+
}, z.core.$strict>;
|
|
663
|
+
secretAccessKey: z.ZodObject<{
|
|
664
|
+
candidates: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodCustom<readonly {
|
|
665
|
+
source: "secret";
|
|
666
|
+
key: string;
|
|
667
|
+
store?: string | undefined;
|
|
668
|
+
operation?: object | undefined;
|
|
669
|
+
}[], readonly {
|
|
670
|
+
source: "secret";
|
|
671
|
+
key: string;
|
|
672
|
+
store?: string | undefined;
|
|
673
|
+
operation?: object | undefined;
|
|
674
|
+
}[]>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
675
|
+
source: z.ZodLiteral<"secret">;
|
|
676
|
+
key: z.ZodString;
|
|
677
|
+
store: z.ZodOptional<z.ZodString>;
|
|
678
|
+
operation: z.ZodOptional<z.ZodCustom<object, object>>;
|
|
679
|
+
}, z.core.$strict>], "source">>>, z.ZodTransform<readonly {
|
|
680
|
+
source: "secret";
|
|
681
|
+
key: string;
|
|
682
|
+
store?: string | undefined;
|
|
683
|
+
operation?: object | undefined;
|
|
684
|
+
}[], {
|
|
685
|
+
source: "secret";
|
|
686
|
+
key: string;
|
|
687
|
+
store?: string | undefined;
|
|
688
|
+
operation?: object | undefined;
|
|
689
|
+
}[]>>>;
|
|
690
|
+
}, z.core.$strict>;
|
|
691
|
+
}, z.core.$strict>;
|
|
692
|
+
export type DigitalOceanSpacesCredentialUseRequest = z.input<typeof DigitalOceanSpacesCredentialUseRequestSchema>;
|
|
693
|
+
/**
|
|
694
|
+
* The credential-use surface: authenticated transport plus the non-token
|
|
695
|
+
* credential reads the package supports. Each returns safe outcomes — the
|
|
696
|
+
* selected reference and where it answered — never a resolved value.
|
|
697
|
+
*/
|
|
698
|
+
export interface DigitalOceanCredentialUseClient extends RuntimeClient {
|
|
699
|
+
sendAuthenticatedRequest(input: DigitalOceanCredentialUseRequest): Promise<{
|
|
700
|
+
response: Response;
|
|
701
|
+
provenance: DigitalOceanCredentialProvenance | undefined;
|
|
702
|
+
}>;
|
|
703
|
+
sendModelAuthenticatedRequest(input: DigitalOceanModelAuthenticatedRequest): Promise<{
|
|
704
|
+
response: Response;
|
|
705
|
+
provenance: DigitalOceanModelCredentialProvenance;
|
|
706
|
+
}>;
|
|
707
|
+
/** Read one credential through its ordered references; only provenance returns. */
|
|
708
|
+
useCredential(input: DigitalOceanCredentialUseRead): Promise<DigitalOceanCredentialUseOutcome>;
|
|
709
|
+
/** Read a Spaces key pair; each half reports its own selected reference. */
|
|
710
|
+
useSpacesCredentials(input: DigitalOceanSpacesCredentialUseRequest): Promise<DigitalOceanSpacesCredentialUseOutcome>;
|
|
711
|
+
}
|
|
712
|
+
/** Re-exported so a caller can name the candidate contract without the owner subpath. */
|
|
713
|
+
export { CredentialCandidatesSchema };
|
|
714
|
+
//# sourceMappingURL=credential-use.d.ts.map
|