Skip to content

Commit 85e69f9

Browse files
Merge pull request #17 from depot/update
Update SDK from proto
2 parents 9ee6f7b + 9c6ba45 commit 85e69f9

File tree

4 files changed

+307
-3
lines changed

4 files changed

+307
-3
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2+
// @generated from file depot/build/v1/registry.proto (package depot.build.v1, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import {MethodKind} from '@bufbuild/protobuf'
7+
import {DeleteImageRequest, DeleteImageResponse, ListImagesRequest, ListImagesResponse} from './registry_pb.js'
8+
9+
/**
10+
* @generated from service depot.build.v1.RegistryService
11+
*/
12+
export const RegistryService = {
13+
typeName: 'depot.build.v1.RegistryService',
14+
methods: {
15+
/**
16+
* @generated from rpc depot.build.v1.RegistryService.ListImages
17+
*/
18+
listImages: {
19+
name: 'ListImages',
20+
I: ListImagesRequest,
21+
O: ListImagesResponse,
22+
kind: MethodKind.Unary,
23+
},
24+
/**
25+
* @generated from rpc depot.build.v1.RegistryService.DeleteImage
26+
*/
27+
deleteImage: {
28+
name: 'DeleteImage',
29+
I: DeleteImageRequest,
30+
O: DeleteImageResponse,
31+
kind: MethodKind.Unary,
32+
},
33+
},
34+
} as const

