Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quivr addon proto #249

Merged
merged 1 commit into from
May 15, 2024
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
562 changes: 382 additions & 180 deletions generated/go/porter/v1/addons.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/agent_app_event_types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/aks.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/app_event_webhook.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/auth_management.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/aws_assume_role.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/cloud_contract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/cloud_provider_credentials.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/cluster.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/cluster_control_plane.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/compliance.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/contract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/datastore.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/dead_letter.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/deployment_target.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/eks.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/env_group.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/environment.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/errors.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/gke.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/notification.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/porter_app.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/prometheus_alerts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated/go/porter/v1/system_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions generated/js/src/porter/v1/addons_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ export declare enum AddonType {
* @generated from enum value: ADDON_TYPE_TAILSCALE = 7;
*/
TAILSCALE = 7,

/**
* ADDON_TYPE_QUIVR is the quivr addon type
*
* @generated from enum value: ADDON_TYPE_QUIVR = 8;
*/
QUIVR = 8,
}

/**
Expand Down Expand Up @@ -186,6 +193,14 @@ export declare class Addon extends Message<Addon> {
*/
value: Tailscale;
case: "tailscale";
} | {
/**
* Quivr is the configuration for the quivr addon
*
* @generated from field: porter.v1.Quivr quivr = 11;
*/
value: Quivr;
case: "quivr";
} | { case: undefined; value?: undefined };

constructor(data?: PartialMessage<Addon>);
Expand Down Expand Up @@ -634,3 +649,78 @@ export declare class Tailscale extends Message<Tailscale> {
static equals(a: Tailscale | PlainMessage<Tailscale> | undefined, b: Tailscale | PlainMessage<Tailscale> | undefined): boolean;
}

/**
* Quivr is the configuration for Quivr
*
* @generated from message porter.v1.Quivr
*/
export declare class Quivr extends Message<Quivr> {
/**
* domains is the list of domains for the service
*
* @generated from field: repeated porter.v1.Domain domains = 1;
*/
domains: Domain[];

/**
* ingress_enabled describes whether the quivr instance has external ingress enabled
*
* @generated from field: optional bool ingress_enabled = 2;
*/
ingressEnabled?: boolean;

/**
* @generated from field: optional string openai_api_key = 3;
*/
openaiApiKey?: string;

/**
* @generated from field: optional string supabase_url = 4;
*/
supabaseUrl?: string;

/**
* @generated from field: optional string supabase_service_key = 5;
*/
supabaseServiceKey?: string;

/**
* @generated from field: optional string pg_database_url = 6;
*/
pgDatabaseUrl?: string;

/**
* @generated from field: optional string jwt_secret_key = 7;
*/
jwtSecretKey?: string;

/**
* @generated from field: optional string cohere_api_key = 8;
*/
cohereApiKey?: string;

/**
* @generated from field: optional string anthropic_api_key = 9;
*/
anthropicApiKey?: string;

/**
* @generated from field: optional string quivr_domain = 10;
*/
quivrDomain?: string;

constructor(data?: PartialMessage<Quivr>);

static readonly runtime: typeof proto3;
static readonly typeName = "porter.v1.Quivr";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Quivr;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Quivr;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Quivr;

static equals(a: Quivr | PlainMessage<Quivr> | undefined, b: Quivr | PlainMessage<Quivr> | undefined): boolean;
}

23 changes: 23 additions & 0 deletions generated/js/src/porter/v1/addons_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const AddonType = /*@__PURE__*/ proto3.makeEnum(
{no: 5, name: "ADDON_TYPE_METABASE", localName: "METABASE"},
{no: 6, name: "ADDON_TYPE_NEWRELIC", localName: "NEWRELIC"},
{no: 7, name: "ADDON_TYPE_TAILSCALE", localName: "TAILSCALE"},
{no: 8, name: "ADDON_TYPE_QUIVR", localName: "QUIVR"},
],
);

Expand Down Expand Up @@ -55,6 +56,7 @@ export const Addon = /*@__PURE__*/ proto3.makeMessageType(
{ no: 8, name: "metabase", kind: "message", T: Metabase, oneof: "config" },
{ no: 9, name: "newrelic", kind: "message", T: Newrelic, oneof: "config" },
{ no: 10, name: "tailscale", kind: "message", T: Tailscale, oneof: "config" },
{ no: 11, name: "quivr", kind: "message", T: Quivr, oneof: "config" },
],
);

Expand Down Expand Up @@ -185,3 +187,24 @@ export const Tailscale = /*@__PURE__*/ proto3.makeMessageType(
],
);

/**
* Quivr is the configuration for Quivr
*
* @generated from message porter.v1.Quivr
*/
export const Quivr = /*@__PURE__*/ proto3.makeMessageType(
"porter.v1.Quivr",
() => [
{ no: 1, name: "domains", kind: "message", T: Domain, repeated: true },
{ no: 2, name: "ingress_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
{ no: 3, name: "openai_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 4, name: "supabase_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 5, name: "supabase_service_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 6, name: "pg_database_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 7, name: "jwt_secret_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 8, name: "cohere_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 9, name: "anthropic_api_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
{ no: 10, name: "quivr_domain", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
],
);

20 changes: 20 additions & 0 deletions porter/v1/addons.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ enum AddonType {
ADDON_TYPE_NEWRELIC = 6;
// ADDON_TYPE_TAILSCALE is the tailscale addon type
ADDON_TYPE_TAILSCALE = 7;
// ADDON_TYPE_QUIVR is the quivr addon type
ADDON_TYPE_QUIVR = 8;
}

// PrerequisiteAddon specifies an addon that must be installed before any apps can be installed
Expand Down Expand Up @@ -55,6 +57,8 @@ message Addon {
Newrelic newrelic = 9;
// Tailscale is the configuration for the tailscale addon
Tailscale tailscale = 10;
// Quivr is the configuration for the quivr addon
Quivr quivr = 11;
}
}

Expand Down Expand Up @@ -162,3 +166,19 @@ message Tailscale {
// subnet_routes are the subnet routes for Tailscale
repeated string subnet_routes = 2;
}

// Quivr is the configuration for Quivr
message Quivr {
// domains is the list of domains for the service
repeated Domain domains = 1;
// ingress_enabled describes whether the quivr instance has external ingress enabled
optional bool ingress_enabled = 2;
optional string openai_api_key = 3;
optional string supabase_url = 4;
optional string supabase_service_key = 5;
optional string pg_database_url = 6;
optional string jwt_secret_key = 7;
optional string cohere_api_key = 8;
optional string anthropic_api_key = 9;
optional string quivr_domain = 10;
}
Loading