Skip to content

Commit

Permalink
Copied Protos from server (#1166)
Browse files Browse the repository at this point in the history
* Generated dashboard code from proto files on server

* Generated code from proto files on branch mewmba-generated-protos (#1176)

Co-authored-by: Mewmba <mewmba@trinsic.id>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mewmba and github-actions[bot] committed Nov 24, 2022
1 parent 0d1e7ab commit 60ec732
Show file tree
Hide file tree
Showing 96 changed files with 18,418 additions and 18,818 deletions.
2 changes: 1 addition & 1 deletion dart/lib/src/access_management_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AccessManagementService extends ServiceBase {
client = AccessManagementClient(super.channel);
}
// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT.
// target: C:\work\sdk\dart\lib\src\access_management_service.dart
// target: /home/runner/work/sdk/sdk/dart/lib/src/access_management_service.dart

Future<AddRoleAssignmentResponse> addRoleAssignment(
AddRoleAssignmentRequest request) async {
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/account_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class AccountService extends ServiceBase {
}

// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT.
// target: C:\work\sdk\dart\lib\src\account_service.dart
// target: /home/runner/work/sdk/sdk/dart/lib/src/account_service.dart

Future<AccountInfoResponse> info() async {
/// Get account information
Expand Down
2 changes: 1 addition & 1 deletion dart/lib/src/credential_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CredentialService extends ServiceBase {
client = VerifiableCredentialClient(super.channel);
}
// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT.
// target: C:\work\sdk\dart\lib\src\credential_service.dart
// target: /home/runner/work/sdk/sdk/dart/lib/src/credential_service.dart

Future<IssueResponse> issue(IssueRequest request) async {
/// Sign and issue a verifiable credential from a submitted document.
Expand Down
168 changes: 84 additions & 84 deletions dart/lib/src/proto/services/account/v1/account.pbgrpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,91 +10,91 @@ import 'dart:async' as $async;
import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'account.pb.dart' as $1;
import 'account.pb.dart' as $4;
export 'account.pb.dart';

class AccountClient extends $grpc.Client {
static final _$signIn =
$grpc.ClientMethod<$1.SignInRequest, $1.SignInResponse>(
$grpc.ClientMethod<$4.SignInRequest, $4.SignInResponse>(
'/services.account.v1.Account/SignIn',
($1.SignInRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $1.SignInResponse.fromBuffer(value));
static final _$login = $grpc.ClientMethod<$1.LoginRequest, $1.LoginResponse>(
($4.SignInRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $4.SignInResponse.fromBuffer(value));
static final _$login = $grpc.ClientMethod<$4.LoginRequest, $4.LoginResponse>(
'/services.account.v1.Account/Login',
($1.LoginRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $1.LoginResponse.fromBuffer(value));
($4.LoginRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) => $4.LoginResponse.fromBuffer(value));
static final _$loginConfirm =
$grpc.ClientMethod<$1.LoginConfirmRequest, $1.LoginConfirmResponse>(
$grpc.ClientMethod<$4.LoginConfirmRequest, $4.LoginConfirmResponse>(
'/services.account.v1.Account/LoginConfirm',
($1.LoginConfirmRequest value) => value.writeToBuffer(),
($4.LoginConfirmRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$1.LoginConfirmResponse.fromBuffer(value));
$4.LoginConfirmResponse.fromBuffer(value));
static final _$info =
$grpc.ClientMethod<$1.AccountInfoRequest, $1.AccountInfoResponse>(
$grpc.ClientMethod<$4.AccountInfoRequest, $4.AccountInfoResponse>(
'/services.account.v1.Account/Info',
($1.AccountInfoRequest value) => value.writeToBuffer(),
($4.AccountInfoRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$1.AccountInfoResponse.fromBuffer(value));
$4.AccountInfoResponse.fromBuffer(value));
static final _$listDevices =
$grpc.ClientMethod<$1.ListDevicesRequest, $1.ListDevicesResponse>(
$grpc.ClientMethod<$4.ListDevicesRequest, $4.ListDevicesResponse>(
'/services.account.v1.Account/ListDevices',
($1.ListDevicesRequest value) => value.writeToBuffer(),
($4.ListDevicesRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$1.ListDevicesResponse.fromBuffer(value));
$4.ListDevicesResponse.fromBuffer(value));
static final _$revokeDevice =
$grpc.ClientMethod<$1.RevokeDeviceRequest, $1.RevokeDeviceResponse>(
$grpc.ClientMethod<$4.RevokeDeviceRequest, $4.RevokeDeviceResponse>(
'/services.account.v1.Account/RevokeDevice',
($1.RevokeDeviceRequest value) => value.writeToBuffer(),
($4.RevokeDeviceRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$1.RevokeDeviceResponse.fromBuffer(value));
$4.RevokeDeviceResponse.fromBuffer(value));
static final _$authorizeWebhook = $grpc.ClientMethod<
$1.AuthorizeWebhookRequest, $1.AuthorizeWebhookResponse>(
$4.AuthorizeWebhookRequest, $4.AuthorizeWebhookResponse>(
'/services.account.v1.Account/AuthorizeWebhook',
($1.AuthorizeWebhookRequest value) => value.writeToBuffer(),
($4.AuthorizeWebhookRequest value) => value.writeToBuffer(),
($core.List<$core.int> value) =>
$1.AuthorizeWebhookResponse.fromBuffer(value));
$4.AuthorizeWebhookResponse.fromBuffer(value));

AccountClient($grpc.ClientChannel channel,
{$grpc.CallOptions? options,
$core.Iterable<$grpc.ClientInterceptor>? interceptors})
: super(channel, options: options, interceptors: interceptors);

$grpc.ResponseFuture<$1.SignInResponse> signIn($1.SignInRequest request,
$grpc.ResponseFuture<$4.SignInResponse> signIn($4.SignInRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$signIn, request, options: options);
}

$grpc.ResponseFuture<$1.LoginResponse> login($1.LoginRequest request,
$grpc.ResponseFuture<$4.LoginResponse> login($4.LoginRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$login, request, options: options);
}

$grpc.ResponseFuture<$1.LoginConfirmResponse> loginConfirm(
$1.LoginConfirmRequest request,
$grpc.ResponseFuture<$4.LoginConfirmResponse> loginConfirm(
$4.LoginConfirmRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$loginConfirm, request, options: options);
}

$grpc.ResponseFuture<$1.AccountInfoResponse> info(
$1.AccountInfoRequest request,
$grpc.ResponseFuture<$4.AccountInfoResponse> info(
$4.AccountInfoRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$info, request, options: options);
}

$grpc.ResponseFuture<$1.ListDevicesResponse> listDevices(
$1.ListDevicesRequest request,
$grpc.ResponseFuture<$4.ListDevicesResponse> listDevices(
$4.ListDevicesRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$listDevices, request, options: options);
}

$grpc.ResponseFuture<$1.RevokeDeviceResponse> revokeDevice(
$1.RevokeDeviceRequest request,
$grpc.ResponseFuture<$4.RevokeDeviceResponse> revokeDevice(
$4.RevokeDeviceRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$revokeDevice, request, options: options);
}

$grpc.ResponseFuture<$1.AuthorizeWebhookResponse> authorizeWebhook(
$1.AuthorizeWebhookRequest request,
$grpc.ResponseFuture<$4.AuthorizeWebhookResponse> authorizeWebhook(
$4.AuthorizeWebhookRequest request,
{$grpc.CallOptions? options}) {
return $createUnaryCall(_$authorizeWebhook, request, options: options);
}
Expand All @@ -104,117 +104,117 @@ abstract class AccountServiceBase extends $grpc.Service {
$core.String get $name => 'services.account.v1.Account';

AccountServiceBase() {
$addMethod($grpc.ServiceMethod<$1.SignInRequest, $1.SignInResponse>(
$addMethod($grpc.ServiceMethod<$4.SignInRequest, $4.SignInResponse>(
'SignIn',
signIn_Pre,
false,
false,
($core.List<$core.int> value) => $1.SignInRequest.fromBuffer(value),
($1.SignInResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.LoginRequest, $1.LoginResponse>(
($core.List<$core.int> value) => $4.SignInRequest.fromBuffer(value),
($4.SignInResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$4.LoginRequest, $4.LoginResponse>(
'Login',
login_Pre,
false,
false,
($core.List<$core.int> value) => $1.LoginRequest.fromBuffer(value),
($1.LoginResponse value) => value.writeToBuffer()));
($core.List<$core.int> value) => $4.LoginRequest.fromBuffer(value),
($4.LoginResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.LoginConfirmRequest, $1.LoginConfirmResponse>(
$grpc.ServiceMethod<$4.LoginConfirmRequest, $4.LoginConfirmResponse>(
'LoginConfirm',
loginConfirm_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.LoginConfirmRequest.fromBuffer(value),
($1.LoginConfirmResponse value) => value.writeToBuffer()));
$4.LoginConfirmRequest.fromBuffer(value),
($4.LoginConfirmResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.AccountInfoRequest, $1.AccountInfoResponse>(
$grpc.ServiceMethod<$4.AccountInfoRequest, $4.AccountInfoResponse>(
'Info',
info_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.AccountInfoRequest.fromBuffer(value),
($1.AccountInfoResponse value) => value.writeToBuffer()));
$4.AccountInfoRequest.fromBuffer(value),
($4.AccountInfoResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.ListDevicesRequest, $1.ListDevicesResponse>(
$grpc.ServiceMethod<$4.ListDevicesRequest, $4.ListDevicesResponse>(
'ListDevices',
listDevices_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.ListDevicesRequest.fromBuffer(value),
($1.ListDevicesResponse value) => value.writeToBuffer()));
$4.ListDevicesRequest.fromBuffer(value),
($4.ListDevicesResponse value) => value.writeToBuffer()));
$addMethod(
$grpc.ServiceMethod<$1.RevokeDeviceRequest, $1.RevokeDeviceResponse>(
$grpc.ServiceMethod<$4.RevokeDeviceRequest, $4.RevokeDeviceResponse>(
'RevokeDevice',
revokeDevice_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.RevokeDeviceRequest.fromBuffer(value),
($1.RevokeDeviceResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$1.AuthorizeWebhookRequest,
$1.AuthorizeWebhookResponse>(
$4.RevokeDeviceRequest.fromBuffer(value),
($4.RevokeDeviceResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$4.AuthorizeWebhookRequest,
$4.AuthorizeWebhookResponse>(
'AuthorizeWebhook',
authorizeWebhook_Pre,
false,
false,
($core.List<$core.int> value) =>
$1.AuthorizeWebhookRequest.fromBuffer(value),
($1.AuthorizeWebhookResponse value) => value.writeToBuffer()));
$4.AuthorizeWebhookRequest.fromBuffer(value),
($4.AuthorizeWebhookResponse value) => value.writeToBuffer()));
}

$async.Future<$1.SignInResponse> signIn_Pre(
$grpc.ServiceCall call, $async.Future<$1.SignInRequest> request) async {
$async.Future<$4.SignInResponse> signIn_Pre(
$grpc.ServiceCall call, $async.Future<$4.SignInRequest> request) async {
return signIn(call, await request);
}

$async.Future<$1.LoginResponse> login_Pre(
$grpc.ServiceCall call, $async.Future<$1.LoginRequest> request) async {
$async.Future<$4.LoginResponse> login_Pre(
$grpc.ServiceCall call, $async.Future<$4.LoginRequest> request) async {
return login(call, await request);
}

$async.Future<$1.LoginConfirmResponse> loginConfirm_Pre(
$async.Future<$4.LoginConfirmResponse> loginConfirm_Pre(
$grpc.ServiceCall call,
$async.Future<$1.LoginConfirmRequest> request) async {
$async.Future<$4.LoginConfirmRequest> request) async {
return loginConfirm(call, await request);
}

$async.Future<$1.AccountInfoResponse> info_Pre($grpc.ServiceCall call,
$async.Future<$1.AccountInfoRequest> request) async {
$async.Future<$4.AccountInfoResponse> info_Pre($grpc.ServiceCall call,
$async.Future<$4.AccountInfoRequest> request) async {
return info(call, await request);
}

$async.Future<$1.ListDevicesResponse> listDevices_Pre($grpc.ServiceCall call,
$async.Future<$1.ListDevicesRequest> request) async {
$async.Future<$4.ListDevicesResponse> listDevices_Pre($grpc.ServiceCall call,
$async.Future<$4.ListDevicesRequest> request) async {
return listDevices(call, await request);
}

$async.Future<$1.RevokeDeviceResponse> revokeDevice_Pre(
$async.Future<$4.RevokeDeviceResponse> revokeDevice_Pre(
$grpc.ServiceCall call,
$async.Future<$1.RevokeDeviceRequest> request) async {
$async.Future<$4.RevokeDeviceRequest> request) async {
return revokeDevice(call, await request);
}

$async.Future<$1.AuthorizeWebhookResponse> authorizeWebhook_Pre(
$async.Future<$4.AuthorizeWebhookResponse> authorizeWebhook_Pre(
$grpc.ServiceCall call,
$async.Future<$1.AuthorizeWebhookRequest> request) async {
$async.Future<$4.AuthorizeWebhookRequest> request) async {
return authorizeWebhook(call, await request);
}

$async.Future<$1.SignInResponse> signIn(
$grpc.ServiceCall call, $1.SignInRequest request);
$async.Future<$1.LoginResponse> login(
$grpc.ServiceCall call, $1.LoginRequest request);
$async.Future<$1.LoginConfirmResponse> loginConfirm(
$grpc.ServiceCall call, $1.LoginConfirmRequest request);
$async.Future<$1.AccountInfoResponse> info(
$grpc.ServiceCall call, $1.AccountInfoRequest request);
$async.Future<$1.ListDevicesResponse> listDevices(
$grpc.ServiceCall call, $1.ListDevicesRequest request);
$async.Future<$1.RevokeDeviceResponse> revokeDevice(
$grpc.ServiceCall call, $1.RevokeDeviceRequest request);
$async.Future<$1.AuthorizeWebhookResponse> authorizeWebhook(
$grpc.ServiceCall call, $1.AuthorizeWebhookRequest request);
$async.Future<$4.SignInResponse> signIn(
$grpc.ServiceCall call, $4.SignInRequest request);
$async.Future<$4.LoginResponse> login(
$grpc.ServiceCall call, $4.LoginRequest request);
$async.Future<$4.LoginConfirmResponse> loginConfirm(
$grpc.ServiceCall call, $4.LoginConfirmRequest request);
$async.Future<$4.AccountInfoResponse> info(
$grpc.ServiceCall call, $4.AccountInfoRequest request);
$async.Future<$4.ListDevicesResponse> listDevices(
$grpc.ServiceCall call, $4.ListDevicesRequest request);
$async.Future<$4.RevokeDeviceResponse> revokeDevice(
$grpc.ServiceCall call, $4.RevokeDeviceRequest request);
$async.Future<$4.AuthorizeWebhookResponse> authorizeWebhook(
$grpc.ServiceCall call, $4.AuthorizeWebhookRequest request);
}
Loading

0 comments on commit 60ec732

Please sign in to comment.