Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
},
"dependencies": {
"@ant-design/plots": "^1.2.5",
"@connectrpc/connect": "^2.1.0",
"@connectrpc/connect-web": "^2.1.0",
"@hookform/resolvers": "^3.4.2",
"@planetscale/database": "^1.16.0",
"@radix-ui/react-accordion": "^1.2.0",
Expand Down Expand Up @@ -55,6 +57,7 @@
"@unkey/icons": "workspace:^",
"@unkey/id": "workspace:^",
"@unkey/keys": "workspace:^",
"@unkey/proto": "workspace:^",
"@unkey/ratelimit": "^2.1.3",
"@unkey/rbac": "workspace:^",
"@unkey/resend": "workspace:^",
Expand Down
6 changes: 6 additions & 0 deletions go/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ plugins:
- remote: buf.build/connectrpc/go:v1.18.1
out: gen/proto
opt: paths=source_relative
- remote: buf.build/bufbuild/es:v1.10.0
out: ../internal/proto/generated
opt: target=ts
- remote: buf.build/connectrpc/es:v1.6.1
out: ../internal/proto/generated
opt: target=ts
28 changes: 28 additions & 0 deletions internal/proto/generated/proto/ctrl/v1/acme_connect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
// @generated from file proto/ctrl/v1/acme.proto (package ctrl.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import { MethodKind } from "@bufbuild/protobuf";
import {
HandleCertificateVerificationRequest,
HandleCertificateVerificationResponse,
} from "./acme_pb.js";

/**
* @generated from service ctrl.v1.AcmeService
*/
export const AcmeService = {
typeName: "ctrl.v1.AcmeService",
methods: {
/**
* @generated from rpc ctrl.v1.AcmeService.HandleCertificateVerification
*/
handleCertificateVerification: {
name: "HandleCertificateVerification",
I: HandleCertificateVerificationRequest,
O: HandleCertificateVerificationResponse,
kind: MethodKind.Unary,
},
},
} as const;
130 changes: 130 additions & 0 deletions internal/proto/generated/proto/ctrl/v1/acme_pb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file proto/ctrl/v1/acme.proto (package ctrl.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck

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

/**
* @generated from message ctrl.v1.HandleCertificateVerificationRequest
*/
export class HandleCertificateVerificationRequest extends Message<HandleCertificateVerificationRequest> {
/**
* @generated from field: string domain = 1;
*/
domain = "";

/**
* @generated from field: string token = 2;
*/
token = "";

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

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

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

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

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

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

/**
* @generated from message ctrl.v1.HandleCertificateVerificationResponse
*/
export class HandleCertificateVerificationResponse extends Message<HandleCertificateVerificationResponse> {
/**
* @generated from field: string token = 1;
*/
token = "";

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

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "ctrl.v1.HandleCertificateVerificationResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

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

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

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

static equals(
a:
| HandleCertificateVerificationResponse
| PlainMessage<HandleCertificateVerificationResponse>
| undefined,
b:
| HandleCertificateVerificationResponse
| PlainMessage<HandleCertificateVerificationResponse>
| undefined,
): boolean {
return proto3.util.equals(HandleCertificateVerificationResponse, a, b);
}
}
43 changes: 43 additions & 0 deletions internal/proto/generated/proto/ctrl/v1/build_connect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
// @generated from file proto/ctrl/v1/build.proto (package ctrl.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import { MethodKind } from "@bufbuild/protobuf";
import {
CreateBuildRequest,
CreateBuildResponse,
GetBuildRequest,
GetBuildResponse,
} from "./build_pb.js";

/**
* @generated from service ctrl.v1.BuildService
*/
export const BuildService = {
typeName: "ctrl.v1.BuildService",
methods: {
/**
* Create a new build
*
* @generated from rpc ctrl.v1.BuildService.CreateBuild
*/
createBuild: {
name: "CreateBuild",
I: CreateBuildRequest,
O: CreateBuildResponse,
kind: MethodKind.Unary,
},
/**
* Get build details
*
* @generated from rpc ctrl.v1.BuildService.GetBuild
*/
getBuild: {
name: "GetBuild",
I: GetBuildRequest,
O: GetBuildResponse,
kind: MethodKind.Unary,
},
},
} as const;
Loading