src/gen/depot/build/v1/registry_pb.ts

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2+
// @generated from file depot/build/v1/registry.proto (package depot.build.v1, syntax proto3)
3+
/* eslint-disable */
4+
// @ts-nocheck
5+
6+
import type {
7+
BinaryReadOptions,
8+
FieldList,
9+
JsonReadOptions,
10+
JsonValue,
11+
PartialMessage,
12+
PlainMessage,
13+
} from '@bufbuild/protobuf'
14+
import {Message, proto3, protoInt64, Timestamp} from '@bufbuild/protobuf'
15+
16+
/**
17+
* @generated from message depot.build.v1.ListImagesRequest
18+
*/
19+
export class ListImagesRequest extends Message<ListImagesRequest> {
20+
/**
21+
* @generated from field: string project_id = 1;
22+
*/
23+
projectId = ''
24+
25+
/**
26+
* The maximum number of results to return per page
27+
*
28+
* @generated from field: optional int32 page_size = 2;
29+
*/
30+
pageSize?: number
31+
32+
/**
33+
* The page token indicating which page of results to return
34+
*
35+
* @generated from field: optional string page_token = 3;
36+
*/
37+
pageToken?: string
38+
39+
constructor(data?: PartialMessage<ListImagesRequest>) {
40+
super()
41+
proto3.util.initPartial(data, this)
42+
}
43+
44+
static readonly runtime: typeof proto3 = proto3
45+
static readonly typeName = 'depot.build.v1.ListImagesRequest'
46+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
47+
{no: 1, name: 'project_id', kind: 'scalar', T: 9 /* ScalarType.STRING */},
48+
{no: 2, name: 'page_size', kind: 'scalar', T: 5 /* ScalarType.INT32 */, opt: true},
49+
{no: 3, name: 'page_token', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true},
50+
])
51+
52+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListImagesRequest {
53+
return new ListImagesRequest().fromBinary(bytes, options)
54+
}
55+
56+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListImagesRequest {
57+
return new ListImagesRequest().fromJson(jsonValue, options)
58+
}
59+
60+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListImagesRequest {
61+
return new ListImagesRequest().fromJsonString(jsonString, options)
62+
}
63+
64+
static equals(
65+
a: ListImagesRequest | PlainMessage<ListImagesRequest> | undefined,
66+
b: ListImagesRequest | PlainMessage<ListImagesRequest> | undefined,
67+
): boolean {
68+
return proto3.util.equals(ListImagesRequest, a, b)
69+
}
70+
}
71+
72+
/**
73+
* @generated from message depot.build.v1.Image
74+
*/
75+
export class Image extends Message<Image> {
76+
/**
77+
* @generated from field: string tag = 1;
78+
*/
79+
tag = ''
80+
81+
/**
82+
* @generated from field: string digest = 2;
83+
*/
84+
digest = ''
85+
86+
/**
87+
* @generated from field: google.protobuf.Timestamp pushed_at = 3;
88+
*/
89+
pushedAt?: Timestamp
90+
91+
/**
92+
* @generated from field: uint64 size_bytes = 4;
93+
*/
94+
sizeBytes = protoInt64.zero
95+
96+
constructor(data?: PartialMessage<Image>) {
97+
super()
98+
proto3.util.initPartial(data, this)
99+
}
100+
101+
static readonly runtime: typeof proto3 = proto3
102+
static readonly typeName = 'depot.build.v1.Image'
103+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
104+
{no: 1, name: 'tag', kind: 'scalar', T: 9 /* ScalarType.STRING */},
105+
{no: 2, name: 'digest', kind: 'scalar', T: 9 /* ScalarType.STRING */},
106+
{no: 3, name: 'pushed_at', kind: 'message', T: Timestamp},
107+
{no: 4, name: 'size_bytes', kind: 'scalar', T: 4 /* ScalarType.UINT64 */},
108+
])
109+
110+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Image {
111+
return new Image().fromBinary(bytes, options)
112+
}
113+
114+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Image {
115+
return new Image().fromJson(jsonValue, options)
116+
}
117+
118+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Image {
119+
return new Image().fromJsonString(jsonString, options)
120+
}
121+
122+
static equals(a: Image | PlainMessage<Image> | undefined, b: Image | PlainMessage<Image> | undefined): boolean {
123+
return proto3.util.equals(Image, a, b)
124+
}
125+
}
126+
127+
/**
128+
* @generated from message depot.build.v1.ListImagesResponse
129+
*/
130+
export class ListImagesResponse extends Message<ListImagesResponse> {
131+
/**
132+
* @generated from field: repeated depot.build.v1.Image images = 1;
133+
*/
134+
images: Image[] = []
135+
136+
/**
137+
* The next page token, if there are more results
138+
*
139+
* @generated from field: optional string next_page_token = 2;
140+
*/
141+
nextPageToken?: string
142+
143+
constructor(data?: PartialMessage<ListImagesResponse>) {
144+
super()
145+
proto3.util.initPartial(data, this)
146+
}
147+
148+
static readonly runtime: typeof proto3 = proto3
149+
static readonly typeName = 'depot.build.v1.ListImagesResponse'
150+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
151+
{no: 1, name: 'images', kind: 'message', T: Image, repeated: true},
152+
{no: 2, name: 'next_page_token', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true},
153+
])
154+
155+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListImagesResponse {
156+
return new ListImagesResponse().fromBinary(bytes, options)
157+
}
158+
159+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListImagesResponse {
160+
return new ListImagesResponse().fromJson(jsonValue, options)
161+
}
162+
163+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListImagesResponse {
164+
return new ListImagesResponse().fromJsonString(jsonString, options)
165+
}
166+
167+
static equals(
168+
a: ListImagesResponse | PlainMessage<ListImagesResponse> | undefined,
169+
b: ListImagesResponse | PlainMessage<ListImagesResponse> | undefined,
170+
): boolean {
171+
return proto3.util.equals(ListImagesResponse, a, b)
172+
}
173+
}
174+
175+
/**
176+
* @generated from message depot.build.v1.DeleteImageRequest
177+
*/
178+
export class DeleteImageRequest extends Message<DeleteImageRequest> {
179+
/**
180+
* @generated from field: string project_id = 1;
181+
*/
182+
projectId = ''
183+
184+
/**
185+
* @generated from field: repeated string image_tags = 2;
186+
*/
187+
imageTags: string[] = []
188+
189+
constructor(data?: PartialMessage<DeleteImageRequest>) {
190+
super()
191+
proto3.util.initPartial(data, this)
192+
}
193+
194+
static readonly runtime: typeof proto3 = proto3
195+
static readonly typeName = 'depot.build.v1.DeleteImageRequest'
196+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
197+
{no: 1, name: 'project_id', kind: 'scalar', T: 9 /* ScalarType.STRING */},
198+
{no: 2, name: 'image_tags', kind: 'scalar', T: 9 /* ScalarType.STRING */, repeated: true},
199+
])
200+
201+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteImageRequest {
202+
return new DeleteImageRequest().fromBinary(bytes, options)
203+
}
204+
205+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteImageRequest {
206+
return new DeleteImageRequest().fromJson(jsonValue, options)
207+
}
208+
209+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteImageRequest {
210+
return new DeleteImageRequest().fromJsonString(jsonString, options)
211+
}
212+
213+
static equals(
214+
a: DeleteImageRequest | PlainMessage<DeleteImageRequest> | undefined,
215+
b: DeleteImageRequest | PlainMessage<DeleteImageRequest> | undefined,
216+
): boolean {
217+
return proto3.util.equals(DeleteImageRequest, a, b)
218+
}
219+
}
220+
221+
/**
222+
* @generated from message depot.build.v1.DeleteImageResponse
223+
*/
224+
export class DeleteImageResponse extends Message<DeleteImageResponse> {
225+
constructor(data?: PartialMessage<DeleteImageResponse>) {
226+
super()
227+
proto3.util.initPartial(data, this)
228+
}
229+
230+
static readonly runtime: typeof proto3 = proto3
231+
static readonly typeName = 'depot.build.v1.DeleteImageResponse'
232+
static readonly fields: FieldList = proto3.util.newFieldList(() => [])
233+
234+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteImageResponse {
235+
return new DeleteImageResponse().fromBinary(bytes, options)
236+
}
237+
238+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteImageResponse {
239+
return new DeleteImageResponse().fromJson(jsonValue, options)
240+
}
241+
242+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteImageResponse {
243+
return new DeleteImageResponse().fromJsonString(jsonString, options)
244+
}
245+
246+
static equals(
247+
a: DeleteImageResponse | PlainMessage<DeleteImageResponse> | undefined,
248+
b: DeleteImageResponse | PlainMessage<DeleteImageResponse> | undefined,
249+
): boolean {
250+
return proto3.util.equals(DeleteImageResponse, a, b)
251+
}
252+
}

