@stigmer/protos 3.16.0 → 3.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/stigmer/billing/license/v1/api_pb.d.ts +61 -0
- package/ai/stigmer/billing/license/v1/api_pb.js +18 -0
- package/ai/stigmer/billing/license/v1/api_pb.js.map +1 -0
- package/ai/stigmer/billing/license/v1/command_connect.d.ts +31 -0
- package/ai/stigmer/billing/license/v1/command_connect.js +38 -0
- package/ai/stigmer/billing/license/v1/command_connect.js.map +1 -0
- package/ai/stigmer/billing/license/v1/command_pb.d.ts +33 -0
- package/ai/stigmer/billing/license/v1/command_pb.js +24 -0
- package/ai/stigmer/billing/license/v1/command_pb.js.map +1 -0
- package/ai/stigmer/billing/license/v1/io_pb.d.ts +62 -0
- package/ai/stigmer/billing/license/v1/io_pb.js +26 -0
- package/ai/stigmer/billing/license/v1/io_pb.js.map +1 -0
- package/ai/stigmer/billing/license/v1/query_connect.d.ts +36 -0
- package/ai/stigmer/billing/license/v1/query_connect.js +44 -0
- package/ai/stigmer/billing/license/v1/query_connect.js.map +1 -0
- package/ai/stigmer/billing/license/v1/query_pb.d.ts +38 -0
- package/ai/stigmer/billing/license/v1/query_pb.js +23 -0
- package/ai/stigmer/billing/license/v1/query_pb.js.map +1 -0
- package/ai/stigmer/billing/license/v1/spec_pb.d.ts +73 -0
- package/ai/stigmer/billing/license/v1/spec_pb.js +18 -0
- package/ai/stigmer/billing/license/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/billing/license/v1/status_pb.d.ts +52 -0
- package/ai/stigmer/billing/license/v1/status_pb.js +16 -0
- package/ai/stigmer/billing/license/v1/status_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/api_pb.d.ts +63 -0
- package/ai/stigmer/billing/plan/v1/api_pb.js +18 -0
- package/ai/stigmer/billing/plan/v1/api_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/command_connect.d.ts +44 -0
- package/ai/stigmer/billing/plan/v1/command_connect.js +52 -0
- package/ai/stigmer/billing/plan/v1/command_connect.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/command_pb.d.ts +46 -0
- package/ai/stigmer/billing/plan/v1/command_pb.js +23 -0
- package/ai/stigmer/billing/plan/v1/command_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/io_pb.d.ts +62 -0
- package/ai/stigmer/billing/plan/v1/io_pb.js +26 -0
- package/ai/stigmer/billing/plan/v1/io_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/query_connect.d.ts +43 -0
- package/ai/stigmer/billing/plan/v1/query_connect.js +51 -0
- package/ai/stigmer/billing/plan/v1/query_connect.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/query_pb.d.ts +45 -0
- package/ai/stigmer/billing/plan/v1/query_pb.js +25 -0
- package/ai/stigmer/billing/plan/v1/query_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/spec_pb.d.ts +137 -0
- package/ai/stigmer/billing/plan/v1/spec_pb.js +55 -0
- package/ai/stigmer/billing/plan/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/billing/plan/v1/status_pb.d.ts +69 -0
- package/ai/stigmer/billing/plan/v1/status_pb.js +47 -0
- package/ai/stigmer/billing/plan/v1/status_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/api_pb.d.ts +62 -0
- package/ai/stigmer/billing/subscription/v1/api_pb.js +18 -0
- package/ai/stigmer/billing/subscription/v1/api_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/command_connect.d.ts +45 -0
- package/ai/stigmer/billing/subscription/v1/command_connect.js +53 -0
- package/ai/stigmer/billing/subscription/v1/command_connect.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/command_pb.d.ts +47 -0
- package/ai/stigmer/billing/subscription/v1/command_pb.js +25 -0
- package/ai/stigmer/billing/subscription/v1/command_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/io_pb.d.ts +114 -0
- package/ai/stigmer/billing/subscription/v1/io_pb.js +36 -0
- package/ai/stigmer/billing/subscription/v1/io_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/query_connect.d.ts +48 -0
- package/ai/stigmer/billing/subscription/v1/query_connect.js +56 -0
- package/ai/stigmer/billing/subscription/v1/query_connect.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/query_pb.d.ts +50 -0
- package/ai/stigmer/billing/subscription/v1/query_pb.js +24 -0
- package/ai/stigmer/billing/subscription/v1/query_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/spec_pb.d.ts +30 -0
- package/ai/stigmer/billing/subscription/v1/spec_pb.js +15 -0
- package/ai/stigmer/billing/subscription/v1/spec_pb.js.map +1 -0
- package/ai/stigmer/billing/subscription/v1/status_pb.d.ts +94 -0
- package/ai/stigmer/billing/subscription/v1/status_pb.js +56 -0
- package/ai/stigmer/billing/subscription/v1/status_pb.js.map +1 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.d.ts +12 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.js +12 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +33 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +33 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/iam/v1/enum_pb.d.ts +21 -1
- package/ai/stigmer/iam/v1/enum_pb.js +21 -1
- package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/platform/v1/entitlement_pb.d.ts +142 -0
- package/ai/stigmer/platform/v1/entitlement_pb.js +81 -0
- package/ai/stigmer/platform/v1/entitlement_pb.js.map +1 -0
- package/ai/stigmer/platform/v1/license_pb.d.ts +206 -0
- package/ai/stigmer/platform/v1/license_pb.js +111 -0
- package/ai/stigmer/platform/v1/license_pb.js.map +1 -0
- package/ai/stigmer/platform/v1/server_info_connect.d.ts +28 -0
- package/ai/stigmer/platform/v1/server_info_connect.js +29 -1
- package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -1
- package/ai/stigmer/platform/v1/server_info_pb.d.ts +84 -0
- package/ai/stigmer/platform/v1/server_info_pb.js +23 -7
- package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Entitlements } from "../../../platform/v1/entitlement_pb.js";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/billing/plan/v1/spec.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_billing_plan_v1_spec: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* PlanSpec defines what a plan grants and what buys it.
|
|
10
|
+
*
|
|
11
|
+
* The spec is written once, at create, and never updated: a plan's terms are
|
|
12
|
+
* what a customer agreed to, so a change is a new Plan. Every money field is
|
|
13
|
+
* a term of one specific plan row, and no row ships in the contract, so the
|
|
14
|
+
* contract itself carries no price.
|
|
15
|
+
*
|
|
16
|
+
* The instrument decides which terms a plan may carry, and the two rules
|
|
17
|
+
* below refuse the cross: a license plan is invoiced for a term, so monthly
|
|
18
|
+
* terms have no meaning on it; a subscription plan bills monthly, so an
|
|
19
|
+
* annual price has none. per_extra_organization_micros is bound to the
|
|
20
|
+
* entitlements' managed organizations, not to the instrument, and stays free.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message ai.stigmer.billing.plan.v1.PlanSpec
|
|
23
|
+
*/
|
|
24
|
+
export type PlanSpec = Message<"ai.stigmer.billing.plan.v1.PlanSpec"> & {
|
|
25
|
+
/**
|
|
26
|
+
* The instrument this plan is bought through.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: ai.stigmer.billing.plan.v1.PlanInstrument instrument = 1;
|
|
29
|
+
*/
|
|
30
|
+
instrument: PlanInstrument;
|
|
31
|
+
/**
|
|
32
|
+
* What the plan permits: its limits and features.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: ai.stigmer.platform.v1.Entitlements entitlements = 2;
|
|
35
|
+
*/
|
|
36
|
+
entitlements?: Entitlements;
|
|
37
|
+
/**
|
|
38
|
+
* The commercial terms. Which fields are set depends on the instrument:
|
|
39
|
+
* a subscription plan carries the greater-of terms, a license plan its
|
|
40
|
+
* annual price.
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: ai.stigmer.billing.plan.v1.PlanTerms terms = 3;
|
|
43
|
+
*/
|
|
44
|
+
terms?: PlanTerms;
|
|
45
|
+
/**
|
|
46
|
+
* One or two sentences describing the plan as the pricing page shows it.
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string description = 4;
|
|
49
|
+
*/
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanSpec.
|
|
54
|
+
* Use `create(PlanSpecSchema)` to create a new message.
|
|
55
|
+
*/
|
|
56
|
+
export declare const PlanSpecSchema: GenMessage<PlanSpec>;
|
|
57
|
+
/**
|
|
58
|
+
* The commercial terms of a plan.
|
|
59
|
+
*
|
|
60
|
+
* Amounts are micro-USD (one millionth of a dollar), the unit the billing
|
|
61
|
+
* ledger already uses; shares are basis points (one hundredth of a percent).
|
|
62
|
+
* Every field has explicit presence: absent means the term does not apply to
|
|
63
|
+
* this plan, which is how a subscription plan and a license plan share one
|
|
64
|
+
* message. A monthly plan costs the greater of monthly_minimum_micros and
|
|
65
|
+
* usage_share_basis_points of the month's usage.
|
|
66
|
+
*
|
|
67
|
+
* @generated from message ai.stigmer.billing.plan.v1.PlanTerms
|
|
68
|
+
*/
|
|
69
|
+
export type PlanTerms = Message<"ai.stigmer.billing.plan.v1.PlanTerms"> & {
|
|
70
|
+
/**
|
|
71
|
+
* The least a subscription plan bills per month, in micro-USD. Absent on a
|
|
72
|
+
* license plan.
|
|
73
|
+
*
|
|
74
|
+
* @generated from field: optional int64 monthly_minimum_micros = 1;
|
|
75
|
+
*/
|
|
76
|
+
monthlyMinimumMicros?: bigint;
|
|
77
|
+
/**
|
|
78
|
+
* The share of monthly usage a subscription plan bills when it exceeds the
|
|
79
|
+
* minimum, in basis points. Absent on a license plan.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: optional int32 usage_share_basis_points = 2;
|
|
82
|
+
*/
|
|
83
|
+
usageShareBasisPoints?: number;
|
|
84
|
+
/**
|
|
85
|
+
* What a subscription plan bills per month for each platform-managed
|
|
86
|
+
* organization beyond the ones its entitlements include, in micro-USD.
|
|
87
|
+
* Absent when the plan includes no managed organizations.
|
|
88
|
+
*
|
|
89
|
+
* @generated from field: optional int64 per_extra_organization_micros = 3;
|
|
90
|
+
*/
|
|
91
|
+
perExtraOrganizationMicros?: bigint;
|
|
92
|
+
/**
|
|
93
|
+
* What a license plan invoices for a one-year term, in micro-USD. Absent on
|
|
94
|
+
* a subscription plan.
|
|
95
|
+
*
|
|
96
|
+
* @generated from field: optional int64 annual_price_micros = 4;
|
|
97
|
+
*/
|
|
98
|
+
annualPriceMicros?: bigint;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanTerms.
|
|
102
|
+
* Use `create(PlanTermsSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const PlanTermsSchema: GenMessage<PlanTerms>;
|
|
105
|
+
/**
|
|
106
|
+
* The instrument a plan is bought through.
|
|
107
|
+
*
|
|
108
|
+
* An entitlement is what the platform permits; a subscription and a license
|
|
109
|
+
* are the two instruments that grant it. A plan names which one buys it, so
|
|
110
|
+
* the catalog for Stigmer Cloud and the catalog for self-hosted licenses are
|
|
111
|
+
* two views of one kind.
|
|
112
|
+
*
|
|
113
|
+
* @generated from enum ai.stigmer.billing.plan.v1.PlanInstrument
|
|
114
|
+
*/
|
|
115
|
+
export declare enum PlanInstrument {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: plan_instrument_unspecified = 0;
|
|
118
|
+
*/
|
|
119
|
+
plan_instrument_unspecified = 0,
|
|
120
|
+
/**
|
|
121
|
+
* Bought as a Subscription by an organization on Stigmer Cloud, billed
|
|
122
|
+
* monthly against usage.
|
|
123
|
+
*
|
|
124
|
+
* @generated from enum value: subscription = 1;
|
|
125
|
+
*/
|
|
126
|
+
subscription = 1,
|
|
127
|
+
/**
|
|
128
|
+
* Bought as a License by a self-hosting customer, invoiced for a term.
|
|
129
|
+
*
|
|
130
|
+
* @generated from enum value: license = 2;
|
|
131
|
+
*/
|
|
132
|
+
license = 2
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Describes the enum ai.stigmer.billing.plan.v1.PlanInstrument.
|
|
136
|
+
*/
|
|
137
|
+
export declare const PlanInstrumentSchema: GenEnum<PlanInstrument>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/plan/v1/spec.proto (package ai.stigmer.billing.plan.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_platform_v1_entitlement } from "../../../platform/v1/entitlement_pb.js";
|
|
6
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ai/stigmer/billing/plan/v1/spec.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_billing_plan_v1_spec = /*@__PURE__*/ fileDesc("CiVhaS9zdGlnbWVyL2JpbGxpbmcvcGxhbi92MS9zcGVjLnByb3RvEhphaS5zdGlnbWVyLmJpbGxpbmcucGxhbi52MSKDBQoIUGxhblNwZWMSTQoKaW5zdHJ1bWVudBgBIAEoDjIqLmFpLnN0aWdtZXIuYmlsbGluZy5wbGFuLnYxLlBsYW5JbnN0cnVtZW50Qg26SArIAQGCAQQQASAAEkIKDGVudGl0bGVtZW50cxgCIAEoCzIkLmFpLnN0aWdtZXIucGxhdGZvcm0udjEuRW50aXRsZW1lbnRzQga6SAPIAQESNAoFdGVybXMYAyABKAsyJS5haS5zdGlnbWVyLmJpbGxpbmcucGxhbi52MS5QbGFuVGVybXMSHQoLZGVzY3JpcHRpb24YBCABKAlCCLpIBXIDGIAIOo4DukiKAxrmAQomcGxhbl9zcGVjLmxpY2Vuc2VfaGFzX25vX21vbnRobHlfdGVybXMSTGEgbGljZW5zZSBwbGFuIGNhcnJpZXMgbm8gbW9udGhseV9taW5pbXVtX21pY3JvcyBvciB1c2FnZV9zaGFyZV9iYXNpc19wb2ludHMabnRoaXMuaW5zdHJ1bWVudCAhPSAyIHx8ICghaGFzKHRoaXMudGVybXMubW9udGhseV9taW5pbXVtX21pY3JvcykgJiYgIWhhcyh0aGlzLnRlcm1zLnVzYWdlX3NoYXJlX2Jhc2lzX3BvaW50cykpGp4BCipwbGFuX3NwZWMuc3Vic2NyaXB0aW9uX2hhc19ub19hbm51YWxfcHJpY2USMmEgc3Vic2NyaXB0aW9uIHBsYW4gY2FycmllcyBubyBhbm51YWxfcHJpY2VfbWljcm9zGjx0aGlzLmluc3RydW1lbnQgIT0gMSB8fCAhaGFzKHRoaXMudGVybXMuYW5udWFsX3ByaWNlX21pY3JvcykivgIKCVBsYW5UZXJtcxIsChZtb250aGx5X21pbmltdW1fbWljcm9zGAEgASgDQge6SAQiAigASACIAQESMQoYdXNhZ2Vfc2hhcmVfYmFzaXNfcG9pbnRzGAIgASgFQgq6SAcaBRiQTigASAGIAQESMwodcGVyX2V4dHJhX29yZ2FuaXphdGlvbl9taWNyb3MYAyABKANCB7pIBCICKABIAogBARIpChNhbm51YWxfcHJpY2VfbWljcm9zGAQgASgDQge6SAQiAigASAOIAQFCGQoXX21vbnRobHlfbWluaW11bV9taWNyb3NCGwoZX3VzYWdlX3NoYXJlX2Jhc2lzX3BvaW50c0IgCh5fcGVyX2V4dHJhX29yZ2FuaXphdGlvbl9taWNyb3NCFgoUX2FubnVhbF9wcmljZV9taWNyb3MqUAoOUGxhbkluc3RydW1lbnQSHwobcGxhbl9pbnN0cnVtZW50X3Vuc3BlY2lmaWVkEAASEAoMc3Vic2NyaXB0aW9uEAESCwoHbGljZW5zZRACYgZwcm90bzM", [file_ai_stigmer_platform_v1_entitlement, file_buf_validate_validate]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanSpec.
|
|
13
|
+
* Use `create(PlanSpecSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const PlanSpecSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_plan_v1_spec, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanTerms.
|
|
18
|
+
* Use `create(PlanTermsSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const PlanTermsSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_plan_v1_spec, 1);
|
|
21
|
+
/**
|
|
22
|
+
* The instrument a plan is bought through.
|
|
23
|
+
*
|
|
24
|
+
* An entitlement is what the platform permits; a subscription and a license
|
|
25
|
+
* are the two instruments that grant it. A plan names which one buys it, so
|
|
26
|
+
* the catalog for Stigmer Cloud and the catalog for self-hosted licenses are
|
|
27
|
+
* two views of one kind.
|
|
28
|
+
*
|
|
29
|
+
* @generated from enum ai.stigmer.billing.plan.v1.PlanInstrument
|
|
30
|
+
*/
|
|
31
|
+
export var PlanInstrument;
|
|
32
|
+
(function (PlanInstrument) {
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: plan_instrument_unspecified = 0;
|
|
35
|
+
*/
|
|
36
|
+
PlanInstrument[PlanInstrument["plan_instrument_unspecified"] = 0] = "plan_instrument_unspecified";
|
|
37
|
+
/**
|
|
38
|
+
* Bought as a Subscription by an organization on Stigmer Cloud, billed
|
|
39
|
+
* monthly against usage.
|
|
40
|
+
*
|
|
41
|
+
* @generated from enum value: subscription = 1;
|
|
42
|
+
*/
|
|
43
|
+
PlanInstrument[PlanInstrument["subscription"] = 1] = "subscription";
|
|
44
|
+
/**
|
|
45
|
+
* Bought as a License by a self-hosting customer, invoiced for a term.
|
|
46
|
+
*
|
|
47
|
+
* @generated from enum value: license = 2;
|
|
48
|
+
*/
|
|
49
|
+
PlanInstrument[PlanInstrument["license"] = 2] = "license";
|
|
50
|
+
})(PlanInstrument || (PlanInstrument = {}));
|
|
51
|
+
/**
|
|
52
|
+
* Describes the enum ai.stigmer.billing.plan.v1.PlanInstrument.
|
|
53
|
+
*/
|
|
54
|
+
export const PlanInstrumentSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_plan_v1_spec, 0);
|
|
55
|
+
//# sourceMappingURL=spec_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/plan/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,iHAAiH;AACjH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAY,aAAa,CACxE,QAAQ,CAAC,69CAA69C,EAAE,CAAC,uCAAuC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAkDjjD;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,oCAAoC,EAAE,CAAC,CAAC,CAAC;AAiDvD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAA0B,aAAa,CACjE,WAAW,CAAC,oCAAoC,EAAE,CAAC,CAAC,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,cAoBX;AApBD,WAAY,cAAc;IACxB;;OAEG;IACH,iGAA+B,CAAA;IAE/B;;;;;OAKG;IACH,mEAAgB,CAAA;IAEhB;;;;OAIG;IACH,yDAAW,CAAA;AACb,CAAC,EApBW,cAAc,KAAd,cAAc,QAoBzB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA4B,aAAa,CACxE,QAAQ,CAAC,oCAAoC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { ApiResourceAudit } from "../../../commons/apiresource/status_pb.js";
|
|
3
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ai/stigmer/billing/plan/v1/status.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_billing_plan_v1_status: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* PlanStatus is the system-managed state of a plan: its audit trail and
|
|
11
|
+
* whether it is still offered.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message ai.stigmer.billing.plan.v1.PlanStatus
|
|
14
|
+
*/
|
|
15
|
+
export type PlanStatus = Message<"ai.stigmer.billing.plan.v1.PlanStatus"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Standard audit information tracking creation and modification.
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceAudit audit = 99;
|
|
20
|
+
*/
|
|
21
|
+
audit?: ApiResourceAudit;
|
|
22
|
+
/**
|
|
23
|
+
* Whether the plan is offered to new buyers or retired.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: ai.stigmer.billing.plan.v1.PlanLifecycle lifecycle = 1;
|
|
26
|
+
*/
|
|
27
|
+
lifecycle: PlanLifecycle;
|
|
28
|
+
/**
|
|
29
|
+
* When the plan was retired. Unset while the plan is active.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: google.protobuf.Timestamp retired_at = 2;
|
|
32
|
+
*/
|
|
33
|
+
retiredAt?: Timestamp;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanStatus.
|
|
37
|
+
* Use `create(PlanStatusSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export declare const PlanStatusSchema: GenMessage<PlanStatus>;
|
|
40
|
+
/**
|
|
41
|
+
* PlanLifecycle is whether a plan can still be bought.
|
|
42
|
+
*
|
|
43
|
+
* A retired plan stays readable so a subscription or license that bought it
|
|
44
|
+
* can still show its terms; retirement is the only state change a plan has.
|
|
45
|
+
*
|
|
46
|
+
* @generated from enum ai.stigmer.billing.plan.v1.PlanLifecycle
|
|
47
|
+
*/
|
|
48
|
+
export declare enum PlanLifecycle {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: plan_lifecycle_unspecified = 0;
|
|
51
|
+
*/
|
|
52
|
+
plan_lifecycle_unspecified = 0,
|
|
53
|
+
/**
|
|
54
|
+
* Offered to new buyers.
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum value: active = 1;
|
|
57
|
+
*/
|
|
58
|
+
active = 1,
|
|
59
|
+
/**
|
|
60
|
+
* No longer offered; existing subscriptions and licenses keep it.
|
|
61
|
+
*
|
|
62
|
+
* @generated from enum value: retired = 2;
|
|
63
|
+
*/
|
|
64
|
+
retired = 2
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Describes the enum ai.stigmer.billing.plan.v1.PlanLifecycle.
|
|
68
|
+
*/
|
|
69
|
+
export declare const PlanLifecycleSchema: GenEnum<PlanLifecycle>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/plan/v1/status.proto (package ai.stigmer.billing.plan.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/apiresource/status_pb.js";
|
|
6
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ai/stigmer/billing/plan/v1/status.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_billing_plan_v1_status = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2JpbGxpbmcvcGxhbi92MS9zdGF0dXMucHJvdG8SGmFpLnN0aWdtZXIuYmlsbGluZy5wbGFuLnYxIrsBCgpQbGFuU3RhdHVzEj8KBWF1ZGl0GGMgASgLMjAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXQSPAoJbGlmZWN5Y2xlGAEgASgOMikuYWkuc3RpZ21lci5iaWxsaW5nLnBsYW4udjEuUGxhbkxpZmVjeWNsZRIuCgpyZXRpcmVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCpICg1QbGFuTGlmZWN5Y2xlEh4KGnBsYW5fbGlmZWN5Y2xlX3Vuc3BlY2lmaWVkEAASCgoGYWN0aXZlEAESCwoHcmV0aXJlZBACYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status, file_google_protobuf_timestamp]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.billing.plan.v1.PlanStatus.
|
|
13
|
+
* Use `create(PlanStatusSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const PlanStatusSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_plan_v1_status, 0);
|
|
16
|
+
/**
|
|
17
|
+
* PlanLifecycle is whether a plan can still be bought.
|
|
18
|
+
*
|
|
19
|
+
* A retired plan stays readable so a subscription or license that bought it
|
|
20
|
+
* can still show its terms; retirement is the only state change a plan has.
|
|
21
|
+
*
|
|
22
|
+
* @generated from enum ai.stigmer.billing.plan.v1.PlanLifecycle
|
|
23
|
+
*/
|
|
24
|
+
export var PlanLifecycle;
|
|
25
|
+
(function (PlanLifecycle) {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: plan_lifecycle_unspecified = 0;
|
|
28
|
+
*/
|
|
29
|
+
PlanLifecycle[PlanLifecycle["plan_lifecycle_unspecified"] = 0] = "plan_lifecycle_unspecified";
|
|
30
|
+
/**
|
|
31
|
+
* Offered to new buyers.
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: active = 1;
|
|
34
|
+
*/
|
|
35
|
+
PlanLifecycle[PlanLifecycle["active"] = 1] = "active";
|
|
36
|
+
/**
|
|
37
|
+
* No longer offered; existing subscriptions and licenses keep it.
|
|
38
|
+
*
|
|
39
|
+
* @generated from enum value: retired = 2;
|
|
40
|
+
*/
|
|
41
|
+
PlanLifecycle[PlanLifecycle["retired"] = 2] = "retired";
|
|
42
|
+
})(PlanLifecycle || (PlanLifecycle = {}));
|
|
43
|
+
/**
|
|
44
|
+
* Describes the enum ai.stigmer.billing.plan.v1.PlanLifecycle.
|
|
45
|
+
*/
|
|
46
|
+
export const PlanLifecycleSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_plan_v1_status, 0);
|
|
47
|
+
//# sourceMappingURL=status_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/plan/v1/status_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,mHAAmH;AACnH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,ycAAyc,EAAE,CAAC,0CAA0C,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA+BpiB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B,aAAa,CACnE,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,aAmBX;AAnBD,WAAY,aAAa;IACvB;;OAEG;IACH,6FAA8B,CAAA;IAE9B;;;;OAIG;IACH,qDAAU,CAAA;IAEV;;;;OAIG;IACH,uDAAW,CAAA;AACb,CAAC,EAnBW,aAAa,KAAb,aAAa,QAmBxB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA2B,aAAa,CACtE,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { SubscriptionSpec } from "./spec_pb.js";
|
|
3
|
+
import type { SubscriptionStatus } from "./status_pb.js";
|
|
4
|
+
import type { ApiResourceMetadata } from "../../../commons/apiresource/metadata_pb.js";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/billing/subscription/v1/api.proto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const file_ai_stigmer_billing_subscription_v1_api: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* Subscription is an organization's binding to a Plan.
|
|
12
|
+
*
|
|
13
|
+
* At most one subscription is active per organization, and an organization
|
|
14
|
+
* with none is on the Free plan: nothing is written to say so. The
|
|
15
|
+
* subscription is created and moved by the payment system, not by a user's
|
|
16
|
+
* manifest, so it has no owner and grants no roles; its reads and writes
|
|
17
|
+
* authorize on the organization it belongs to (metadata.org) through the
|
|
18
|
+
* billing permissions. The entitlements an organization holds are derived
|
|
19
|
+
* from its subscription's plan on every read and never stored on the
|
|
20
|
+
* subscription.
|
|
21
|
+
*
|
|
22
|
+
* @generated from message ai.stigmer.billing.subscription.v1.Subscription
|
|
23
|
+
*/
|
|
24
|
+
export type Subscription = Message<"ai.stigmer.billing.subscription.v1.Subscription"> & {
|
|
25
|
+
/**
|
|
26
|
+
* API version for this resource type.
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string api_version = 1;
|
|
29
|
+
*/
|
|
30
|
+
apiVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* Resource kind identifier.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string kind = 2;
|
|
35
|
+
*/
|
|
36
|
+
kind: string;
|
|
37
|
+
/**
|
|
38
|
+
* Standard resource metadata. metadata.org is the organization the
|
|
39
|
+
* subscription belongs to.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceMetadata metadata = 3;
|
|
42
|
+
*/
|
|
43
|
+
metadata?: ApiResourceMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Which plan the organization is bound to.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: ai.stigmer.billing.subscription.v1.SubscriptionSpec spec = 4;
|
|
48
|
+
*/
|
|
49
|
+
spec?: SubscriptionSpec;
|
|
50
|
+
/**
|
|
51
|
+
* System-managed state: audit, the billing period and the lifecycle state
|
|
52
|
+
* the payment system reports.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: ai.stigmer.billing.subscription.v1.SubscriptionStatus status = 5;
|
|
55
|
+
*/
|
|
56
|
+
status?: SubscriptionStatus;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message ai.stigmer.billing.subscription.v1.Subscription.
|
|
60
|
+
* Use `create(SubscriptionSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SubscriptionSchema: GenMessage<Subscription>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/subscription/v1/api.proto (package ai.stigmer.billing.subscription.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_billing_subscription_v1_spec } from "./spec_pb.js";
|
|
6
|
+
import { file_ai_stigmer_billing_subscription_v1_status } from "./status_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_apiresource_metadata } from "../../../commons/apiresource/metadata_pb.js";
|
|
8
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file ai/stigmer/billing/subscription/v1/api.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_billing_subscription_v1_api = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL2FwaS5wcm90bxIiYWkuc3RpZ21lci5iaWxsaW5nLnN1YnNjcmlwdGlvbi52MSK/AgoMU3Vic2NyaXB0aW9uEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYmlsbGluZy5zdGlnbWVyLmFpL3YxEiEKBGtpbmQYAiABKAlCE7pIEHIOCgxTdWJzY3JpcHRpb24STQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YUIGukgDyAEBEkIKBHNwZWMYBCABKAsyNC5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvblNwZWMSRgoGc3RhdHVzGAUgASgLMjYuYWkuc3RpZ21lci5iaWxsaW5nLnN1YnNjcmlwdGlvbi52MS5TdWJzY3JpcHRpb25TdGF0dXNiBnByb3RvMw", [file_ai_stigmer_billing_subscription_v1_spec, file_ai_stigmer_billing_subscription_v1_status, file_ai_stigmer_commons_apiresource_metadata, file_buf_validate_validate]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message ai.stigmer.billing.subscription.v1.Subscription.
|
|
15
|
+
* Use `create(SubscriptionSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const SubscriptionSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_api, 0);
|
|
18
|
+
//# sourceMappingURL=api_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/api_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,gIAAgI;AAChI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,4CAA4C,EAAE,MAAM,cAAc,CAAC;AAE5E,OAAO,EAAE,8CAA8C,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,wiBAAwiB,EAAE,CAAC,4CAA4C,EAAE,8CAA8C,EAAE,4CAA4C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAuD/tB;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SubscriptionCommandController provides the write operations on an
|
|
3
|
+
* organization's subscription.
|
|
4
|
+
*
|
|
5
|
+
* There is no create: how a subscription comes to exist is the payment
|
|
6
|
+
* system's (a checkout), so changePlan on an organization with none is the
|
|
7
|
+
* act of subscribing. Every write authorizes on the organization with
|
|
8
|
+
* can_manage_billing, the permission the billing account's writes use.
|
|
9
|
+
*
|
|
10
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionCommandController
|
|
11
|
+
*/
|
|
12
|
+
export declare const SubscriptionCommandController: {
|
|
13
|
+
readonly typeName: "ai.stigmer.billing.subscription.v1.SubscriptionCommandController";
|
|
14
|
+
readonly methods: {
|
|
15
|
+
/**
|
|
16
|
+
* Move the organization onto a plan.
|
|
17
|
+
*
|
|
18
|
+
* Subscribes an organization that has no subscription, or changes the plan
|
|
19
|
+
* of one that does. The plan must be active and bought through a
|
|
20
|
+
* subscription. Returns the subscription as it stands after the change.
|
|
21
|
+
*
|
|
22
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.changePlan
|
|
23
|
+
*/
|
|
24
|
+
readonly changePlan: {
|
|
25
|
+
readonly name: "changePlan";
|
|
26
|
+
readonly I: any;
|
|
27
|
+
readonly O: any;
|
|
28
|
+
readonly kind: any;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Cancel the organization's subscription.
|
|
32
|
+
*
|
|
33
|
+
* The organization keeps its plan to the end of the current period and is
|
|
34
|
+
* on Free after it. NOT_FOUND when the organization has no subscription.
|
|
35
|
+
*
|
|
36
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.cancel
|
|
37
|
+
*/
|
|
38
|
+
readonly cancel: {
|
|
39
|
+
readonly name: "cancel";
|
|
40
|
+
readonly I: any;
|
|
41
|
+
readonly O: any;
|
|
42
|
+
readonly kind: any;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/subscription/v1/command.proto (package ai.stigmer.billing.subscription.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { CancelSubscriptionInput, ChangePlanInput } from "./io_pbjs";
|
|
6
|
+
import { Subscription } from "./api_pbjs";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
/**
|
|
9
|
+
* SubscriptionCommandController provides the write operations on an
|
|
10
|
+
* organization's subscription.
|
|
11
|
+
*
|
|
12
|
+
* There is no create: how a subscription comes to exist is the payment
|
|
13
|
+
* system's (a checkout), so changePlan on an organization with none is the
|
|
14
|
+
* act of subscribing. Every write authorizes on the organization with
|
|
15
|
+
* can_manage_billing, the permission the billing account's writes use.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionCommandController
|
|
18
|
+
*/
|
|
19
|
+
export const SubscriptionCommandController = {
|
|
20
|
+
typeName: "ai.stigmer.billing.subscription.v1.SubscriptionCommandController",
|
|
21
|
+
methods: {
|
|
22
|
+
/**
|
|
23
|
+
* Move the organization onto a plan.
|
|
24
|
+
*
|
|
25
|
+
* Subscribes an organization that has no subscription, or changes the plan
|
|
26
|
+
* of one that does. The plan must be active and bought through a
|
|
27
|
+
* subscription. Returns the subscription as it stands after the change.
|
|
28
|
+
*
|
|
29
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.changePlan
|
|
30
|
+
*/
|
|
31
|
+
changePlan: {
|
|
32
|
+
name: "changePlan",
|
|
33
|
+
I: ChangePlanInput,
|
|
34
|
+
O: Subscription,
|
|
35
|
+
kind: MethodKind.Unary,
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* Cancel the organization's subscription.
|
|
39
|
+
*
|
|
40
|
+
* The organization keeps its plan to the end of the current period and is
|
|
41
|
+
* on Free after it. NOT_FOUND when the organization has no subscription.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.cancel
|
|
44
|
+
*/
|
|
45
|
+
cancel: {
|
|
46
|
+
name: "cancel",
|
|
47
|
+
I: CancelSubscriptionInput,
|
|
48
|
+
O: Subscription,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=command_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,oIAAoI;AACpI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,kEAAkE;IAC5E,OAAO,EAAE;QACP;;;;;;;;WAQG;QACH,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,CAAC,EAAE,eAAe;YAClB,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;WAOG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,uBAAuB;YAC1B,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { SubscriptionSchema } from "./api_pb.js";
|
|
3
|
+
import type { CancelSubscriptionInputSchema, ChangePlanInputSchema } from "./io_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/billing/subscription/v1/command.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_billing_subscription_v1_command: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* SubscriptionCommandController provides the write operations on an
|
|
10
|
+
* organization's subscription.
|
|
11
|
+
*
|
|
12
|
+
* There is no create: how a subscription comes to exist is the payment
|
|
13
|
+
* system's (a checkout), so changePlan on an organization with none is the
|
|
14
|
+
* act of subscribing. Every write authorizes on the organization with
|
|
15
|
+
* can_manage_billing, the permission the billing account's writes use.
|
|
16
|
+
*
|
|
17
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionCommandController
|
|
18
|
+
*/
|
|
19
|
+
export declare const SubscriptionCommandController: GenService<{
|
|
20
|
+
/**
|
|
21
|
+
* Move the organization onto a plan.
|
|
22
|
+
*
|
|
23
|
+
* Subscribes an organization that has no subscription, or changes the plan
|
|
24
|
+
* of one that does. The plan must be active and bought through a
|
|
25
|
+
* subscription. Returns the subscription as it stands after the change.
|
|
26
|
+
*
|
|
27
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.changePlan
|
|
28
|
+
*/
|
|
29
|
+
changePlan: {
|
|
30
|
+
methodKind: "unary";
|
|
31
|
+
input: typeof ChangePlanInputSchema;
|
|
32
|
+
output: typeof SubscriptionSchema;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Cancel the organization's subscription.
|
|
36
|
+
*
|
|
37
|
+
* The organization keeps its plan to the end of the current period and is
|
|
38
|
+
* on Free after it. NOT_FOUND when the organization has no subscription.
|
|
39
|
+
*
|
|
40
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionCommandController.cancel
|
|
41
|
+
*/
|
|
42
|
+
cancel: {
|
|
43
|
+
methodKind: "unary";
|
|
44
|
+
input: typeof CancelSubscriptionInputSchema;
|
|
45
|
+
output: typeof SubscriptionSchema;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/subscription/v1/command.proto (package ai.stigmer.billing.subscription.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_billing_subscription_v1_api } from "./api_pb.js";
|
|
6
|
+
import { file_ai_stigmer_billing_subscription_v1_io } from "./io_pb.js";
|
|
7
|
+
import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
|
|
8
|
+
import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file ai/stigmer/billing/subscription/v1/command.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_billing_subscription_v1_command = /*@__PURE__*/ fileDesc("CjBhaS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL2NvbW1hbmQucHJvdG8SImFpLnN0aWdtZXIuYmlsbGluZy5zdWJzY3JpcHRpb24udjEyowMKHVN1YnNjcmlwdGlvbkNvbW1hbmRDb250cm9sbGVyErYBCgpjaGFuZ2VQbGFuEjMuYWkuc3RpZ21lci5iaWxsaW5nLnN1YnNjcmlwdGlvbi52MS5DaGFuZ2VQbGFuSW5wdXQaMC5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvbiJBwrgYPQgcEB4iBm9yZ19pZCovdW5hdXRob3JpemVkIHRvIGNoYW5nZSB0aGlzIG9yZ2FuaXphdGlvbidzIHBsYW4SwgEKBmNhbmNlbBI7LmFpLnN0aWdtZXIuYmlsbGluZy5zdWJzY3JpcHRpb24udjEuQ2FuY2VsU3Vic2NyaXB0aW9uSW5wdXQaMC5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvbiJJwrgYRQgcEB4iBm9yZ19pZCo3dW5hdXRob3JpemVkIHRvIGNhbmNlbCB0aGlzIG9yZ2FuaXphdGlvbidzIHN1YnNjcmlwdGlvbhoEoP8rR2IGcHJvdG8z", [file_ai_stigmer_billing_subscription_v1_api, file_ai_stigmer_billing_subscription_v1_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
|
|
13
|
+
/**
|
|
14
|
+
* SubscriptionCommandController provides the write operations on an
|
|
15
|
+
* organization's subscription.
|
|
16
|
+
*
|
|
17
|
+
* There is no create: how a subscription comes to exist is the payment
|
|
18
|
+
* system's (a checkout), so changePlan on an organization with none is the
|
|
19
|
+
* act of subscribing. Every write authorizes on the organization with
|
|
20
|
+
* can_manage_billing, the permission the billing account's writes use.
|
|
21
|
+
*
|
|
22
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionCommandController
|
|
23
|
+
*/
|
|
24
|
+
export const SubscriptionCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_billing_subscription_v1_command, 0);
|
|
25
|
+
//# sourceMappingURL=command_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oIAAoI;AACpI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,0CAA0C,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAY,aAAa,CACnF,QAAQ,CAAC,krBAAkrB,EAAE,CAAC,2CAA2C,EAAE,0CAA0C,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE/3B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,6BAA6B,GA4BrC,aAAa,CAChB,WAAW,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC"}
|