Skip to content

Commit 2c71ed3

Browse files
Merge pull request #7 from depot/updated-sdk
Pick up new fields and types in the API
2 parents ff71cb6 + 3888d6a commit 2c71ed3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type {
1111
PartialMessage,
1212
PlainMessage,
1313
} from '@bufbuild/protobuf'
14-
import {Message, Timestamp, proto3} from '@bufbuild/protobuf'
14+
import {Message, Timestamp, proto3, protoInt64} from '@bufbuild/protobuf'
1515

1616
/**
1717
* @generated from message depot.core.v1.Project
@@ -246,9 +246,9 @@ export class CreateProjectRequest extends Message<CreateProjectRequest> {
246246
name = ''
247247

248248
/**
249-
* @generated from field: string organization_id = 2;
249+
* @generated from field: optional string organization_id = 2;
250250
*/
251-
organizationId = ''
251+
organizationId?: string
252252

253253
/**
254254
* @generated from field: string region_id = 3;
@@ -269,7 +269,7 @@ export class CreateProjectRequest extends Message<CreateProjectRequest> {
269269
static readonly typeName = 'depot.core.v1.CreateProjectRequest'
270270
static readonly fields: FieldList = proto3.util.newFieldList(() => [
271271
{no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */},
272-
{no: 2, name: 'organization_id', kind: 'scalar', T: 9 /* ScalarType.STRING */},
272+
{no: 2, name: 'organization_id', kind: 'scalar', T: 9 /* ScalarType.STRING */, opt: true},
273273
{no: 3, name: 'region_id', kind: 'scalar', T: 9 /* ScalarType.STRING */},
274274
{no: 4, name: 'cache_policy', kind: 'message', T: CachePolicy, opt: true},
275275
])
@@ -510,9 +510,9 @@ export class DeleteProjectResponse extends Message<DeleteProjectResponse> {
510510
*/
511511
export class CachePolicy extends Message<CachePolicy> {
512512
/**
513-
* @generated from field: int32 keep_bytes = 1;
513+
* @generated from field: int64 keep_bytes = 1;
514514
*/
515-
keepBytes = 0
515+
keepBytes = protoInt64.zero
516516

517517
/**
518518
* @generated from field: int32 keep_days = 2;
@@ -527,7 +527,7 @@ export class CachePolicy extends Message<CachePolicy> {
527527
static readonly runtime: typeof proto3 = proto3
528528
static readonly typeName = 'depot.core.v1.CachePolicy'
529529
static readonly fields: FieldList = proto3.util.newFieldList(() => [
530-
{no: 1, name: 'keep_bytes', kind: 'scalar', T: 5 /* ScalarType.INT32 */},
530+
{no: 1, name: 'keep_bytes', kind: 'scalar', T: 3 /* ScalarType.INT64 */},
531531
{no: 2, name: 'keep_days', kind: 'scalar', T: 5 /* ScalarType.INT32 */},
532532
])
533533

0 commit comments

Comments
 (0)