@stigmer/protos 3.16.1-dev.20260917224426 → 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,114 @@
|
|
|
1
|
+
import type { 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/subscription/v1/io.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_billing_subscription_v1_io: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* GetSubscriptionForOrganizationInput names the organization whose
|
|
10
|
+
* subscription is read.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message ai.stigmer.billing.subscription.v1.GetSubscriptionForOrganizationInput
|
|
13
|
+
*/
|
|
14
|
+
export type GetSubscriptionForOrganizationInput = Message<"ai.stigmer.billing.subscription.v1.GetSubscriptionForOrganizationInput"> & {
|
|
15
|
+
/**
|
|
16
|
+
* The organization's id.
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: string org_id = 1;
|
|
19
|
+
*/
|
|
20
|
+
orgId: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetSubscriptionForOrganizationInput.
|
|
24
|
+
* Use `create(GetSubscriptionForOrganizationInputSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export declare const GetSubscriptionForOrganizationInputSchema: GenMessage<GetSubscriptionForOrganizationInput>;
|
|
27
|
+
/**
|
|
28
|
+
* GetEntitlementsInput names the organization whose entitlements are
|
|
29
|
+
* resolved.
|
|
30
|
+
*
|
|
31
|
+
* @generated from message ai.stigmer.billing.subscription.v1.GetEntitlementsInput
|
|
32
|
+
*/
|
|
33
|
+
export type GetEntitlementsInput = Message<"ai.stigmer.billing.subscription.v1.GetEntitlementsInput"> & {
|
|
34
|
+
/**
|
|
35
|
+
* The organization's id.
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: string org_id = 1;
|
|
38
|
+
*/
|
|
39
|
+
orgId: string;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetEntitlementsInput.
|
|
43
|
+
* Use `create(GetEntitlementsInputSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export declare const GetEntitlementsInputSchema: GenMessage<GetEntitlementsInput>;
|
|
46
|
+
/**
|
|
47
|
+
* GetEntitlementsOutput is what an organization is permitted right now and
|
|
48
|
+
* the plan that permits it.
|
|
49
|
+
*
|
|
50
|
+
* @generated from message ai.stigmer.billing.subscription.v1.GetEntitlementsOutput
|
|
51
|
+
*/
|
|
52
|
+
export type GetEntitlementsOutput = Message<"ai.stigmer.billing.subscription.v1.GetEntitlementsOutput"> & {
|
|
53
|
+
/**
|
|
54
|
+
* The entitlements in force for the organization.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: ai.stigmer.platform.v1.Entitlements entitlements = 1;
|
|
57
|
+
*/
|
|
58
|
+
entitlements?: Entitlements;
|
|
59
|
+
/**
|
|
60
|
+
* The id of the Plan the entitlements were resolved from. Empty when the
|
|
61
|
+
* organization is on Free, which is not a plan row.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: string plan_id = 2;
|
|
64
|
+
*/
|
|
65
|
+
planId: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetEntitlementsOutput.
|
|
69
|
+
* Use `create(GetEntitlementsOutputSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export declare const GetEntitlementsOutputSchema: GenMessage<GetEntitlementsOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* ChangePlanInput moves an organization onto a plan.
|
|
74
|
+
*
|
|
75
|
+
* @generated from message ai.stigmer.billing.subscription.v1.ChangePlanInput
|
|
76
|
+
*/
|
|
77
|
+
export type ChangePlanInput = Message<"ai.stigmer.billing.subscription.v1.ChangePlanInput"> & {
|
|
78
|
+
/**
|
|
79
|
+
* The organization's id.
|
|
80
|
+
*
|
|
81
|
+
* @generated from field: string org_id = 1;
|
|
82
|
+
*/
|
|
83
|
+
orgId: string;
|
|
84
|
+
/**
|
|
85
|
+
* The id of the Plan to move onto. Must be an active subscription plan.
|
|
86
|
+
*
|
|
87
|
+
* @generated from field: string plan_id = 2;
|
|
88
|
+
*/
|
|
89
|
+
planId: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Describes the message ai.stigmer.billing.subscription.v1.ChangePlanInput.
|
|
93
|
+
* Use `create(ChangePlanInputSchema)` to create a new message.
|
|
94
|
+
*/
|
|
95
|
+
export declare const ChangePlanInputSchema: GenMessage<ChangePlanInput>;
|
|
96
|
+
/**
|
|
97
|
+
* CancelSubscriptionInput names the organization whose subscription is
|
|
98
|
+
* canceled.
|
|
99
|
+
*
|
|
100
|
+
* @generated from message ai.stigmer.billing.subscription.v1.CancelSubscriptionInput
|
|
101
|
+
*/
|
|
102
|
+
export type CancelSubscriptionInput = Message<"ai.stigmer.billing.subscription.v1.CancelSubscriptionInput"> & {
|
|
103
|
+
/**
|
|
104
|
+
* The organization's id.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: string org_id = 1;
|
|
107
|
+
*/
|
|
108
|
+
orgId: string;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Describes the message ai.stigmer.billing.subscription.v1.CancelSubscriptionInput.
|
|
112
|
+
* Use `create(CancelSubscriptionInputSchema)` to create a new message.
|
|
113
|
+
*/
|
|
114
|
+
export declare const CancelSubscriptionInputSchema: GenMessage<CancelSubscriptionInput>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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/io.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_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/subscription/v1/io.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_billing_subscription_v1_io = /*@__PURE__*/ fileDesc("CithaS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL2lvLnByb3RvEiJhaS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxIj0KI0dldFN1YnNjcmlwdGlvbkZvck9yZ2FuaXphdGlvbklucHV0EhYKBm9yZ19pZBgBIAEoCUIGukgDyAEBIi4KFEdldEVudGl0bGVtZW50c0lucHV0EhYKBm9yZ19pZBgBIAEoCUIGukgDyAEBImQKFUdldEVudGl0bGVtZW50c091dHB1dBI6CgxlbnRpdGxlbWVudHMYASABKAsyJC5haS5zdGlnbWVyLnBsYXRmb3JtLnYxLkVudGl0bGVtZW50cxIPCgdwbGFuX2lkGAIgASgJIkIKD0NoYW5nZVBsYW5JbnB1dBIWCgZvcmdfaWQYASABKAlCBrpIA8gBARIXCgdwbGFuX2lkGAIgASgJQga6SAPIAQEiMQoXQ2FuY2VsU3Vic2NyaXB0aW9uSW5wdXQSFgoGb3JnX2lkGAEgASgJQga6SAPIAQFiBnByb3RvMw", [file_ai_stigmer_platform_v1_entitlement, file_buf_validate_validate]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetSubscriptionForOrganizationInput.
|
|
13
|
+
* Use `create(GetSubscriptionForOrganizationInputSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const GetSubscriptionForOrganizationInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_io, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetEntitlementsInput.
|
|
18
|
+
* Use `create(GetEntitlementsInputSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const GetEntitlementsInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_io, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ai.stigmer.billing.subscription.v1.GetEntitlementsOutput.
|
|
23
|
+
* Use `create(GetEntitlementsOutputSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const GetEntitlementsOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_io, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ai.stigmer.billing.subscription.v1.ChangePlanInput.
|
|
28
|
+
* Use `create(ChangePlanInputSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const ChangePlanInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_io, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message ai.stigmer.billing.subscription.v1.CancelSubscriptionInput.
|
|
33
|
+
* Use `create(CancelSubscriptionInputSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const CancelSubscriptionInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_io, 4);
|
|
36
|
+
//# sourceMappingURL=io_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/io_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,+HAA+H;AAC/H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,uCAAuC,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,ojBAAojB,EAAE,CAAC,uCAAuC,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAiBxoB;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAoD,aAAa,CACrH,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAiB7D;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAyB7D;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAsC,aAAa,CACzF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAuB7D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAgC,aAAa,CAC7E,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAiB7D;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAwC,aAAa,CAC7F,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SubscriptionQueryController provides the read operations on an
|
|
3
|
+
* organization's subscription.
|
|
4
|
+
*
|
|
5
|
+
* Every read is keyed by the organization, because an organization has at
|
|
6
|
+
* most one active subscription, and authorizes on the organization with
|
|
7
|
+
* can_view_billing, the permission the billing account's reads use.
|
|
8
|
+
*
|
|
9
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionQueryController
|
|
10
|
+
*/
|
|
11
|
+
export declare const SubscriptionQueryController: {
|
|
12
|
+
readonly typeName: "ai.stigmer.billing.subscription.v1.SubscriptionQueryController";
|
|
13
|
+
readonly methods: {
|
|
14
|
+
/**
|
|
15
|
+
* Get the organization's subscription.
|
|
16
|
+
*
|
|
17
|
+
* NOT_FOUND when the organization has none: it is on the Free plan, which
|
|
18
|
+
* is not a row. Callers that only need what the organization may do
|
|
19
|
+
* should call getEntitlements, which answers for every organization.
|
|
20
|
+
*
|
|
21
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getForOrganization
|
|
22
|
+
*/
|
|
23
|
+
readonly getForOrganization: {
|
|
24
|
+
readonly name: "getForOrganization";
|
|
25
|
+
readonly I: any;
|
|
26
|
+
readonly O: any;
|
|
27
|
+
readonly kind: any;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Resolve what the organization is permitted right now.
|
|
31
|
+
*
|
|
32
|
+
* The answer is derived, never stored: the entitlements of the plan the
|
|
33
|
+
* organization's active subscription names, else the Free plan's with an
|
|
34
|
+
* empty plan_id. A platform-managed organization has no subscription of
|
|
35
|
+
* its own; its entitlements resolve through its identity provider to the
|
|
36
|
+
* integrator organization, whose plan counts the managed organization
|
|
37
|
+
* against the managed organizations it includes.
|
|
38
|
+
*
|
|
39
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getEntitlements
|
|
40
|
+
*/
|
|
41
|
+
readonly getEntitlements: {
|
|
42
|
+
readonly name: "getEntitlements";
|
|
43
|
+
readonly I: any;
|
|
44
|
+
readonly O: any;
|
|
45
|
+
readonly kind: any;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
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/query.proto (package ai.stigmer.billing.subscription.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { GetEntitlementsInput, GetEntitlementsOutput, GetSubscriptionForOrganizationInput } from "./io_pbjs";
|
|
6
|
+
import { Subscription } from "./api_pbjs";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
/**
|
|
9
|
+
* SubscriptionQueryController provides the read operations on an
|
|
10
|
+
* organization's subscription.
|
|
11
|
+
*
|
|
12
|
+
* Every read is keyed by the organization, because an organization has at
|
|
13
|
+
* most one active subscription, and authorizes on the organization with
|
|
14
|
+
* can_view_billing, the permission the billing account's reads use.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionQueryController
|
|
17
|
+
*/
|
|
18
|
+
export const SubscriptionQueryController = {
|
|
19
|
+
typeName: "ai.stigmer.billing.subscription.v1.SubscriptionQueryController",
|
|
20
|
+
methods: {
|
|
21
|
+
/**
|
|
22
|
+
* Get the organization's subscription.
|
|
23
|
+
*
|
|
24
|
+
* NOT_FOUND when the organization has none: it is on the Free plan, which
|
|
25
|
+
* is not a row. Callers that only need what the organization may do
|
|
26
|
+
* should call getEntitlements, which answers for every organization.
|
|
27
|
+
*
|
|
28
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getForOrganization
|
|
29
|
+
*/
|
|
30
|
+
getForOrganization: {
|
|
31
|
+
name: "getForOrganization",
|
|
32
|
+
I: GetSubscriptionForOrganizationInput,
|
|
33
|
+
O: Subscription,
|
|
34
|
+
kind: MethodKind.Unary,
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Resolve what the organization is permitted right now.
|
|
38
|
+
*
|
|
39
|
+
* The answer is derived, never stored: the entitlements of the plan the
|
|
40
|
+
* organization's active subscription names, else the Free plan's with an
|
|
41
|
+
* empty plan_id. A platform-managed organization has no subscription of
|
|
42
|
+
* its own; its entitlements resolve through its identity provider to the
|
|
43
|
+
* integrator organization, whose plan counts the managed organization
|
|
44
|
+
* against the managed organizations it includes.
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getEntitlements
|
|
47
|
+
*/
|
|
48
|
+
getEntitlements: {
|
|
49
|
+
name: "getEntitlements",
|
|
50
|
+
I: GetEntitlementsInput,
|
|
51
|
+
O: GetEntitlementsOutput,
|
|
52
|
+
kind: MethodKind.Unary,
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=query_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/query_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,kIAAkI;AAClI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,mCAAmC,EAAE,MAAM,WAAW,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,gEAAgE;IAC1E,OAAO,EAAE;QACP;;;;;;;;WAQG;QACH,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,CAAC,EAAE,mCAAmC;YACtC,CAAC,EAAE,YAAY;YACf,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;WAWG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,qBAAqB;YACxB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { SubscriptionSchema } from "./api_pb.js";
|
|
3
|
+
import type { GetEntitlementsInputSchema, GetEntitlementsOutputSchema, GetSubscriptionForOrganizationInputSchema } from "./io_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ai/stigmer/billing/subscription/v1/query.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ai_stigmer_billing_subscription_v1_query: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* SubscriptionQueryController provides the read operations on an
|
|
10
|
+
* organization's subscription.
|
|
11
|
+
*
|
|
12
|
+
* Every read is keyed by the organization, because an organization has at
|
|
13
|
+
* most one active subscription, and authorizes on the organization with
|
|
14
|
+
* can_view_billing, the permission the billing account's reads use.
|
|
15
|
+
*
|
|
16
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionQueryController
|
|
17
|
+
*/
|
|
18
|
+
export declare const SubscriptionQueryController: GenService<{
|
|
19
|
+
/**
|
|
20
|
+
* Get the organization's subscription.
|
|
21
|
+
*
|
|
22
|
+
* NOT_FOUND when the organization has none: it is on the Free plan, which
|
|
23
|
+
* is not a row. Callers that only need what the organization may do
|
|
24
|
+
* should call getEntitlements, which answers for every organization.
|
|
25
|
+
*
|
|
26
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getForOrganization
|
|
27
|
+
*/
|
|
28
|
+
getForOrganization: {
|
|
29
|
+
methodKind: "unary";
|
|
30
|
+
input: typeof GetSubscriptionForOrganizationInputSchema;
|
|
31
|
+
output: typeof SubscriptionSchema;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Resolve what the organization is permitted right now.
|
|
35
|
+
*
|
|
36
|
+
* The answer is derived, never stored: the entitlements of the plan the
|
|
37
|
+
* organization's active subscription names, else the Free plan's with an
|
|
38
|
+
* empty plan_id. A platform-managed organization has no subscription of
|
|
39
|
+
* its own; its entitlements resolve through its identity provider to the
|
|
40
|
+
* integrator organization, whose plan counts the managed organization
|
|
41
|
+
* against the managed organizations it includes.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc ai.stigmer.billing.subscription.v1.SubscriptionQueryController.getEntitlements
|
|
44
|
+
*/
|
|
45
|
+
getEntitlements: {
|
|
46
|
+
methodKind: "unary";
|
|
47
|
+
input: typeof GetEntitlementsInputSchema;
|
|
48
|
+
output: typeof GetEntitlementsOutputSchema;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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/query.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/query.proto.
|
|
11
|
+
*/
|
|
12
|
+
export const file_ai_stigmer_billing_subscription_v1_query = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL3F1ZXJ5LnByb3RvEiJhaS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxMtADChtTdWJzY3JpcHRpb25RdWVyeUNvbnRyb2xsZXIS2AEKEmdldEZvck9yZ2FuaXphdGlvbhJHLmFpLnN0aWdtZXIuYmlsbGluZy5zdWJzY3JpcHRpb24udjEuR2V0U3Vic2NyaXB0aW9uRm9yT3JnYW5pemF0aW9uSW5wdXQaMC5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvbiJHwrgYQwgbEB4iBm9yZ19pZCo1dW5hdXRob3JpemVkIHRvIHZpZXcgdGhpcyBvcmdhbml6YXRpb24ncyBzdWJzY3JpcHRpb24SzwEKD2dldEVudGl0bGVtZW50cxI4LmFpLnN0aWdtZXIuYmlsbGluZy5zdWJzY3JpcHRpb24udjEuR2V0RW50aXRsZW1lbnRzSW5wdXQaOS5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLkdldEVudGl0bGVtZW50c091dHB1dCJHwrgYQwgbEB4iBm9yZ19pZCo1dW5hdXRob3JpemVkIHRvIHZpZXcgdGhpcyBvcmdhbml6YXRpb24ncyBlbnRpdGxlbWVudHMaBKD/K0diBnByb3RvMw", [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
|
+
* SubscriptionQueryController provides the read operations on an
|
|
15
|
+
* organization's subscription.
|
|
16
|
+
*
|
|
17
|
+
* Every read is keyed by the organization, because an organization has at
|
|
18
|
+
* most one active subscription, and authorizes on the organization with
|
|
19
|
+
* can_view_billing, the permission the billing account's reads use.
|
|
20
|
+
*
|
|
21
|
+
* @generated from service ai.stigmer.billing.subscription.v1.SubscriptionQueryController
|
|
22
|
+
*/
|
|
23
|
+
export const SubscriptionQueryController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_billing_subscription_v1_query, 0);
|
|
24
|
+
//# sourceMappingURL=query_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,kIAAkI;AAClI,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,6CAA6C,GAAY,aAAa,CACjF,QAAQ,CAAC,4uBAA4uB,EAAE,CAAC,2CAA2C,EAAE,0CAA0C,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEz7B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAgCnC,aAAa,CAChB,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ai/stigmer/billing/subscription/v1/spec.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ai_stigmer_billing_subscription_v1_spec: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* SubscriptionSpec names the plan an organization is bound to.
|
|
9
|
+
*
|
|
10
|
+
* The plan is referenced by its id, not by an organization-scoped reference:
|
|
11
|
+
* a Plan belongs to no organization, and the id is exact and immutable,
|
|
12
|
+
* which is what "a change of terms is a new Plan" needs. Everything else
|
|
13
|
+
* about a subscription is state the payment system reports, and lives in
|
|
14
|
+
* the status.
|
|
15
|
+
*
|
|
16
|
+
* @generated from message ai.stigmer.billing.subscription.v1.SubscriptionSpec
|
|
17
|
+
*/
|
|
18
|
+
export type SubscriptionSpec = Message<"ai.stigmer.billing.subscription.v1.SubscriptionSpec"> & {
|
|
19
|
+
/**
|
|
20
|
+
* The id of the Plan the organization is bound to.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: string plan_id = 1;
|
|
23
|
+
*/
|
|
24
|
+
planId: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ai.stigmer.billing.subscription.v1.SubscriptionSpec.
|
|
28
|
+
* Use `create(SubscriptionSpecSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export declare const SubscriptionSpecSchema: GenMessage<SubscriptionSpec>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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/spec.proto (package ai.stigmer.billing.subscription.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ai/stigmer/billing/subscription/v1/spec.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_ai_stigmer_billing_subscription_v1_spec = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL3NwZWMucHJvdG8SImFpLnN0aWdtZXIuYmlsbGluZy5zdWJzY3JpcHRpb24udjEiKwoQU3Vic2NyaXB0aW9uU3BlYxIXCgdwbGFuX2lkGAEgASgJQga6SAPIAQFiBnByb3RvMw", [file_buf_validate_validate]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message ai.stigmer.billing.subscription.v1.SubscriptionSpec.
|
|
12
|
+
* Use `create(SubscriptionSpecSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const SubscriptionSpecSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_spec, 0);
|
|
15
|
+
//# sourceMappingURL=spec_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,iIAAiI;AACjI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;GAEG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAY,aAAa,CAChF,QAAQ,CAAC,wLAAwL,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAsBnO;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAiC,aAAa,CAC/E,WAAW,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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/subscription/v1/status.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_billing_subscription_v1_status: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* SubscriptionStatus is the system-managed state of a subscription: its audit
|
|
11
|
+
* trail, its lifecycle state and the billing period it is in.
|
|
12
|
+
*
|
|
13
|
+
* Deliberately absent: the entitlements. They are derived from the plan on
|
|
14
|
+
* every read (SubscriptionQueryController.getEntitlements) so a plan's
|
|
15
|
+
* terms are stated once, on the plan.
|
|
16
|
+
*
|
|
17
|
+
* @generated from message ai.stigmer.billing.subscription.v1.SubscriptionStatus
|
|
18
|
+
*/
|
|
19
|
+
export type SubscriptionStatus = Message<"ai.stigmer.billing.subscription.v1.SubscriptionStatus"> & {
|
|
20
|
+
/**
|
|
21
|
+
* Standard audit information tracking creation and modification.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: ai.stigmer.commons.apiresource.ApiResourceAudit audit = 99;
|
|
24
|
+
*/
|
|
25
|
+
audit?: ApiResourceAudit;
|
|
26
|
+
/**
|
|
27
|
+
* The lifecycle state the payment system last reported.
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: ai.stigmer.billing.subscription.v1.SubscriptionState state = 1;
|
|
30
|
+
*/
|
|
31
|
+
state: SubscriptionState;
|
|
32
|
+
/**
|
|
33
|
+
* Start of the current billing period.
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: google.protobuf.Timestamp current_period_start = 2;
|
|
36
|
+
*/
|
|
37
|
+
currentPeriodStart?: Timestamp;
|
|
38
|
+
/**
|
|
39
|
+
* End of the current billing period.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: google.protobuf.Timestamp current_period_end = 3;
|
|
42
|
+
*/
|
|
43
|
+
currentPeriodEnd?: Timestamp;
|
|
44
|
+
/**
|
|
45
|
+
* When the subscription was canceled. Unset while it is not.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: google.protobuf.Timestamp canceled_at = 4;
|
|
48
|
+
*/
|
|
49
|
+
canceledAt?: Timestamp;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message ai.stigmer.billing.subscription.v1.SubscriptionStatus.
|
|
53
|
+
* Use `create(SubscriptionStatusSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export declare const SubscriptionStatusSchema: GenMessage<SubscriptionStatus>;
|
|
56
|
+
/**
|
|
57
|
+
* SubscriptionState is the lifecycle state a subscription is in.
|
|
58
|
+
*
|
|
59
|
+
* The vocabulary is the smallest set the entitlement read cannot do without
|
|
60
|
+
* and names no payment processor; the billing engine adds states as it needs
|
|
61
|
+
* them, additively.
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum ai.stigmer.billing.subscription.v1.SubscriptionState
|
|
64
|
+
*/
|
|
65
|
+
export declare enum SubscriptionState {
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: subscription_state_unspecified = 0;
|
|
68
|
+
*/
|
|
69
|
+
subscription_state_unspecified = 0,
|
|
70
|
+
/**
|
|
71
|
+
* In good standing; the plan's entitlements apply.
|
|
72
|
+
*
|
|
73
|
+
* @generated from enum value: active = 1;
|
|
74
|
+
*/
|
|
75
|
+
active = 1,
|
|
76
|
+
/**
|
|
77
|
+
* A payment is overdue; the plan's entitlements still apply while the
|
|
78
|
+
* payment system retries.
|
|
79
|
+
*
|
|
80
|
+
* @generated from enum value: past_due = 2;
|
|
81
|
+
*/
|
|
82
|
+
past_due = 2,
|
|
83
|
+
/**
|
|
84
|
+
* Ended by the organization or the payment system; the organization is
|
|
85
|
+
* on Free from the end of the period.
|
|
86
|
+
*
|
|
87
|
+
* @generated from enum value: canceled = 3;
|
|
88
|
+
*/
|
|
89
|
+
canceled = 3
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Describes the enum ai.stigmer.billing.subscription.v1.SubscriptionState.
|
|
93
|
+
*/
|
|
94
|
+
export declare const SubscriptionStateSchema: GenEnum<SubscriptionState>;
|
|
@@ -0,0 +1,56 @@
|
|
|
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/status.proto (package ai.stigmer.billing.subscription.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/subscription/v1/status.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_billing_subscription_v1_status = /*@__PURE__*/ fileDesc("Ci9haS9zdGlnbWVyL2JpbGxpbmcvc3Vic2NyaXB0aW9uL3YxL3N0YXR1cy5wcm90bxIiYWkuc3RpZ21lci5iaWxsaW5nLnN1YnNjcmlwdGlvbi52MSK+AgoSU3Vic2NyaXB0aW9uU3RhdHVzEj8KBWF1ZGl0GGMgASgLMjAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXQSRAoFc3RhdGUYASABKA4yNS5haS5zdGlnbWVyLmJpbGxpbmcuc3Vic2NyaXB0aW9uLnYxLlN1YnNjcmlwdGlvblN0YXRlEjgKFGN1cnJlbnRfcGVyaW9kX3N0YXJ0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBI2ChJjdXJyZW50X3BlcmlvZF9lbmQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC2NhbmNlbGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCpfChFTdWJzY3JpcHRpb25TdGF0ZRIiCh5zdWJzY3JpcHRpb25fc3RhdGVfdW5zcGVjaWZpZWQQABIKCgZhY3RpdmUQARIMCghwYXN0X2R1ZRACEgwKCGNhbmNlbGVkEANiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_status, file_google_protobuf_timestamp]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.billing.subscription.v1.SubscriptionStatus.
|
|
13
|
+
* Use `create(SubscriptionStatusSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const SubscriptionStatusSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_subscription_v1_status, 0);
|
|
16
|
+
/**
|
|
17
|
+
* SubscriptionState is the lifecycle state a subscription is in.
|
|
18
|
+
*
|
|
19
|
+
* The vocabulary is the smallest set the entitlement read cannot do without
|
|
20
|
+
* and names no payment processor; the billing engine adds states as it needs
|
|
21
|
+
* them, additively.
|
|
22
|
+
*
|
|
23
|
+
* @generated from enum ai.stigmer.billing.subscription.v1.SubscriptionState
|
|
24
|
+
*/
|
|
25
|
+
export var SubscriptionState;
|
|
26
|
+
(function (SubscriptionState) {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: subscription_state_unspecified = 0;
|
|
29
|
+
*/
|
|
30
|
+
SubscriptionState[SubscriptionState["subscription_state_unspecified"] = 0] = "subscription_state_unspecified";
|
|
31
|
+
/**
|
|
32
|
+
* In good standing; the plan's entitlements apply.
|
|
33
|
+
*
|
|
34
|
+
* @generated from enum value: active = 1;
|
|
35
|
+
*/
|
|
36
|
+
SubscriptionState[SubscriptionState["active"] = 1] = "active";
|
|
37
|
+
/**
|
|
38
|
+
* A payment is overdue; the plan's entitlements still apply while the
|
|
39
|
+
* payment system retries.
|
|
40
|
+
*
|
|
41
|
+
* @generated from enum value: past_due = 2;
|
|
42
|
+
*/
|
|
43
|
+
SubscriptionState[SubscriptionState["past_due"] = 2] = "past_due";
|
|
44
|
+
/**
|
|
45
|
+
* Ended by the organization or the payment system; the organization is
|
|
46
|
+
* on Free from the end of the period.
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: canceled = 3;
|
|
49
|
+
*/
|
|
50
|
+
SubscriptionState[SubscriptionState["canceled"] = 3] = "canceled";
|
|
51
|
+
})(SubscriptionState || (SubscriptionState = {}));
|
|
52
|
+
/**
|
|
53
|
+
* Describes the enum ai.stigmer.billing.subscription.v1.SubscriptionState.
|
|
54
|
+
*/
|
|
55
|
+
export const SubscriptionStateSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_subscription_v1_status, 0);
|
|
56
|
+
//# sourceMappingURL=status_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/billing/subscription/v1/status_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,mIAAmI;AACnI,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,8CAA8C,GAAY,aAAa,CAClF,QAAQ,CAAC,4qBAA4qB,EAAE,CAAC,0CAA0C,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAiDvwB;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,iBA4BX;AA5BD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,6GAAkC,CAAA;IAElC;;;;OAIG;IACH,6DAAU,CAAA;IAEV;;;;;OAKG;IACH,iEAAY,CAAA;IAEZ;;;;;OAKG;IACH,iEAAY,CAAA;AACd,CAAC,EA5BW,iBAAiB,KAAjB,iBAAiB,QA4B5B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA+B,aAAa,CAC9E,QAAQ,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -56,7 +56,18 @@ export declare enum ApiResourceGroup {
|
|
|
56
56
|
*
|
|
57
57
|
* @generated from enum value: tenancy = 3;
|
|
58
58
|
*/
|
|
59
|
-
tenancy = 3
|
|
59
|
+
tenancy = 3,
|
|
60
|
+
/**
|
|
61
|
+
* Billing - What is sold: plans, the subscriptions and licenses that
|
|
62
|
+
* grant them. The entitlement vocabulary these kinds carry lives under
|
|
63
|
+
* platform, because every edition reads it; the kinds live here because
|
|
64
|
+
* only the cloud sells. The flat billing/v1 aggregate (BillingAccount and
|
|
65
|
+
* its ledger) is a plain message, not an envelope kind, and stays outside
|
|
66
|
+
* the group; this group covers the envelope kinds only.
|
|
67
|
+
*
|
|
68
|
+
* @generated from enum value: billing = 4;
|
|
69
|
+
*/
|
|
70
|
+
billing = 4
|
|
60
71
|
}
|
|
61
72
|
/**
|
|
62
73
|
* Describes the enum ai.stigmer.commons.apiresource.apiresourcekind.ApiResourceGroup.
|
|
@@ -6,7 +6,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
|
6
6
|
/**
|
|
7
7
|
* Describes the file ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group.proto.
|
|
8
8
|
*/
|
|
9
|
-
export const file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_group = /*@__PURE__*/ fileDesc("
|
|
9
|
+
export const file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_group = /*@__PURE__*/ fileDesc("CkdhaS9zdGlnbWVyL2NvbW1vbnMvYXBpcmVzb3VyY2UvYXBpcmVzb3VyY2VraW5kL2FwaV9yZXNvdXJjZV9ncm91cC5wcm90bxIuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLmFwaXJlc291cmNla2luZCI8ChRBcGlSZXNvdXJjZUdyb3VwTWV0YRIOCgZkb21haW4YASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJKuoBChBBcGlSZXNvdXJjZUdyb3VwEiIKHmFwaV9yZXNvdXJjZV9ncm91cF91bnNwZWNpZmllZBAAEi4KB2FnZW50aWMQARoh6r0sHQoSYWdlbnRpYy5zdGlnbWVyLmFpEgdBZ2VudGljEiIKA2lhbRACGhnqvSwVCg5pYW0uc3RpZ21lci5haRIDSUFNEi4KB3RlbmFuY3kQAxoh6r0sHQoSdGVuYW5jeS5zdGlnbWVyLmFpEgdUZW5hbmN5Ei4KB2JpbGxpbmcQBBoh6r0sHQoSYmlsbGluZy5zdGlnbWVyLmFpEgdCaWxsaW5nOogBCgpncm91cF9tZXRhEiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnMY3ccFIAEoCzJELmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5hcGlyZXNvdXJjZWtpbmQuQXBpUmVzb3VyY2VHcm91cE1ldGFSCWdyb3VwTWV0YWIGcHJvdG8z", [file_google_protobuf_descriptor]);
|
|
10
10
|
/**
|
|
11
11
|
* Describes the message ai.stigmer.commons.apiresource.apiresourcekind.ApiResourceGroupMeta.
|
|
12
12
|
* Use `create(ApiResourceGroupMetaSchema)` to create a new message.
|
|
@@ -41,6 +41,17 @@ export var ApiResourceGroup;
|
|
|
41
41
|
* @generated from enum value: tenancy = 3;
|
|
42
42
|
*/
|
|
43
43
|
ApiResourceGroup[ApiResourceGroup["tenancy"] = 3] = "tenancy";
|
|
44
|
+
/**
|
|
45
|
+
* Billing - What is sold: plans, the subscriptions and licenses that
|
|
46
|
+
* grant them. The entitlement vocabulary these kinds carry lives under
|
|
47
|
+
* platform, because every edition reads it; the kinds live here because
|
|
48
|
+
* only the cloud sells. The flat billing/v1 aggregate (BillingAccount and
|
|
49
|
+
* its ledger) is a plain message, not an envelope kind, and stays outside
|
|
50
|
+
* the group; this group covers the envelope kinds only.
|
|
51
|
+
*
|
|
52
|
+
* @generated from enum value: billing = 4;
|
|
53
|
+
*/
|
|
54
|
+
ApiResourceGroup[ApiResourceGroup["billing"] = 4] = "billing";
|
|
44
55
|
})(ApiResourceGroup || (ApiResourceGroup = {}));
|
|
45
56
|
/**
|
|
46
57
|
* Describes the enum ai.stigmer.commons.apiresource.apiresourcekind.ApiResourceGroup.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_resource_group_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uKAAuK;AACvK,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE;;GAEG;AACH,MAAM,CAAC,MAAM,sEAAsE,GAAY,aAAa,CAC1G,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"api_resource_group_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/commons/apiresource/apiresourcekind/api_resource_group_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uKAAuK;AACvK,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE;;GAEG;AACH,MAAM,CAAC,MAAM,sEAAsE,GAAY,aAAa,CAC1G,QAAQ,CAAC,svBAAsvB,EAAE,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAuBtyB;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,sEAAsE,EAAE,CAAC,CAAC,CAAC;AAEzF;;;;GAIG;AACH,MAAM,CAAN,IAAY,gBAsCX;AAtCD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,2GAAkC,CAAA;IAElC;;;;OAIG;IACH,6DAAW,CAAA;IAEX;;;;OAIG;IACH,qDAAO,CAAA;IAEP;;;;OAIG;IACH,6DAAW,CAAA;IAEX;;;;;;;;;OASG;IACH,6DAAW,CAAA;AACb,CAAC,EAtCW,gBAAgB,KAAhB,gBAAgB,QAsC3B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAA8B,aAAa,CAC5E,QAAQ,CAAC,sEAAsE,EAAE,CAAC,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyD,aAAa,CAC3F,OAAO,CAAC,sEAAsE,EAAE,CAAC,CAAC,CAAC"}
|