src/gen/depot/core/v1/project_pb.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import {Message, proto3, Timestamp} from '@bufbuild/protobuf'
2020
*/
2121
export enum Hardware {
2222
/**
23-
* By default is 16 CPU and 32GB of memory.
23+
* By default is 16 CPU and 32GB of memory. Supported by AWS builders.
2424
*
2525
* @generated from enum value: HARDWARE_UNSPECIFIED = 0;
2626
*/
2727
HARDWARE_UNSPECIFIED = 0,
2828

2929
/**
30-
* 16 CPU and 32GB of memory.
30+
* 16 CPU and 32GB of memory. Supported by AWS builders.
3131
*
3232
* @generated from enum value: HARDWARE_16X32 = 1;
3333
*/
@@ -48,11 +48,25 @@ export enum Hardware {
4848
HARDWARE_8X8 = 3,
4949

5050
/**
51-
* 8 CPU and 16GB of memory.
51+
* 8 CPU and 16GB of memory. Supported by AWS builders.
5252
*
5353
* @generated from enum value: HARDWARE_8X16 = 4;
5454
*/
5555
HARDWARE_8X16 = 4,
56+
57+
/**
58+
* 32 CPU and 64GB of memory. Supported by AWS builders.
59+
*
60+
* @generated from enum value: HARDWARE_32X64 = 5;
61+
*/
62+
HARDWARE_32X64 = 5,
63+
64+
/**
65+
* 64 CPU and 128GB of memory. Supported by AWS builders.
66+
*
67+
* @generated from enum value: HARDWARE_64X128 = 6;
68+
*/
69+
HARDWARE_64X128 = 6,
5670
}
5771
// Retrieve enum metadata with: proto3.getEnumType(Hardware)
5872
proto3.util.setEnumType(Hardware, 'depot.core.v1.Hardware', [
@@ -61,6 +75,8 @@ proto3.util.setEnumType(Hardware, 'depot.core.v1.Hardware', [
6175
{no: 2, name: 'HARDWARE_4X4'},
6276
{no: 3, name: 'HARDWARE_8X8'},
6377
{no: 4, name: 'HARDWARE_8X16'},
78+
{no: 5, name: 'HARDWARE_32X64'},
79+
{no: 6, name: 'HARDWARE_64X128'},
6480
])
6581

6682
/**

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {createPromiseClient} from '@connectrpc/connect'
22
import {createConnectTransport} from '@connectrpc/connect-node'
33
import * as buildV1Build from './gen/depot/build/v1/build_connect'
4+
import * as buildV1Registry from './gen/depot/build/v1/registry_connect'
45
import * as buildkitV1BuildKit from './gen/depot/buildkit/v1/buildkit_connect'
56
import * as coreV1Build from './gen/depot/core/v1/build_connect'
67
import * as coreV1Project from './gen/depot/core/v1/project_connect'
@@ -14,6 +15,7 @@ export const depot = {
1415
build: {
1516
v1: {
1617
BuildService: createPromiseClient(buildV1Build.BuildService, transport),
18+
RegistryService: createPromiseClient(buildV1Registry.RegistryService, transport),
1719
},
1820
},
1921
buildkit: {

0 commit comments

Comments
 (0)