Skip to content

Commit

Permalink
push latest version of APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rig-bot committed Jan 23, 2024
1 parent e752388 commit 88e9fba
Show file tree
Hide file tree
Showing 48 changed files with 2,281 additions and 188 deletions.
170 changes: 63 additions & 107 deletions api/v1/authentication/service_pb.ts

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions api/v1/authentication/user_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { UserIdentifier } from "../../../model/user_pb.js";

/**
* @generated from message api.v1.authentication.Token
*/
export class Token extends Message<Token> {
/**
* Access token
*
* @generated from field: string access_token = 1;
*/
accessToken = "";

/**
* Refresh token
*
* @generated from field: string refresh_token = 2;
*/
refreshToken = "";
Expand Down Expand Up @@ -49,3 +54,97 @@ export class Token extends Message<Token> {
}
}

/**
* @generated from message api.v1.authentication.ClientCredentials
*/
export class ClientCredentials extends Message<ClientCredentials> {
/**
* ID of the service account
*
* @generated from field: string client_id = 1;
*/
clientId = "";

/**
* secret of the service account
*
* @generated from field: string client_secret = 2;
*/
clientSecret = "";

constructor(data?: PartialMessage<ClientCredentials>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.authentication.ClientCredentials";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientCredentials {
return new ClientCredentials().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientCredentials {
return new ClientCredentials().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientCredentials {
return new ClientCredentials().fromJsonString(jsonString, options);
}

static equals(a: ClientCredentials | PlainMessage<ClientCredentials> | undefined, b: ClientCredentials | PlainMessage<ClientCredentials> | undefined): boolean {
return proto3.util.equals(ClientCredentials, a, b);
}
}

/**
* @generated from message api.v1.authentication.UserPassword
*/
export class UserPassword extends Message<UserPassword> {
/**
* Identifier of user. This can be username, email etc.
*
* @generated from field: model.UserIdentifier identifier = 1;
*/
identifier?: UserIdentifier;

/**
* Password of the user
*
* @generated from field: string password = 2;
*/
password = "";

constructor(data?: PartialMessage<UserPassword>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.authentication.UserPassword";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "identifier", kind: "message", T: UserIdentifier },
{ no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPassword {
return new UserPassword().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPassword {
return new UserPassword().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPassword {
return new UserPassword().fromJsonString(jsonString, options);
}

static equals(a: UserPassword | PlainMessage<UserPassword> | undefined, b: UserPassword | PlainMessage<UserPassword> | undefined): boolean {
return proto3.util.equals(UserPassword, a, b);
}
}

6 changes: 6 additions & 0 deletions api/v1/build/service_connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const Service = {
typeName: "api.v1.build.Service",
methods: {
/**
* Get Information about an image in a build.
*
* @generated from rpc api.v1.build.Service.GetImageInfo
*/
getImageInfo: {
Expand All @@ -22,6 +24,8 @@ export const Service = {
kind: MethodKind.Unary,
},
/**
* Get Information about a docker registry repository.
*
* @generated from rpc api.v1.build.Service.GetRepositoryInfo
*/
getRepositoryInfo: {
Expand All @@ -31,6 +35,8 @@ export const Service = {
kind: MethodKind.Unary,
},
/**
* Get a build.
*
* @generated from rpc api.v1.build.Service.Get
*/
get: {
Expand Down
Loading

0 comments on commit 88e9fba

Please sign in to comment.