@stigmer/protos 0.3.3 → 0.4.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/agentic/agentexecution/v1/command_connect.js +2 -2
- package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +2 -2
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +38 -0
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +41 -2
- package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +167 -58
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +44 -24
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +0 -10
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +1 -2
- package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +14 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +15 -2
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +14 -2
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +701 -262
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +271 -9
- package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
- package/ai/stigmer/billing/v1/billing_account_pb.d.ts +245 -0
- package/ai/stigmer/billing/v1/billing_account_pb.js +31 -0
- package/ai/stigmer/billing/v1/billing_account_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/command_connect.d.ts +135 -0
- package/ai/stigmer/billing/v1/command_connect.js +144 -0
- package/ai/stigmer/billing/v1/command_connect.js.map +1 -0
- package/ai/stigmer/billing/v1/command_pb.d.ts +132 -0
- package/ai/stigmer/billing/v1/command_pb.js +23 -0
- package/ai/stigmer/billing/v1/command_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/credit_pb.d.ts +492 -0
- package/ai/stigmer/billing/v1/credit_pb.js +47 -0
- package/ai/stigmer/billing/v1/credit_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/enum_pb.d.ts +318 -0
- package/ai/stigmer/billing/v1/enum_pb.js +329 -0
- package/ai/stigmer/billing/v1/enum_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/io_pb.d.ts +801 -0
- package/ai/stigmer/billing/v1/io_pb.js +130 -0
- package/ai/stigmer/billing/v1/io_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/policy_pb.d.ts +138 -0
- package/ai/stigmer/billing/v1/policy_pb.js +20 -0
- package/ai/stigmer/billing/v1/policy_pb.js.map +1 -0
- package/ai/stigmer/billing/v1/query_connect.d.ts +68 -0
- package/ai/stigmer/billing/v1/query_connect.js +76 -0
- package/ai/stigmer/billing/v1/query_connect.js.map +1 -0
- package/ai/stigmer/billing/v1/query_pb.d.ts +67 -0
- package/ai/stigmer/billing/v1/query_pb.js +20 -0
- package/ai/stigmer/billing/v1/query_pb.js.map +1 -0
- package/ai/stigmer/iam/identityaccount/v1/command_connect.d.ts +9 -9
- package/ai/stigmer/iam/identityaccount/v1/command_connect.js +12 -12
- package/ai/stigmer/iam/identityaccount/v1/command_connect.js.map +1 -1
- package/ai/stigmer/iam/identityaccount/v1/command_pb.d.ts +11 -11
- package/ai/stigmer/iam/identityaccount/v1/command_pb.js +1 -1
- package/ai/stigmer/iam/identityaccount/v1/command_pb.js.map +1 -1
- package/ai/stigmer/iam/v1/enum_pb.d.ts +18 -1
- package/ai/stigmer/iam/v1/enum_pb.js +18 -1
- package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,286 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
2
|
// @generated from file ai/stigmer/agentic/agentexecution/v1/usage.proto (package ai.stigmer.agentic.agentexecution.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
6
|
/**
|
|
6
7
|
* Describes the file ai/stigmer/agentic/agentexecution/v1/usage.proto.
|
|
7
8
|
*/
|
|
8
|
-
export const file_ai_stigmer_agentic_agentexecution_v1_usage = /*@__PURE__*/ fileDesc("
|
|
9
|
+
export const file_ai_stigmer_agentic_agentexecution_v1_usage = /*@__PURE__*/ fileDesc("CjBhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvdXNhZ2UucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSKxAwoKVG9rZW5Vc2FnZRIUCgxpbnB1dF90b2tlbnMYASABKAMSFQoNb3V0cHV0X3Rva2VucxgCIAEoAxIUCgx0b3RhbF90b2tlbnMYAyABKAMSIwobY2FjaGVfY3JlYXRpb25faW5wdXRfdG9rZW5zGAQgASgDEh8KF2NhY2hlX3JlYWRfaW5wdXRfdG9rZW5zGAUgASgDEhgKEHJlYXNvbmluZ190b2tlbnMYBiABKAMSHgoWdG9vbF91c2VfcHJvbXB0X3Rva2VucxgHIAEoAxIaChJhdWRpb19pbnB1dF90b2tlbnMYCCABKAMSGwoTYXVkaW9fb3V0cHV0X3Rva2VucxgJIAEoAxJq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VJST1JfV0lUSF9VU0FHRRADEjMKL1VTQUdFX0NPTVBMRVRJT05fU1RBVFVTX1BST1ZJREVSX0VSUk9SX05PX1VTQUdFEAQSKgomVVNBR0VfQ09NUExFVElPTl9TVEFUVVNfRVNUSU1BVEVEX09OTFkQBRImCiJVU0FHRV9DT01QTEVUSU9OX1NUQVRVU19SRUNPTkNJTEVEEAYSJAogVVNBR0VfQ09NUExFVElPTl9TVEFUVVNfQ09ORkxJQ1QQByqfAgoSQmlsbGluZ0RlYml0U3RhdHVzEiQKIEJJTExJTkdfREVCSVRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASJwojQklMTElOR19ERUJJVF9TVEFUVVNfTk9UX0FQUExJQ0FCTEUQARIgChxCSUxMSU5HX0RFQklUX1NUQVRVU19QRU5ESU5HEAISIAocQklMTElOR19ERUJJVF9TVEFUVVNfREVCSVRFRBADEikKJUJJTExJTkdfREVCSVRfU1RBVFVTX0ZBSUxFRF9SRVRSWUFCTEUQBBIoCiRCSUxMSU5HX0RFQklUX1NUQVRVU19GQUlMRURfVEVSTUlOQUwQBRIhCh1CSUxMSU5HX0RFQklUX1NUQVRVU19DT05GTElDVBAGKo8CChVDb3N0Q2FsY3VsYXRpb25TdGF0dXMSJwojQ09TVF9DQUxDVUxBVElPTl9TVEFUVVNfVU5TUEVDSUZJRUQQABIkCiBDT1NUX0NBTENVTEFUSU9OX1NUQVRVU19DT01QVVRFRBABEiUKIUNPU1RfQ0FMQ1VMQVRJT05fU1RBVFVTX0VTVElNQVRFRBACEisKJ0NPU1RfQ0FMQ1VMQVRJT05fU1RBVFVTX1BSSUNFX05PVF9GT1VORBADEiYKIkNPU1RfQ0FMQ1VMQVRJT05fU1RBVFVTX1JFQ09OQ0lMRUQQBBIrCidDT1NUX0NBTENVTEFUSU9OX1NUQVRVU19NQU5VQUxfQURKVVNURUQQBWIGcHJvdG8z", [file_google_protobuf_timestamp]);
|
|
9
10
|
/**
|
|
10
|
-
* Describes the message ai.stigmer.agentic.agentexecution.v1.
|
|
11
|
-
* Use `create(
|
|
11
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.TokenUsage.
|
|
12
|
+
* Use `create(TokenUsageSchema)` to create a new message.
|
|
12
13
|
*/
|
|
13
|
-
export const
|
|
14
|
+
export const TokenUsageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.PricingSnapshot.
|
|
17
|
+
* Use `create(PricingSnapshotSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const PricingSnapshotSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.CostStamp.
|
|
22
|
+
* Use `create(CostStampSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const CostStampSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 2);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.ProxyTiming.
|
|
27
|
+
* Use `create(ProxyTimingSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const ProxyTimingSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 3);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.BillingLink.
|
|
32
|
+
* Use `create(BillingLinkSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const BillingLinkSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 4);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.LlmCallUsageRecord.
|
|
37
|
+
* Use `create(LlmCallUsageRecordSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const LlmCallUsageRecordSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 5);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.UsageReportAggregate.
|
|
42
|
+
* Use `create(UsageReportAggregateSchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const UsageReportAggregateSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 6);
|
|
14
45
|
/**
|
|
15
46
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.ModelUsage.
|
|
16
47
|
* Use `create(ModelUsageSchema)` to create a new message.
|
|
17
48
|
*/
|
|
18
|
-
export const ModelUsageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage,
|
|
49
|
+
export const ModelUsageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 7);
|
|
50
|
+
/**
|
|
51
|
+
* Identifies who wrote the usage record and under what conditions.
|
|
52
|
+
*
|
|
53
|
+
* @generated from enum ai.stigmer.agentic.agentexecution.v1.UsageMeteringSource
|
|
54
|
+
*/
|
|
55
|
+
export var UsageMeteringSource;
|
|
56
|
+
(function (UsageMeteringSource) {
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: USAGE_METERING_SOURCE_UNSPECIFIED = 0;
|
|
59
|
+
*/
|
|
60
|
+
UsageMeteringSource[UsageMeteringSource["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
61
|
+
/**
|
|
62
|
+
* Cloud mode: Stigmer proxy observed provider-reported final usage from SSE stream.
|
|
63
|
+
*
|
|
64
|
+
* @generated from enum value: USAGE_METERING_SOURCE_PROXY_PROVIDER_REPORTED = 1;
|
|
65
|
+
*/
|
|
66
|
+
UsageMeteringSource[UsageMeteringSource["PROXY_PROVIDER_REPORTED"] = 1] = "PROXY_PROVIDER_REPORTED";
|
|
67
|
+
/**
|
|
68
|
+
* OSS/BYOK mode: runner reports provider response usage directly.
|
|
69
|
+
*
|
|
70
|
+
* @generated from enum value: USAGE_METERING_SOURCE_RUNNER_PROVIDER_REPORTED_OSS = 2;
|
|
71
|
+
*/
|
|
72
|
+
UsageMeteringSource[UsageMeteringSource["RUNNER_PROVIDER_REPORTED_OSS"] = 2] = "RUNNER_PROVIDER_REPORTED_OSS";
|
|
73
|
+
/**
|
|
74
|
+
* Estimate from tokenizer/preflight/local accounting. Never billing-authoritative in cloud mode.
|
|
75
|
+
*
|
|
76
|
+
* @generated from enum value: USAGE_METERING_SOURCE_ESTIMATED = 3;
|
|
77
|
+
*/
|
|
78
|
+
UsageMeteringSource[UsageMeteringSource["ESTIMATED"] = 3] = "ESTIMATED";
|
|
79
|
+
/**
|
|
80
|
+
* Reconciliation from provider admin usage/cost reports.
|
|
81
|
+
*
|
|
82
|
+
* @generated from enum value: USAGE_METERING_SOURCE_PROVIDER_ADMIN_RECONCILED = 4;
|
|
83
|
+
*/
|
|
84
|
+
UsageMeteringSource[UsageMeteringSource["PROVIDER_ADMIN_RECONCILED"] = 4] = "PROVIDER_ADMIN_RECONCILED";
|
|
85
|
+
/**
|
|
86
|
+
* Human/system manual adjustment.
|
|
87
|
+
*
|
|
88
|
+
* @generated from enum value: USAGE_METERING_SOURCE_MANUAL_ADJUSTMENT = 5;
|
|
89
|
+
*/
|
|
90
|
+
UsageMeteringSource[UsageMeteringSource["MANUAL_ADJUSTMENT"] = 5] = "MANUAL_ADJUSTMENT";
|
|
91
|
+
})(UsageMeteringSource || (UsageMeteringSource = {}));
|
|
92
|
+
/**
|
|
93
|
+
* Describes the enum ai.stigmer.agentic.agentexecution.v1.UsageMeteringSource.
|
|
94
|
+
*/
|
|
95
|
+
export const UsageMeteringSourceSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 0);
|
|
96
|
+
/**
|
|
97
|
+
* Declares what the record can be used for.
|
|
98
|
+
*
|
|
99
|
+
* @generated from enum ai.stigmer.agentic.agentexecution.v1.UsageTrustLevel
|
|
100
|
+
*/
|
|
101
|
+
export var UsageTrustLevel;
|
|
102
|
+
(function (UsageTrustLevel) {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: USAGE_TRUST_LEVEL_UNSPECIFIED = 0;
|
|
105
|
+
*/
|
|
106
|
+
UsageTrustLevel[UsageTrustLevel["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
107
|
+
/**
|
|
108
|
+
* Billing-authoritative: safe to debit credits from.
|
|
109
|
+
*
|
|
110
|
+
* @generated from enum value: USAGE_TRUST_LEVEL_BILLING_AUTHORITY = 1;
|
|
111
|
+
*/
|
|
112
|
+
UsageTrustLevel[UsageTrustLevel["BILLING_AUTHORITY"] = 1] = "BILLING_AUTHORITY";
|
|
113
|
+
/**
|
|
114
|
+
* Server-observed but not billing (e.g., proxy timing).
|
|
115
|
+
*
|
|
116
|
+
* @generated from enum value: USAGE_TRUST_LEVEL_SERVER_OBSERVED = 2;
|
|
117
|
+
*/
|
|
118
|
+
UsageTrustLevel[UsageTrustLevel["SERVER_OBSERVED"] = 2] = "SERVER_OBSERVED";
|
|
119
|
+
/**
|
|
120
|
+
* Display-only: runner-reported, never used for billing.
|
|
121
|
+
*
|
|
122
|
+
* @generated from enum value: USAGE_TRUST_LEVEL_DISPLAY_ONLY = 3;
|
|
123
|
+
*/
|
|
124
|
+
UsageTrustLevel[UsageTrustLevel["DISPLAY_ONLY"] = 3] = "DISPLAY_ONLY";
|
|
125
|
+
})(UsageTrustLevel || (UsageTrustLevel = {}));
|
|
126
|
+
/**
|
|
127
|
+
* Describes the enum ai.stigmer.agentic.agentexecution.v1.UsageTrustLevel.
|
|
128
|
+
*/
|
|
129
|
+
export const UsageTrustLevelSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 1);
|
|
130
|
+
/**
|
|
131
|
+
* Status of provider-reported token usage extraction.
|
|
132
|
+
*
|
|
133
|
+
* @generated from enum ai.stigmer.agentic.agentexecution.v1.UsageCompletionStatus
|
|
134
|
+
*/
|
|
135
|
+
export var UsageCompletionStatus;
|
|
136
|
+
(function (UsageCompletionStatus) {
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_UNSPECIFIED = 0;
|
|
139
|
+
*/
|
|
140
|
+
UsageCompletionStatus[UsageCompletionStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
141
|
+
/**
|
|
142
|
+
* Provider reported complete final usage (normal case).
|
|
143
|
+
*
|
|
144
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_COMPLETE = 1;
|
|
145
|
+
*/
|
|
146
|
+
UsageCompletionStatus[UsageCompletionStatus["COMPLETE"] = 1] = "COMPLETE";
|
|
147
|
+
/**
|
|
148
|
+
* Stream ended without final usage event (e.g., connection interrupted).
|
|
149
|
+
*
|
|
150
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_STREAM_INTERRUPTED = 2;
|
|
151
|
+
*/
|
|
152
|
+
UsageCompletionStatus[UsageCompletionStatus["STREAM_INTERRUPTED"] = 2] = "STREAM_INTERRUPTED";
|
|
153
|
+
/**
|
|
154
|
+
* Provider returned error but included partial usage data.
|
|
155
|
+
*
|
|
156
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_PROVIDER_ERROR_WITH_USAGE = 3;
|
|
157
|
+
*/
|
|
158
|
+
UsageCompletionStatus[UsageCompletionStatus["PROVIDER_ERROR_WITH_USAGE"] = 3] = "PROVIDER_ERROR_WITH_USAGE";
|
|
159
|
+
/**
|
|
160
|
+
* Provider returned error with no usage data.
|
|
161
|
+
*
|
|
162
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_PROVIDER_ERROR_NO_USAGE = 4;
|
|
163
|
+
*/
|
|
164
|
+
UsageCompletionStatus[UsageCompletionStatus["PROVIDER_ERROR_NO_USAGE"] = 4] = "PROVIDER_ERROR_NO_USAGE";
|
|
165
|
+
/**
|
|
166
|
+
* Usage is estimated (tokenizer/preflight), not provider-reported.
|
|
167
|
+
*
|
|
168
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_ESTIMATED_ONLY = 5;
|
|
169
|
+
*/
|
|
170
|
+
UsageCompletionStatus[UsageCompletionStatus["ESTIMATED_ONLY"] = 5] = "ESTIMATED_ONLY";
|
|
171
|
+
/**
|
|
172
|
+
* Reconciled against provider admin reports.
|
|
173
|
+
*
|
|
174
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_RECONCILED = 6;
|
|
175
|
+
*/
|
|
176
|
+
UsageCompletionStatus[UsageCompletionStatus["RECONCILED"] = 6] = "RECONCILED";
|
|
177
|
+
/**
|
|
178
|
+
* Conflict: retry with different payload detected.
|
|
179
|
+
*
|
|
180
|
+
* @generated from enum value: USAGE_COMPLETION_STATUS_CONFLICT = 7;
|
|
181
|
+
*/
|
|
182
|
+
UsageCompletionStatus[UsageCompletionStatus["CONFLICT"] = 7] = "CONFLICT";
|
|
183
|
+
})(UsageCompletionStatus || (UsageCompletionStatus = {}));
|
|
184
|
+
/**
|
|
185
|
+
* Describes the enum ai.stigmer.agentic.agentexecution.v1.UsageCompletionStatus.
|
|
186
|
+
*/
|
|
187
|
+
export const UsageCompletionStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 2);
|
|
188
|
+
/**
|
|
189
|
+
* Status of the billing debit for a usage record.
|
|
190
|
+
*
|
|
191
|
+
* @generated from enum ai.stigmer.agentic.agentexecution.v1.BillingDebitStatus
|
|
192
|
+
*/
|
|
193
|
+
export var BillingDebitStatus;
|
|
194
|
+
(function (BillingDebitStatus) {
|
|
195
|
+
/**
|
|
196
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_UNSPECIFIED = 0;
|
|
197
|
+
*/
|
|
198
|
+
BillingDebitStatus[BillingDebitStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
199
|
+
/**
|
|
200
|
+
* No billing applicable (e.g., OSS mode, $0 cost, incomplete usage).
|
|
201
|
+
*
|
|
202
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_NOT_APPLICABLE = 1;
|
|
203
|
+
*/
|
|
204
|
+
BillingDebitStatus[BillingDebitStatus["NOT_APPLICABLE"] = 1] = "NOT_APPLICABLE";
|
|
205
|
+
/**
|
|
206
|
+
* Debit pending (usage written, billing not yet attempted).
|
|
207
|
+
*
|
|
208
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_PENDING = 2;
|
|
209
|
+
*/
|
|
210
|
+
BillingDebitStatus[BillingDebitStatus["PENDING"] = 2] = "PENDING";
|
|
211
|
+
/**
|
|
212
|
+
* Credits successfully debited.
|
|
213
|
+
*
|
|
214
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_DEBITED = 3;
|
|
215
|
+
*/
|
|
216
|
+
BillingDebitStatus[BillingDebitStatus["DEBITED"] = 3] = "DEBITED";
|
|
217
|
+
/**
|
|
218
|
+
* Debit failed but retryable (transient error).
|
|
219
|
+
*
|
|
220
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_FAILED_RETRYABLE = 4;
|
|
221
|
+
*/
|
|
222
|
+
BillingDebitStatus[BillingDebitStatus["FAILED_RETRYABLE"] = 4] = "FAILED_RETRYABLE";
|
|
223
|
+
/**
|
|
224
|
+
* Debit failed terminally (e.g., no reservation found).
|
|
225
|
+
*
|
|
226
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_FAILED_TERMINAL = 5;
|
|
227
|
+
*/
|
|
228
|
+
BillingDebitStatus[BillingDebitStatus["FAILED_TERMINAL"] = 5] = "FAILED_TERMINAL";
|
|
229
|
+
/**
|
|
230
|
+
* Conflict detected (duplicate with different payload).
|
|
231
|
+
*
|
|
232
|
+
* @generated from enum value: BILLING_DEBIT_STATUS_CONFLICT = 6;
|
|
233
|
+
*/
|
|
234
|
+
BillingDebitStatus[BillingDebitStatus["CONFLICT"] = 6] = "CONFLICT";
|
|
235
|
+
})(BillingDebitStatus || (BillingDebitStatus = {}));
|
|
236
|
+
/**
|
|
237
|
+
* Describes the enum ai.stigmer.agentic.agentexecution.v1.BillingDebitStatus.
|
|
238
|
+
*/
|
|
239
|
+
export const BillingDebitStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 3);
|
|
240
|
+
/**
|
|
241
|
+
* Status of cost calculation for a usage record.
|
|
242
|
+
*
|
|
243
|
+
* @generated from enum ai.stigmer.agentic.agentexecution.v1.CostCalculationStatus
|
|
244
|
+
*/
|
|
245
|
+
export var CostCalculationStatus;
|
|
246
|
+
(function (CostCalculationStatus) {
|
|
247
|
+
/**
|
|
248
|
+
* @generated from enum value: COST_CALCULATION_STATUS_UNSPECIFIED = 0;
|
|
249
|
+
*/
|
|
250
|
+
CostCalculationStatus[CostCalculationStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
251
|
+
/**
|
|
252
|
+
* Cost computed from pricing registry at write time.
|
|
253
|
+
*
|
|
254
|
+
* @generated from enum value: COST_CALCULATION_STATUS_COMPUTED = 1;
|
|
255
|
+
*/
|
|
256
|
+
CostCalculationStatus[CostCalculationStatus["COMPUTED"] = 1] = "COMPUTED";
|
|
257
|
+
/**
|
|
258
|
+
* Cost is an estimate (model not found in registry).
|
|
259
|
+
*
|
|
260
|
+
* @generated from enum value: COST_CALCULATION_STATUS_ESTIMATED = 2;
|
|
261
|
+
*/
|
|
262
|
+
CostCalculationStatus[CostCalculationStatus["ESTIMATED"] = 2] = "ESTIMATED";
|
|
263
|
+
/**
|
|
264
|
+
* Model pricing not found; cost is zero.
|
|
265
|
+
*
|
|
266
|
+
* @generated from enum value: COST_CALCULATION_STATUS_PRICE_NOT_FOUND = 3;
|
|
267
|
+
*/
|
|
268
|
+
CostCalculationStatus[CostCalculationStatus["PRICE_NOT_FOUND"] = 3] = "PRICE_NOT_FOUND";
|
|
269
|
+
/**
|
|
270
|
+
* Cost was reconciled against provider reports.
|
|
271
|
+
*
|
|
272
|
+
* @generated from enum value: COST_CALCULATION_STATUS_RECONCILED = 4;
|
|
273
|
+
*/
|
|
274
|
+
CostCalculationStatus[CostCalculationStatus["RECONCILED"] = 4] = "RECONCILED";
|
|
275
|
+
/**
|
|
276
|
+
* Cost was manually adjusted.
|
|
277
|
+
*
|
|
278
|
+
* @generated from enum value: COST_CALCULATION_STATUS_MANUAL_ADJUSTED = 5;
|
|
279
|
+
*/
|
|
280
|
+
CostCalculationStatus[CostCalculationStatus["MANUAL_ADJUSTED"] = 5] = "MANUAL_ADJUSTED";
|
|
281
|
+
})(CostCalculationStatus || (CostCalculationStatus = {}));
|
|
19
282
|
/**
|
|
20
|
-
* Describes the
|
|
21
|
-
* Use `create(LlmCallMetricsSchema)` to create a new message.
|
|
283
|
+
* Describes the enum ai.stigmer.agentic.agentexecution.v1.CostCalculationStatus.
|
|
22
284
|
*/
|
|
23
|
-
export const
|
|
285
|
+
export const CostCalculationStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agentexecution_v1_usage, 4);
|
|
24
286
|
//# sourceMappingURL=usage_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/usage_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sIAAsI;AACtI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"usage_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/usage_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sIAAsI;AACtI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,+CAA+C,GAAY,aAAa,CAC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IAEX;;;;OAIG;IACH,mFAAoB,CAAA;IAEpB;;;;OAIG;IACH,iFAAmB,CAAA;IAEnB;;;;OAIG;IACH,mEAAY,CAAA;AACd,CAAC,EA/CW,kBAAkB,KAAlB,kBAAkB,QA+C7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgC,aAAa,CAChF,QAAQ,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAN,IAAY,qBAwCX;AAxCD,WAAY,qBAAqB;IAC/B;;OAEG;IACH,+EAAe,CAAA;IAEf;;;;OAIG;IACH,yEAAY,CAAA;IAEZ;;;;OAIG;IACH,2EAAa,CAAA;IAEb;;;;OAIG;IACH,uFAAmB,CAAA;IAEnB;;;;OAIG;IACH,6EAAc,CAAA;IAEd;;;;OAIG;IACH,uFAAmB,CAAA;AACrB,CAAC,EAxCW,qBAAqB,KAArB,qBAAqB,QAwChC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAmC,aAAa,CACtF,QAAQ,CAAC,+CAA+C,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
|
|
2
|
+
import type { BillingAccountStatus } from "./enum_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/v1/billing_account.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_ai_stigmer_billing_v1_billing_account: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* BillingAccount is the billing aggregate for an organization.
|
|
11
|
+
*
|
|
12
|
+
* Exactly one BillingAccount exists per org, auto-provisioned on first
|
|
13
|
+
* billing interaction. It tracks credit balances, Stripe customer mapping,
|
|
14
|
+
* and auto-recharge configuration.
|
|
15
|
+
*
|
|
16
|
+
* This is not a standard Stigmer API Resource — it has no api_version/kind
|
|
17
|
+
* envelope, no slug, and no blueprint/runtime split. Authorization is scoped
|
|
18
|
+
* to the parent organization via can_view_billing / can_manage_billing.
|
|
19
|
+
*
|
|
20
|
+
* @generated from message ai.stigmer.billing.v1.BillingAccount
|
|
21
|
+
*/
|
|
22
|
+
export type BillingAccount = Message<"ai.stigmer.billing.v1.BillingAccount"> & {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier for the billing account.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string id = 1;
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* Organization that owns this billing account.
|
|
31
|
+
*
|
|
32
|
+
* @generated from field: string org_id = 2;
|
|
33
|
+
*/
|
|
34
|
+
orgId: string;
|
|
35
|
+
/**
|
|
36
|
+
* Current lifecycle status.
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: ai.stigmer.billing.v1.BillingAccountStatus status = 3;
|
|
39
|
+
*/
|
|
40
|
+
status: BillingAccountStatus;
|
|
41
|
+
/**
|
|
42
|
+
* Real-time credit balance breakdown.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: ai.stigmer.billing.v1.CreditBalance balance = 4;
|
|
45
|
+
*/
|
|
46
|
+
balance?: CreditBalance;
|
|
47
|
+
/**
|
|
48
|
+
* User-configurable automatic recharge settings.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: ai.stigmer.billing.v1.AutoRechargeConfig auto_recharge = 5;
|
|
51
|
+
*/
|
|
52
|
+
autoRecharge?: AutoRechargeConfig;
|
|
53
|
+
/**
|
|
54
|
+
* Stripe Customer ID. Empty until the org's first Stripe interaction.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: string stripe_customer_id = 6;
|
|
57
|
+
*/
|
|
58
|
+
stripeCustomerId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Maximum negative balance allowed before hard-stopping executions.
|
|
61
|
+
* Free orgs: 0. Paid orgs: typically 2_000_000 ($2.00). Enterprise: contract-specific.
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: int64 allowed_negative_balance_micros = 7;
|
|
64
|
+
*/
|
|
65
|
+
allowedNegativeBalanceMicros: bigint;
|
|
66
|
+
/**
|
|
67
|
+
* Balance threshold that triggers low-balance warnings and notifications.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: int64 low_balance_threshold_micros = 8;
|
|
70
|
+
*/
|
|
71
|
+
lowBalanceThresholdMicros: bigint;
|
|
72
|
+
/**
|
|
73
|
+
* Saved payment method for off-session charges and Portal display.
|
|
74
|
+
* Populated automatically after the first Stripe Checkout purchase or
|
|
75
|
+
* when the user adds a payment method via the Stripe Customer Portal.
|
|
76
|
+
*
|
|
77
|
+
* @generated from field: ai.stigmer.billing.v1.PaymentMethodSummary default_payment_method = 11;
|
|
78
|
+
*/
|
|
79
|
+
defaultPaymentMethod?: PaymentMethodSummary;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: google.protobuf.Timestamp created_at = 9;
|
|
82
|
+
*/
|
|
83
|
+
createdAt?: Timestamp;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 10;
|
|
86
|
+
*/
|
|
87
|
+
updatedAt?: Timestamp;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message ai.stigmer.billing.v1.BillingAccount.
|
|
91
|
+
* Use `create(BillingAccountSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export declare const BillingAccountSchema: GenMessage<BillingAccount>;
|
|
94
|
+
/**
|
|
95
|
+
* CreditBalance provides the real-time breakdown of an org's credit position.
|
|
96
|
+
*
|
|
97
|
+
* Invariant: total_micros = available_micros + reserved_micros
|
|
98
|
+
* Invariant: total_micros = promotional_micros + purchased_micros
|
|
99
|
+
*
|
|
100
|
+
* @generated from message ai.stigmer.billing.v1.CreditBalance
|
|
101
|
+
*/
|
|
102
|
+
export type CreditBalance = Message<"ai.stigmer.billing.v1.CreditBalance"> & {
|
|
103
|
+
/**
|
|
104
|
+
* Credits available for new reservations and immediate use.
|
|
105
|
+
*
|
|
106
|
+
* @generated from field: int64 available_micros = 1;
|
|
107
|
+
*/
|
|
108
|
+
availableMicros: bigint;
|
|
109
|
+
/**
|
|
110
|
+
* Credits held by active execution reservations.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: int64 reserved_micros = 2;
|
|
113
|
+
*/
|
|
114
|
+
reservedMicros: bigint;
|
|
115
|
+
/**
|
|
116
|
+
* Subset of total from promotional grants (free trial, campaigns).
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: int64 promotional_micros = 3;
|
|
119
|
+
*/
|
|
120
|
+
promotionalMicros: bigint;
|
|
121
|
+
/**
|
|
122
|
+
* Subset of total from purchased credits (Stripe payments, auto-recharge).
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: int64 purchased_micros = 4;
|
|
125
|
+
*/
|
|
126
|
+
purchasedMicros: bigint;
|
|
127
|
+
/**
|
|
128
|
+
* Total credits (available + reserved).
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: int64 total_micros = 5;
|
|
131
|
+
*/
|
|
132
|
+
totalMicros: bigint;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Describes the message ai.stigmer.billing.v1.CreditBalance.
|
|
136
|
+
* Use `create(CreditBalanceSchema)` to create a new message.
|
|
137
|
+
*/
|
|
138
|
+
export declare const CreditBalanceSchema: GenMessage<CreditBalance>;
|
|
139
|
+
/**
|
|
140
|
+
* PaymentMethodSummary holds the display-safe details of a Stripe
|
|
141
|
+
* PaymentMethod so the UI can render card info without a Stripe API call.
|
|
142
|
+
*
|
|
143
|
+
* Populated from Stripe webhook events (checkout.session.completed,
|
|
144
|
+
* customer.updated) and kept in sync with the Stripe Customer's
|
|
145
|
+
* default payment method via the Billing Portal.
|
|
146
|
+
*
|
|
147
|
+
* @generated from message ai.stigmer.billing.v1.PaymentMethodSummary
|
|
148
|
+
*/
|
|
149
|
+
export type PaymentMethodSummary = Message<"ai.stigmer.billing.v1.PaymentMethodSummary"> & {
|
|
150
|
+
/**
|
|
151
|
+
* Stripe PaymentMethod ID (e.g., "pm_1abc...").
|
|
152
|
+
*
|
|
153
|
+
* @generated from field: string payment_method_id = 1;
|
|
154
|
+
*/
|
|
155
|
+
paymentMethodId: string;
|
|
156
|
+
/**
|
|
157
|
+
* Card network in lowercase (e.g., "visa", "mastercard", "amex").
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string brand = 2;
|
|
160
|
+
*/
|
|
161
|
+
brand: string;
|
|
162
|
+
/**
|
|
163
|
+
* Last four digits of the card number.
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: string last4 = 3;
|
|
166
|
+
*/
|
|
167
|
+
last4: string;
|
|
168
|
+
/**
|
|
169
|
+
* Card expiration month (1–12).
|
|
170
|
+
*
|
|
171
|
+
* @generated from field: int32 exp_month = 4;
|
|
172
|
+
*/
|
|
173
|
+
expMonth: number;
|
|
174
|
+
/**
|
|
175
|
+
* Card expiration year (4-digit, e.g., 2027).
|
|
176
|
+
*
|
|
177
|
+
* @generated from field: int32 exp_year = 5;
|
|
178
|
+
*/
|
|
179
|
+
expYear: number;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Describes the message ai.stigmer.billing.v1.PaymentMethodSummary.
|
|
183
|
+
* Use `create(PaymentMethodSummarySchema)` to create a new message.
|
|
184
|
+
*/
|
|
185
|
+
export declare const PaymentMethodSummarySchema: GenMessage<PaymentMethodSummary>;
|
|
186
|
+
/**
|
|
187
|
+
* AutoRechargeConfig controls automatic credit top-up behavior.
|
|
188
|
+
*
|
|
189
|
+
* When enabled, the billing system triggers a charge against the account's
|
|
190
|
+
* saved payment method (BillingAccount.default_payment_method) whenever
|
|
191
|
+
* the available balance drops below threshold_micros.
|
|
192
|
+
*
|
|
193
|
+
* Fields 1–4 are user-configurable via SetAutoRechargeConfig.
|
|
194
|
+
* Fields 5 and 7 are system-managed (updated by the recharge trigger).
|
|
195
|
+
*
|
|
196
|
+
* @generated from message ai.stigmer.billing.v1.AutoRechargeConfig
|
|
197
|
+
*/
|
|
198
|
+
export type AutoRechargeConfig = Message<"ai.stigmer.billing.v1.AutoRechargeConfig"> & {
|
|
199
|
+
/**
|
|
200
|
+
* Whether auto-recharge is enabled.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: bool enabled = 1;
|
|
203
|
+
*/
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Trigger recharge when available balance drops below this amount.
|
|
207
|
+
*
|
|
208
|
+
* @generated from field: int64 threshold_micros = 2;
|
|
209
|
+
*/
|
|
210
|
+
thresholdMicros: bigint;
|
|
211
|
+
/**
|
|
212
|
+
* Fixed amount to charge per recharge event.
|
|
213
|
+
*
|
|
214
|
+
* @generated from field: int64 recharge_amount_micros = 3;
|
|
215
|
+
*/
|
|
216
|
+
rechargeAmountMicros: bigint;
|
|
217
|
+
/**
|
|
218
|
+
* Maximum total auto-recharge spend per calendar month.
|
|
219
|
+
* Prevents runaway charges from aggressive usage patterns.
|
|
220
|
+
*
|
|
221
|
+
* @generated from field: int64 monthly_cap_micros = 4;
|
|
222
|
+
*/
|
|
223
|
+
monthlyCapMicros: bigint;
|
|
224
|
+
/**
|
|
225
|
+
* Running total of auto-recharge charges in the current month.
|
|
226
|
+
* System-managed: incremented on each recharge, lazily reset when
|
|
227
|
+
* current_month rolls over.
|
|
228
|
+
*
|
|
229
|
+
* @generated from field: int64 current_month_charged_micros = 5;
|
|
230
|
+
*/
|
|
231
|
+
currentMonthChargedMicros: bigint;
|
|
232
|
+
/**
|
|
233
|
+
* Calendar month the current_month_charged_micros counter belongs to.
|
|
234
|
+
* Format: "YYYY-MM" in UTC (e.g., "2026-05"). System-managed: set by
|
|
235
|
+
* the recharge trigger on the first charge of a new month.
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: string current_month = 7;
|
|
238
|
+
*/
|
|
239
|
+
currentMonth: string;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Describes the message ai.stigmer.billing.v1.AutoRechargeConfig.
|
|
243
|
+
* Use `create(AutoRechargeConfigSchema)` to create a new message.
|
|
244
|
+
*/
|
|
245
|
+
export declare const AutoRechargeConfigSchema: GenMessage<AutoRechargeConfig>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
|
|
2
|
+
// @generated from file ai/stigmer/billing/v1/billing_account.proto (package ai.stigmer.billing.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
|
|
5
|
+
import { file_ai_stigmer_billing_v1_enum } from "./enum_pb.js";
|
|
6
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ai/stigmer/billing/v1/billing_account.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ai_stigmer_billing_v1_billing_account = /*@__PURE__*/ fileDesc("CithaS9zdGlnbWVyL2JpbGxpbmcvdjEvYmlsbGluZ19hY2NvdW50LnByb3RvEhVhaS5zdGlnbWVyLmJpbGxpbmcudjEi+gMKDkJpbGxpbmdBY2NvdW50EgoKAmlkGAEgASgJEg4KBm9yZ19pZBgCIAEoCRI7CgZzdGF0dXMYAyABKA4yKy5haS5zdGlnbWVyLmJpbGxpbmcudjEuQmlsbGluZ0FjY291bnRTdGF0dXMSNQoHYmFsYW5jZRgEIAEoCzIkLmFpLnN0aWdtZXIuYmlsbGluZy52MS5DcmVkaXRCYWxhbmNlEkAKDWF1dG9fcmVjaGFyZ2UYBSABKAsyKS5haS5zdGlnbWVyLmJpbGxpbmcudjEuQXV0b1JlY2hhcmdlQ29uZmlnEhoKEnN0cmlwZV9jdXN0b21lcl9pZBgGIAEoCRInCh9hbGxvd2VkX25lZ2F0aXZlX2JhbGFuY2VfbWljcm9zGAcgASgDEiQKHGxvd19iYWxhbmNlX3RocmVzaG9sZF9taWNyb3MYCCABKAMSSwoWZGVmYXVsdF9wYXltZW50X21ldGhvZBgLIAEoCzIrLmFpLnN0aWdtZXIuYmlsbGluZy52MS5QYXltZW50TWV0aG9kU3VtbWFyeRIuCgpjcmVhdGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCKOAQoNQ3JlZGl0QmFsYW5jZRIYChBhdmFpbGFibGVfbWljcm9zGAEgASgDEhcKD3Jlc2VydmVkX21pY3JvcxgCIAEoAxIaChJwcm9tb3Rpb25hbF9taWNyb3MYAyABKAMSGAoQcHVyY2hhc2VkX21pY3JvcxgEIAEoAxIUCgx0b3RhbF9taWNyb3MYBSABKAMidAoUUGF5bWVudE1ldGhvZFN1bW1hcnkSGQoRcGF5bWVudF9tZXRob2RfaWQYASABKAkSDQoFYnJhbmQYAiABKAkSDQoFbGFzdDQYAyABKAkSEQoJZXhwX21vbnRoGAQgASgFEhAKCGV4cF95ZWFyGAUgASgFIrgBChJBdXRvUmVjaGFyZ2VDb25maWcSDwoHZW5hYmxlZBgBIAEoCBIYChB0aHJlc2hvbGRfbWljcm9zGAIgASgDEh4KFnJlY2hhcmdlX2Ftb3VudF9taWNyb3MYAyABKAMSGgoSbW9udGhseV9jYXBfbWljcm9zGAQgASgDEiQKHGN1cnJlbnRfbW9udGhfY2hhcmdlZF9taWNyb3MYBSABKAMSFQoNY3VycmVudF9tb250aBgHIAEoCWIGcHJvdG8z", [file_ai_stigmer_billing_v1_enum, file_google_protobuf_timestamp]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ai.stigmer.billing.v1.BillingAccount.
|
|
13
|
+
* Use `create(BillingAccountSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const BillingAccountSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_billing_account, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ai.stigmer.billing.v1.CreditBalance.
|
|
18
|
+
* Use `create(CreditBalanceSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const CreditBalanceSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_billing_account, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ai.stigmer.billing.v1.PaymentMethodSummary.
|
|
23
|
+
* Use `create(PaymentMethodSummarySchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const PaymentMethodSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_billing_account, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ai.stigmer.billing.v1.AutoRechargeConfig.
|
|
28
|
+
* Use `create(AutoRechargeConfigSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const AutoRechargeConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_billing_v1_billing_account, 3);
|
|
31
|
+
//# sourceMappingURL=billing_account_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing_account_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/billing_account_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,kHAAkH;AAClH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,+BAA+B,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAY,aAAa,CAC9E,QAAQ,CAAC,s2CAAs2C,EAAE,CAAC,+BAA+B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA6Ft7C;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AA+C7D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AAiD7D;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC;AA+D7D;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAmC,aAAa,CACnF,WAAW,CAAC,0CAA0C,EAAE,CAAC,CAAC,CAAC"}
|