Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: retire seat limitation (#5533)
Danny Xubfd551e98f2e
diff --git a/backend/api/v1/subscription_service.go b/backend/api/v1/subscription_service.goindex 121e865d1e..e4bfa67ac7 100644--- a/backend/api/v1/subscription_service.go+++ b/backend/api/v1/subscription_service.go@@ -86,7 +86,6 @@ func (s *SubscriptionService) TrialSubscription(ctx context.Context, request *v1license := &enterpriseAPI.License{InstanceCount: int(request.Trial.InstanceCount),- Seat: int(request.Trial.Seat),ExpiresTs: time.Now().AddDate(0, 0, int(request.Trial.Days)).Unix(),IssuedTs: time.Now().Unix(),Plan: planType,@@ -187,7 +186,6 @@ func (s *SubscriptionService) loadSubscription(ctx context.Context) (*v1pb.Subsc}subscription := &v1pb.Subscription{- Seat: int32(sub.Seat),InstanceCount: int32(sub.InstanceCount),Plan: plan,Trialing: sub.Trialing,diff --git a/backend/enterprise/api/license.go b/backend/enterprise/api/license.goindex 198988faaa..a8b1a818da 100644--- a/backend/enterprise/api/license.go+++ b/backend/enterprise/api/license.go@@ -23,7 +23,6 @@ type License struct {InstanceCount int `json:"instanceCount"`ExpiresTs int64 `json:"expiresTs"`IssuedTs int64 `json:"issuedTs"`- Seat int `json:"seat"`Plan api.PlanType `json:"plan"`Trialing bool `json:"trialing"`OrgName string `json:"orgName"`diff --git a/backend/enterprise/api/subscription.go b/backend/enterprise/api/subscription.goindex c29d483228..6dab5ee7e7 100644--- a/backend/enterprise/api/subscription.go+++ b/backend/enterprise/api/subscription.go@@ -10,7 +10,6 @@ type SubscriptionPatch struct {// Subscription is the API message for subscription.type Subscription struct {- Seat int `jsonapi:"attr,seat"`InstanceCount int `jsonapi:"attr,instanceCount"`ExpiresTs int64 `jsonapi:"attr,expiresTs"`StartedTs int64 `jsonapi:"attr,startedTs"`diff --git a/backend/enterprise/config/config.go b/backend/enterprise/config/config.goindex 54b2aa3b4c..1f3f241244 100644--- a/backend/enterprise/config/config.go+++ b/backend/enterprise/config/config.go@@ -35,8 +35,6 @@ const (issuer = "bytebase"// audience is the license token audience.audience = "bb.license"- // MaximumSeatForFreePlan is the maximum seat limit for the FREE plan.- MaximumSeatForFreePlan = 10// MaximumInstanceForFreePlan is the maximum instance limit for the FREE plan.MaximumInstanceForFreePlan = 10)diff --git a/backend/enterprise/service/license.go b/backend/enterprise/service/license.goindex 1ce1d3ebdd..6fec5eaddb 100644--- a/backend/enterprise/service/license.go+++ b/backend/enterprise/service/license.go@@ -29,7 +29,6 @@ type LicenseService struct {// Claims creates a struct that will be encoded to a JWT.// We add jwt.RegisteredClaims as an embedded type, to provide fields such as name.type Claims struct {- Seat int `json:"seat"`InstanceCount int `json:"instanceCount"`Trialing bool `json:"trialing"`Plan string `json:"plan"`@@ -83,15 +82,9 @@ func (s *LicenseService) LoadSubscription(ctx context.Context) enterpriseAPI.Sub// -1 means not expire, just for free planExpiresTs: -1,InstanceCount: config.MaximumInstanceForFreePlan,- Seat: config.MaximumSeatForFreePlan,}}- seat := license.Seat- if seat == 0 {- seat = -1- }-// Cache the subscription.s.cachedSubscription = &enterpriseAPI.Subscription{Plan: license.Plan,@@ -101,7 +94,6 @@ func (s *LicenseService) LoadSubscription(ctx context.Context) enterpriseAPI.SubTrialing: license.Trialing,OrgID: license.OrgID(),OrgName: license.OrgName,- Seat: seat,}return *s.cachedSubscription}@@ -214,7 +206,6 @@ func (s *LicenseService) findEnterpriseLicense(ctx context.Context) (*enterprisezap.String("plan", license.Plan.String()),zap.Time("expiresAt", time.Unix(license.ExpiresTs, 0)),zap.Int("instanceCount", license.InstanceCount),- zap.Int("seat", license.Seat),)return license, nil}@@ -261,7 +252,6 @@ func (s *LicenseService) parseClaims(claims *Claims) (*enterpriseAPI.License, erlicense := &enterpriseAPI.License{InstanceCount: claims.InstanceCount,- Seat: claims.Seat,ExpiresTs: claims.ExpiresAt.Unix(),IssuedTs: claims.IssuedAt.Unix(),Plan: planType,diff --git a/backend/server/member.go b/backend/server/member.goindex ab2f93d1a5..0825cb02b0 100644--- a/backend/server/member.go+++ b/backend/server/member.go@@ -128,10 +128,6 @@ func (s *Server) registerMemberRoutes(g *echo.Group) {if ownerCount == 1 {return echo.NewHTTPError(http.StatusInternalServerError, "Cannot archive the only remaining owner in workspace").SetInternal(err)}- } else if *status == string(api.Normal) {- if err := s.seatCountGuard(ctx); err != nil {- return err- }}}diff --git a/backend/server/principal.go b/backend/server/principal.goindex 0fe0c7ba1f..ffcec89197 100644--- a/backend/server/principal.go+++ b/backend/server/principal.go@@ -1,7 +1,6 @@package serverimport (- "context""fmt""net/http""net/mail"@@ -25,10 +24,6 @@ import (func (s *Server) registerPrincipalRoutes(g *echo.Group) {g.POST("/principal", func(c echo.Context) error {ctx := c.Request().Context()- if err := s.seatCountGuard(ctx); err != nil {- return err- }-principalCreate := &api.PrincipalCreate{}if err := jsonapi.UnmarshalPayload(c.Request().Body, principalCreate); err != nil {return echo.NewHTTPError(http.StatusBadRequest, "Malformed create principal request").SetInternal(err)@@ -225,32 +220,6 @@ func (s *Server) registerPrincipalRoutes(g *echo.Group) {})}-func (s *Server) seatCountGuard(ctx context.Context) error {- subscription := s.licenseService.LoadSubscription(ctx)- if subscription.Seat == -1 {- return nil- }-- statsList, err := s.store.CountMemberGroupByRoleAndStatus(ctx)- if err != nil {- return echo.NewHTTPError(http.StatusInternalServerError, "Failed to count seat").SetInternal(err)- }-- count := 0- for _, stats := range statsList {- if stats.Type != api.EndUser || stats.RowStatus == api.Archived {- continue- }- count += stats.Count- }-- if count >= subscription.Seat {- return echo.NewHTTPError(http.StatusForbidden, fmt.Sprintf("You have reached the maximum seat count %d.", subscription.Seat))- }-- return nil-}-func validateEmail(email string) error {formatedEmail := strings.ToLower(email)if email != formatedEmail {diff --git a/backend/tests/subscription_test.go b/backend/tests/subscription_test.goindex f72ca64028..c1b3b06ae5 100644--- a/backend/tests/subscription_test.go+++ b/backend/tests/subscription_test.go@@ -13,7 +13,6 @@ import ()type trial struct {- seat int32instanceCount int32expectInstanceCount int32plan v1pb.PlanType@@ -41,7 +40,6 @@ func TestSubscription(t *testing.T) {trialList := []trial{{// Test trial the TEAM plan.- seat: 10,instanceCount: 20,expectInstanceCount: 20,plan: v1pb.PlanType_TEAM,@@ -50,7 +48,6 @@ func TestSubscription(t *testing.T) {},{// Test trial the ENTERPRISE plan.- seat: 10,instanceCount: 10,expectInstanceCount: 10,plan: v1pb.PlanType_ENTERPRISE,@@ -59,7 +56,6 @@ func TestSubscription(t *testing.T) {},{// Downgrade should be ignored.- seat: 10,instanceCount: 99,expectInstanceCount: 10,plan: v1pb.PlanType_TEAM,@@ -70,7 +66,6 @@ func TestSubscription(t *testing.T) {for _, trial := range trialList {err = ctl.trialPlan(&v1pb.TrialSubscription{- Seat: trial.seat,InstanceCount: trial.instanceCount,Plan: trial.plan,Days: trial.Days,diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 6d2a07d30f..99d0489a60 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1729,13 +1729,6 @@"runoutof": "Your have run out of your {total} instance quota.","upgrade": "@:{'subscription.upgrade'} to get more instance quota."},- "bb-feature-seat-count": {- "title": "Seat count limit",- "desc": "You have reached the maximum seat count limit. Please upgrade to get more seat quota.",- "remaining": "Your total seat quota is {total}, only have {count} seat remained.",- "runoutof": "Your have run out of your {total} seat quota.",- "upgrade": "@:{'subscription.upgrade'} to get more seat quota."- },"bb-feature-multi-tenancy": {"title": "Multi-tenancy","desc": "Intelligent database management for tenants using identical schemas."diff --git a/frontend/src/locales/subscription/en-US.json b/frontend/src/locales/subscription/en-US.jsonindex f2042b5944..52f4126649 100644--- a/frontend/src/locales/subscription/en-US.json+++ b/frontend/src/locales/subscription/en-US.json@@ -1,6 +1,5 @@{"current": "Current plan",- "seat-count": "Seat count","unlimited": "Unlimited","instance-count": "Instance count","expires-at": "Expires at",@@ -16,9 +15,8 @@"billed-annually": "Billed annually","billed-monthly": "Billed monthly","per-instance": "Per instance",- "per-seat": "Per seat",- "free-price-intro": "Up to 10 seats and 10 instances",- "team-price-intro": "Up to 10 seats and 10 instances (first 3 FREE)",+ "free-price-intro": "Up to 10 instances",+ "team-price-intro": "Up to 10 instances (first 3 FREE)","enterprise-price-intro": "Customized, billed annually","deploy": "Deploy","contact-us": "Contact us",@@ -103,9 +101,6 @@"collaboration": {"title": "Collaboration","features": {- "seat-count": "Seat count",- "seat-maximum-10": "Up to 10",- "seat-customized": "Customized","ui-based-sql-review": "UI based SQL review","vsc-workflow": "GitOps Workflow","shared-sql-script": "Shared SQL script",diff --git a/frontend/src/locales/subscription/zh-CN.json b/frontend/src/locales/subscription/zh-CN.jsonindex 0a7c98d215..7a227fca05 100644--- a/frontend/src/locales/subscription/zh-CN.json+++ b/frontend/src/locales/subscription/zh-CN.json@@ -1,6 +1,5 @@{"current": "当前版本",- "seat-count": "席位数","unlimited": "无限制","instance-count": "实例数","expires-at": "过期时间",@@ -16,9 +15,8 @@"billed-annually": "按年付费","billed-monthly": "按月付费","per-instance": "每个实例",- "per-seat": "每个席位",- "free-price-intro": "最多 10 个席位,10 个实例",- "team-price-intro": "最多 10 个席位,10 个实例(含 3 个免费实例)",+ "free-price-intro": "最多 10 个实例",+ "team-price-intro": "最多 10 个实例(含 3 个免费实例)","enterprise-price-intro": "自定义席位和实例,按年付费","deploy": "部署","contact-us": "联系我们",@@ -103,9 +101,6 @@"collaboration": {"title": "团队协作","features": {- "seat-count": "席位",- "seat-maximum-10": "不超过 10 个",- "seat-customized": "自定义","ui-based-sql-review": "基于 UI 的 SQL 审查","vsc-workflow": "GitOps 工作流","shared-sql-script": "共享 SQL 脚本",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 240c785191..9bdbc506cc 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1728,13 +1728,6 @@"runoutof": "已用尽全部 {total} 个实例额度。","upgrade": "@:{'subscription.upgrade'}来获取更多实例额度。"},- "bb-feature-seat-count": {- "title": "席位数量限制",- "desc": "您已达最大席位数量限制,请付费升级来获取更多席位额度。",- "remaining": "当前总席位额度为 {total},目前仅剩 {count} 个份额可用。",- "runoutof": "已用尽全部 {total} 个席位额度。",- "upgrade": "@:{'subscription.upgrade'}来获取更多席位额度。"- },"bb-feature-multi-tenancy": {"title": "多租户","desc": "「多租户功能」可以同时管理多个属于不同租户的同构数据库,帮您更统一和方便地对多个数据库进行管理和表结构变更。"diff --git a/frontend/src/store/modules/subscription.ts b/frontend/src/store/modules/subscription.tsindex 47d7234112..7d59e47f63 100644--- a/frontend/src/store/modules/subscription.ts+++ b/frontend/src/store/modules/subscription.ts@@ -17,13 +17,6 @@ export const useSubscriptionStore = defineStore("subscription", {trialingDays: 14,}),getters: {- seatCount(state): number {- const count = state.subscription?.seat ?? 0;- if (count <= 0) {- return Number.MAX_VALUE;- }- return count;- },instanceCount(state): number {const count = state.subscription?.instanceCount ?? 0;if (count <= 0) {@@ -180,7 +173,6 @@ export const useSubscriptionStore = defineStore("subscription", {{plan: planType,days: this.trialingDays,- seat: 10,instanceCount: -1,});diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.tsindex 22bfc405c3..b6ef668690 100644--- a/frontend/src/types/plan.ts+++ b/frontend/src/types/plan.ts@@ -74,7 +74,6 @@ export interface Plan {unitPrice: number;trialPrice: number;freeInstanceCount: number;- pricePerSeatPerMonth: number;// Plan desc and featuretitle: string;featureList: PlanFeature[];diff --git a/frontend/src/types/plan.yaml b/frontend/src/types/plan.yamlindex c40cab0427..5ed10891b1 100644--- a/frontend/src/types/plan.yaml+++ b/frontend/src/types/plan.yaml@@ -23,7 +23,6 @@ categoryList:- saved-sql-script- type: collaborationfeatureList:- - seat-count- inbox-notification- ui-based-sql-review- vsc-workflow@@ -56,10 +55,7 @@ planList:unitPrice: 0trialPrice: 0freeInstanceCount: 10- freeSeatCount: 10maximumInstanceCount: 3- maximumSeatCount: 10- pricePerSeatPerMonth: 19pricePerInstancePerMonth: 79featureList:# Change Management@@ -91,8 +87,6 @@ planList:- type: saved-sql-scriptcontent: saved-sql-script-basic# Collaboration- - type: seat-count- content: seat-maximum-10- type: inbox-notification- type: ui-based-sql-review- type: vsc-workflow@@ -123,10 +117,7 @@ planList:unitPrice: 19trialPrice: 0freeInstanceCount: 3- freeSeatCount: 1maximumInstanceCount: 10- maximumSeatCount: 10- pricePerSeatPerMonth: 19pricePerInstancePerMonth: 79featureList:# Change Management@@ -160,8 +151,6 @@ planList:- type: saved-sql-scriptcontent: saved-sql-script-basic# Collaboration- - type: seat-count- content: seat-maximum-10- type: inbox-notification- type: ui-based-sql-review- type: vsc-workflow@@ -194,10 +183,7 @@ planList:unitPrice: 90trialPrice: 0freeInstanceCount: 5- freeSeatCount: 1maximumInstanceCount: -1- maximumSeatCount: -1- pricePerSeatPerMonth: 19pricePerInstancePerMonth: 79featureList:# Change Management@@ -231,8 +217,6 @@ planList:content: saved-sql-script-advancedtooltip: saved-sql-script-advanced-tooltip# Collaboration- - type: seat-count- content: seat-customized- type: inbox-notification- type: ui-based-sql-review- type: vsc-workflowdiff --git a/frontend/src/types/proto/v1/subscription_service.ts b/frontend/src/types/proto/v1/subscription_service.tsindex 69ceccc465..52897d2915 100644--- a/frontend/src/types/proto/v1/subscription_service.ts+++ b/frontend/src/types/proto/v1/subscription_service.ts@@ -68,12 +68,10 @@ export interface PatchSubscription {export interface TrialSubscription {plan: PlanType;days: number;- seat: number;instanceCount: number;}export interface Subscription {- seat: number;instanceCount: number;expiresTime?: Date;startedTime?: Date;@@ -300,7 +298,7 @@ export const PatchSubscription = {};function createBaseTrialSubscription(): TrialSubscription {- return { plan: 0, days: 0, seat: 0, instanceCount: 0 };+ return { plan: 0, days: 0, instanceCount: 0 };}export const TrialSubscription = {@@ -311,9 +309,6 @@ export const TrialSubscription = {if (message.days !== 0) {writer.uint32(16).int32(message.days);}- if (message.seat !== 0) {- writer.uint32(24).int32(message.seat);- }if (message.instanceCount !== 0) {writer.uint32(32).int32(message.instanceCount);}@@ -341,13 +336,6 @@ export const TrialSubscription = {message.days = reader.int32();continue;- case 3:- if (tag != 24) {- break;- }-- message.seat = reader.int32();- continue;case 4:if (tag != 32) {break;@@ -368,7 +356,6 @@ export const TrialSubscription = {return {plan: isSet(object.plan) ? planTypeFromJSON(object.plan) : 0,days: isSet(object.days) ? Number(object.days) : 0,- seat: isSet(object.seat) ? Number(object.seat) : 0,instanceCount: isSet(object.instanceCount) ? Number(object.instanceCount) : 0,};},@@ -377,7 +364,6 @@ export const TrialSubscription = {const obj: any = {};message.plan !== undefined && (obj.plan = planTypeToJSON(message.plan));message.days !== undefined && (obj.days = Math.round(message.days));- message.seat !== undefined && (obj.seat = Math.round(message.seat));message.instanceCount !== undefined && (obj.instanceCount = Math.round(message.instanceCount));return obj;},@@ -390,7 +376,6 @@ export const TrialSubscription = {const message = createBaseTrialSubscription();message.plan = object.plan ?? 0;message.days = object.days ?? 0;- message.seat = object.seat ?? 0;message.instanceCount = object.instanceCount ?? 0;return message;},@@ -398,7 +383,6 @@ export const TrialSubscription = {function createBaseSubscription(): Subscription {return {- seat: 0,instanceCount: 0,expiresTime: undefined,startedTime: undefined,@@ -411,9 +395,6 @@ function createBaseSubscription(): Subscription {export const Subscription = {encode(message: Subscription, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.seat !== 0) {- writer.uint32(8).int32(message.seat);- }if (message.instanceCount !== 0) {writer.uint32(16).int32(message.instanceCount);}@@ -445,13 +426,6 @@ export const Subscription = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 1:- if (tag != 8) {- break;- }-- message.seat = reader.int32();- continue;case 2:if (tag != 16) {break;@@ -512,7 +486,6 @@ export const Subscription = {fromJSON(object: any): Subscription {return {- seat: isSet(object.seat) ? Number(object.seat) : 0,instanceCount: isSet(object.instanceCount) ? Number(object.instanceCount) : 0,expiresTime: isSet(object.expiresTime) ? fromJsonTimestamp(object.expiresTime) : undefined,startedTime: isSet(object.startedTime) ? fromJsonTimestamp(object.startedTime) : undefined,@@ -525,7 +498,6 @@ export const Subscription = {toJSON(message: Subscription): unknown {const obj: any = {};- message.seat !== undefined && (obj.seat = Math.round(message.seat));message.instanceCount !== undefined && (obj.instanceCount = Math.round(message.instanceCount));message.expiresTime !== undefined && (obj.expiresTime = message.expiresTime.toISOString());message.startedTime !== undefined && (obj.startedTime = message.startedTime.toISOString());@@ -542,7 +514,6 @@ export const Subscription = {fromPartial(object: DeepPartial<Subscription>): Subscription {const message = createBaseSubscription();- message.seat = object.seat ?? 0;message.instanceCount = object.instanceCount ?? 0;message.expiresTime = object.expiresTime ?? undefined;message.startedTime = object.startedTime ?? undefined;diff --git a/frontend/src/views/SettingWorkspaceMember.vue b/frontend/src/views/SettingWorkspaceMember.vueindex a4969b91a9..efa3e91af4 100644--- a/frontend/src/views/SettingWorkspaceMember.vue+++ b/frontend/src/views/SettingWorkspaceMember.vue@@ -9,12 +9,6 @@feature="bb.feature.rbac":description="$t('subscription.features.bb-feature-rbac.desc')"/>- <FeatureAttention- v-if="remainingSeatCount <= 2"- custom-class="my-5"- feature="bb.feature.seat-count"- :description="seatCountAttention"- /><div class="flex justify-between items-center"><div class="flex-1 flex space-x-2"><p class="text-lg font-medium leading-7 text-main">@@ -68,7 +62,6 @@<script lang="ts">import { computed, defineComponent, reactive } from "vue";-import { useI18n } from "vue-i18n";import MemberAddOrInvite from "../components/MemberAddOrInvite.vue";import MemberTable from "../components/MemberTable.vue";import { hasWorkspacePermission } from "../utils";@@ -78,7 +71,6 @@ import {useCurrentUser,useMemberList,usePrincipalStore,- useSubscriptionStore,} from "@/store";type LocalState = {@@ -96,9 +88,6 @@ export default defineComponent({});const currentUser = useCurrentUser();- const subscriptionStore = useSubscriptionStore();- const { t } = useI18n();-const hasRBACFeature = featureToRef("bb.feature.rbac");const memberList = useMemberList();@@ -140,34 +129,6 @@ export default defineComponent({return list;});- const seatQuota = computed((): number => {- return subscriptionStore.seatCount;- });-- const remainingSeatCount = computed((): number => {- const activeEndUserList = activeMemberList.value.filter(- (m) => m.principal.type === "END_USER"- );- return Math.max(0, seatQuota.value - activeEndUserList.length);- });-- const seatCountAttention = computed((): string => {- const upgrade = t("subscription.features.bb-feature-seat-count.upgrade");- let status = "";- if (remainingSeatCount.value > 0) {- status = t("subscription.features.bb-feature-seat-count.remaining", {- total: seatQuota.value,- count: remainingSeatCount.value,- });- } else {- status = t("subscription.features.bb-feature-seat-count.runoutof", {- total: seatQuota.value,- });- }-- return `${status} ${upgrade}`;- });-const allowAddOrInvite = computed(() => {// TODO(tianzhou): Implement invite mode for DBA and developer// If current user has manage user permission, MemberAddOrInvite is in Add mode.@@ -195,8 +156,6 @@ export default defineComponent({allowAddOrInvite,showUpgradeInfo,hasRBACFeature,- remainingSeatCount,- seatCountAttention,};},});diff --git a/frontend/src/views/SettingWorkspaceSubscription.vue b/frontend/src/views/SettingWorkspaceSubscription.vueindex 0a4bb5bd52..475f97253a 100644--- a/frontend/src/views/SettingWorkspaceSubscription.vue+++ b/frontend/src/views/SettingWorkspaceSubscription.vue@@ -45,12 +45,6 @@</dt><dd class="mt-1 text-4xl">{{ instanceCount }}</dd></div>- <div class="my-3">- <dt class="text-gray-400">- {{ $t("subscription.seat-count") }}- </dt>- <dd class="mt-1 text-4xl">{{ seatCount }}</dd>- </div><div class="my-3"><dt class="text-gray-400">{{ $t("subscription.expires-at") }}@@ -165,14 +159,6 @@ export default defineComponent({return t("subscription.unlimited");});- const seatCount = computed((): string => {- const seat = subscription.value?.seat ?? 2;- if (seat > 0) {- return `${seat}`;- }- return t("subscription.unlimited");- });-const currentPlan = computed((): string => {const plan = subscriptionStore.currentPlan;switch (plan) {@@ -207,7 +193,6 @@ export default defineComponent({expireAt,isTrialing,isExpired,- seatCount,currentPlan,instanceCount,uploadLicense,diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 861b225a53..2d7e0f38f6 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -4796,7 +4796,6 @@ The data in setting value.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| seat | [int32](#int32) | | || instance_count | [int32](#int32) | | || expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || started_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |@@ -4820,7 +4819,6 @@ The data in setting value.| ----- | ---- | ----- | ----------- || plan | [PlanType](#bytebase-v1-PlanType) | | || days | [int32](#int32) | | |-| seat | [int32](#int32) | | || instance_count | [int32](#int32) | | |diff --git a/proto/generated-go/v1/subscription_service.pb.go b/proto/generated-go/v1/subscription_service.pb.goindex c54045591a..6fac22df08 100644--- a/proto/generated-go/v1/subscription_service.pb.go+++ b/proto/generated-go/v1/subscription_service.pb.go@@ -261,7 +261,6 @@ type TrialSubscription struct {Plan PlanType `protobuf:"varint,1,opt,name=plan,proto3,enum=bytebase.v1.PlanType" json:"plan,omitempty"`Days int32 `protobuf:"varint,2,opt,name=days,proto3" json:"days,omitempty"`- Seat int32 `protobuf:"varint,3,opt,name=seat,proto3" json:"seat,omitempty"`InstanceCount int32 `protobuf:"varint,4,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`}@@ -311,13 +310,6 @@ func (x *TrialSubscription) GetDays() int32 {return 0}-func (x *TrialSubscription) GetSeat() int32 {- if x != nil {- return x.Seat- }- return 0-}-func (x *TrialSubscription) GetInstanceCount() int32 {if x != nil {return x.InstanceCount@@ -330,7 +322,6 @@ type Subscription struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Seat int32 `protobuf:"varint,1,opt,name=seat,proto3" json:"seat,omitempty"`InstanceCount int32 `protobuf:"varint,2,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`ExpiresTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_time,json=expiresTime,proto3" json:"expires_time,omitempty"`StartedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`@@ -372,13 +363,6 @@ func (*Subscription) Descriptor() ([]byte, []int) {return file_v1_subscription_service_proto_rawDescGZIP(), []int{5}}-func (x *Subscription) GetSeat() int32 {- if x != nil {- return x.Seat- }- return 0-}-func (x *Subscription) GetInstanceCount() int32 {if x != nil {return x.InstanceCount@@ -458,70 +442,67 @@ var file_v1_subscription_service_proto_rawDesc = []byte{0x6c, 0x22, 0x2d, 0x0a, 0x11, 0x50, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73,0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,- 0x22, 0x8d, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,- 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61,- 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,- 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x61, 0x74, 0x18, 0x03, 0x20,- 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x65, 0x61, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x05, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74,- 0x22, 0xe8, 0x02, 0x0a, 0x0c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x65, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42,- 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x73, 0x65, 0x61, 0x74, 0x12, 0x2a, 0x0a, 0x0e, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,- 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,- 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x65,- 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74,- 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41,- 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e,- 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x54,- 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x12, 0x1f,- 0x0a, 0x08, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x12,- 0x1a, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f,- 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,- 0x41, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x49, 0x0a, 0x08, 0x50,- 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x4c, 0x41, 0x4e, 0x5f,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x52, 0x45, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,- 0x54, 0x45, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x4e, 0x54, 0x45, 0x52, 0x50,- 0x52, 0x49, 0x53, 0x45, 0x10, 0x03, 0x32, 0x8f, 0x03, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6e,- 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76,- 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x80,- 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,- 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72,- 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73,- 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0xda, 0x41, 0x05, 0x70, 0x61, 0x74,- 0x63, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x05, 0x70, 0x61, 0x74, 0x63, 0x68, 0x32,- 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x84, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62,- 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2d, 0xda, 0x41, 0x05, 0x74, 0x72,- 0x69, 0x61, 0x6c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x05, 0x74, 0x72, 0x69, 0x61, 0x6c,- 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,- 0x6f, 0x6e, 0x2f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x33,+ 0x22, 0x79, 0x0a, 0x11, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e,+ 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,+ 0x64, 0x61, 0x79, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xcf, 0x02, 0x0a, 0x0c,+ 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x0e,+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61,+ 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69,+ 0x72, 0x65, 0x73, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,+ 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c,+ 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03,+ 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65,+ 0x12, 0x2e, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61,+ 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e,+ 0x12, 0x1f, 0x0a, 0x08, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01,+ 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x6e,+ 0x67, 0x12, 0x1a, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1e, 0x0a,+ 0x08, 0x6f, 0x72, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6f, 0x72, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0x49, 0x0a,+ 0x08, 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x4c, 0x41,+ 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x52, 0x45, 0x45, 0x10, 0x01, 0x12, 0x08,+ 0x0a, 0x04, 0x54, 0x45, 0x41, 0x4d, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x4e, 0x54, 0x45,+ 0x52, 0x50, 0x52, 0x49, 0x53, 0x45, 0x10, 0x03, 0x32, 0x8f, 0x03, 0x0a, 0x13, 0x53, 0x75, 0x62,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,+ 0x12, 0x6e, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,+ 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x22, 0x1b, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10,+ 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,+ 0x12, 0x80, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73, 0x63,+ 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x75, 0x62, 0x73,+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x75,+ 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x27, 0xda, 0x41, 0x05, 0x70,+ 0x61, 0x74, 0x63, 0x68, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x05, 0x70, 0x61, 0x74, 0x63,+ 0x68, 0x32, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,+ 0x69, 0x6f, 0x6e, 0x12, 0x84, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,+ 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2d, 0xda, 0x41, 0x05,+ 0x74, 0x72, 0x69, 0x61, 0x6c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x05, 0x74, 0x72, 0x69,+ 0x61, 0x6c, 0x22, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70,+ 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65,+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (diff --git a/proto/v1/subscription_service.proto b/proto/v1/subscription_service.protoindex 77b3bf8d93..38f26e85bf 100644--- a/proto/v1/subscription_service.proto+++ b/proto/v1/subscription_service.proto@@ -60,14 +60,10 @@ message TrialSubscription {int32 days = 2;- int32 seat = 3;-int32 instance_count = 4;}message Subscription {- int32 seat = 1 [(google.api.field_behavior) = OUTPUT_ONLY];-int32 instance_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY];google.protobuf.Timestamp expires_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];