@stigmer/protos 0.3.4 → 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.
Files changed (60) hide show
  1. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +2 -2
  2. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
  3. package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +2 -2
  4. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js +1 -1
  5. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +38 -0
  7. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +41 -2
  8. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  9. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +167 -58
  10. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +44 -24
  11. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  12. package/ai/stigmer/agentic/agentexecution/v1/message_pb.d.ts +0 -10
  13. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js +1 -2
  14. package/ai/stigmer/agentic/agentexecution/v1/message_pb.js.map +1 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +14 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +15 -2
  17. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
  18. package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +14 -2
  19. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
  20. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
  21. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +701 -262
  22. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +271 -9
  23. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  24. package/ai/stigmer/billing/v1/billing_account_pb.d.ts +245 -0
  25. package/ai/stigmer/billing/v1/billing_account_pb.js +31 -0
  26. package/ai/stigmer/billing/v1/billing_account_pb.js.map +1 -0
  27. package/ai/stigmer/billing/v1/command_connect.d.ts +135 -0
  28. package/ai/stigmer/billing/v1/command_connect.js +144 -0
  29. package/ai/stigmer/billing/v1/command_connect.js.map +1 -0
  30. package/ai/stigmer/billing/v1/command_pb.d.ts +132 -0
  31. package/ai/stigmer/billing/v1/command_pb.js +23 -0
  32. package/ai/stigmer/billing/v1/command_pb.js.map +1 -0
  33. package/ai/stigmer/billing/v1/credit_pb.d.ts +492 -0
  34. package/ai/stigmer/billing/v1/credit_pb.js +47 -0
  35. package/ai/stigmer/billing/v1/credit_pb.js.map +1 -0
  36. package/ai/stigmer/billing/v1/enum_pb.d.ts +318 -0
  37. package/ai/stigmer/billing/v1/enum_pb.js +329 -0
  38. package/ai/stigmer/billing/v1/enum_pb.js.map +1 -0
  39. package/ai/stigmer/billing/v1/io_pb.d.ts +801 -0
  40. package/ai/stigmer/billing/v1/io_pb.js +130 -0
  41. package/ai/stigmer/billing/v1/io_pb.js.map +1 -0
  42. package/ai/stigmer/billing/v1/policy_pb.d.ts +138 -0
  43. package/ai/stigmer/billing/v1/policy_pb.js +20 -0
  44. package/ai/stigmer/billing/v1/policy_pb.js.map +1 -0
  45. package/ai/stigmer/billing/v1/query_connect.d.ts +68 -0
  46. package/ai/stigmer/billing/v1/query_connect.js +76 -0
  47. package/ai/stigmer/billing/v1/query_connect.js.map +1 -0
  48. package/ai/stigmer/billing/v1/query_pb.d.ts +67 -0
  49. package/ai/stigmer/billing/v1/query_pb.js +20 -0
  50. package/ai/stigmer/billing/v1/query_pb.js.map +1 -0
  51. package/ai/stigmer/iam/identityaccount/v1/command_connect.d.ts +9 -9
  52. package/ai/stigmer/iam/identityaccount/v1/command_connect.js +12 -12
  53. package/ai/stigmer/iam/identityaccount/v1/command_connect.js.map +1 -1
  54. package/ai/stigmer/iam/identityaccount/v1/command_pb.d.ts +11 -11
  55. package/ai/stigmer/iam/identityaccount/v1/command_pb.js +1 -1
  56. package/ai/stigmer/iam/identityaccount/v1/command_pb.js.map +1 -1
  57. package/ai/stigmer/iam/v1/enum_pb.d.ts +18 -1
  58. package/ai/stigmer/iam/v1/enum_pb.js +18 -1
  59. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  60. package/package.json +1 -1
