@alienplatform/sdk 1.14.1 → 2.0.0
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/dist/dist.js +371 -275
- package/dist/index.d.ts +22 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -14356
- package/dist/native.d.ts +26 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +2 -0
- package/dist/worker-runtime/channel.d.ts +25 -0
- package/dist/worker-runtime/channel.d.ts.map +1 -0
- package/dist/worker-runtime/errors.d.ts +79 -0
- package/dist/worker-runtime/errors.d.ts.map +1 -0
- package/dist/worker-runtime/event-loop.d.ts +43 -0
- package/dist/worker-runtime/event-loop.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/control.d.ts +15 -15
- package/dist/worker-runtime/generated/control.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/duration.d.ts.map +1 -0
- package/dist/worker-runtime/generated/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/{generated → worker-runtime/generated}/wait_until.d.ts +29 -29
- package/dist/worker-runtime/generated/wait_until.d.ts.map +1 -0
- package/dist/worker-runtime/grpc-utils.d.ts +23 -0
- package/dist/worker-runtime/grpc-utils.d.ts.map +1 -0
- package/dist/worker-runtime/index.d.ts +33 -0
- package/dist/worker-runtime/index.d.ts.map +1 -0
- package/dist/{src.js → worker-runtime/index.js} +9370 -4035
- package/dist/worker-runtime/registry.d.ts +169 -0
- package/dist/worker-runtime/registry.d.ts.map +1 -0
- package/dist/worker-runtime/service-definitions.d.ts +12 -0
- package/dist/worker-runtime/service-definitions.d.ts.map +1 -0
- package/dist/worker-runtime/wait-until-manager.d.ts +34 -0
- package/dist/worker-runtime/wait-until-manager.d.ts.map +1 -0
- package/package.json +18 -38
- package/.turbo/turbo-build.log +0 -30
- package/AGENTS.md +0 -70
- package/dist/bearerTokenAuthenticationPolicy.js +0 -3028
- package/dist/bindings/artifact-registry.d.ts +0 -88
- package/dist/bindings/artifact-registry.d.ts.map +0 -1
- package/dist/bindings/build.d.ts +0 -67
- package/dist/bindings/build.d.ts.map +0 -1
- package/dist/bindings/index.d.ts +0 -13
- package/dist/bindings/index.d.ts.map +0 -1
- package/dist/bindings/kv.d.ts +0 -113
- package/dist/bindings/kv.d.ts.map +0 -1
- package/dist/bindings/postgres.d.ts +0 -90
- package/dist/bindings/postgres.d.ts.map +0 -1
- package/dist/bindings/postgres.test.d.ts +0 -2
- package/dist/bindings/postgres.test.d.ts.map +0 -1
- package/dist/bindings/queue.d.ts +0 -81
- package/dist/bindings/queue.d.ts.map +0 -1
- package/dist/bindings/service-account.d.ts +0 -46
- package/dist/bindings/service-account.d.ts.map +0 -1
- package/dist/bindings/storage.d.ts +0 -164
- package/dist/bindings/storage.d.ts.map +0 -1
- package/dist/bindings/vault.d.ts +0 -65
- package/dist/bindings/vault.d.ts.map +0 -1
- package/dist/bindings/worker.d.ts +0 -72
- package/dist/bindings/worker.d.ts.map +0 -1
- package/dist/channel.d.ts +0 -39
- package/dist/channel.d.ts.map +0 -1
- package/dist/checksum.js +0 -6176
- package/dist/commands/client.d.ts +0 -47
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/errors.d.ts +0 -198
- package/dist/commands/errors.d.ts.map +0 -1
- package/dist/commands/index.d.ts +0 -23
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -387
- package/dist/commands/types.d.ts +0 -40
- package/dist/commands/types.d.ts.map +0 -1
- package/dist/commands.d.ts +0 -55
- package/dist/commands.d.ts.map +0 -1
- package/dist/context.d.ts +0 -182
- package/dist/context.d.ts.map +0 -1
- package/dist/dist-cjs.js +0 -15258
- package/dist/dist2.js +0 -1239
- package/dist/errors.d.ts +0 -359
- package/dist/errors.d.ts.map +0 -1
- package/dist/es5.js +0 -1720
- package/dist/esm.js +0 -18068
- package/dist/esm2.js +0 -3166
- package/dist/event-streams.js +0 -770
- package/dist/events.d.ts +0 -163
- package/dist/events.d.ts.map +0 -1
- package/dist/generated/artifact_registry.d.ts +0 -302
- package/dist/generated/artifact_registry.d.ts.map +0 -1
- package/dist/generated/build.d.ts +0 -184
- package/dist/generated/build.d.ts.map +0 -1
- package/dist/generated/container.d.ts +0 -101
- package/dist/generated/container.d.ts.map +0 -1
- package/dist/generated/control.d.ts.map +0 -1
- package/dist/generated/google/protobuf/duration.d.ts.map +0 -1
- package/dist/generated/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/generated/kv.d.ts +0 -182
- package/dist/generated/kv.d.ts.map +0 -1
- package/dist/generated/queue.d.ts +0 -127
- package/dist/generated/queue.d.ts.map +0 -1
- package/dist/generated/service_account.d.ts +0 -112
- package/dist/generated/service_account.d.ts.map +0 -1
- package/dist/generated/storage.d.ts +0 -784
- package/dist/generated/storage.d.ts.map +0 -1
- package/dist/generated/vault.d.ts +0 -107
- package/dist/generated/vault.d.ts.map +0 -1
- package/dist/generated/wait_until.d.ts.map +0 -1
- package/dist/generated/worker.d.ts +0 -107
- package/dist/generated/worker.d.ts.map +0 -1
- package/dist/global.d.ts +0 -208
- package/dist/global.d.ts.map +0 -1
- package/dist/grpc-utils.d.ts +0 -25
- package/dist/grpc-utils.d.ts.map +0 -1
- package/dist/jws.js +0 -611
- package/dist/open.js +0 -461
- package/dist/rolldown-runtime.js +0 -44
- package/dist/src2.js +0 -114032
- package/dist/types.d.ts +0 -337
- package/dist/types.d.ts.map +0 -1
- package/dist/wait-until.d.ts +0 -115
- package/dist/wait-until.d.ts.map +0 -1
- package/scripts/generate-proto.sh +0 -46
- package/src/bindings/AGENTS.md +0 -105
- package/src/bindings/artifact-registry.ts +0 -317
- package/src/bindings/build.ts +0 -195
- package/src/bindings/index.ts +0 -13
- package/src/bindings/kv.ts +0 -240
- package/src/bindings/postgres.test.ts +0 -17
- package/src/bindings/postgres.ts +0 -446
- package/src/bindings/queue.ts +0 -191
- package/src/bindings/service-account.ts +0 -113
- package/src/bindings/storage.ts +0 -536
- package/src/bindings/vault.ts +0 -133
- package/src/bindings/worker.ts +0 -164
- package/src/channel.ts +0 -102
- package/src/commands/client.ts +0 -446
- package/src/commands/errors.ts +0 -126
- package/src/commands/index.ts +0 -41
- package/src/commands/types.ts +0 -52
- package/src/commands.ts +0 -76
- package/src/context.ts +0 -368
- package/src/errors.ts +0 -280
- package/src/events.ts +0 -511
- package/src/generated/artifact_registry.ts +0 -2096
- package/src/generated/build.ts +0 -1311
- package/src/generated/container.ts +0 -503
- package/src/generated/control.ts +0 -2018
- package/src/generated/google/protobuf/duration.ts +0 -196
- package/src/generated/google/protobuf/timestamp.ts +0 -226
- package/src/generated/kv.ts +0 -1169
- package/src/generated/queue.ts +0 -753
- package/src/generated/service_account.ts +0 -814
- package/src/generated/storage.ts +0 -3820
- package/src/generated/vault.ts +0 -543
- package/src/generated/wait_until.ts +0 -829
- package/src/generated/worker.ts +0 -759
- package/src/global.ts +0 -287
- package/src/grpc-utils.ts +0 -159
- package/src/index.ts +0 -160
- package/src/types.ts +0 -397
- package/src/wait-until.ts +0 -273
- package/tsconfig.json +0 -8
- package/tsdown.config.ts +0 -17
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/duration.d.ts +0 -0
- /package/dist/{generated → worker-runtime/generated}/google/protobuf/timestamp.d.ts +0 -0
package/dist/events.d.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event handling for Alien bindings.
|
|
3
|
-
*
|
|
4
|
-
* Provides handlers for storage events, cron/scheduled events, and queue messages.
|
|
5
|
-
*/
|
|
6
|
-
import type { QueueMessage, ScheduledEvent, StorageEvent, StorageEventType } from "@alienplatform/core";
|
|
7
|
-
import { type Channel } from "nice-grpc";
|
|
8
|
-
export type { StorageEvent, StorageEventType, ScheduledEvent, QueueMessage };
|
|
9
|
-
/**
|
|
10
|
-
* Cron/scheduled event with schedule info.
|
|
11
|
-
* Extends ScheduledEvent with the schedule name.
|
|
12
|
-
*/
|
|
13
|
-
export interface CronEvent extends ScheduledEvent {
|
|
14
|
-
/** Schedule name */
|
|
15
|
-
scheduleName: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Queue message event with queue context.
|
|
19
|
-
*/
|
|
20
|
-
export interface QueueMessageEvent<T = unknown> {
|
|
21
|
-
/** Message ID */
|
|
22
|
-
id: string;
|
|
23
|
-
/** Source queue name */
|
|
24
|
-
source: string;
|
|
25
|
-
/** Receipt handle for acknowledgment */
|
|
26
|
-
receiptHandle: string;
|
|
27
|
-
/** Message payload */
|
|
28
|
-
payload: T;
|
|
29
|
-
/** Delivery attempt count */
|
|
30
|
-
attemptCount: number;
|
|
31
|
-
/** Message timestamp */
|
|
32
|
-
timestamp: Date;
|
|
33
|
-
/** Platform-specific message attributes */
|
|
34
|
-
attributes?: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Event handler registration.
|
|
40
|
-
*/
|
|
41
|
-
export interface EventRegistration {
|
|
42
|
-
/** Handler ID */
|
|
43
|
-
id: string;
|
|
44
|
-
/** Event type */
|
|
45
|
-
type: "storage" | "cron" | "queue";
|
|
46
|
-
/** Source filter (bucket name, queue name, etc.) */
|
|
47
|
-
source: string;
|
|
48
|
-
/** Optional prefix filter (for storage events) */
|
|
49
|
-
prefix?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Register a storage event handler.
|
|
53
|
-
*
|
|
54
|
-
* @param bucket - Bucket name to listen for events
|
|
55
|
-
* @param handler - Handler function for storage events
|
|
56
|
-
* @param options - Handler options
|
|
57
|
-
* @returns Unsubscribe function
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```typescript
|
|
61
|
-
* import { onStorageEvent } from "@alienplatform/sdk"
|
|
62
|
-
*
|
|
63
|
-
* onStorageEvent("uploads", async (event) => {
|
|
64
|
-
* console.log("File uploaded:", event.objectKey)
|
|
65
|
-
* await processFile(event.bucketName, event.objectKey)
|
|
66
|
-
* })
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare function onStorageEvent(bucket: string, handler: (event: StorageEvent) => Promise<void>, options?: {
|
|
70
|
-
prefix?: string;
|
|
71
|
-
}): () => void;
|
|
72
|
-
/**
|
|
73
|
-
* Register a cron/scheduled event handler.
|
|
74
|
-
*
|
|
75
|
-
* @param scheduleName - Schedule name to listen for
|
|
76
|
-
* @param handler - Handler function for scheduled events
|
|
77
|
-
* @returns Unsubscribe function
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* import { onCronEvent } from "@alienplatform/sdk"
|
|
82
|
-
*
|
|
83
|
-
* onCronEvent("hourly-task", async (event) => {
|
|
84
|
-
* console.log("Scheduled run at:", event.timestamp)
|
|
85
|
-
* await runHourlyTask()
|
|
86
|
-
* })
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
export declare function onCronEvent(scheduleName: string, handler: (event: CronEvent) => Promise<void>): () => void;
|
|
90
|
-
/**
|
|
91
|
-
* Register a queue message handler.
|
|
92
|
-
*
|
|
93
|
-
* @param queueName - Queue name to listen for messages
|
|
94
|
-
* @param handler - Handler function for queue messages
|
|
95
|
-
* @returns Unsubscribe function
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```typescript
|
|
99
|
-
* import { onQueueMessage } from "@alienplatform/sdk"
|
|
100
|
-
*
|
|
101
|
-
* onQueueMessage("tasks", async (message) => {
|
|
102
|
-
* console.log("Processing task:", message.payload)
|
|
103
|
-
* await processTask(message.payload)
|
|
104
|
-
* })
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
export declare function onQueueMessage<T = unknown>(queueName: string, handler: (message: QueueMessageEvent<T>) => Promise<void>): () => void;
|
|
108
|
-
/**
|
|
109
|
-
* Get all registered event handlers.
|
|
110
|
-
*
|
|
111
|
-
* @internal
|
|
112
|
-
*/
|
|
113
|
-
export declare function getEventHandlers(): Map<string, {
|
|
114
|
-
registration: EventRegistration;
|
|
115
|
-
handler: (event: unknown) => Promise<void>;
|
|
116
|
-
}>;
|
|
117
|
-
/**
|
|
118
|
-
* Event loop runner for processing tasks from the control plane.
|
|
119
|
-
*
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
export declare class EventLoop {
|
|
123
|
-
private readonly client;
|
|
124
|
-
private sendClient;
|
|
125
|
-
private readonly applicationId;
|
|
126
|
-
private running;
|
|
127
|
-
constructor(channel: Channel, applicationId: string);
|
|
128
|
-
/**
|
|
129
|
-
* Get or create a separate gRPC client for sending task results.
|
|
130
|
-
* Uses a dedicated channel to avoid HTTP/2 multiplexing issues
|
|
131
|
-
* with the long-lived waitForTasks stream on some runtimes (e.g. Bun).
|
|
132
|
-
*/
|
|
133
|
-
private getSendClient;
|
|
134
|
-
/**
|
|
135
|
-
* Register all event handlers with the control plane.
|
|
136
|
-
*/
|
|
137
|
-
registerHandlers(): Promise<void>;
|
|
138
|
-
/**
|
|
139
|
-
* Start the event loop.
|
|
140
|
-
*/
|
|
141
|
-
start(): Promise<void>;
|
|
142
|
-
/**
|
|
143
|
-
* Stop the event loop.
|
|
144
|
-
*/
|
|
145
|
-
stop(): void;
|
|
146
|
-
private processTasks;
|
|
147
|
-
private handleTask;
|
|
148
|
-
private handleCommand;
|
|
149
|
-
private sendTaskResult;
|
|
150
|
-
/**
|
|
151
|
-
* Transform proto StorageEvent to core StorageEvent type.
|
|
152
|
-
*/
|
|
153
|
-
private fromProtoStorageEvent;
|
|
154
|
-
/**
|
|
155
|
-
* Transform proto CronEvent to CronEvent type.
|
|
156
|
-
*/
|
|
157
|
-
private fromProtoCronEvent;
|
|
158
|
-
/**
|
|
159
|
-
* Transform proto QueueMessage to QueueMessageEvent type.
|
|
160
|
-
*/
|
|
161
|
-
private fromProtoQueueMessage;
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
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AkB;IAO1B;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAwB9B"}
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
-
export declare const protobufPackage = "alien_bindings.artifact_registry";
|
|
4
|
-
/** Permissions for registry access */
|
|
5
|
-
export declare enum ArtifactRegistryPermissions {
|
|
6
|
-
/** PULL - Pull permissions (read-only) */
|
|
7
|
-
PULL = 0,
|
|
8
|
-
/** PUSH_PULL - Push and pull permissions (read-write) */
|
|
9
|
-
PUSH_PULL = 1,
|
|
10
|
-
UNRECOGNIZED = -1
|
|
11
|
-
}
|
|
12
|
-
export declare function artifactRegistryPermissionsFromJSON(object: any): ArtifactRegistryPermissions;
|
|
13
|
-
export declare function artifactRegistryPermissionsToJSON(object: ArtifactRegistryPermissions): string;
|
|
14
|
-
/** Types of compute services that can access artifact registries */
|
|
15
|
-
export declare enum ComputeServiceType {
|
|
16
|
-
/** WORKER - Serverless workers */
|
|
17
|
-
WORKER = 0,
|
|
18
|
-
UNRECOGNIZED = -1
|
|
19
|
-
}
|
|
20
|
-
export declare function computeServiceTypeFromJSON(object: any): ComputeServiceType;
|
|
21
|
-
export declare function computeServiceTypeToJSON(object: ComputeServiceType): string;
|
|
22
|
-
/** How the registry expects credentials to be presented */
|
|
23
|
-
export declare enum AuthMethod {
|
|
24
|
-
AUTH_METHOD_BASIC = 0,
|
|
25
|
-
AUTH_METHOD_BEARER = 1,
|
|
26
|
-
UNRECOGNIZED = -1
|
|
27
|
-
}
|
|
28
|
-
export declare function authMethodFromJSON(object: any): AuthMethod;
|
|
29
|
-
export declare function authMethodToJSON(object: AuthMethod): string;
|
|
30
|
-
/** Messages for CreateRepository */
|
|
31
|
-
export interface CreateRepositoryRequest {
|
|
32
|
-
/** Name of the artifact registry binding to use */
|
|
33
|
-
bindingName: string;
|
|
34
|
-
/** Name of the repository to create */
|
|
35
|
-
repoName: string;
|
|
36
|
-
}
|
|
37
|
-
export interface CreateRepositoryResponse {
|
|
38
|
-
/** Repository details response */
|
|
39
|
-
result: RepositoryResult | undefined;
|
|
40
|
-
}
|
|
41
|
-
/** Messages for GetRepository */
|
|
42
|
-
export interface GetRepositoryRequest {
|
|
43
|
-
/** Name of the artifact registry binding to use */
|
|
44
|
-
bindingName: string;
|
|
45
|
-
/** Repository ID to get details for */
|
|
46
|
-
repoId: string;
|
|
47
|
-
}
|
|
48
|
-
export interface GetRepositoryResponse {
|
|
49
|
-
/** Repository details response */
|
|
50
|
-
result: RepositoryResult | undefined;
|
|
51
|
-
}
|
|
52
|
-
/** Messages for AddCrossAccountAccess */
|
|
53
|
-
export interface AddCrossAccountAccessRequest {
|
|
54
|
-
/** Name of the artifact registry binding to use */
|
|
55
|
-
bindingName: string;
|
|
56
|
-
/** Repository ID to add access for */
|
|
57
|
-
repoId: string;
|
|
58
|
-
/** Cross-account access configuration to add */
|
|
59
|
-
access: CrossAccountAccess | undefined;
|
|
60
|
-
}
|
|
61
|
-
/** Empty response on success */
|
|
62
|
-
export interface AddCrossAccountAccessResponse {
|
|
63
|
-
}
|
|
64
|
-
/** Messages for RemoveCrossAccountAccess */
|
|
65
|
-
export interface RemoveCrossAccountAccessRequest {
|
|
66
|
-
/** Name of the artifact registry binding to use */
|
|
67
|
-
bindingName: string;
|
|
68
|
-
/** Repository ID to remove access for */
|
|
69
|
-
repoId: string;
|
|
70
|
-
/** Cross-account access configuration to remove */
|
|
71
|
-
access: CrossAccountAccess | undefined;
|
|
72
|
-
}
|
|
73
|
-
/** Empty response on success */
|
|
74
|
-
export interface RemoveCrossAccountAccessResponse {
|
|
75
|
-
}
|
|
76
|
-
/** Messages for GetCrossAccountAccess */
|
|
77
|
-
export interface GetCrossAccountAccessRequest {
|
|
78
|
-
/** Name of the artifact registry binding to use */
|
|
79
|
-
bindingName: string;
|
|
80
|
-
/** Repository ID to get access for */
|
|
81
|
-
repoId: string;
|
|
82
|
-
}
|
|
83
|
-
export interface GetCrossAccountAccessResponse {
|
|
84
|
-
/** Current cross-account access permissions */
|
|
85
|
-
permissions: CrossAccountPermissions | undefined;
|
|
86
|
-
}
|
|
87
|
-
/** Messages for GenerateCredentials */
|
|
88
|
-
export interface GenerateCredentialsRequest {
|
|
89
|
-
/** Name of the artifact registry binding to use */
|
|
90
|
-
bindingName: string;
|
|
91
|
-
/** Repository ID to generate credentials for */
|
|
92
|
-
repoId: string;
|
|
93
|
-
/** Permissions to generate credentials for */
|
|
94
|
-
permissions: ArtifactRegistryPermissions;
|
|
95
|
-
/** TTL in seconds (optional) */
|
|
96
|
-
ttlSeconds?: number | undefined;
|
|
97
|
-
}
|
|
98
|
-
export interface GenerateCredentialsResponse {
|
|
99
|
-
/** Generated credentials */
|
|
100
|
-
credentials: Credentials | undefined;
|
|
101
|
-
}
|
|
102
|
-
/** Messages for DeleteRepository */
|
|
103
|
-
export interface DeleteRepositoryRequest {
|
|
104
|
-
/** Name of the artifact registry binding to use */
|
|
105
|
-
bindingName: string;
|
|
106
|
-
/** Repository ID to delete */
|
|
107
|
-
repoId: string;
|
|
108
|
-
}
|
|
109
|
-
/** Empty response on success */
|
|
110
|
-
export interface DeleteRepositoryResponse {
|
|
111
|
-
}
|
|
112
|
-
/** Cross-account access configuration for AWS */
|
|
113
|
-
export interface AwsCrossAccountAccess {
|
|
114
|
-
/** AWS account IDs that should have access */
|
|
115
|
-
accountIds: string[];
|
|
116
|
-
/** Types of compute services that should have access */
|
|
117
|
-
allowedServiceTypes: ComputeServiceType[];
|
|
118
|
-
/** Specific IAM role ARNs to grant access to */
|
|
119
|
-
roleArns: string[];
|
|
120
|
-
/** AWS regions where target Lambda workers run (for sourceArn condition) */
|
|
121
|
-
regions: string[];
|
|
122
|
-
}
|
|
123
|
-
/** Cross-account access configuration for GCP */
|
|
124
|
-
export interface GcpCrossAccountAccess {
|
|
125
|
-
/** GCP project numbers that should have access */
|
|
126
|
-
projectNumbers: string[];
|
|
127
|
-
/** Types of compute services that should have access */
|
|
128
|
-
allowedServiceTypes: ComputeServiceType[];
|
|
129
|
-
/** Additional service account emails to grant access to */
|
|
130
|
-
serviceAccountEmails: string[];
|
|
131
|
-
}
|
|
132
|
-
/** Platform-specific cross-account access configuration */
|
|
133
|
-
export interface CrossAccountAccess {
|
|
134
|
-
/** AWS-specific configuration */
|
|
135
|
-
aws?: AwsCrossAccountAccess | undefined;
|
|
136
|
-
/** GCP-specific configuration */
|
|
137
|
-
gcp?: GcpCrossAccountAccess | undefined;
|
|
138
|
-
}
|
|
139
|
-
/** Current cross-account access permissions */
|
|
140
|
-
export interface CrossAccountPermissions {
|
|
141
|
-
/** Platform-specific access configuration */
|
|
142
|
-
access: CrossAccountAccess | undefined;
|
|
143
|
-
/** Timestamp when permissions were last updated (ISO8601 format) */
|
|
144
|
-
lastUpdated?: string | undefined;
|
|
145
|
-
}
|
|
146
|
-
/** Response from repository operations */
|
|
147
|
-
export interface RepositoryResult {
|
|
148
|
-
/** Repository name */
|
|
149
|
-
name: string;
|
|
150
|
-
/** Repository URI for pushing/pulling images (optional, None if not ready yet) */
|
|
151
|
-
uri?: string | undefined;
|
|
152
|
-
/** Optional creation timestamp in ISO8601 format */
|
|
153
|
-
createdAt?: string | undefined;
|
|
154
|
-
}
|
|
155
|
-
/** Credentials for accessing a repository */
|
|
156
|
-
export interface Credentials {
|
|
157
|
-
/** Username for authentication */
|
|
158
|
-
username: string;
|
|
159
|
-
/** Password or token for authentication */
|
|
160
|
-
password: string;
|
|
161
|
-
/** Optional expiration time in ISO8601 format */
|
|
162
|
-
expiresAt?: string | undefined;
|
|
163
|
-
/** How to present these credentials to the registry */
|
|
164
|
-
authMethod: AuthMethod;
|
|
165
|
-
}
|
|
166
|
-
export declare const CreateRepositoryRequest: MessageFns<CreateRepositoryRequest>;
|
|
167
|
-
export declare const CreateRepositoryResponse: MessageFns<CreateRepositoryResponse>;
|
|
168
|
-
export declare const GetRepositoryRequest: MessageFns<GetRepositoryRequest>;
|
|
169
|
-
export declare const GetRepositoryResponse: MessageFns<GetRepositoryResponse>;
|
|
170
|
-
export declare const AddCrossAccountAccessRequest: MessageFns<AddCrossAccountAccessRequest>;
|
|
171
|
-
export declare const AddCrossAccountAccessResponse: MessageFns<AddCrossAccountAccessResponse>;
|
|
172
|
-
export declare const RemoveCrossAccountAccessRequest: MessageFns<RemoveCrossAccountAccessRequest>;
|
|
173
|
-
export declare const RemoveCrossAccountAccessResponse: MessageFns<RemoveCrossAccountAccessResponse>;
|
|
174
|
-
export declare const GetCrossAccountAccessRequest: MessageFns<GetCrossAccountAccessRequest>;
|
|
175
|
-
export declare const GetCrossAccountAccessResponse: MessageFns<GetCrossAccountAccessResponse>;
|
|
176
|
-
export declare const GenerateCredentialsRequest: MessageFns<GenerateCredentialsRequest>;
|
|
177
|
-
export declare const GenerateCredentialsResponse: MessageFns<GenerateCredentialsResponse>;
|
|
178
|
-
export declare const DeleteRepositoryRequest: MessageFns<DeleteRepositoryRequest>;
|
|
179
|
-
export declare const DeleteRepositoryResponse: MessageFns<DeleteRepositoryResponse>;
|
|
180
|
-
export declare const AwsCrossAccountAccess: MessageFns<AwsCrossAccountAccess>;
|
|
181
|
-
export declare const GcpCrossAccountAccess: MessageFns<GcpCrossAccountAccess>;
|
|
182
|
-
export declare const CrossAccountAccess: MessageFns<CrossAccountAccess>;
|
|
183
|
-
export declare const CrossAccountPermissions: MessageFns<CrossAccountPermissions>;
|
|
184
|
-
export declare const RepositoryResult: MessageFns<RepositoryResult>;
|
|
185
|
-
export declare const Credentials: MessageFns<Credentials>;
|
|
186
|
-
/** Artifact Registry service for managing container repositories */
|
|
187
|
-
export type ArtifactRegistryServiceDefinition = typeof ArtifactRegistryServiceDefinition;
|
|
188
|
-
export declare const ArtifactRegistryServiceDefinition: {
|
|
189
|
-
readonly name: "ArtifactRegistryService";
|
|
190
|
-
readonly fullName: "alien_bindings.artifact_registry.ArtifactRegistryService";
|
|
191
|
-
readonly methods: {
|
|
192
|
-
/** Create a repository within the artifact registry */
|
|
193
|
-
readonly createRepository: {
|
|
194
|
-
readonly name: "CreateRepository";
|
|
195
|
-
readonly requestType: typeof CreateRepositoryRequest;
|
|
196
|
-
readonly requestStream: false;
|
|
197
|
-
readonly responseType: typeof CreateRepositoryResponse;
|
|
198
|
-
readonly responseStream: false;
|
|
199
|
-
readonly options: {};
|
|
200
|
-
};
|
|
201
|
-
/** Get repository details including name, URI, and creation time */
|
|
202
|
-
readonly getRepository: {
|
|
203
|
-
readonly name: "GetRepository";
|
|
204
|
-
readonly requestType: typeof GetRepositoryRequest;
|
|
205
|
-
readonly requestStream: false;
|
|
206
|
-
readonly responseType: typeof GetRepositoryResponse;
|
|
207
|
-
readonly responseStream: false;
|
|
208
|
-
readonly options: {};
|
|
209
|
-
};
|
|
210
|
-
/** Add cross-account access permissions for a repository */
|
|
211
|
-
readonly addCrossAccountAccess: {
|
|
212
|
-
readonly name: "AddCrossAccountAccess";
|
|
213
|
-
readonly requestType: typeof AddCrossAccountAccessRequest;
|
|
214
|
-
readonly requestStream: false;
|
|
215
|
-
readonly responseType: typeof AddCrossAccountAccessResponse;
|
|
216
|
-
readonly responseStream: false;
|
|
217
|
-
readonly options: {};
|
|
218
|
-
};
|
|
219
|
-
/** Remove cross-account access permissions for a repository */
|
|
220
|
-
readonly removeCrossAccountAccess: {
|
|
221
|
-
readonly name: "RemoveCrossAccountAccess";
|
|
222
|
-
readonly requestType: typeof RemoveCrossAccountAccessRequest;
|
|
223
|
-
readonly requestStream: false;
|
|
224
|
-
readonly responseType: typeof RemoveCrossAccountAccessResponse;
|
|
225
|
-
readonly responseStream: false;
|
|
226
|
-
readonly options: {};
|
|
227
|
-
};
|
|
228
|
-
/** Get the current cross-account access permissions for a repository */
|
|
229
|
-
readonly getCrossAccountAccess: {
|
|
230
|
-
readonly name: "GetCrossAccountAccess";
|
|
231
|
-
readonly requestType: typeof GetCrossAccountAccessRequest;
|
|
232
|
-
readonly requestStream: false;
|
|
233
|
-
readonly responseType: typeof GetCrossAccountAccessResponse;
|
|
234
|
-
readonly responseStream: false;
|
|
235
|
-
readonly options: {};
|
|
236
|
-
};
|
|
237
|
-
/** Generate credentials for accessing a repository */
|
|
238
|
-
readonly generateCredentials: {
|
|
239
|
-
readonly name: "GenerateCredentials";
|
|
240
|
-
readonly requestType: typeof GenerateCredentialsRequest;
|
|
241
|
-
readonly requestStream: false;
|
|
242
|
-
readonly responseType: typeof GenerateCredentialsResponse;
|
|
243
|
-
readonly responseStream: false;
|
|
244
|
-
readonly options: {};
|
|
245
|
-
};
|
|
246
|
-
/** Delete a repository and all contained images */
|
|
247
|
-
readonly deleteRepository: {
|
|
248
|
-
readonly name: "DeleteRepository";
|
|
249
|
-
readonly requestType: typeof DeleteRepositoryRequest;
|
|
250
|
-
readonly requestStream: false;
|
|
251
|
-
readonly responseType: typeof DeleteRepositoryResponse;
|
|
252
|
-
readonly responseStream: false;
|
|
253
|
-
readonly options: {};
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
export interface ArtifactRegistryServiceImplementation<CallContextExt = {}> {
|
|
258
|
-
/** Create a repository within the artifact registry */
|
|
259
|
-
createRepository(request: CreateRepositoryRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CreateRepositoryResponse>>;
|
|
260
|
-
/** Get repository details including name, URI, and creation time */
|
|
261
|
-
getRepository(request: GetRepositoryRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetRepositoryResponse>>;
|
|
262
|
-
/** Add cross-account access permissions for a repository */
|
|
263
|
-
addCrossAccountAccess(request: AddCrossAccountAccessRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddCrossAccountAccessResponse>>;
|
|
264
|
-
/** Remove cross-account access permissions for a repository */
|
|
265
|
-
removeCrossAccountAccess(request: RemoveCrossAccountAccessRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RemoveCrossAccountAccessResponse>>;
|
|
266
|
-
/** Get the current cross-account access permissions for a repository */
|
|
267
|
-
getCrossAccountAccess(request: GetCrossAccountAccessRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetCrossAccountAccessResponse>>;
|
|
268
|
-
/** Generate credentials for accessing a repository */
|
|
269
|
-
generateCredentials(request: GenerateCredentialsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GenerateCredentialsResponse>>;
|
|
270
|
-
/** Delete a repository and all contained images */
|
|
271
|
-
deleteRepository(request: DeleteRepositoryRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteRepositoryResponse>>;
|
|
272
|
-
}
|
|
273
|
-
export interface ArtifactRegistryServiceClient<CallOptionsExt = {}> {
|
|
274
|
-
/** Create a repository within the artifact registry */
|
|
275
|
-
createRepository(request: DeepPartial<CreateRepositoryRequest>, options?: CallOptions & CallOptionsExt): Promise<CreateRepositoryResponse>;
|
|
276
|
-
/** Get repository details including name, URI, and creation time */
|
|
277
|
-
getRepository(request: DeepPartial<GetRepositoryRequest>, options?: CallOptions & CallOptionsExt): Promise<GetRepositoryResponse>;
|
|
278
|
-
/** Add cross-account access permissions for a repository */
|
|
279
|
-
addCrossAccountAccess(request: DeepPartial<AddCrossAccountAccessRequest>, options?: CallOptions & CallOptionsExt): Promise<AddCrossAccountAccessResponse>;
|
|
280
|
-
/** Remove cross-account access permissions for a repository */
|
|
281
|
-
removeCrossAccountAccess(request: DeepPartial<RemoveCrossAccountAccessRequest>, options?: CallOptions & CallOptionsExt): Promise<RemoveCrossAccountAccessResponse>;
|
|
282
|
-
/** Get the current cross-account access permissions for a repository */
|
|
283
|
-
getCrossAccountAccess(request: DeepPartial<GetCrossAccountAccessRequest>, options?: CallOptions & CallOptionsExt): Promise<GetCrossAccountAccessResponse>;
|
|
284
|
-
/** Generate credentials for accessing a repository */
|
|
285
|
-
generateCredentials(request: DeepPartial<GenerateCredentialsRequest>, options?: CallOptions & CallOptionsExt): Promise<GenerateCredentialsResponse>;
|
|
286
|
-
/** Delete a repository and all contained images */
|
|
287
|
-
deleteRepository(request: DeepPartial<DeleteRepositoryRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteRepositoryResponse>;
|
|
288
|
-
}
|
|
289
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
290
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
291
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
292
|
-
} : Partial<T>;
|
|
293
|
-
export interface MessageFns<T> {
|
|
294
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
295
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
296
|
-
fromJSON(object: any): T;
|
|
297
|
-
toJSON(message: T): unknown;
|
|
298
|
-
create(base?: DeepPartial<T>): T;
|
|
299
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
300
|
-
}
|
|
301
|
-
export {};
|
|
302
|
-
//# sourceMappingURL=artifact_registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifact_registry.d.ts","sourceRoot":"","sources":["../../src/generated/artifact_registry.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjE,eAAO,MAAM,eAAe,qCAAqC,CAAC;AAElE,sCAAsC;AACtC,oBAAY,2BAA2B;IACrC,0CAA0C;IAC1C,IAAI,IAAI;IACR,yDAAyD;IACzD,SAAS,IAAI;IACb,YAAY,KAAK;CAClB;AAED,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,GAAG,GAAG,2BAA2B,CAa5F;AAED,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,2BAA2B,GAAG,MAAM,CAU7F;AAED,oEAAoE;AACpE,oBAAY,kBAA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ryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import type { CallContext, CallOptions } from "nice-grpc-common";
|
|
3
|
-
export declare const protobufPackage = "alien_bindings.build";
|
|
4
|
-
/** Build status enumeration */
|
|
5
|
-
export declare enum BuildStatus {
|
|
6
|
-
BUILD_STATUS_UNSPECIFIED = 0,
|
|
7
|
-
BUILD_STATUS_QUEUED = 1,
|
|
8
|
-
BUILD_STATUS_RUNNING = 2,
|
|
9
|
-
BUILD_STATUS_SUCCEEDED = 3,
|
|
10
|
-
BUILD_STATUS_FAILED = 4,
|
|
11
|
-
BUILD_STATUS_CANCELLED = 5,
|
|
12
|
-
BUILD_STATUS_TIMED_OUT = 6,
|
|
13
|
-
UNRECOGNIZED = -1
|
|
14
|
-
}
|
|
15
|
-
export declare function buildStatusFromJSON(object: any): BuildStatus;
|
|
16
|
-
export declare function buildStatusToJSON(object: BuildStatus): string;
|
|
17
|
-
/** Compute type enumeration */
|
|
18
|
-
export declare enum ComputeType {
|
|
19
|
-
COMPUTE_TYPE_UNSPECIFIED = 0,
|
|
20
|
-
COMPUTE_TYPE_SMALL = 1,
|
|
21
|
-
COMPUTE_TYPE_MEDIUM = 2,
|
|
22
|
-
COMPUTE_TYPE_LARGE = 3,
|
|
23
|
-
COMPUTE_TYPE_XLARGE = 4,
|
|
24
|
-
UNRECOGNIZED = -1
|
|
25
|
-
}
|
|
26
|
-
export declare function computeTypeFromJSON(object: any): ComputeType;
|
|
27
|
-
export declare function computeTypeToJSON(object: ComputeType): string;
|
|
28
|
-
/** Messages for StartBuild */
|
|
29
|
-
export interface StartBuildRequest {
|
|
30
|
-
/** Name of the build binding to use */
|
|
31
|
-
bindingName: string;
|
|
32
|
-
/** Build configuration */
|
|
33
|
-
config: BuildConfig | undefined;
|
|
34
|
-
}
|
|
35
|
-
export interface StartBuildResponse {
|
|
36
|
-
/** Build execution information */
|
|
37
|
-
execution: BuildExecution | undefined;
|
|
38
|
-
}
|
|
39
|
-
/** Messages for GetBuildStatus */
|
|
40
|
-
export interface GetBuildStatusRequest {
|
|
41
|
-
/** Name of the build binding to use */
|
|
42
|
-
bindingName: string;
|
|
43
|
-
/** Build execution ID */
|
|
44
|
-
buildId: string;
|
|
45
|
-
}
|
|
46
|
-
export interface GetBuildStatusResponse {
|
|
47
|
-
/** Build execution information */
|
|
48
|
-
execution: BuildExecution | undefined;
|
|
49
|
-
}
|
|
50
|
-
/** Messages for StopBuild */
|
|
51
|
-
export interface StopBuildRequest {
|
|
52
|
-
/** Name of the build binding to use */
|
|
53
|
-
bindingName: string;
|
|
54
|
-
/** Build execution ID */
|
|
55
|
-
buildId: string;
|
|
56
|
-
}
|
|
57
|
-
/** Empty response on success */
|
|
58
|
-
export interface StopBuildResponse {
|
|
59
|
-
}
|
|
60
|
-
/** Build configuration */
|
|
61
|
-
export interface BuildConfig {
|
|
62
|
-
/** Build script to execute */
|
|
63
|
-
script: string;
|
|
64
|
-
/** Environment variables for the build */
|
|
65
|
-
environment: {
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
};
|
|
68
|
-
/** Compute type for the build */
|
|
69
|
-
computeType: ComputeType;
|
|
70
|
-
/** Timeout in seconds (optional) */
|
|
71
|
-
timeoutSeconds?: number | undefined;
|
|
72
|
-
/** Monitoring configuration (optional) */
|
|
73
|
-
monitoring?: MonitoringConfig | undefined;
|
|
74
|
-
}
|
|
75
|
-
export interface BuildConfig_EnvironmentEntry {
|
|
76
|
-
key: string;
|
|
77
|
-
value: string;
|
|
78
|
-
}
|
|
79
|
-
/** Monitoring configuration */
|
|
80
|
-
export interface MonitoringConfig {
|
|
81
|
-
/** The monitoring endpoint URL */
|
|
82
|
-
endpoint: string;
|
|
83
|
-
/** Optional HTTP headers to include in requests */
|
|
84
|
-
headers: {
|
|
85
|
-
[key: string]: string;
|
|
86
|
-
};
|
|
87
|
-
/** Optional URI path for logs (defaults to "/v1/logs") */
|
|
88
|
-
logsUri: string;
|
|
89
|
-
/** Whether to enable TLS/HTTPS (defaults to true) */
|
|
90
|
-
tlsEnabled: boolean;
|
|
91
|
-
/** Whether to verify TLS certificates (defaults to true) */
|
|
92
|
-
tlsVerify: boolean;
|
|
93
|
-
}
|
|
94
|
-
export interface MonitoringConfig_HeadersEntry {
|
|
95
|
-
key: string;
|
|
96
|
-
value: string;
|
|
97
|
-
}
|
|
98
|
-
/** Build execution information */
|
|
99
|
-
export interface BuildExecution {
|
|
100
|
-
/** Unique build execution ID */
|
|
101
|
-
id: string;
|
|
102
|
-
/** Current status of the build */
|
|
103
|
-
status: BuildStatus;
|
|
104
|
-
/** Start time in RFC3339 format (optional) */
|
|
105
|
-
startTime?: string | undefined;
|
|
106
|
-
/** End time in RFC3339 format (optional) */
|
|
107
|
-
endTime?: string | undefined;
|
|
108
|
-
}
|
|
109
|
-
export declare const StartBuildRequest: MessageFns<StartBuildRequest>;
|
|
110
|
-
export declare const StartBuildResponse: MessageFns<StartBuildResponse>;
|
|
111
|
-
export declare const GetBuildStatusRequest: MessageFns<GetBuildStatusRequest>;
|
|
112
|
-
export declare const GetBuildStatusResponse: MessageFns<GetBuildStatusResponse>;
|
|
113
|
-
export declare const StopBuildRequest: MessageFns<StopBuildRequest>;
|
|
114
|
-
export declare const StopBuildResponse: MessageFns<StopBuildResponse>;
|
|
115
|
-
export declare const BuildConfig: MessageFns<BuildConfig>;
|
|
116
|
-
export declare const BuildConfig_EnvironmentEntry: MessageFns<BuildConfig_EnvironmentEntry>;
|
|
117
|
-
export declare const MonitoringConfig: MessageFns<MonitoringConfig>;
|
|
118
|
-
export declare const MonitoringConfig_HeadersEntry: MessageFns<MonitoringConfig_HeadersEntry>;
|
|
119
|
-
export declare const BuildExecution: MessageFns<BuildExecution>;
|
|
120
|
-
/** Build service for managing build operations */
|
|
121
|
-
export type BuildServiceDefinition = typeof BuildServiceDefinition;
|
|
122
|
-
export declare const BuildServiceDefinition: {
|
|
123
|
-
readonly name: "BuildService";
|
|
124
|
-
readonly fullName: "alien_bindings.build.BuildService";
|
|
125
|
-
readonly methods: {
|
|
126
|
-
/** Start a new build with the given configuration */
|
|
127
|
-
readonly startBuild: {
|
|
128
|
-
readonly name: "StartBuild";
|
|
129
|
-
readonly requestType: typeof StartBuildRequest;
|
|
130
|
-
readonly requestStream: false;
|
|
131
|
-
readonly responseType: typeof StartBuildResponse;
|
|
132
|
-
readonly responseStream: false;
|
|
133
|
-
readonly options: {};
|
|
134
|
-
};
|
|
135
|
-
/** Get the status of a specific build execution */
|
|
136
|
-
readonly getBuildStatus: {
|
|
137
|
-
readonly name: "GetBuildStatus";
|
|
138
|
-
readonly requestType: typeof GetBuildStatusRequest;
|
|
139
|
-
readonly requestStream: false;
|
|
140
|
-
readonly responseType: typeof GetBuildStatusResponse;
|
|
141
|
-
readonly responseStream: false;
|
|
142
|
-
readonly options: {};
|
|
143
|
-
};
|
|
144
|
-
/** Stop or cancel a running build */
|
|
145
|
-
readonly stopBuild: {
|
|
146
|
-
readonly name: "StopBuild";
|
|
147
|
-
readonly requestType: typeof StopBuildRequest;
|
|
148
|
-
readonly requestStream: false;
|
|
149
|
-
readonly responseType: typeof StopBuildResponse;
|
|
150
|
-
readonly responseStream: false;
|
|
151
|
-
readonly options: {};
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
export interface BuildServiceImplementation<CallContextExt = {}> {
|
|
156
|
-
/** Start a new build with the given configuration */
|
|
157
|
-
startBuild(request: StartBuildRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StartBuildResponse>>;
|
|
158
|
-
/** Get the status of a specific build execution */
|
|
159
|
-
getBuildStatus(request: GetBuildStatusRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetBuildStatusResponse>>;
|
|
160
|
-
/** Stop or cancel a running build */
|
|
161
|
-
stopBuild(request: StopBuildRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StopBuildResponse>>;
|
|
162
|
-
}
|
|
163
|
-
export interface BuildServiceClient<CallOptionsExt = {}> {
|
|
164
|
-
/** Start a new build with the given configuration */
|
|
165
|
-
startBuild(request: DeepPartial<StartBuildRequest>, options?: CallOptions & CallOptionsExt): Promise<StartBuildResponse>;
|
|
166
|
-
/** Get the status of a specific build execution */
|
|
167
|
-
getBuildStatus(request: DeepPartial<GetBuildStatusRequest>, options?: CallOptions & CallOptionsExt): Promise<GetBuildStatusResponse>;
|
|
168
|
-
/** Stop or cancel a running build */
|
|
169
|
-
stopBuild(request: DeepPartial<StopBuildRequest>, options?: CallOptions & CallOptionsExt): Promise<StopBuildResponse>;
|
|
170
|
-
}
|
|
171
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
172
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
173
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
174
|
-
} : Partial<T>;
|
|
175
|
-
export interface MessageFns<T> {
|
|
176
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
177
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
178
|
-
fromJSON(object: any): T;
|
|
179
|
-
toJSON(message: T): unknown;
|
|
180
|
-
create(base?: DeepPartial<T>): T;
|
|
181
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
182
|
-
}
|
|
183
|
-
export {};
|
|
184
|
-
//# sourceMappingURL=build.d.ts.map
|