@clawscarf/cli 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/THIRD_PARTY_NOTICES.md +102 -0
- package/deploy/execution/browser/LICENSE.playwright +202 -0
- package/deploy/execution/browser/seccomp.json +640 -0
- package/deploy/execution/browser-node/configuration.js +85 -0
- package/deploy/execution/browser-node/operator.js +167 -0
- package/deploy/execution/network/node-ingress.cfg +35 -0
- package/deploy/models/catalog.json +275 -0
- package/deploy/openshell/policy.yaml +24 -0
- package/generated/http/LICENSE.md +21 -0
- package/generated/http/client/client.gen.d.ts +2 -0
- package/generated/http/client/client.gen.js +216 -0
- package/generated/http/client/index.d.ts +10 -0
- package/generated/http/client/index.js +6 -0
- package/generated/http/client/types.gen.d.ts +120 -0
- package/generated/http/client/types.gen.js +2 -0
- package/generated/http/client/utils.gen.d.ts +37 -0
- package/generated/http/client/utils.gen.js +228 -0
- package/generated/http/core/auth.gen.d.ts +25 -0
- package/generated/http/core/auth.gen.js +14 -0
- package/generated/http/core/bodySerializer.gen.d.ts +25 -0
- package/generated/http/core/bodySerializer.gen.js +57 -0
- package/generated/http/core/params.gen.d.ts +43 -0
- package/generated/http/core/params.gen.js +109 -0
- package/generated/http/core/pathSerializer.gen.d.ts +33 -0
- package/generated/http/core/pathSerializer.gen.js +106 -0
- package/generated/http/core/queryKeySerializer.gen.d.ts +18 -0
- package/generated/http/core/queryKeySerializer.gen.js +92 -0
- package/generated/http/core/serverSentEvents.gen.d.ts +71 -0
- package/generated/http/core/serverSentEvents.gen.js +132 -0
- package/generated/http/core/types.gen.d.ts +83 -0
- package/generated/http/core/types.gen.js +2 -0
- package/generated/http/core/utils.gen.d.ts +19 -0
- package/generated/http/core/utils.gen.js +87 -0
- package/package.json +37 -0
- package/packs/README.md +130 -0
- package/packs/research-team/pack.json +20 -0
- package/packs/research-team/researcher/CLAW.md +19 -0
- package/packs/research-team/researcher/package.json +8 -0
- package/packs/research-team/researcher/profiles/openclaw.yml +6 -0
- package/packs/research-team/reviewer/CLAW.md +19 -0
- package/packs/research-team/reviewer/package.json +8 -0
- package/packs/research-team/reviewer/profiles/openclaw.yml +6 -0
- package/pnpm-lock.yaml +7158 -0
- package/recipes/README.md +37 -0
- package/recipes/team-server/recipe.json +28 -0
- package/release/README.md +137 -0
- package/release/components.json +29 -0
- package/release/operator.md +63 -0
- package/runtime/configuration.js +135 -0
- package/runtime/connections-configuration.js +70 -0
- package/runtime/model-contract.js +92 -0
- package/runtime/releases/0.1.0-alpha.1.json +37 -0
- package/scripts/clawscarf.js +92 -0
- package/scripts/cloud/login.js +134 -0
- package/scripts/cloud/registration.js +232 -0
- package/scripts/cloud/url.js +9 -0
- package/scripts/connections.js +193 -0
- package/scripts/controller.js +143 -0
- package/scripts/deployment/browser-node-compose.js +81 -0
- package/scripts/deployment/browser-node-helper.js +9 -0
- package/scripts/deployment/browser-node-pairing.js +165 -0
- package/scripts/deployment/browser-node.js +154 -0
- package/scripts/deployment/browser.js +143 -0
- package/scripts/deployment/certificates.js +76 -0
- package/scripts/deployment/compose.js +191 -0
- package/scripts/deployment/configuration.js +275 -0
- package/scripts/deployment/connection-policy.js +80 -0
- package/scripts/deployment/connection-settings.js +60 -0
- package/scripts/deployment/connections-runtime.js +31 -0
- package/scripts/deployment/connections.js +213 -0
- package/scripts/deployment/controller-compose.js +59 -0
- package/scripts/deployment/database.js +199 -0
- package/scripts/deployment/entrypoint.js +7 -0
- package/scripts/deployment/images.js +17 -0
- package/scripts/deployment/initial-services.js +53 -0
- package/scripts/deployment/launch.js +177 -0
- package/scripts/deployment/logs.js +15 -0
- package/scripts/deployment/model-gateway-compose.js +74 -0
- package/scripts/deployment/model-gateway.js +125 -0
- package/scripts/deployment/models.js +82 -0
- package/scripts/deployment/networks.js +354 -0
- package/scripts/deployment/policy.js +56 -0
- package/scripts/deployment/preflight.js +124 -0
- package/scripts/deployment/prepare.js +205 -0
- package/scripts/deployment/process.js +70 -0
- package/scripts/deployment/relay.js +58 -0
- package/scripts/deployment/runtime-binding.js +100 -0
- package/scripts/deployment/runtime.js +232 -0
- package/scripts/deployment/state.js +154 -0
- package/scripts/deployment/team.js +76 -0
- package/scripts/deployment/upgrade-rpc.py +148 -0
- package/scripts/deployment/upgrade-state.js +47 -0
- package/scripts/deployment/upgrade.js +298 -0
- package/scripts/deployment/volumes.js +24 -0
- package/scripts/errors.js +9 -0
- package/scripts/installation/administrator.js +23 -0
- package/scripts/installation/command.js +176 -0
- package/scripts/installation/configuration.js +104 -0
- package/scripts/installation/configure.js +122 -0
- package/scripts/installation/delete.js +111 -0
- package/scripts/installation/doctor.js +8 -0
- package/scripts/installation/errors.js +8 -0
- package/scripts/installation/files.js +51 -0
- package/scripts/installation/installer/cloud.js +22 -0
- package/scripts/installation/installer/collect.js +245 -0
- package/scripts/installation/installer/inputs.js +59 -0
- package/scripts/installation/installer/menu.js +49 -0
- package/scripts/installation/installer/prompts.js +139 -0
- package/scripts/installation/installer/run.js +251 -0
- package/scripts/installation/installer/secrets.js +16 -0
- package/scripts/installation/installer/sections/access.js +69 -0
- package/scripts/installation/installer/sections/certificates.js +18 -0
- package/scripts/installation/installer/sections/connections.js +4 -0
- package/scripts/installation/installer/sections/external-models.js +35 -0
- package/scripts/installation/installer/sections/models.js +119 -0
- package/scripts/installation/installer/sections/packs.js +82 -0
- package/scripts/installation/installer/sections/resources.js +10 -0
- package/scripts/installation/installer/settings.js +192 -0
- package/scripts/installation/installer/summary.js +44 -0
- package/scripts/installation/lifecycle.js +127 -0
- package/scripts/installation/location.js +3 -0
- package/scripts/installation/models.js +42 -0
- package/scripts/installation/options.js +360 -0
- package/scripts/installation/packs.js +150 -0
- package/scripts/installation/plan.js +121 -0
- package/scripts/installation/prerequisites.js +170 -0
- package/scripts/installation/recipes/catalog.js +55 -0
- package/scripts/installation/recipes/definition.js +32 -0
- package/scripts/installation/reconfigure.js +255 -0
- package/scripts/installation/requirements.js +23 -0
- package/scripts/installation/resolve.js +217 -0
- package/scripts/installation/runtime.js +87 -0
- package/scripts/installation/save.js +95 -0
- package/scripts/installation/setup.js +91 -0
- package/scripts/models/catalog.js +9 -0
- package/scripts/models/configuration.js +184 -0
- package/scripts/models/credentials.js +132 -0
- package/scripts/models/runtime.js +87 -0
- package/scripts/output.js +34 -0
- package/scripts/packs/connections.js +95 -0
- package/scripts/packs/lifecycle.js +125 -0
- package/scripts/packs/model.js +66 -0
- package/scripts/packs/native.js +69 -0
- package/scripts/packs/openshell.js +148 -0
- package/scripts/packs/policy.js +189 -0
- package/scripts/packs/requirements.in +1 -0
- package/scripts/packs/requirements.js +11 -0
- package/scripts/packs/requirements.txt +116 -0
- package/scripts/packs/source.js +90 -0
- package/scripts/packs/transport.py +68 -0
- package/scripts/people.js +52 -0
- package/scripts/release/create.js +62 -0
- package/scripts/release/definition.js +51 -0
- package/scripts/session.js +27 -0
- package/services/access/generated/client.gen.d.ts +12 -0
- package/services/access/generated/client.gen.js +3 -0
- package/services/access/generated/fastify.gen.d.ts +49 -0
- package/services/access/generated/fastify.gen.js +2 -0
- package/services/access/generated/index.d.ts +2 -0
- package/services/access/generated/index.js +2 -0
- package/services/access/generated/sdk.gen.d.ts +28 -0
- package/services/access/generated/sdk.gen.js +107 -0
- package/services/access/generated/types.gen.d.ts +349 -0
- package/services/access/generated/types.gen.js +2 -0
- package/services/access/migrations/001_access.sql +39 -0
- package/services/access/migrations/002_administrator_setup.sql +16 -0
- package/services/access/migrations/003_local_login_completion.sql +5 -0
- package/services/access/migrations/004_invitations.sql +21 -0
- package/services/access/repo/postgres.js +341 -0
- package/services/access/repo/session-logout.js +28 -0
- package/services/access/types/credential.js +2 -0
- package/services/access/types/errors.js +7 -0
- package/services/access/types/ingress.js +1 -0
- package/services/access/types/model.js +1 -0
- package/services/access/types/native-errors.js +7 -0
- package/services/access/types/native.js +1 -0
- package/services/cloud/generated/client.gen.d.ts +12 -0
- package/services/cloud/generated/client.gen.js +3 -0
- package/services/cloud/generated/index.d.ts +2 -0
- package/services/cloud/generated/index.js +2 -0
- package/services/cloud/generated/sdk.gen.d.ts +145 -0
- package/services/cloud/generated/sdk.gen.js +488 -0
- package/services/cloud/generated/types.gen.d.ts +2034 -0
- package/services/cloud/generated/types.gen.js +2 -0
- package/services/connections/cloud/generated/client.gen.d.ts +12 -0
- package/services/connections/cloud/generated/client.gen.js +3 -0
- package/services/connections/cloud/generated/fastify.gen.d.ts +68 -0
- package/services/connections/cloud/generated/fastify.gen.js +2 -0
- package/services/connections/cloud/generated/index.d.ts +2 -0
- package/services/connections/cloud/generated/index.js +2 -0
- package/services/connections/cloud/generated/sdk.gen.d.ts +95 -0
- package/services/connections/cloud/generated/sdk.gen.js +210 -0
- package/services/connections/cloud/generated/types.gen.d.ts +1044 -0
- package/services/connections/cloud/generated/types.gen.js +2 -0
- package/services/connections/migrations/001_connections.sql +220 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Client, type ClientOptions, type Config } from '../../../../generated/http/client/index.js';
|
|
2
|
+
import type { ClientOptions as ClientOptions2 } from './types.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* The `createClientConfig()` function will be called on client initialization
|
|
5
|
+
* and the returned object will become the client's initial configuration.
|
|
6
|
+
*
|
|
7
|
+
* You may want to initialize your client this way instead of calling
|
|
8
|
+
* `setConfig()`. This is useful for example if you're using Next.js
|
|
9
|
+
* to ensure your client always has the correct values.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
12
|
+
export declare const client: Client;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { RouteHandler } from 'fastify';
|
|
2
|
+
import type { CancelConnectionSetupData, CancelConnectionSetupErrors, CancelConnectionSetupResponses, CompleteConnectionSetupData, CompleteConnectionSetupResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, DisconnectConnectionData, DisconnectConnectionErrors, DisconnectConnectionResponses, GetConnectionData, GetConnectionErrors, GetConnectionResponses, GetConnectionSetupData, GetConnectionSetupErrors, GetConnectionSetupResponses, GetConnectionUsageErrors, GetConnectionUsageResponses, GetConnectorData, GetConnectorErrors, GetConnectorResponses, ListConnectionAgentsErrors, ListConnectionAgentsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListConnectorsData, ListConnectorsErrors, ListConnectorsResponses, RefreshConnectionData, RefreshConnectionErrors, RefreshConnectionResponses, StartConnectionSetupData, StartConnectionSetupErrors, StartConnectionSetupResponses, UpdateConnectionData, UpdateConnectionErrors, UpdateConnectionResponses } from './types.gen.js';
|
|
3
|
+
export type RouteHandlers = {
|
|
4
|
+
listConnectors: RouteHandler<{
|
|
5
|
+
Querystring?: ListConnectorsData['query'];
|
|
6
|
+
Reply: ListConnectorsErrors & ListConnectorsResponses;
|
|
7
|
+
}>;
|
|
8
|
+
getConnector: RouteHandler<{
|
|
9
|
+
Params: GetConnectorData['path'];
|
|
10
|
+
Reply: GetConnectorErrors & GetConnectorResponses;
|
|
11
|
+
}>;
|
|
12
|
+
listConnections: RouteHandler<{
|
|
13
|
+
Querystring?: ListConnectionsData['query'];
|
|
14
|
+
Reply: ListConnectionsErrors & ListConnectionsResponses;
|
|
15
|
+
}>;
|
|
16
|
+
createConnection: RouteHandler<{
|
|
17
|
+
Body: CreateConnectionData['body'];
|
|
18
|
+
Headers: CreateConnectionData['headers'];
|
|
19
|
+
Reply: CreateConnectionErrors & CreateConnectionResponses;
|
|
20
|
+
}>;
|
|
21
|
+
disconnectConnection: RouteHandler<{
|
|
22
|
+
Headers: DisconnectConnectionData['headers'];
|
|
23
|
+
Params: DisconnectConnectionData['path'];
|
|
24
|
+
Reply: DisconnectConnectionErrors & DisconnectConnectionResponses;
|
|
25
|
+
}>;
|
|
26
|
+
getConnection: RouteHandler<{
|
|
27
|
+
Params: GetConnectionData['path'];
|
|
28
|
+
Reply: GetConnectionErrors & GetConnectionResponses;
|
|
29
|
+
}>;
|
|
30
|
+
updateConnection: RouteHandler<{
|
|
31
|
+
Body: UpdateConnectionData['body'];
|
|
32
|
+
Headers: UpdateConnectionData['headers'];
|
|
33
|
+
Params: UpdateConnectionData['path'];
|
|
34
|
+
Reply: UpdateConnectionErrors & UpdateConnectionResponses;
|
|
35
|
+
}>;
|
|
36
|
+
startConnectionSetup: RouteHandler<{
|
|
37
|
+
Body: StartConnectionSetupData['body'];
|
|
38
|
+
Headers: StartConnectionSetupData['headers'];
|
|
39
|
+
Params: StartConnectionSetupData['path'];
|
|
40
|
+
Reply: StartConnectionSetupErrors & StartConnectionSetupResponses;
|
|
41
|
+
}>;
|
|
42
|
+
cancelConnectionSetup: RouteHandler<{
|
|
43
|
+
Headers: CancelConnectionSetupData['headers'];
|
|
44
|
+
Params: CancelConnectionSetupData['path'];
|
|
45
|
+
Reply: CancelConnectionSetupErrors & CancelConnectionSetupResponses;
|
|
46
|
+
}>;
|
|
47
|
+
getConnectionSetup: RouteHandler<{
|
|
48
|
+
Params: GetConnectionSetupData['path'];
|
|
49
|
+
Reply: GetConnectionSetupErrors & GetConnectionSetupResponses;
|
|
50
|
+
}>;
|
|
51
|
+
refreshConnection: RouteHandler<{
|
|
52
|
+
Headers: RefreshConnectionData['headers'];
|
|
53
|
+
Params: RefreshConnectionData['path'];
|
|
54
|
+
Reply: RefreshConnectionErrors & RefreshConnectionResponses;
|
|
55
|
+
}>;
|
|
56
|
+
completeConnectionSetup: RouteHandler<{
|
|
57
|
+
Body: CompleteConnectionSetupData['body'];
|
|
58
|
+
Headers: CompleteConnectionSetupData['headers'];
|
|
59
|
+
Params: CompleteConnectionSetupData['path'];
|
|
60
|
+
Reply: CompleteConnectionSetupResponses;
|
|
61
|
+
}>;
|
|
62
|
+
getConnectionUsage: RouteHandler<{
|
|
63
|
+
Reply: GetConnectionUsageErrors & GetConnectionUsageResponses;
|
|
64
|
+
}>;
|
|
65
|
+
listConnectionAgents: RouteHandler<{
|
|
66
|
+
Reply: ListConnectionAgentsErrors & ListConnectionAgentsResponses;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { cancelConnectionSetup, completeConnectionSetup, createConnection, disconnectConnection, getConnection, getConnectionSetup, getConnectionUsage, getConnector, listConnectionAgents, listConnections, listConnectors, type Options, refreshConnection, startConnectionSetup, updateConnection } from './sdk.gen.js';
|
|
2
|
+
export type { CancelConnectionSetupData, CancelConnectionSetupError, CancelConnectionSetupErrors, CancelConnectionSetupResponse, CancelConnectionSetupResponses, ClientOptions, CompleteConnectionSetupData, CompleteConnectionSetupError, CompleteConnectionSetupErrors, CompleteConnectionSetupResponse, CompleteConnectionSetupResponses, Connection, ConnectionFailure, ConnectionId, ConnectionList, ConnectionProblem, ConnectionReturnDestination, ConnectionRevision, ConnectionSetup, ConnectionSetupContinuation, ConnectionSetupId, ConnectionUsage, Connector, ConnectorAgentGrant, ConnectorId, ConnectorList, CreateConnection, CreateConnectionData, CreateConnectionError, CreateConnectionErrors, CreateConnectionResponse, CreateConnectionResponses, DisconnectConnectionData, DisconnectConnectionError, DisconnectConnectionErrors, DisconnectConnectionResponse, DisconnectConnectionResponses, GetConnectionData, GetConnectionError, GetConnectionErrors, GetConnectionResponse, GetConnectionResponses, GetConnectionSetupData, GetConnectionSetupError, GetConnectionSetupErrors, GetConnectionSetupResponse, GetConnectionSetupResponses, GetConnectionUsageData, GetConnectionUsageError, GetConnectionUsageErrors, GetConnectionUsageResponse, GetConnectionUsageResponses, GetConnectorData, GetConnectorError, GetConnectorErrors, GetConnectorResponse, GetConnectorResponses, Id, IdempotencyKey, ListConnectionAgentsData, ListConnectionAgentsError, ListConnectionAgentsErrors, ListConnectionAgentsResponse, ListConnectionAgentsResponses, ListConnectionsData, ListConnectionsError, ListConnectionsErrors, ListConnectionsResponse, ListConnectionsResponses, ListConnectorsData, ListConnectorsError, ListConnectorsErrors, ListConnectorsResponse, ListConnectorsResponses, Problem, RefreshConnectionData, RefreshConnectionError, RefreshConnectionErrors, RefreshConnectionResponse, RefreshConnectionResponses, RetryGuidance, StartConnectionSetup, StartConnectionSetupData, StartConnectionSetupError, StartConnectionSetupErrors, StartConnectionSetupResponse, StartConnectionSetupResponses, UpdateConnection, UpdateConnectionData, UpdateConnectionError, UpdateConnectionErrors, UpdateConnectionResponse, UpdateConnectionResponses } from './types.gen.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export { cancelConnectionSetup, completeConnectionSetup, createConnection, disconnectConnection, getConnection, getConnectionSetup, getConnectionUsage, getConnector, listConnectionAgents, listConnections, listConnectors, refreshConnection, startConnectionSetup, updateConnection } from './sdk.gen.js';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from '../../../../generated/http/client/index.js';
|
|
2
|
+
import type { CancelConnectionSetupData, CancelConnectionSetupErrors, CancelConnectionSetupResponses, CompleteConnectionSetupData, CompleteConnectionSetupErrors, CompleteConnectionSetupResponses, CreateConnectionData, CreateConnectionErrors, CreateConnectionResponses, DisconnectConnectionData, DisconnectConnectionErrors, DisconnectConnectionResponses, GetConnectionData, GetConnectionErrors, GetConnectionResponses, GetConnectionSetupData, GetConnectionSetupErrors, GetConnectionSetupResponses, GetConnectionUsageData, GetConnectionUsageErrors, GetConnectionUsageResponses, GetConnectorData, GetConnectorErrors, GetConnectorResponses, ListConnectionAgentsData, ListConnectionAgentsErrors, ListConnectionAgentsResponses, ListConnectionsData, ListConnectionsErrors, ListConnectionsResponses, ListConnectorsData, ListConnectorsErrors, ListConnectorsResponses, RefreshConnectionData, RefreshConnectionErrors, RefreshConnectionResponses, StartConnectionSetupData, StartConnectionSetupErrors, StartConnectionSetupResponses, UpdateConnectionData, UpdateConnectionErrors, UpdateConnectionResponses } from './types.gen.js';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Browse available connectors
|
|
18
|
+
*
|
|
19
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
20
|
+
*/
|
|
21
|
+
export declare const listConnectors: <ThrowOnError extends boolean = false>(options?: Options<ListConnectorsData, ThrowOnError>) => RequestResult<ListConnectorsResponses, ListConnectorsErrors, ThrowOnError>;
|
|
22
|
+
/**
|
|
23
|
+
* Read connector metadata
|
|
24
|
+
*
|
|
25
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
26
|
+
*/
|
|
27
|
+
export declare const getConnector: <ThrowOnError extends boolean = false>(options: Options<GetConnectorData, ThrowOnError>) => RequestResult<GetConnectorResponses, GetConnectorErrors, ThrowOnError>;
|
|
28
|
+
/**
|
|
29
|
+
* List server connections
|
|
30
|
+
*
|
|
31
|
+
* Return connection metadata and setup status after verifying current native administrator authority. Credentials and setup continuation URLs are excluded. A failed read never establishes an empty collection.
|
|
32
|
+
*/
|
|
33
|
+
export declare const listConnections: <ThrowOnError extends boolean = false>(options?: Options<ListConnectionsData, ThrowOnError>) => RequestResult<ListConnectionsResponses, ListConnectionsErrors, ThrowOnError>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a named connection
|
|
36
|
+
*
|
|
37
|
+
* Create a named server-owned connection after verifying current native administrator authority. This neither authorizes a provider account nor starts external authentication. Agent grants are checked before activation. Identical authorized retries return the same record.
|
|
38
|
+
*/
|
|
39
|
+
export declare const createConnection: <ThrowOnError extends boolean = false>(options: Options<CreateConnectionData, ThrowOnError>) => RequestResult<CreateConnectionResponses, CreateConnectionErrors, ThrowOnError>;
|
|
40
|
+
/**
|
|
41
|
+
* Disconnect an account
|
|
42
|
+
*
|
|
43
|
+
* Revoke local use immediately and cancel pending setup. Provider cleanup is durable and may complete later. Never continue granting local use because provider deletion failed. Retain receipts and exact cleanup references.
|
|
44
|
+
*/
|
|
45
|
+
export declare const disconnectConnection: <ThrowOnError extends boolean = false>(options: Options<DisconnectConnectionData, ThrowOnError>) => RequestResult<DisconnectConnectionResponses, DisconnectConnectionErrors, ThrowOnError>;
|
|
46
|
+
/**
|
|
47
|
+
* Read a connection
|
|
48
|
+
*
|
|
49
|
+
* Read a named connection's agent grant, state, revision, setup and cleanup status, and safe failure summary. Recheck effective native administrator authority before reading. Credentials and setup continuation URLs are never included.
|
|
50
|
+
*/
|
|
51
|
+
export declare const getConnection: <ThrowOnError extends boolean = false>(options: Options<GetConnectionData, ThrowOnError>) => RequestResult<GetConnectionResponses, GetConnectionErrors, ThrowOnError>;
|
|
52
|
+
/**
|
|
53
|
+
* Replace connection name and agent grant
|
|
54
|
+
*
|
|
55
|
+
* Replace both editable fields against the quoted current connection revision. Revocation and selected-agent changes take effect at the next broker boundary, including already pending operations.
|
|
56
|
+
*/
|
|
57
|
+
export declare const updateConnection: <ThrowOnError extends boolean = false>(options: Options<UpdateConnectionData, ThrowOnError>) => RequestResult<UpdateConnectionResponses, UpdateConnectionErrors, ThrowOnError>;
|
|
58
|
+
/**
|
|
59
|
+
* Start connection or reconnection
|
|
60
|
+
*
|
|
61
|
+
* Persist one setup attempt before requesting its hosted authentication link. Admission and permission checks use ClawScarf state; setup performs no native management. Clients poll the returned setup and navigate to its continuation URL as soon as available. Account use remains disabled until callback identity, effective native administrator authority and selected agents are verified. Only its initiating user may continue. Reconnection keeps the current active account until the exact replacement is verified. A changed retry payload conflicts; uncertain setup creation is not blindly replayed. New attempts and provider preparation/allocation require the current published catalog. Authentication preparation has its own durable receipt; an uncertain preparation or allocation blocks replacement until resolved.
|
|
62
|
+
*/
|
|
63
|
+
export declare const startConnectionSetup: <ThrowOnError extends boolean = false>(options: Options<StartConnectionSetupData, ThrowOnError>) => RequestResult<StartConnectionSetupResponses, StartConnectionSetupErrors, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Cancel a setup attempt
|
|
66
|
+
*
|
|
67
|
+
* Idempotently cancel this exact setup attempt and schedule provider cleanup. A late callback cannot activate it. Completed setup cannot be cancelled; disconnect the connection explicitly.
|
|
68
|
+
*/
|
|
69
|
+
export declare const cancelConnectionSetup: <ThrowOnError extends boolean = false>(options: Options<CancelConnectionSetupData, ThrowOnError>) => RequestResult<CancelConnectionSetupResponses, CancelConnectionSetupErrors, ThrowOnError>;
|
|
70
|
+
/**
|
|
71
|
+
* Read or continue a setup attempt
|
|
72
|
+
*
|
|
73
|
+
* Return current setup and its unexpired continuation URL only to the initiating user with current native administrator authority. This read never redeems a callback, creates an account or restarts expired setup.
|
|
74
|
+
*/
|
|
75
|
+
export declare const getConnectionSetup: <ThrowOnError extends boolean = false>(options: Options<GetConnectionSetupData, ThrowOnError>) => RequestResult<GetConnectionSetupResponses, GetConnectionSetupErrors, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* Refresh connection status
|
|
78
|
+
*
|
|
79
|
+
* Observe the exact bound provider account after verifying native administrator authority and current revision. The initiator may finish an unexpired setup from a durably recorded identity receipt. Never redeem the callback again or infer identity from account status alone.
|
|
80
|
+
*/
|
|
81
|
+
export declare const refreshConnection: <ThrowOnError extends boolean = false>(options: Options<RefreshConnectionData, ThrowOnError>) => RequestResult<RefreshConnectionResponses, RefreshConnectionErrors, ThrowOnError>;
|
|
82
|
+
/**
|
|
83
|
+
* Submit the receipt from the returning browser after checking its current installation identity and native authority. Polling a setup cannot activate it.
|
|
84
|
+
*/
|
|
85
|
+
export declare const completeConnectionSetup: <ThrowOnError extends boolean = false>(options: Options<CompleteConnectionSetupData, ThrowOnError>) => RequestResult<CompleteConnectionSetupResponses, CompleteConnectionSetupErrors, ThrowOnError>;
|
|
86
|
+
/**
|
|
87
|
+
* Read current execution allowance
|
|
88
|
+
*
|
|
89
|
+
* Current account and installation allowance for this installation. Shared provider budgets are private.
|
|
90
|
+
*/
|
|
91
|
+
export declare const getConnectionUsage: <ThrowOnError extends boolean = false>(options?: Options<GetConnectionUsageData, ThrowOnError>) => RequestResult<GetConnectionUsageResponses, GetConnectionUsageErrors, ThrowOnError>;
|
|
92
|
+
/**
|
|
93
|
+
* Discover agents for connection grants
|
|
94
|
+
*/
|
|
95
|
+
export declare const listConnectionAgents: <ThrowOnError extends boolean = false>(options?: Options<ListConnectionAgentsData, ThrowOnError>) => RequestResult<ListConnectionAgentsResponses, ListConnectionAgentsErrors, ThrowOnError>;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Browse available connectors
|
|
5
|
+
*
|
|
6
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
7
|
+
*/
|
|
8
|
+
export const listConnectors = (options) => (options?.client ?? client).get({
|
|
9
|
+
security: [{
|
|
10
|
+
in: 'cookie',
|
|
11
|
+
name: 'clawscarf_session',
|
|
12
|
+
type: 'apiKey'
|
|
13
|
+
}],
|
|
14
|
+
url: '/_clawscarf/connections/v1/connectors',
|
|
15
|
+
...options
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Read connector metadata
|
|
19
|
+
*
|
|
20
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
21
|
+
*/
|
|
22
|
+
export const getConnector = (options) => (options.client ?? client).get({
|
|
23
|
+
security: [{
|
|
24
|
+
in: 'cookie',
|
|
25
|
+
name: 'clawscarf_session',
|
|
26
|
+
type: 'apiKey'
|
|
27
|
+
}],
|
|
28
|
+
url: '/_clawscarf/connections/v1/connectors/{connectorId}',
|
|
29
|
+
...options
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* List server connections
|
|
33
|
+
*
|
|
34
|
+
* Return connection metadata and setup status after verifying current native administrator authority. Credentials and setup continuation URLs are excluded. A failed read never establishes an empty collection.
|
|
35
|
+
*/
|
|
36
|
+
export const listConnections = (options) => (options?.client ?? client).get({
|
|
37
|
+
security: [{
|
|
38
|
+
in: 'cookie',
|
|
39
|
+
name: 'clawscarf_session',
|
|
40
|
+
type: 'apiKey'
|
|
41
|
+
}],
|
|
42
|
+
url: '/_clawscarf/connections/v1/connections',
|
|
43
|
+
...options
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Create a named connection
|
|
47
|
+
*
|
|
48
|
+
* Create a named server-owned connection after verifying current native administrator authority. This neither authorizes a provider account nor starts external authentication. Agent grants are checked before activation. Identical authorized retries return the same record.
|
|
49
|
+
*/
|
|
50
|
+
export const createConnection = (options) => (options.client ?? client).post({
|
|
51
|
+
security: [{
|
|
52
|
+
in: 'cookie',
|
|
53
|
+
name: 'clawscarf_session',
|
|
54
|
+
type: 'apiKey'
|
|
55
|
+
}],
|
|
56
|
+
url: '/_clawscarf/connections/v1/connections',
|
|
57
|
+
...options,
|
|
58
|
+
headers: {
|
|
59
|
+
'Content-Type': 'application/json',
|
|
60
|
+
...options.headers
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Disconnect an account
|
|
65
|
+
*
|
|
66
|
+
* Revoke local use immediately and cancel pending setup. Provider cleanup is durable and may complete later. Never continue granting local use because provider deletion failed. Retain receipts and exact cleanup references.
|
|
67
|
+
*/
|
|
68
|
+
export const disconnectConnection = (options) => (options.client ?? client).delete({
|
|
69
|
+
security: [{
|
|
70
|
+
in: 'cookie',
|
|
71
|
+
name: 'clawscarf_session',
|
|
72
|
+
type: 'apiKey'
|
|
73
|
+
}],
|
|
74
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}',
|
|
75
|
+
...options
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* Read a connection
|
|
79
|
+
*
|
|
80
|
+
* Read a named connection's agent grant, state, revision, setup and cleanup status, and safe failure summary. Recheck effective native administrator authority before reading. Credentials and setup continuation URLs are never included.
|
|
81
|
+
*/
|
|
82
|
+
export const getConnection = (options) => (options.client ?? client).get({
|
|
83
|
+
security: [{
|
|
84
|
+
in: 'cookie',
|
|
85
|
+
name: 'clawscarf_session',
|
|
86
|
+
type: 'apiKey'
|
|
87
|
+
}],
|
|
88
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}',
|
|
89
|
+
...options
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* Replace connection name and agent grant
|
|
93
|
+
*
|
|
94
|
+
* Replace both editable fields against the quoted current connection revision. Revocation and selected-agent changes take effect at the next broker boundary, including already pending operations.
|
|
95
|
+
*/
|
|
96
|
+
export const updateConnection = (options) => (options.client ?? client).patch({
|
|
97
|
+
security: [{
|
|
98
|
+
in: 'cookie',
|
|
99
|
+
name: 'clawscarf_session',
|
|
100
|
+
type: 'apiKey'
|
|
101
|
+
}],
|
|
102
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}',
|
|
103
|
+
...options,
|
|
104
|
+
headers: {
|
|
105
|
+
'Content-Type': 'application/json',
|
|
106
|
+
...options.headers
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
/**
|
|
110
|
+
* Start connection or reconnection
|
|
111
|
+
*
|
|
112
|
+
* Persist one setup attempt before requesting its hosted authentication link. Admission and permission checks use ClawScarf state; setup performs no native management. Clients poll the returned setup and navigate to its continuation URL as soon as available. Account use remains disabled until callback identity, effective native administrator authority and selected agents are verified. Only its initiating user may continue. Reconnection keeps the current active account until the exact replacement is verified. A changed retry payload conflicts; uncertain setup creation is not blindly replayed. New attempts and provider preparation/allocation require the current published catalog. Authentication preparation has its own durable receipt; an uncertain preparation or allocation blocks replacement until resolved.
|
|
113
|
+
*/
|
|
114
|
+
export const startConnectionSetup = (options) => (options.client ?? client).post({
|
|
115
|
+
security: [{
|
|
116
|
+
in: 'cookie',
|
|
117
|
+
name: 'clawscarf_session',
|
|
118
|
+
type: 'apiKey'
|
|
119
|
+
}],
|
|
120
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}/setups',
|
|
121
|
+
...options,
|
|
122
|
+
headers: {
|
|
123
|
+
'Content-Type': 'application/json',
|
|
124
|
+
...options.headers
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* Cancel a setup attempt
|
|
129
|
+
*
|
|
130
|
+
* Idempotently cancel this exact setup attempt and schedule provider cleanup. A late callback cannot activate it. Completed setup cannot be cancelled; disconnect the connection explicitly.
|
|
131
|
+
*/
|
|
132
|
+
export const cancelConnectionSetup = (options) => (options.client ?? client).delete({
|
|
133
|
+
security: [{
|
|
134
|
+
in: 'cookie',
|
|
135
|
+
name: 'clawscarf_session',
|
|
136
|
+
type: 'apiKey'
|
|
137
|
+
}],
|
|
138
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}',
|
|
139
|
+
...options
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* Read or continue a setup attempt
|
|
143
|
+
*
|
|
144
|
+
* Return current setup and its unexpired continuation URL only to the initiating user with current native administrator authority. This read never redeems a callback, creates an account or restarts expired setup.
|
|
145
|
+
*/
|
|
146
|
+
export const getConnectionSetup = (options) => (options.client ?? client).get({
|
|
147
|
+
security: [{
|
|
148
|
+
in: 'cookie',
|
|
149
|
+
name: 'clawscarf_session',
|
|
150
|
+
type: 'apiKey'
|
|
151
|
+
}],
|
|
152
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}',
|
|
153
|
+
...options
|
|
154
|
+
});
|
|
155
|
+
/**
|
|
156
|
+
* Refresh connection status
|
|
157
|
+
*
|
|
158
|
+
* Observe the exact bound provider account after verifying native administrator authority and current revision. The initiator may finish an unexpired setup from a durably recorded identity receipt. Never redeem the callback again or infer identity from account status alone.
|
|
159
|
+
*/
|
|
160
|
+
export const refreshConnection = (options) => (options.client ?? client).post({
|
|
161
|
+
security: [{
|
|
162
|
+
in: 'cookie',
|
|
163
|
+
name: 'clawscarf_session',
|
|
164
|
+
type: 'apiKey'
|
|
165
|
+
}],
|
|
166
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}/refresh',
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
/**
|
|
170
|
+
* Submit the receipt from the returning browser after checking its current installation identity and native authority. Polling a setup cannot activate it.
|
|
171
|
+
*/
|
|
172
|
+
export const completeConnectionSetup = (options) => (options.client ?? client).post({
|
|
173
|
+
security: [{
|
|
174
|
+
in: 'cookie',
|
|
175
|
+
name: 'clawscarf_session',
|
|
176
|
+
type: 'apiKey'
|
|
177
|
+
}],
|
|
178
|
+
url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}/complete',
|
|
179
|
+
...options,
|
|
180
|
+
headers: {
|
|
181
|
+
'Content-Type': 'application/json',
|
|
182
|
+
...options.headers
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
/**
|
|
186
|
+
* Read current execution allowance
|
|
187
|
+
*
|
|
188
|
+
* Current account and installation allowance for this installation. Shared provider budgets are private.
|
|
189
|
+
*/
|
|
190
|
+
export const getConnectionUsage = (options) => (options?.client ?? client).get({
|
|
191
|
+
security: [{
|
|
192
|
+
in: 'cookie',
|
|
193
|
+
name: 'clawscarf_session',
|
|
194
|
+
type: 'apiKey'
|
|
195
|
+
}],
|
|
196
|
+
url: '/_clawscarf/connections/v1/usage',
|
|
197
|
+
...options
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* Discover agents for connection grants
|
|
201
|
+
*/
|
|
202
|
+
export const listConnectionAgents = (options) => (options?.client ?? client).get({
|
|
203
|
+
security: [{
|
|
204
|
+
in: 'cookie',
|
|
205
|
+
name: 'clawscarf_session',
|
|
206
|
+
type: 'apiKey'
|
|
207
|
+
}],
|
|
208
|
+
url: '/_clawscarf/connections/v1/connection-agents',
|
|
209
|
+
...options
|
|
210
|
+
});
|