@@ -0,0 +1,318 @@
1
+ import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv1";
2
+ /**
3
+ * Describes the file ai/stigmer/billing/v1/enum.proto.
4
+ */
5
+ export declare const file_ai_stigmer_billing_v1_enum: GenFile;
6
+ /**
7
+ * LedgerEntryType classifies each row in the credit ledger.
8
+ *
9
+ * Every balance-affecting operation produces exactly one immutable ledger entry.
10
+ * The type determines sign convention and audit semantics.
11
+ *
12
+ * @generated from enum ai.stigmer.billing.v1.LedgerEntryType
13
+ */
14
+ export declare enum LedgerEntryType {
15
+ /**
16
+ * @generated from enum value: ledger_entry_type_unspecified = 0;
17
+ */
18
+ ledger_entry_type_unspecified = 0,
19
+ /**
20
+ * Credits added from a Stripe Checkout purchase.
21
+ *
22
+ * @generated from enum value: purchase_credit = 1;
23
+ */
24
+ purchase_credit = 1,
25
+ /**
26
+ * Promotional credits granted (e.g., free trial, referral bonus).
27
+ *
28
+ * @generated from enum value: promotional_credit = 2;
29
+ */
30
+ promotional_credit = 2,
31
+ /**
32
+ * Debit for a single LLM call during agent execution.
33
+ *
34
+ * @generated from enum value: usage_debit = 3;
35
+ */
36
+ usage_debit = 3,
37
+ /**
38
+ * Hold placed at execution start to reserve credits.
39
+ *
40
+ * @generated from enum value: reservation_hold = 4;
41
+ */
42
+ reservation_hold = 4,
43
+ /**
44
+ * Release of unused reservation after execution completes.
45
+ *
46
+ * @generated from enum value: reservation_release = 5;
47
+ */
48
+ reservation_release = 5,
49
+ /**
50
+ * Manual credit added by a platform admin.
51
+ *
52
+ * @generated from enum value: adjustment_credit = 6;
53
+ */
54
+ adjustment_credit = 6,
55
+ /**
56
+ * Manual debit applied by a platform admin.
57
+ *
58
+ * @generated from enum value: adjustment_debit = 7;
59
+ */
60
+ adjustment_debit = 7,
61
+ /**
62
+ * Credits reversed due to a Stripe refund.
63
+ *
64
+ * @generated from enum value: refund_reversal = 8;
65
+ */
66
+ refund_reversal = 8,
67
+ /**
68
+ * Credits frozen due to an active Stripe dispute.
69
+ *
70
+ * @generated from enum value: dispute_hold = 9;
71
+ */
72
+ dispute_hold = 9,
73
+ /**
74
+ * Credits unfrozen after a dispute is resolved in the customer's favor.
75
+ *
76
+ * @generated from enum value: dispute_release = 10;
77
+ */
78
+ dispute_release = 10,
79
+ /**
80
+ * Credits removed upon grant expiration.
81
+ *
82
+ * @generated from enum value: expiry_debit = 11;
83
+ */
84
+ expiry_debit = 11,
85
+ /**
86
+ * Credits added from an automatic recharge via saved payment method.
87
+ *
88
+ * @generated from enum value: auto_recharge_credit = 12;
89
+ */
90
+ auto_recharge_credit = 12
91
+ }
92
+ /**
93
+ * Describes the enum ai.stigmer.billing.v1.LedgerEntryType.
94
+ */
95
+ export declare const LedgerEntryTypeSchema: GenEnum<LedgerEntryType>;
96
+ /**
97
+ * CreditGrantKind classifies how credits were acquired.
98
+ *
99
+ * Determines burn order (promotional consumed first) and expiry rules.
100
+ *
101
+ * @generated from enum ai.stigmer.billing.v1.CreditGrantKind
102
+ */
103
+ export declare enum CreditGrantKind {
104
+ /**
105
+ * @generated from enum value: credit_grant_kind_unspecified = 0;
106
+ */
107
+ credit_grant_kind_unspecified = 0,
108
+ /**
109
+ * Credits purchased via Stripe Checkout or auto-recharge.
110
+ *
111
+ * @generated from enum value: purchased = 1;
112
+ */
113
+ purchased = 1,
114
+ /**
115
+ * Complimentary credits (free trial, marketing campaign, referral).
116
+ *
117
+ * @generated from enum value: promotional = 2;
118
+ */
119
+ promotional = 2,
120
+ /**
121
+ * Credits added by manual admin adjustment.
122
+ *
123
+ * @generated from enum value: adjustment = 3;
124
+ */
125
+ adjustment = 3
126
+ }
127
+ /**
128
+ * Describes the enum ai.stigmer.billing.v1.CreditGrantKind.
129
+ */
130
+ export declare const CreditGrantKindSchema: GenEnum<CreditGrantKind>;
131
+ /**
132
+ * BillingAccountStatus tracks the lifecycle state of an org's billing account.
133
+ *
134
+ * @generated from enum ai.stigmer.billing.v1.BillingAccountStatus
135
+ */
136
+ export declare enum BillingAccountStatus {
137
+ /**
138
+ * @generated from enum value: billing_account_status_unspecified = 0;
139
+ */
140
+ billing_account_status_unspecified = 0,
141
+ /**
142
+ * Account is operational; credits can be consumed and purchased.
143
+ *
144
+ * @generated from enum value: billing_account_active = 1;
145
+ */
146
+ billing_account_active = 1,
147
+ /**
148
+ * Account is frozen (e.g., dispute, compliance hold). Executions blocked.
149
+ *
150
+ * @generated from enum value: billing_account_suspended = 2;
151
+ */
152
+ billing_account_suspended = 2,
153
+ /**
154
+ * Account is permanently closed. No further operations allowed.
155
+ *
156
+ * @generated from enum value: billing_account_closed = 3;
157
+ */
158
+ billing_account_closed = 3
159
+ }
160
+ /**
161
+ * Describes the enum ai.stigmer.billing.v1.BillingAccountStatus.
162
+ */
163
+ export declare const BillingAccountStatusSchema: GenEnum<BillingAccountStatus>;
164
+ /**
165
+ * ReservationStatus tracks the lifecycle of an execution credit reservation.
166
+ *
167
+ * @generated from enum ai.stigmer.billing.v1.ReservationStatus
168
+ */
169
+ export declare enum ReservationStatus {
170
+ /**
171
+ * @generated from enum value: reservation_status_unspecified = 0;
172
+ */
173
+ reservation_status_unspecified = 0,
174
+ /**
175
+ * Reservation is active; execution is in progress.
176
+ *
177
+ * @generated from enum value: reservation_active = 1;
178
+ */
179
+ reservation_active = 1,
180
+ /**
181
+ * Execution completed; reservation settled and unused credits released.
182
+ *
183
+ * @generated from enum value: reservation_finalized = 2;
184
+ */
185
+ reservation_finalized = 2,
186
+ /**
187
+ * Reservation expired without finalization (safety timeout).
188
+ *
189
+ * @generated from enum value: reservation_expired = 3;
190
+ */
191
+ reservation_expired = 3,
192
+ /**
193
+ * Reservation cancelled before execution started.
194
+ *
195
+ * @generated from enum value: reservation_cancelled = 4;
196
+ */
197
+ reservation_cancelled = 4
198
+ }
199
+ /**
200
+ * Describes the enum ai.stigmer.billing.v1.ReservationStatus.
201
+ */
202
+ export declare const ReservationStatusSchema: GenEnum<ReservationStatus>;
203
+ /**
204
+ * ExecutionBillingSignal is returned after each usage debit to direct
205
+ * the agent runner's behavior.
206
+ *
207
+ * @generated from enum ai.stigmer.billing.v1.ExecutionBillingSignal
208
+ */
209
+ export declare enum ExecutionBillingSignal {
210
+ /**
211
+ * @generated from enum value: execution_billing_signal_unspecified = 0;
212
+ */
213
+ execution_billing_signal_unspecified = 0,
214
+ /**
215
+ * Balance is healthy; execution may continue.
216
+ *
217
+ * @generated from enum value: continue_execution = 1;
218
+ */
219
+ continue_execution = 1,
220
+ /**
221
+ * Balance is low; execution may continue but a warning should be shown.
222
+ *
223
+ * @generated from enum value: low_balance_warning = 2;
224
+ */
225
+ low_balance_warning = 2,
226
+ /**
227
+ * Balance is exhausted; execution must stop gracefully.
228
+ *
229
+ * @generated from enum value: stop_execution = 3;
230
+ */
231
+ stop_execution = 3
232
+ }
233
+ /**
234
+ * Describes the enum ai.stigmer.billing.v1.ExecutionBillingSignal.
235
+ */
236
+ export declare const ExecutionBillingSignalSchema: GenEnum<ExecutionBillingSignal>;
237
+ /**
238
+ * CreditPurchaseStatus tracks the lifecycle of a credit pack purchase.
239
+ *
240
+ * A purchase begins as PENDING when the Checkout Session is created,
241
+ * transitions to COMPLETED when payment succeeds (via webhook), or
242
+ * to FAILED/EXPIRED if payment fails or the session expires.
243
+ *
244
+ * @generated from enum ai.stigmer.billing.v1.CreditPurchaseStatus
245
+ */
246
+ export declare enum CreditPurchaseStatus {
247
+ /**
248
+ * @generated from enum value: credit_purchase_status_unspecified = 0;
249
+ */
250
+ credit_purchase_status_unspecified = 0,
251
+ /**
252
+ * Checkout session created; awaiting customer payment.
253
+ *
254
+ * @generated from enum value: credit_purchase_pending = 1;
255
+ */
256
+ credit_purchase_pending = 1,
257
+ /**
258
+ * Payment succeeded; credits have been provisioned.
259
+ *
260
+ * @generated from enum value: credit_purchase_completed = 2;
261
+ */
262
+ credit_purchase_completed = 2,
263
+ /**
264
+ * Payment failed (card declined, insufficient funds, etc.).
265
+ *
266
+ * @generated from enum value: credit_purchase_failed = 3;
267
+ */
268
+ credit_purchase_failed = 3,
269
+ /**
270
+ * Checkout session expired without payment completion.
271
+ *
272
+ * @generated from enum value: credit_purchase_expired = 4;
273
+ */
274
+ credit_purchase_expired = 4
275
+ }
276
+ /**
277
+ * Describes the enum ai.stigmer.billing.v1.CreditPurchaseStatus.
278
+ */
279
+ export declare const CreditPurchaseStatusSchema: GenEnum<CreditPurchaseStatus>;
280
+ /**
281
+ * AutoRechargeEventStatus tracks the lifecycle of an automatic recharge attempt.
282
+ *
283
+ * A recharge begins as PENDING when the billing system claims a monthly cap
284
+ * slot and creates a Stripe PaymentIntent. It transitions to SUCCEEDED when
285
+ * the payment_intent.succeeded webhook confirms payment and credits are
286
+ * provisioned, or to FAILED if the PaymentIntent creation fails or the
287
+ * payment_intent.payment_failed webhook fires.
288
+ *
289
+ * @generated from enum ai.stigmer.billing.v1.AutoRechargeEventStatus
290
+ */
291
+ export declare enum AutoRechargeEventStatus {
292
+ /**
293
+ * @generated from enum value: auto_recharge_event_status_unspecified = 0;
294
+ */
295
+ auto_recharge_event_status_unspecified = 0,
296
+ /**
297
+ * PaymentIntent created; awaiting Stripe payment confirmation.
298
+ *
299
+ * @generated from enum value: auto_recharge_pending = 1;
300
+ */
301
+ auto_recharge_pending = 1,
302
+ /**
303
+ * Payment succeeded; credits have been provisioned.
304
+ *
305
+ * @generated from enum value: auto_recharge_succeeded = 2;
306
+ */
307
+ auto_recharge_succeeded = 2,
308
+ /**
309
+ * Payment failed; monthly cap slot has been released.
310
+ *
311
+ * @generated from enum value: auto_recharge_failed = 3;
312
+ */
313
+ auto_recharge_failed = 3
314
+ }
315
+ /**
316
+ * Describes the enum ai.stigmer.billing.v1.AutoRechargeEventStatus.
317
+ */
318
+ export declare const AutoRechargeEventStatusSchema: GenEnum<AutoRechargeEventStatus>;
@@ -0,0 +1,329 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/billing/v1/enum.proto (package ai.stigmer.billing.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv1";
5
+ /**
6
+ * Describes the file ai/stigmer/billing/v1/enum.proto.
7
+ */
8
+ export const file_ai_stigmer_billing_v1_enum = /*@__PURE__*/ fileDesc("CiBhaS9zdGlnbWVyL2JpbGxpbmcvdjEvZW51bS5wcm90bxIVYWkuc3RpZ21lci5iaWxsaW5nLnYxKrYCCg9MZWRnZXJFbnRyeVR5cGUSIQodbGVkZ2VyX2VudHJ5X3R5cGVfdW5zcGVjaWZpZWQQABITCg9wdXJjaGFzZV9jcmVkaXQQARIWChJwcm9tb3Rpb25hbF9jcmVkaXQQAhIPCgt1c2FnZV9kZWJpdBADEhQKEHJlc2VydmF0aW9uX2hvbGQQBBIXChNyZXNlcnZhdGlvbl9yZWxlYXNlEAUSFQoRYWRqdXN0bWVudF9jcmVkaXQQBhIUChBhZGp1c3RtZW50X2RlYml0EAcSEwoPcmVmdW5kX3JldmVyc2FsEAgSEAoMZGlzcHV0ZV9ob2xkEAkSEwoPZGlzcHV0ZV9yZWxlYXNlEAoSEAoMZXhwaXJ5X2RlYml0EAsSGAoUYXV0b19yZWNoYXJnZV9jcmVkaXQQDCpkCg9DcmVkaXRHcmFudEtpbmQSIQodY3JlZGl0X2dyYW50X2tpbmRfdW5zcGVjaWZpZWQQABINCglwdXJjaGFzZWQQARIPCgtwcm9tb3Rpb25hbBACEg4KCmFkanVzdG1lbnQQAyqVAQoUQmlsbGluZ0FjY291bnRTdGF0dXMSJgoiYmlsbGluZ19hY2NvdW50X3N0YXR1c191bnNwZWNpZmllZBAAEhoKFmJpbGxpbmdfYWNjb3VudF9hY3RpdmUQARIdChliaWxsaW5nX2FjY291bnRfc3VzcGVuZGVkEAISGgoWYmlsbGluZ19hY2NvdW50X2Nsb3NlZBADKp4BChFSZXNlcnZhdGlvblN0YXR1cxIiCh5yZXNlcnZhdGlvbl9zdGF0dXNfdW5zcGVjaWZpZWQQABIWChJyZXNlcnZhdGlvbl9hY3RpdmUQARIZChVyZXNlcnZhdGlvbl9maW5hbGl6ZWQQAhIXChNyZXNlcnZhdGlvbl9leHBpcmVkEAMSGQoVcmVzZXJ2YXRpb25fY2FuY2VsbGVkEAQqhwEKFkV4ZWN1dGlvbkJpbGxpbmdTaWduYWwSKAokZXhlY3V0aW9uX2JpbGxpbmdfc2lnbmFsX3Vuc3BlY2lmaWVkEAASFgoSY29udGludWVfZXhlY3V0aW9uEAESFwoTbG93X2JhbGFuY2Vfd2FybmluZxACEhIKDnN0b3BfZXhlY3V0aW9uEAMqswEKFENyZWRpdFB1cmNoYXNlU3RhdHVzEiYKImNyZWRpdF9wdXJjaGFzZV9zdGF0dXNfdW5zcGVjaWZpZWQQABIbChdjcmVkaXRfcHVyY2hhc2VfcGVuZGluZxABEh0KGWNyZWRpdF9wdXJjaGFzZV9jb21wbGV0ZWQQAhIaChZjcmVkaXRfcHVyY2hhc2VfZmFpbGVkEAMSGwoXY3JlZGl0X3B1cmNoYXNlX2V4cGlyZWQQBCqXAQoXQXV0b1JlY2hhcmdlRXZlbnRTdGF0dXMSKgomYXV0b19yZWNoYXJnZV9ldmVudF9zdGF0dXNfdW5zcGVjaWZpZWQQABIZChVhdXRvX3JlY2hhcmdlX3BlbmRpbmcQARIbChdhdXRvX3JlY2hhcmdlX3N1Y2NlZWRlZBACEhgKFGF1dG9fcmVjaGFyZ2VfZmFpbGVkEANiBnByb3RvMw");
9
+ /**
10
+ * LedgerEntryType classifies each row in the credit ledger.
11
+ *
12
+ * Every balance-affecting operation produces exactly one immutable ledger entry.
13
+ * The type determines sign convention and audit semantics.
14
+ *
15
+ * @generated from enum ai.stigmer.billing.v1.LedgerEntryType
16
+ */
17
+ export var LedgerEntryType;
18
+ (function (LedgerEntryType) {
19
+ /**
20
+ * @generated from enum value: ledger_entry_type_unspecified = 0;
21
+ */
22
+ LedgerEntryType[LedgerEntryType["ledger_entry_type_unspecified"] = 0] = "ledger_entry_type_unspecified";
23
+ /**
24
+ * Credits added from a Stripe Checkout purchase.
25
+ *
26
+ * @generated from enum value: purchase_credit = 1;
27
+ */
28
+ LedgerEntryType[LedgerEntryType["purchase_credit"] = 1] = "purchase_credit";
29
+ /**
30
+ * Promotional credits granted (e.g., free trial, referral bonus).
31
+ *
32
+ * @generated from enum value: promotional_credit = 2;
33
+ */
34
+ LedgerEntryType[LedgerEntryType["promotional_credit"] = 2] = "promotional_credit";
35
+ /**
36
+ * Debit for a single LLM call during agent execution.
37
+ *
38
+ * @generated from enum value: usage_debit = 3;
39
+ */
40
+ LedgerEntryType[LedgerEntryType["usage_debit"] = 3] = "usage_debit";
41
+ /**
42
+ * Hold placed at execution start to reserve credits.
43
+ *
44
+ * @generated from enum value: reservation_hold = 4;
45
+ */
46
+ LedgerEntryType[LedgerEntryType["reservation_hold"] = 4] = "reservation_hold";
47
+ /**
48
+ * Release of unused reservation after execution completes.
49
+ *
50
+ * @generated from enum value: reservation_release = 5;
51
+ */
52
+ LedgerEntryType[LedgerEntryType["reservation_release"] = 5] = "reservation_release";
53
+ /**
54
+ * Manual credit added by a platform admin.
55
+ *
56
+ * @generated from enum value: adjustment_credit = 6;
57
+ */
58
+ LedgerEntryType[LedgerEntryType["adjustment_credit"] = 6] = "adjustment_credit";
59
+ /**
60
+ * Manual debit applied by a platform admin.
61
+ *
62
+ * @generated from enum value: adjustment_debit = 7;
63
+ */
64
+ LedgerEntryType[LedgerEntryType["adjustment_debit"] = 7] = "adjustment_debit";
65
+ /**
66
+ * Credits reversed due to a Stripe refund.
67
+ *
68
+ * @generated from enum value: refund_reversal = 8;
69
+ */
70
+ LedgerEntryType[LedgerEntryType["refund_reversal"] = 8] = "refund_reversal";
71
+ /**
72
+ * Credits frozen due to an active Stripe dispute.
73
+ *
74
+ * @generated from enum value: dispute_hold = 9;
75
+ */
76
+ LedgerEntryType[LedgerEntryType["dispute_hold"] = 9] = "dispute_hold";
77
+ /**
78
+ * Credits unfrozen after a dispute is resolved in the customer's favor.
79
+ *
80
+ * @generated from enum value: dispute_release = 10;
81
+ */
82
+ LedgerEntryType[LedgerEntryType["dispute_release"] = 10] = "dispute_release";
83
+ /**
84
+ * Credits removed upon grant expiration.
85
+ *
86
+ * @generated from enum value: expiry_debit = 11;
87
+ */
88
+ LedgerEntryType[LedgerEntryType["expiry_debit"] = 11] = "expiry_debit";
89
+ /**
90
+ * Credits added from an automatic recharge via saved payment method.
91
+ *
92
+ * @generated from enum value: auto_recharge_credit = 12;
93
+ */
94
+ LedgerEntryType[LedgerEntryType["auto_recharge_credit"] = 12] = "auto_recharge_credit";
95
+ })(LedgerEntryType || (LedgerEntryType = {}));
96
+ /**
97
+ * Describes the enum ai.stigmer.billing.v1.LedgerEntryType.
98
+ */
99
+ export const LedgerEntryTypeSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 0);
100
+ /**
101
+ * CreditGrantKind classifies how credits were acquired.
102
+ *
103
+ * Determines burn order (promotional consumed first) and expiry rules.
104
+ *
105
+ * @generated from enum ai.stigmer.billing.v1.CreditGrantKind
106
+ */
107
+ export var CreditGrantKind;
108
+ (function (CreditGrantKind) {
109
+ /**
110
+ * @generated from enum value: credit_grant_kind_unspecified = 0;
111
+ */
112
+ CreditGrantKind[CreditGrantKind["credit_grant_kind_unspecified"] = 0] = "credit_grant_kind_unspecified";
113
+ /**
114
+ * Credits purchased via Stripe Checkout or auto-recharge.
115
+ *
116
+ * @generated from enum value: purchased = 1;
117
+ */
118
+ CreditGrantKind[CreditGrantKind["purchased"] = 1] = "purchased";
119
+ /**
120
+ * Complimentary credits (free trial, marketing campaign, referral).
121
+ *
122
+ * @generated from enum value: promotional = 2;
123
+ */
124
+ CreditGrantKind[CreditGrantKind["promotional"] = 2] = "promotional";
125
+ /**
126
+ * Credits added by manual admin adjustment.
127
+ *
128
+ * @generated from enum value: adjustment = 3;
129
+ */
130
+ CreditGrantKind[CreditGrantKind["adjustment"] = 3] = "adjustment";
131
+ })(CreditGrantKind || (CreditGrantKind = {}));
132
+ /**
133
+ * Describes the enum ai.stigmer.billing.v1.CreditGrantKind.
134
+ */
135
+ export const CreditGrantKindSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 1);
136
+ /**
137
+ * BillingAccountStatus tracks the lifecycle state of an org's billing account.
138
+ *
139
+ * @generated from enum ai.stigmer.billing.v1.BillingAccountStatus
140
+ */
141
+ export var BillingAccountStatus;
142
+ (function (BillingAccountStatus) {
143
+ /**
144
+ * @generated from enum value: billing_account_status_unspecified = 0;
145
+ */
146
+ BillingAccountStatus[BillingAccountStatus["billing_account_status_unspecified"] = 0] = "billing_account_status_unspecified";
147
+ /**
148
+ * Account is operational; credits can be consumed and purchased.
149
+ *
150
+ * @generated from enum value: billing_account_active = 1;
151
+ */
152
+ BillingAccountStatus[BillingAccountStatus["billing_account_active"] = 1] = "billing_account_active";
153
+ /**
154
+ * Account is frozen (e.g., dispute, compliance hold). Executions blocked.
155
+ *
156
+ * @generated from enum value: billing_account_suspended = 2;
157
+ */
158
+ BillingAccountStatus[BillingAccountStatus["billing_account_suspended"] = 2] = "billing_account_suspended";
159
+ /**
160
+ * Account is permanently closed. No further operations allowed.
161
+ *
162
+ * @generated from enum value: billing_account_closed = 3;
163
+ */
164
+ BillingAccountStatus[BillingAccountStatus["billing_account_closed"] = 3] = "billing_account_closed";
165
+ })(BillingAccountStatus || (BillingAccountStatus = {}));
166
+ /**
167
+ * Describes the enum ai.stigmer.billing.v1.BillingAccountStatus.
168
+ */
169
+ export const BillingAccountStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 2);
170
+ /**
171
+ * ReservationStatus tracks the lifecycle of an execution credit reservation.
172
+ *
173
+ * @generated from enum ai.stigmer.billing.v1.ReservationStatus
174
+ */
175
+ export var ReservationStatus;
176
+ (function (ReservationStatus) {
177
+ /**
178
+ * @generated from enum value: reservation_status_unspecified = 0;
179
+ */
180
+ ReservationStatus[ReservationStatus["reservation_status_unspecified"] = 0] = "reservation_status_unspecified";
181
+ /**
182
+ * Reservation is active; execution is in progress.
183
+ *
184
+ * @generated from enum value: reservation_active = 1;
185
+ */
186
+ ReservationStatus[ReservationStatus["reservation_active"] = 1] = "reservation_active";
187
+ /**
188
+ * Execution completed; reservation settled and unused credits released.
189
+ *
190
+ * @generated from enum value: reservation_finalized = 2;
191
+ */
192
+ ReservationStatus[ReservationStatus["reservation_finalized"] = 2] = "reservation_finalized";
193
+ /**
194
+ * Reservation expired without finalization (safety timeout).
195
+ *
196
+ * @generated from enum value: reservation_expired = 3;
197
+ */
198
+ ReservationStatus[ReservationStatus["reservation_expired"] = 3] = "reservation_expired";
199
+ /**
200
+ * Reservation cancelled before execution started.
201
+ *
202
+ * @generated from enum value: reservation_cancelled = 4;
203
+ */
204
+ ReservationStatus[ReservationStatus["reservation_cancelled"] = 4] = "reservation_cancelled";
205
+ })(ReservationStatus || (ReservationStatus = {}));
206
+ /**
207
+ * Describes the enum ai.stigmer.billing.v1.ReservationStatus.
208
+ */
209
+ export const ReservationStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 3);
210
+ /**
211
+ * ExecutionBillingSignal is returned after each usage debit to direct
212
+ * the agent runner's behavior.
213
+ *
214
+ * @generated from enum ai.stigmer.billing.v1.ExecutionBillingSignal
215
+ */
216
+ export var ExecutionBillingSignal;
217
+ (function (ExecutionBillingSignal) {
218
+ /**
219
+ * @generated from enum value: execution_billing_signal_unspecified = 0;
220
+ */
221
+ ExecutionBillingSignal[ExecutionBillingSignal["execution_billing_signal_unspecified"] = 0] = "execution_billing_signal_unspecified";
222
+ /**
223
+ * Balance is healthy; execution may continue.
224
+ *
225
+ * @generated from enum value: continue_execution = 1;
226
+ */
227
+ ExecutionBillingSignal[ExecutionBillingSignal["continue_execution"] = 1] = "continue_execution";
228
+ /**
229
+ * Balance is low; execution may continue but a warning should be shown.
230
+ *
231
+ * @generated from enum value: low_balance_warning = 2;
232
+ */
233
+ ExecutionBillingSignal[ExecutionBillingSignal["low_balance_warning"] = 2] = "low_balance_warning";
234
+ /**
235
+ * Balance is exhausted; execution must stop gracefully.
236
+ *
237
+ * @generated from enum value: stop_execution = 3;
238
+ */
239
+ ExecutionBillingSignal[ExecutionBillingSignal["stop_execution"] = 3] = "stop_execution";
240
+ })(ExecutionBillingSignal || (ExecutionBillingSignal = {}));
241
+ /**
242
+ * Describes the enum ai.stigmer.billing.v1.ExecutionBillingSignal.
243
+ */
244
+ export const ExecutionBillingSignalSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 4);
245
+ /**
246
+ * CreditPurchaseStatus tracks the lifecycle of a credit pack purchase.
247
+ *
248
+ * A purchase begins as PENDING when the Checkout Session is created,
249
+ * transitions to COMPLETED when payment succeeds (via webhook), or
250
+ * to FAILED/EXPIRED if payment fails or the session expires.
251
+ *
252
+ * @generated from enum ai.stigmer.billing.v1.CreditPurchaseStatus
253
+ */
254
+ export var CreditPurchaseStatus;
255
+ (function (CreditPurchaseStatus) {
256
+ /**
257
+ * @generated from enum value: credit_purchase_status_unspecified = 0;
258
+ */
259
+ CreditPurchaseStatus[CreditPurchaseStatus["credit_purchase_status_unspecified"] = 0] = "credit_purchase_status_unspecified";
260
+ /**
261
+ * Checkout session created; awaiting customer payment.
262
+ *
263
+ * @generated from enum value: credit_purchase_pending = 1;
264
+ */
265
+ CreditPurchaseStatus[CreditPurchaseStatus["credit_purchase_pending"] = 1] = "credit_purchase_pending";
266
+ /**
267
+ * Payment succeeded; credits have been provisioned.
268
+ *
269
+ * @generated from enum value: credit_purchase_completed = 2;
270
+ */
271
+ CreditPurchaseStatus[CreditPurchaseStatus["credit_purchase_completed"] = 2] = "credit_purchase_completed";
272
+ /**
273
+ * Payment failed (card declined, insufficient funds, etc.).
274
+ *
275
+ * @generated from enum value: credit_purchase_failed = 3;
276
+ */
277
+ CreditPurchaseStatus[CreditPurchaseStatus["credit_purchase_failed"] = 3] = "credit_purchase_failed";
278
+ /**
279
+ * Checkout session expired without payment completion.
280
+ *
281
+ * @generated from enum value: credit_purchase_expired = 4;
282
+ */
283
+ CreditPurchaseStatus[CreditPurchaseStatus["credit_purchase_expired"] = 4] = "credit_purchase_expired";
284
+ })(CreditPurchaseStatus || (CreditPurchaseStatus = {}));
285
+ /**
286
+ * Describes the enum ai.stigmer.billing.v1.CreditPurchaseStatus.
287
+ */
288
+ export const CreditPurchaseStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 5);
289
+ /**
290
+ * AutoRechargeEventStatus tracks the lifecycle of an automatic recharge attempt.
291
+ *
292
+ * A recharge begins as PENDING when the billing system claims a monthly cap
293
+ * slot and creates a Stripe PaymentIntent. It transitions to SUCCEEDED when
294
+ * the payment_intent.succeeded webhook confirms payment and credits are
295
+ * provisioned, or to FAILED if the PaymentIntent creation fails or the
296
+ * payment_intent.payment_failed webhook fires.
297
+ *
298
+ * @generated from enum ai.stigmer.billing.v1.AutoRechargeEventStatus
299
+ */
300
+ export var AutoRechargeEventStatus;
301
+ (function (AutoRechargeEventStatus) {
302
+ /**
303
+ * @generated from enum value: auto_recharge_event_status_unspecified = 0;
304
+ */
305
+ AutoRechargeEventStatus[AutoRechargeEventStatus["auto_recharge_event_status_unspecified"] = 0] = "auto_recharge_event_status_unspecified";
306
+ /**
307
+ * PaymentIntent created; awaiting Stripe payment confirmation.
308
+ *
309
+ * @generated from enum value: auto_recharge_pending = 1;
310
+ */
311
+ AutoRechargeEventStatus[AutoRechargeEventStatus["auto_recharge_pending"] = 1] = "auto_recharge_pending";
312
+ /**
313
+ * Payment succeeded; credits have been provisioned.
314
+ *
315
+ * @generated from enum value: auto_recharge_succeeded = 2;
316
+ */
317
+ AutoRechargeEventStatus[AutoRechargeEventStatus["auto_recharge_succeeded"] = 2] = "auto_recharge_succeeded";
318
+ /**
319
+ * Payment failed; monthly cap slot has been released.
320
+ *
321
+ * @generated from enum value: auto_recharge_failed = 3;
322
+ */
323
+ AutoRechargeEventStatus[AutoRechargeEventStatus["auto_recharge_failed"] = 3] = "auto_recharge_failed";
324
+ })(AutoRechargeEventStatus || (AutoRechargeEventStatus = {}));
325
+ /**
326
+ * Describes the enum ai.stigmer.billing.v1.AutoRechargeEventStatus.
327
+ */
328
+ export const AutoRechargeEventStatusSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_billing_v1_enum, 6);
329
+ //# sourceMappingURL=enum_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enum_pb.js","sourceRoot":"","sources":["../../../../../ai/stigmer/billing/v1/enum_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,uGAAuG;AACvG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAY,aAAa,CACnE,QAAQ,CAAC,4pDAA4pD,CAAC,CAAC;AAEzqD;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,eAyFX;AAzFD,WAAY,eAAe;IACzB;;OAEG;IACH,uGAAiC,CAAA;IAEjC;;;;OAIG;IACH,2EAAmB,CAAA;IAEnB;;;;OAIG;IACH,iFAAsB,CAAA;IAEtB;;;;OAIG;IACH,mEAAe,CAAA;IAEf;;;;OAIG;IACH,6EAAoB,CAAA;IAEpB;;;;OAIG;IACH,mFAAuB,CAAA;IAEvB;;;;OAIG;IACH,+EAAqB,CAAA;IAErB;;;;OAIG;IACH,6EAAoB,CAAA;IAEpB;;;;OAIG;IACH,2EAAmB,CAAA;IAEnB;;;;OAIG;IACH,qEAAgB,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