@opsee/mcp-server 0.1.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 (136) hide show
  1. package/bin/opsee-mcp.js +21 -0
  2. package/gen/api/v1/account_pb.d.ts +393 -0
  3. package/gen/api/v1/account_pb.js +111 -0
  4. package/gen/api/v1/activity_log_pb.d.ts +297 -0
  5. package/gen/api/v1/activity_log_pb.js +89 -0
  6. package/gen/api/v1/ai_run_status_pb.d.ts +237 -0
  7. package/gen/api/v1/ai_run_status_pb.js +89 -0
  8. package/gen/api/v1/ai_unit_category_pb.d.ts +237 -0
  9. package/gen/api/v1/ai_unit_category_pb.js +89 -0
  10. package/gen/api/v1/ai_unit_stage_pb.d.ts +347 -0
  11. package/gen/api/v1/ai_unit_stage_pb.js +117 -0
  12. package/gen/api/v1/ai_unit_status_pb.d.ts +237 -0
  13. package/gen/api/v1/ai_unit_status_pb.js +89 -0
  14. package/gen/api/v1/ai_workflow_run_pb.d.ts +542 -0
  15. package/gen/api/v1/ai_workflow_run_pb.js +159 -0
  16. package/gen/api/v1/ai_workflow_unit_pb.d.ts +431 -0
  17. package/gen/api/v1/ai_workflow_unit_pb.js +103 -0
  18. package/gen/api/v1/attachment_pb.d.ts +297 -0
  19. package/gen/api/v1/attachment_pb.js +89 -0
  20. package/gen/api/v1/billing_pb.d.ts +1206 -0
  21. package/gen/api/v1/billing_pb.js +288 -0
  22. package/gen/api/v1/board_column_pb.d.ts +282 -0
  23. package/gen/api/v1/board_column_pb.js +89 -0
  24. package/gen/api/v1/board_pb.d.ts +296 -0
  25. package/gen/api/v1/board_pb.js +96 -0
  26. package/gen/api/v1/comment_pb.d.ts +277 -0
  27. package/gen/api/v1/comment_pb.js +89 -0
  28. package/gen/api/v1/company_pb.d.ts +452 -0
  29. package/gen/api/v1/company_pb.js +110 -0
  30. package/gen/api/v1/component_pb.d.ts +267 -0
  31. package/gen/api/v1/component_pb.js +89 -0
  32. package/gen/api/v1/contact_pb.d.ts +58 -0
  33. package/gen/api/v1/contact_pb.js +28 -0
  34. package/gen/api/v1/country_pb.d.ts +257 -0
  35. package/gen/api/v1/country_pb.js +89 -0
  36. package/gen/api/v1/credit_transaction_pb.d.ts +277 -0
  37. package/gen/api/v1/credit_transaction_pb.js +89 -0
  38. package/gen/api/v1/cycle_pb.d.ts +281 -0
  39. package/gen/api/v1/cycle_pb.js +87 -0
  40. package/gen/api/v1/deployment_pb.d.ts +277 -0
  41. package/gen/api/v1/deployment_pb.js +89 -0
  42. package/gen/api/v1/doc_page_pb.d.ts +505 -0
  43. package/gen/api/v1/doc_page_pb.js +138 -0
  44. package/gen/api/v1/doc_page_version_pb.d.ts +287 -0
  45. package/gen/api/v1/doc_page_version_pb.js +89 -0
  46. package/gen/api/v1/doc_space_pb.d.ts +297 -0
  47. package/gen/api/v1/doc_space_pb.js +89 -0
  48. package/gen/api/v1/document_link_pb.d.ts +174 -0
  49. package/gen/api/v1/document_link_pb.js +61 -0
  50. package/gen/api/v1/document_pb.d.ts +548 -0
  51. package/gen/api/v1/document_pb.js +152 -0
  52. package/gen/api/v1/environment_pb.d.ts +277 -0
  53. package/gen/api/v1/environment_pb.js +89 -0
  54. package/gen/api/v1/filter_pb.d.ts +66 -0
  55. package/gen/api/v1/filter_pb.js +26 -0
  56. package/gen/api/v1/label_pb.d.ts +267 -0
  57. package/gen/api/v1/label_pb.js +89 -0
  58. package/gen/api/v1/models_pb.d.ts +3137 -0
  59. package/gen/api/v1/models_pb.js +357 -0
  60. package/gen/api/v1/notification_pb.d.ts +317 -0
  61. package/gen/api/v1/notification_pb.js +89 -0
  62. package/gen/api/v1/orchestrator_pb.d.ts +1813 -0
  63. package/gen/api/v1/orchestrator_pb.js +353 -0
  64. package/gen/api/v1/pagination_pb.d.ts +92 -0
  65. package/gen/api/v1/pagination_pb.js +33 -0
  66. package/gen/api/v1/permission_pb.d.ts +222 -0
  67. package/gen/api/v1/permission_pb.js +89 -0
  68. package/gen/api/v1/preference_pb.d.ts +109 -0
  69. package/gen/api/v1/preference_pb.js +42 -0
  70. package/gen/api/v1/project_membership_pb.d.ts +321 -0
  71. package/gen/api/v1/project_membership_pb.js +103 -0
  72. package/gen/api/v1/project_pb.d.ts +473 -0
  73. package/gen/api/v1/project_pb.js +145 -0
  74. package/gen/api/v1/reporting_pb.d.ts +1481 -0
  75. package/gen/api/v1/reporting_pb.js +373 -0
  76. package/gen/api/v1/role_pb.d.ts +252 -0
  77. package/gen/api/v1/role_pb.js +101 -0
  78. package/gen/api/v1/subscription_pb.d.ts +307 -0
  79. package/gen/api/v1/subscription_pb.js +89 -0
  80. package/gen/api/v1/swagger_pb.d.ts +11 -0
  81. package/gen/api/v1/swagger_pb.js +13 -0
  82. package/gen/api/v1/task_component_pb.d.ts +242 -0
  83. package/gen/api/v1/task_component_pb.js +89 -0
  84. package/gen/api/v1/task_contributor_pb.d.ts +252 -0
  85. package/gen/api/v1/task_contributor_pb.js +89 -0
  86. package/gen/api/v1/task_doc_page_pb.d.ts +186 -0
  87. package/gen/api/v1/task_doc_page_pb.js +73 -0
  88. package/gen/api/v1/task_document_pb.d.ts +186 -0
  89. package/gen/api/v1/task_document_pb.js +73 -0
  90. package/gen/api/v1/task_label_pb.d.ts +242 -0
  91. package/gen/api/v1/task_label_pb.js +89 -0
  92. package/gen/api/v1/task_pb.d.ts +780 -0
  93. package/gen/api/v1/task_pb.js +173 -0
  94. package/gen/api/v1/task_priority_pb.d.ts +267 -0
  95. package/gen/api/v1/task_priority_pb.js +89 -0
  96. package/gen/api/v1/task_repository_pb.d.ts +242 -0
  97. package/gen/api/v1/task_repository_pb.js +89 -0
  98. package/gen/api/v1/task_type_pb.d.ts +277 -0
  99. package/gen/api/v1/task_type_pb.js +89 -0
  100. package/gen/api/v1/test_run_pb.d.ts +277 -0
  101. package/gen/api/v1/test_run_pb.js +89 -0
  102. package/gen/api/v1/user_pb.d.ts +366 -0
  103. package/gen/api/v1/user_pb.js +117 -0
  104. package/gen/api/v1/vcs_connection_pb.d.ts +964 -0
  105. package/gen/api/v1/vcs_connection_pb.js +228 -0
  106. package/gen/api/v1/vcs_integration_pb.d.ts +479 -0
  107. package/gen/api/v1/vcs_integration_pb.js +125 -0
  108. package/gen/api/v1/vcs_pb.d.ts +36 -0
  109. package/gen/api/v1/vcs_pb.js +24 -0
  110. package/gen/api/v1/view_pb.d.ts +337 -0
  111. package/gen/api/v1/view_pb.js +102 -0
  112. package/gen/google/api/annotations_pb.d.ts +34 -0
  113. package/gen/google/api/annotations_pb.js +36 -0
  114. package/gen/google/api/http_pb.d.ts +477 -0
  115. package/gen/google/api/http_pb.js +47 -0
  116. package/gen/protoc-gen-openapiv2/options/annotations_pb.d.ts +63 -0
  117. package/gen/protoc-gen-openapiv2/options/annotations_pb.js +69 -0
  118. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1497 -0
  119. package/gen/protoc-gen-openapiv2/options/openapiv2_pb.js +232 -0
  120. package/gen/validate/validate_pb.d.ts +1953 -0
  121. package/gen/validate/validate_pb.js +223 -0
  122. package/package.json +37 -0
  123. package/src/auth/credentials.ts +65 -0
  124. package/src/auth/login.ts +96 -0
  125. package/src/auth/manager.ts +49 -0
  126. package/src/client/api.ts +91 -0
  127. package/src/index.ts +13 -0
  128. package/src/server.ts +26 -0
  129. package/src/tools/cycles.ts +77 -0
  130. package/src/tools/docs.ts +148 -0
  131. package/src/tools/projects.ts +40 -0
  132. package/src/tools/repositories.ts +41 -0
  133. package/src/tools/task-metadata.ts +96 -0
  134. package/src/tools/tasks.ts +228 -0
  135. package/src/tools/user.ts +33 -0
  136. package/src/utils/format.ts +141 -0
@@ -0,0 +1,1206 @@
1
+ // @generated by protoc-gen-es v2.2.3
2
+ // @generated from file api/v1/billing.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { EmptySchema, Timestamp } from "@bufbuild/protobuf/wkt";
8
+
9
+ /**
10
+ * Describes the file api/v1/billing.proto.
11
+ */
12
+ export declare const file_api_v1_billing: GenFile;
13
+
14
+ /**
15
+ * Subscription Management
16
+ *
17
+ * @generated from message api.v1.CreateSubscriptionRequest
18
+ */
19
+ export declare type CreateSubscriptionRequest = Message<"api.v1.CreateSubscriptionRequest"> & {
20
+ /**
21
+ * @generated from field: repeated api.v1.SubscriptionItemRequest items = 1;
22
+ */
23
+ items: SubscriptionItemRequest[];
24
+
25
+ /**
26
+ * @generated from field: string billing_interval = 2;
27
+ */
28
+ billingInterval: string;
29
+
30
+ /**
31
+ * @generated from field: optional string payment_method_token = 3;
32
+ */
33
+ paymentMethodToken?: string;
34
+
35
+ /**
36
+ * @generated from field: optional string promotion_code = 4;
37
+ */
38
+ promotionCode?: string;
39
+ };
40
+
41
+ /**
42
+ * Describes the message api.v1.CreateSubscriptionRequest.
43
+ * Use `create(CreateSubscriptionRequestSchema)` to create a new message.
44
+ */
45
+ export declare const CreateSubscriptionRequestSchema: GenMessage<CreateSubscriptionRequest>;
46
+
47
+ /**
48
+ * @generated from message api.v1.SubscriptionItemRequest
49
+ */
50
+ export declare type SubscriptionItemRequest = Message<"api.v1.SubscriptionItemRequest"> & {
51
+ /**
52
+ * @generated from field: string product_type = 1;
53
+ */
54
+ productType: string;
55
+
56
+ /**
57
+ * @generated from field: int32 quantity = 2;
58
+ */
59
+ quantity: number;
60
+ };
61
+
62
+ /**
63
+ * Describes the message api.v1.SubscriptionItemRequest.
64
+ * Use `create(SubscriptionItemRequestSchema)` to create a new message.
65
+ */
66
+ export declare const SubscriptionItemRequestSchema: GenMessage<SubscriptionItemRequest>;
67
+
68
+ /**
69
+ * @generated from message api.v1.CreateSubscriptionResponse
70
+ */
71
+ export declare type CreateSubscriptionResponse = Message<"api.v1.CreateSubscriptionResponse"> & {
72
+ /**
73
+ * @generated from field: api.v1.BillingSubscription subscription = 1;
74
+ */
75
+ subscription?: BillingSubscription;
76
+ };
77
+
78
+ /**
79
+ * Describes the message api.v1.CreateSubscriptionResponse.
80
+ * Use `create(CreateSubscriptionResponseSchema)` to create a new message.
81
+ */
82
+ export declare const CreateSubscriptionResponseSchema: GenMessage<CreateSubscriptionResponse>;
83
+
84
+ /**
85
+ * @generated from message api.v1.GetBillingSubscriptionRequest
86
+ */
87
+ export declare type GetBillingSubscriptionRequest = Message<"api.v1.GetBillingSubscriptionRequest"> & {
88
+ };
89
+
90
+ /**
91
+ * Describes the message api.v1.GetBillingSubscriptionRequest.
92
+ * Use `create(GetBillingSubscriptionRequestSchema)` to create a new message.
93
+ */
94
+ export declare const GetBillingSubscriptionRequestSchema: GenMessage<GetBillingSubscriptionRequest>;
95
+
96
+ /**
97
+ * @generated from message api.v1.GetBillingSubscriptionResponse
98
+ */
99
+ export declare type GetBillingSubscriptionResponse = Message<"api.v1.GetBillingSubscriptionResponse"> & {
100
+ /**
101
+ * @generated from field: api.v1.BillingSubscription subscription = 1;
102
+ */
103
+ subscription?: BillingSubscription;
104
+ };
105
+
106
+ /**
107
+ * Describes the message api.v1.GetBillingSubscriptionResponse.
108
+ * Use `create(GetBillingSubscriptionResponseSchema)` to create a new message.
109
+ */
110
+ export declare const GetBillingSubscriptionResponseSchema: GenMessage<GetBillingSubscriptionResponse>;
111
+
112
+ /**
113
+ * Usage Information
114
+ *
115
+ * @generated from message api.v1.GetUsageRequest
116
+ */
117
+ export declare type GetUsageRequest = Message<"api.v1.GetUsageRequest"> & {
118
+ };
119
+
120
+ /**
121
+ * Describes the message api.v1.GetUsageRequest.
122
+ * Use `create(GetUsageRequestSchema)` to create a new message.
123
+ */
124
+ export declare const GetUsageRequestSchema: GenMessage<GetUsageRequest>;
125
+
126
+ /**
127
+ * @generated from message api.v1.GetUsageResponse
128
+ */
129
+ export declare type GetUsageResponse = Message<"api.v1.GetUsageResponse"> & {
130
+ /**
131
+ * @generated from field: int32 users_used = 1;
132
+ */
133
+ usersUsed: number;
134
+
135
+ /**
136
+ * @generated from field: int32 users_limit = 2;
137
+ */
138
+ usersLimit: number;
139
+
140
+ /**
141
+ * @generated from field: int32 projects_used = 3;
142
+ */
143
+ projectsUsed: number;
144
+
145
+ /**
146
+ * @generated from field: int32 projects_limit = 4;
147
+ */
148
+ projectsLimit: number;
149
+
150
+ /**
151
+ * @generated from field: int32 credits_available = 5;
152
+ */
153
+ creditsAvailable: number;
154
+
155
+ /**
156
+ * @generated from field: int32 credits_used_this_month = 6;
157
+ */
158
+ creditsUsedThisMonth: number;
159
+
160
+ /**
161
+ * @generated from field: int64 storage_used_bytes = 7;
162
+ */
163
+ storageUsedBytes: bigint;
164
+
165
+ /**
166
+ * @generated from field: int64 storage_limit_bytes = 8;
167
+ */
168
+ storageLimitBytes: bigint;
169
+ };
170
+
171
+ /**
172
+ * Describes the message api.v1.GetUsageResponse.
173
+ * Use `create(GetUsageResponseSchema)` to create a new message.
174
+ */
175
+ export declare const GetUsageResponseSchema: GenMessage<GetUsageResponse>;
176
+
177
+ /**
178
+ * Payment Methods
179
+ *
180
+ * @generated from message api.v1.CreatePaymentMethodRequest
181
+ */
182
+ export declare type CreatePaymentMethodRequest = Message<"api.v1.CreatePaymentMethodRequest"> & {
183
+ /**
184
+ * @generated from field: string stripe_token = 1;
185
+ */
186
+ stripeToken: string;
187
+
188
+ /**
189
+ * @generated from field: bool set_as_default = 2;
190
+ */
191
+ setAsDefault: boolean;
192
+ };
193
+
194
+ /**
195
+ * Describes the message api.v1.CreatePaymentMethodRequest.
196
+ * Use `create(CreatePaymentMethodRequestSchema)` to create a new message.
197
+ */
198
+ export declare const CreatePaymentMethodRequestSchema: GenMessage<CreatePaymentMethodRequest>;
199
+
200
+ /**
201
+ * @generated from message api.v1.CreatePaymentMethodResponse
202
+ */
203
+ export declare type CreatePaymentMethodResponse = Message<"api.v1.CreatePaymentMethodResponse"> & {
204
+ /**
205
+ * @generated from field: api.v1.BillingPaymentMethod payment_method = 1;
206
+ */
207
+ paymentMethod?: BillingPaymentMethod;
208
+ };
209
+
210
+ /**
211
+ * Describes the message api.v1.CreatePaymentMethodResponse.
212
+ * Use `create(CreatePaymentMethodResponseSchema)` to create a new message.
213
+ */
214
+ export declare const CreatePaymentMethodResponseSchema: GenMessage<CreatePaymentMethodResponse>;
215
+
216
+ /**
217
+ * @generated from message api.v1.GetPaymentMethodsRequest
218
+ */
219
+ export declare type GetPaymentMethodsRequest = Message<"api.v1.GetPaymentMethodsRequest"> & {
220
+ };
221
+
222
+ /**
223
+ * Describes the message api.v1.GetPaymentMethodsRequest.
224
+ * Use `create(GetPaymentMethodsRequestSchema)` to create a new message.
225
+ */
226
+ export declare const GetPaymentMethodsRequestSchema: GenMessage<GetPaymentMethodsRequest>;
227
+
228
+ /**
229
+ * @generated from message api.v1.GetPaymentMethodsResponse
230
+ */
231
+ export declare type GetPaymentMethodsResponse = Message<"api.v1.GetPaymentMethodsResponse"> & {
232
+ /**
233
+ * @generated from field: repeated api.v1.BillingPaymentMethod payment_methods = 1;
234
+ */
235
+ paymentMethods: BillingPaymentMethod[];
236
+ };
237
+
238
+ /**
239
+ * Describes the message api.v1.GetPaymentMethodsResponse.
240
+ * Use `create(GetPaymentMethodsResponseSchema)` to create a new message.
241
+ */
242
+ export declare const GetPaymentMethodsResponseSchema: GenMessage<GetPaymentMethodsResponse>;
243
+
244
+ /**
245
+ * @generated from message api.v1.SetDefaultPaymentMethodRequest
246
+ */
247
+ export declare type SetDefaultPaymentMethodRequest = Message<"api.v1.SetDefaultPaymentMethodRequest"> & {
248
+ /**
249
+ * @generated from field: uint32 payment_method_id = 1;
250
+ */
251
+ paymentMethodId: number;
252
+ };
253
+
254
+ /**
255
+ * Describes the message api.v1.SetDefaultPaymentMethodRequest.
256
+ * Use `create(SetDefaultPaymentMethodRequestSchema)` to create a new message.
257
+ */
258
+ export declare const SetDefaultPaymentMethodRequestSchema: GenMessage<SetDefaultPaymentMethodRequest>;
259
+
260
+ /**
261
+ * @generated from message api.v1.DeletePaymentMethodRequest
262
+ */
263
+ export declare type DeletePaymentMethodRequest = Message<"api.v1.DeletePaymentMethodRequest"> & {
264
+ /**
265
+ * @generated from field: uint32 payment_method_id = 1;
266
+ */
267
+ paymentMethodId: number;
268
+ };
269
+
270
+ /**
271
+ * Describes the message api.v1.DeletePaymentMethodRequest.
272
+ * Use `create(DeletePaymentMethodRequestSchema)` to create a new message.
273
+ */
274
+ export declare const DeletePaymentMethodRequestSchema: GenMessage<DeletePaymentMethodRequest>;
275
+
276
+ /**
277
+ * Product Configuration (Admin only)
278
+ *
279
+ * @generated from message api.v1.GetProductConfigsRequest
280
+ */
281
+ export declare type GetProductConfigsRequest = Message<"api.v1.GetProductConfigsRequest"> & {
282
+ };
283
+
284
+ /**
285
+ * Describes the message api.v1.GetProductConfigsRequest.
286
+ * Use `create(GetProductConfigsRequestSchema)` to create a new message.
287
+ */
288
+ export declare const GetProductConfigsRequestSchema: GenMessage<GetProductConfigsRequest>;
289
+
290
+ /**
291
+ * @generated from message api.v1.GetProductConfigsResponse
292
+ */
293
+ export declare type GetProductConfigsResponse = Message<"api.v1.GetProductConfigsResponse"> & {
294
+ /**
295
+ * @generated from field: repeated api.v1.BillingProductConfig product_configs = 1;
296
+ */
297
+ productConfigs: BillingProductConfig[];
298
+ };
299
+
300
+ /**
301
+ * Describes the message api.v1.GetProductConfigsResponse.
302
+ * Use `create(GetProductConfigsResponseSchema)` to create a new message.
303
+ */
304
+ export declare const GetProductConfigsResponseSchema: GenMessage<GetProductConfigsResponse>;
305
+
306
+ /**
307
+ * @generated from message api.v1.UpsertProductConfigRequest
308
+ */
309
+ export declare type UpsertProductConfigRequest = Message<"api.v1.UpsertProductConfigRequest"> & {
310
+ /**
311
+ * @generated from field: api.v1.BillingProductConfig product_config = 1;
312
+ */
313
+ productConfig?: BillingProductConfig;
314
+ };
315
+
316
+ /**
317
+ * Describes the message api.v1.UpsertProductConfigRequest.
318
+ * Use `create(UpsertProductConfigRequestSchema)` to create a new message.
319
+ */
320
+ export declare const UpsertProductConfigRequestSchema: GenMessage<UpsertProductConfigRequest>;
321
+
322
+ /**
323
+ * @generated from message api.v1.UpsertProductConfigResponse
324
+ */
325
+ export declare type UpsertProductConfigResponse = Message<"api.v1.UpsertProductConfigResponse"> & {
326
+ /**
327
+ * @generated from field: api.v1.BillingProductConfig product_config = 1;
328
+ */
329
+ productConfig?: BillingProductConfig;
330
+ };
331
+
332
+ /**
333
+ * Describes the message api.v1.UpsertProductConfigResponse.
334
+ * Use `create(UpsertProductConfigResponseSchema)` to create a new message.
335
+ */
336
+ export declare const UpsertProductConfigResponseSchema: GenMessage<UpsertProductConfigResponse>;
337
+
338
+ /**
339
+ * Credit Transactions
340
+ *
341
+ * @generated from message api.v1.GetBillingCreditTransactionsRequest
342
+ */
343
+ export declare type GetBillingCreditTransactionsRequest = Message<"api.v1.GetBillingCreditTransactionsRequest"> & {
344
+ /**
345
+ * @generated from field: optional int32 limit = 1;
346
+ */
347
+ limit?: number;
348
+
349
+ /**
350
+ * @generated from field: optional int32 offset = 2;
351
+ */
352
+ offset?: number;
353
+ };
354
+
355
+ /**
356
+ * Describes the message api.v1.GetBillingCreditTransactionsRequest.
357
+ * Use `create(GetBillingCreditTransactionsRequestSchema)` to create a new message.
358
+ */
359
+ export declare const GetBillingCreditTransactionsRequestSchema: GenMessage<GetBillingCreditTransactionsRequest>;
360
+
361
+ /**
362
+ * @generated from message api.v1.GetBillingCreditTransactionsResponse
363
+ */
364
+ export declare type GetBillingCreditTransactionsResponse = Message<"api.v1.GetBillingCreditTransactionsResponse"> & {
365
+ /**
366
+ * @generated from field: repeated api.v1.BillingCreditTransaction transactions = 1;
367
+ */
368
+ transactions: BillingCreditTransaction[];
369
+
370
+ /**
371
+ * @generated from field: int32 total_count = 2;
372
+ */
373
+ totalCount: number;
374
+ };
375
+
376
+ /**
377
+ * Describes the message api.v1.GetBillingCreditTransactionsResponse.
378
+ * Use `create(GetBillingCreditTransactionsResponseSchema)` to create a new message.
379
+ */
380
+ export declare const GetBillingCreditTransactionsResponseSchema: GenMessage<GetBillingCreditTransactionsResponse>;
381
+
382
+ /**
383
+ * @generated from message api.v1.PurchaseCreditsRequest
384
+ */
385
+ export declare type PurchaseCreditsRequest = Message<"api.v1.PurchaseCreditsRequest"> & {
386
+ /**
387
+ * @generated from field: int32 amount = 1;
388
+ */
389
+ amount: number;
390
+
391
+ /**
392
+ * @generated from field: optional string payment_method_id = 2;
393
+ */
394
+ paymentMethodId?: string;
395
+ };
396
+
397
+ /**
398
+ * Describes the message api.v1.PurchaseCreditsRequest.
399
+ * Use `create(PurchaseCreditsRequestSchema)` to create a new message.
400
+ */
401
+ export declare const PurchaseCreditsRequestSchema: GenMessage<PurchaseCreditsRequest>;
402
+
403
+ /**
404
+ * @generated from message api.v1.PurchaseCreditsResponse
405
+ */
406
+ export declare type PurchaseCreditsResponse = Message<"api.v1.PurchaseCreditsResponse"> & {
407
+ /**
408
+ * @generated from field: api.v1.BillingCreditTransaction transaction = 1;
409
+ */
410
+ transaction?: BillingCreditTransaction;
411
+ };
412
+
413
+ /**
414
+ * Describes the message api.v1.PurchaseCreditsResponse.
415
+ * Use `create(PurchaseCreditsResponseSchema)` to create a new message.
416
+ */
417
+ export declare const PurchaseCreditsResponseSchema: GenMessage<PurchaseCreditsResponse>;
418
+
419
+ /**
420
+ * Webhook handling
421
+ *
422
+ * @generated from message api.v1.ProcessWebhookRequest
423
+ */
424
+ export declare type ProcessWebhookRequest = Message<"api.v1.ProcessWebhookRequest"> & {
425
+ /**
426
+ * @generated from field: string payload = 1;
427
+ */
428
+ payload: string;
429
+
430
+ /**
431
+ * @generated from field: string signature = 2;
432
+ */
433
+ signature: string;
434
+ };
435
+
436
+ /**
437
+ * Describes the message api.v1.ProcessWebhookRequest.
438
+ * Use `create(ProcessWebhookRequestSchema)` to create a new message.
439
+ */
440
+ export declare const ProcessWebhookRequestSchema: GenMessage<ProcessWebhookRequest>;
441
+
442
+ /**
443
+ * @generated from message api.v1.ProcessWebhookResponse
444
+ */
445
+ export declare type ProcessWebhookResponse = Message<"api.v1.ProcessWebhookResponse"> & {
446
+ /**
447
+ * @generated from field: bool success = 1;
448
+ */
449
+ success: boolean;
450
+
451
+ /**
452
+ * @generated from field: string message = 2;
453
+ */
454
+ message: string;
455
+ };
456
+
457
+ /**
458
+ * Describes the message api.v1.ProcessWebhookResponse.
459
+ * Use `create(ProcessWebhookResponseSchema)` to create a new message.
460
+ */
461
+ export declare const ProcessWebhookResponseSchema: GenMessage<ProcessWebhookResponse>;
462
+
463
+ /**
464
+ * @generated from message api.v1.BillingSubscription
465
+ */
466
+ export declare type BillingSubscription = Message<"api.v1.BillingSubscription"> & {
467
+ /**
468
+ * @generated from field: uint32 id = 1;
469
+ */
470
+ id: number;
471
+
472
+ /**
473
+ * @generated from field: uint32 company_id = 2;
474
+ */
475
+ companyId: number;
476
+
477
+ /**
478
+ * @generated from field: string stripe_customer_id = 3;
479
+ */
480
+ stripeCustomerId: string;
481
+
482
+ /**
483
+ * @generated from field: optional string stripe_subscription_id = 4;
484
+ */
485
+ stripeSubscriptionId?: string;
486
+
487
+ /**
488
+ * @generated from field: string status = 5;
489
+ */
490
+ status: string;
491
+
492
+ /**
493
+ * @generated from field: optional google.protobuf.Timestamp current_period_start = 6;
494
+ */
495
+ currentPeriodStart?: Timestamp;
496
+
497
+ /**
498
+ * @generated from field: optional google.protobuf.Timestamp current_period_end = 7;
499
+ */
500
+ currentPeriodEnd?: Timestamp;
501
+
502
+ /**
503
+ * @generated from field: optional uint32 payment_method_id = 8;
504
+ */
505
+ paymentMethodId?: number;
506
+
507
+ /**
508
+ * @generated from field: repeated api.v1.BillingSubscriptionItem items = 9;
509
+ */
510
+ items: BillingSubscriptionItem[];
511
+
512
+ /**
513
+ * @generated from field: api.v1.BillingPaymentMethod payment_method = 10;
514
+ */
515
+ paymentMethod?: BillingPaymentMethod;
516
+
517
+ /**
518
+ * @generated from field: google.protobuf.Timestamp created_at = 11;
519
+ */
520
+ createdAt?: Timestamp;
521
+
522
+ /**
523
+ * @generated from field: google.protobuf.Timestamp updated_at = 12;
524
+ */
525
+ updatedAt?: Timestamp;
526
+ };
527
+
528
+ /**
529
+ * Describes the message api.v1.BillingSubscription.
530
+ * Use `create(BillingSubscriptionSchema)` to create a new message.
531
+ */
532
+ export declare const BillingSubscriptionSchema: GenMessage<BillingSubscription>;
533
+
534
+ /**
535
+ * @generated from message api.v1.BillingSubscriptionItem
536
+ */
537
+ export declare type BillingSubscriptionItem = Message<"api.v1.BillingSubscriptionItem"> & {
538
+ /**
539
+ * @generated from field: uint32 id = 1;
540
+ */
541
+ id: number;
542
+
543
+ /**
544
+ * @generated from field: uint32 subscription_id = 2;
545
+ */
546
+ subscriptionId: number;
547
+
548
+ /**
549
+ * @generated from field: string product_type = 3;
550
+ */
551
+ productType: string;
552
+
553
+ /**
554
+ * @generated from field: int32 quantity = 4;
555
+ */
556
+ quantity: number;
557
+
558
+ /**
559
+ * @generated from field: int64 unit_price = 5;
560
+ */
561
+ unitPrice: bigint;
562
+
563
+ /**
564
+ * @generated from field: string billing_interval = 6;
565
+ */
566
+ billingInterval: string;
567
+
568
+ /**
569
+ * @generated from field: bool is_active = 7;
570
+ */
571
+ isActive: boolean;
572
+
573
+ /**
574
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
575
+ */
576
+ createdAt?: Timestamp;
577
+
578
+ /**
579
+ * @generated from field: google.protobuf.Timestamp updated_at = 9;
580
+ */
581
+ updatedAt?: Timestamp;
582
+ };
583
+
584
+ /**
585
+ * Describes the message api.v1.BillingSubscriptionItem.
586
+ * Use `create(BillingSubscriptionItemSchema)` to create a new message.
587
+ */
588
+ export declare const BillingSubscriptionItemSchema: GenMessage<BillingSubscriptionItem>;
589
+
590
+ /**
591
+ * @generated from message api.v1.BillingPaymentMethod
592
+ */
593
+ export declare type BillingPaymentMethod = Message<"api.v1.BillingPaymentMethod"> & {
594
+ /**
595
+ * @generated from field: uint32 id = 1;
596
+ */
597
+ id: number;
598
+
599
+ /**
600
+ * @generated from field: uint32 company_id = 2;
601
+ */
602
+ companyId: number;
603
+
604
+ /**
605
+ * @generated from field: string stripe_method_id = 3;
606
+ */
607
+ stripeMethodId: string;
608
+
609
+ /**
610
+ * @generated from field: string type = 4;
611
+ */
612
+ type: string;
613
+
614
+ /**
615
+ * @generated from field: string last4 = 5;
616
+ */
617
+ last4: string;
618
+
619
+ /**
620
+ * @generated from field: string brand = 6;
621
+ */
622
+ brand: string;
623
+
624
+ /**
625
+ * @generated from field: int32 expiry_month = 7;
626
+ */
627
+ expiryMonth: number;
628
+
629
+ /**
630
+ * @generated from field: int32 expiry_year = 8;
631
+ */
632
+ expiryYear: number;
633
+
634
+ /**
635
+ * @generated from field: bool is_default = 9;
636
+ */
637
+ isDefault: boolean;
638
+
639
+ /**
640
+ * @generated from field: google.protobuf.Timestamp created_at = 10;
641
+ */
642
+ createdAt?: Timestamp;
643
+
644
+ /**
645
+ * @generated from field: google.protobuf.Timestamp updated_at = 11;
646
+ */
647
+ updatedAt?: Timestamp;
648
+ };
649
+
650
+ /**
651
+ * Describes the message api.v1.BillingPaymentMethod.
652
+ * Use `create(BillingPaymentMethodSchema)` to create a new message.
653
+ */
654
+ export declare const BillingPaymentMethodSchema: GenMessage<BillingPaymentMethod>;
655
+
656
+ /**
657
+ * @generated from message api.v1.BillingProductConfig
658
+ */
659
+ export declare type BillingProductConfig = Message<"api.v1.BillingProductConfig"> & {
660
+ /**
661
+ * @generated from field: uint32 id = 1;
662
+ */
663
+ id: number;
664
+
665
+ /**
666
+ * @generated from field: string product_type = 2;
667
+ */
668
+ productType: string;
669
+
670
+ /**
671
+ * @generated from field: int64 monthly_price = 3;
672
+ */
673
+ monthlyPrice: bigint;
674
+
675
+ /**
676
+ * @generated from field: int64 yearly_price = 4;
677
+ */
678
+ yearlyPrice: bigint;
679
+
680
+ /**
681
+ * @generated from field: int32 free_quantity = 5;
682
+ */
683
+ freeQuantity: number;
684
+
685
+ /**
686
+ * @generated from field: bool is_recurring = 6;
687
+ */
688
+ isRecurring: boolean;
689
+
690
+ /**
691
+ * @generated from field: string stripe_monthly_id = 7;
692
+ */
693
+ stripeMonthlyId: string;
694
+
695
+ /**
696
+ * @generated from field: string stripe_yearly_id = 8;
697
+ */
698
+ stripeYearlyId: string;
699
+
700
+ /**
701
+ * @generated from field: google.protobuf.Timestamp created_at = 9;
702
+ */
703
+ createdAt?: Timestamp;
704
+
705
+ /**
706
+ * @generated from field: google.protobuf.Timestamp updated_at = 10;
707
+ */
708
+ updatedAt?: Timestamp;
709
+ };
710
+
711
+ /**
712
+ * Describes the message api.v1.BillingProductConfig.
713
+ * Use `create(BillingProductConfigSchema)` to create a new message.
714
+ */
715
+ export declare const BillingProductConfigSchema: GenMessage<BillingProductConfig>;
716
+
717
+ /**
718
+ * @generated from message api.v1.BillingCompanyCredits
719
+ */
720
+ export declare type BillingCompanyCredits = Message<"api.v1.BillingCompanyCredits"> & {
721
+ /**
722
+ * @generated from field: uint32 id = 1;
723
+ */
724
+ id: number;
725
+
726
+ /**
727
+ * @generated from field: uint32 company_id = 2;
728
+ */
729
+ companyId: number;
730
+
731
+ /**
732
+ * @generated from field: int32 total_credits = 3;
733
+ */
734
+ totalCredits: number;
735
+
736
+ /**
737
+ * @generated from field: int32 used_credits = 4;
738
+ */
739
+ usedCredits: number;
740
+
741
+ /**
742
+ * @generated from field: int32 available_credits = 5;
743
+ */
744
+ availableCredits: number;
745
+
746
+ /**
747
+ * @generated from field: optional google.protobuf.Timestamp last_allocated_at = 6;
748
+ */
749
+ lastAllocatedAt?: Timestamp;
750
+
751
+ /**
752
+ * @generated from field: google.protobuf.Timestamp created_at = 7;
753
+ */
754
+ createdAt?: Timestamp;
755
+
756
+ /**
757
+ * @generated from field: google.protobuf.Timestamp updated_at = 8;
758
+ */
759
+ updatedAt?: Timestamp;
760
+ };
761
+
762
+ /**
763
+ * Describes the message api.v1.BillingCompanyCredits.
764
+ * Use `create(BillingCompanyCreditsSchema)` to create a new message.
765
+ */
766
+ export declare const BillingCompanyCreditsSchema: GenMessage<BillingCompanyCredits>;
767
+
768
+ /**
769
+ * @generated from message api.v1.BillingCreditTransaction
770
+ */
771
+ export declare type BillingCreditTransaction = Message<"api.v1.BillingCreditTransaction"> & {
772
+ /**
773
+ * @generated from field: uint32 id = 1;
774
+ */
775
+ id: number;
776
+
777
+ /**
778
+ * @generated from field: uint32 company_id = 2;
779
+ */
780
+ companyId: number;
781
+
782
+ /**
783
+ * @generated from field: int32 amount = 3;
784
+ */
785
+ amount: number;
786
+
787
+ /**
788
+ * @generated from field: string reason = 4;
789
+ */
790
+ reason: string;
791
+
792
+ /**
793
+ * @generated from field: optional string entity_type = 5;
794
+ */
795
+ entityType?: string;
796
+
797
+ /**
798
+ * @generated from field: optional string entity_id = 6;
799
+ */
800
+ entityId?: string;
801
+
802
+ /**
803
+ * @generated from field: optional string metadata_json = 7;
804
+ */
805
+ metadataJson?: string;
806
+
807
+ /**
808
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
809
+ */
810
+ createdAt?: Timestamp;
811
+ };
812
+
813
+ /**
814
+ * Describes the message api.v1.BillingCreditTransaction.
815
+ * Use `create(BillingCreditTransactionSchema)` to create a new message.
816
+ */
817
+ export declare const BillingCreditTransactionSchema: GenMessage<BillingCreditTransaction>;
818
+
819
+ /**
820
+ * @generated from message api.v1.CancelSubscriptionRequest
821
+ */
822
+ export declare type CancelSubscriptionRequest = Message<"api.v1.CancelSubscriptionRequest"> & {
823
+ /**
824
+ * @generated from field: uint32 subscription_id = 1;
825
+ */
826
+ subscriptionId: number;
827
+ };
828
+
829
+ /**
830
+ * Describes the message api.v1.CancelSubscriptionRequest.
831
+ * Use `create(CancelSubscriptionRequestSchema)` to create a new message.
832
+ */
833
+ export declare const CancelSubscriptionRequestSchema: GenMessage<CancelSubscriptionRequest>;
834
+
835
+ /**
836
+ * @generated from message api.v1.CancelSubscriptionResponse
837
+ */
838
+ export declare type CancelSubscriptionResponse = Message<"api.v1.CancelSubscriptionResponse"> & {
839
+ /**
840
+ * @generated from field: bool success = 1;
841
+ */
842
+ success: boolean;
843
+
844
+ /**
845
+ * @generated from field: string message = 2;
846
+ */
847
+ message: string;
848
+ };
849
+
850
+ /**
851
+ * Describes the message api.v1.CancelSubscriptionResponse.
852
+ * Use `create(CancelSubscriptionResponseSchema)` to create a new message.
853
+ */
854
+ export declare const CancelSubscriptionResponseSchema: GenMessage<CancelSubscriptionResponse>;
855
+
856
+ /**
857
+ * Promotion Code Validation
858
+ *
859
+ * @generated from message api.v1.ValidatePromotionCodeRequest
860
+ */
861
+ export declare type ValidatePromotionCodeRequest = Message<"api.v1.ValidatePromotionCodeRequest"> & {
862
+ /**
863
+ * @generated from field: string code = 1;
864
+ */
865
+ code: string;
866
+ };
867
+
868
+ /**
869
+ * Describes the message api.v1.ValidatePromotionCodeRequest.
870
+ * Use `create(ValidatePromotionCodeRequestSchema)` to create a new message.
871
+ */
872
+ export declare const ValidatePromotionCodeRequestSchema: GenMessage<ValidatePromotionCodeRequest>;
873
+
874
+ /**
875
+ * @generated from message api.v1.ValidatePromotionCodeResponse
876
+ */
877
+ export declare type ValidatePromotionCodeResponse = Message<"api.v1.ValidatePromotionCodeResponse"> & {
878
+ /**
879
+ * @generated from field: string promotion_code_id = 1;
880
+ */
881
+ promotionCodeId: string;
882
+
883
+ /**
884
+ * @generated from field: string code = 2;
885
+ */
886
+ code: string;
887
+
888
+ /**
889
+ * @generated from field: bool valid = 3;
890
+ */
891
+ valid: boolean;
892
+
893
+ /**
894
+ * @generated from field: api.v1.PromotionCodeDiscount discount = 4;
895
+ */
896
+ discount?: PromotionCodeDiscount;
897
+ };
898
+
899
+ /**
900
+ * Describes the message api.v1.ValidatePromotionCodeResponse.
901
+ * Use `create(ValidatePromotionCodeResponseSchema)` to create a new message.
902
+ */
903
+ export declare const ValidatePromotionCodeResponseSchema: GenMessage<ValidatePromotionCodeResponse>;
904
+
905
+ /**
906
+ * @generated from message api.v1.PromotionCodeDiscount
907
+ */
908
+ export declare type PromotionCodeDiscount = Message<"api.v1.PromotionCodeDiscount"> & {
909
+ /**
910
+ * @generated from field: int64 amount_off = 1;
911
+ */
912
+ amountOff: bigint;
913
+
914
+ /**
915
+ * @generated from field: double percent_off = 2;
916
+ */
917
+ percentOff: number;
918
+
919
+ /**
920
+ * @generated from field: string currency = 3;
921
+ */
922
+ currency: string;
923
+
924
+ /**
925
+ * @generated from field: string duration = 4;
926
+ */
927
+ duration: string;
928
+
929
+ /**
930
+ * @generated from field: int32 duration_in_months = 5;
931
+ */
932
+ durationInMonths: number;
933
+
934
+ /**
935
+ * @generated from field: string name = 6;
936
+ */
937
+ name: string;
938
+ };
939
+
940
+ /**
941
+ * Describes the message api.v1.PromotionCodeDiscount.
942
+ * Use `create(PromotionCodeDiscountSchema)` to create a new message.
943
+ */
944
+ export declare const PromotionCodeDiscountSchema: GenMessage<PromotionCodeDiscount>;
945
+
946
+ /**
947
+ * @generated from message api.v1.GetInvoicesRequest
948
+ */
949
+ export declare type GetInvoicesRequest = Message<"api.v1.GetInvoicesRequest"> & {
950
+ /**
951
+ * @generated from field: optional int32 limit = 1;
952
+ */
953
+ limit?: number;
954
+
955
+ /**
956
+ * @generated from field: optional string starting_after = 2;
957
+ */
958
+ startingAfter?: string;
959
+ };
960
+
961
+ /**
962
+ * Describes the message api.v1.GetInvoicesRequest.
963
+ * Use `create(GetInvoicesRequestSchema)` to create a new message.
964
+ */
965
+ export declare const GetInvoicesRequestSchema: GenMessage<GetInvoicesRequest>;
966
+
967
+ /**
968
+ * @generated from message api.v1.GetInvoicesResponse
969
+ */
970
+ export declare type GetInvoicesResponse = Message<"api.v1.GetInvoicesResponse"> & {
971
+ /**
972
+ * @generated from field: repeated api.v1.BillingInvoice invoices = 1;
973
+ */
974
+ invoices: BillingInvoice[];
975
+
976
+ /**
977
+ * @generated from field: bool has_more = 2;
978
+ */
979
+ hasMore: boolean;
980
+ };
981
+
982
+ /**
983
+ * Describes the message api.v1.GetInvoicesResponse.
984
+ * Use `create(GetInvoicesResponseSchema)` to create a new message.
985
+ */
986
+ export declare const GetInvoicesResponseSchema: GenMessage<GetInvoicesResponse>;
987
+
988
+ /**
989
+ * @generated from message api.v1.BillingInvoice
990
+ */
991
+ export declare type BillingInvoice = Message<"api.v1.BillingInvoice"> & {
992
+ /**
993
+ * @generated from field: string id = 1;
994
+ */
995
+ id: string;
996
+
997
+ /**
998
+ * @generated from field: int64 amount_due = 2;
999
+ */
1000
+ amountDue: bigint;
1001
+
1002
+ /**
1003
+ * @generated from field: int64 amount_paid = 3;
1004
+ */
1005
+ amountPaid: bigint;
1006
+
1007
+ /**
1008
+ * @generated from field: int64 amount_remaining = 4;
1009
+ */
1010
+ amountRemaining: bigint;
1011
+
1012
+ /**
1013
+ * @generated from field: google.protobuf.Timestamp created = 5;
1014
+ */
1015
+ created?: Timestamp;
1016
+
1017
+ /**
1018
+ * @generated from field: string currency = 6;
1019
+ */
1020
+ currency: string;
1021
+
1022
+ /**
1023
+ * @generated from field: string customer_email = 7;
1024
+ */
1025
+ customerEmail: string;
1026
+
1027
+ /**
1028
+ * @generated from field: string hosted_invoice_url = 8;
1029
+ */
1030
+ hostedInvoiceUrl: string;
1031
+
1032
+ /**
1033
+ * @generated from field: string invoice_pdf = 9;
1034
+ */
1035
+ invoicePdf: string;
1036
+
1037
+ /**
1038
+ * @generated from field: string number = 10;
1039
+ */
1040
+ number: string;
1041
+
1042
+ /**
1043
+ * @generated from field: string status = 11;
1044
+ */
1045
+ status: string;
1046
+
1047
+ /**
1048
+ * @generated from field: int64 total = 12;
1049
+ */
1050
+ total: bigint;
1051
+ };
1052
+
1053
+ /**
1054
+ * Describes the message api.v1.BillingInvoice.
1055
+ * Use `create(BillingInvoiceSchema)` to create a new message.
1056
+ */
1057
+ export declare const BillingInvoiceSchema: GenMessage<BillingInvoice>;
1058
+
1059
+ /**
1060
+ * @generated from service api.v1.BillingService
1061
+ */
1062
+ export declare const BillingService: GenService<{
1063
+ /**
1064
+ * Subscription Management
1065
+ *
1066
+ * @generated from rpc api.v1.BillingService.CreateSubscription
1067
+ */
1068
+ createSubscription: {
1069
+ methodKind: "unary";
1070
+ input: typeof CreateSubscriptionRequestSchema;
1071
+ output: typeof CreateSubscriptionResponseSchema;
1072
+ },
1073
+ /**
1074
+ * @generated from rpc api.v1.BillingService.GetSubscription
1075
+ */
1076
+ getSubscription: {
1077
+ methodKind: "unary";
1078
+ input: typeof GetBillingSubscriptionRequestSchema;
1079
+ output: typeof GetBillingSubscriptionResponseSchema;
1080
+ },
1081
+ /**
1082
+ * @generated from rpc api.v1.BillingService.CancelSubscription
1083
+ */
1084
+ cancelSubscription: {
1085
+ methodKind: "unary";
1086
+ input: typeof CancelSubscriptionRequestSchema;
1087
+ output: typeof CancelSubscriptionResponseSchema;
1088
+ },
1089
+ /**
1090
+ * Usage Information
1091
+ *
1092
+ * @generated from rpc api.v1.BillingService.GetUsage
1093
+ */
1094
+ getUsage: {
1095
+ methodKind: "unary";
1096
+ input: typeof GetUsageRequestSchema;
1097
+ output: typeof GetUsageResponseSchema;
1098
+ },
1099
+ /**
1100
+ * Payment Methods
1101
+ *
1102
+ * @generated from rpc api.v1.BillingService.CreatePaymentMethod
1103
+ */
1104
+ createPaymentMethod: {
1105
+ methodKind: "unary";
1106
+ input: typeof CreatePaymentMethodRequestSchema;
1107
+ output: typeof CreatePaymentMethodResponseSchema;
1108
+ },
1109
+ /**
1110
+ * @generated from rpc api.v1.BillingService.GetPaymentMethods
1111
+ */
1112
+ getPaymentMethods: {
1113
+ methodKind: "unary";
1114
+ input: typeof GetPaymentMethodsRequestSchema;
1115
+ output: typeof GetPaymentMethodsResponseSchema;
1116
+ },
1117
+ /**
1118
+ * @generated from rpc api.v1.BillingService.SetDefaultPaymentMethod
1119
+ */
1120
+ setDefaultPaymentMethod: {
1121
+ methodKind: "unary";
1122
+ input: typeof SetDefaultPaymentMethodRequestSchema;
1123
+ output: typeof EmptySchema;
1124
+ },
1125
+ /**
1126
+ * @generated from rpc api.v1.BillingService.DeletePaymentMethod
1127
+ */
1128
+ deletePaymentMethod: {
1129
+ methodKind: "unary";
1130
+ input: typeof DeletePaymentMethodRequestSchema;
1131
+ output: typeof EmptySchema;
1132
+ },
1133
+ /**
1134
+ * Credit Management
1135
+ *
1136
+ * @generated from rpc api.v1.BillingService.GetCreditTransactions
1137
+ */
1138
+ getCreditTransactions: {
1139
+ methodKind: "unary";
1140
+ input: typeof GetBillingCreditTransactionsRequestSchema;
1141
+ output: typeof GetBillingCreditTransactionsResponseSchema;
1142
+ },
1143
+ /**
1144
+ * @generated from rpc api.v1.BillingService.PurchaseCredits
1145
+ */
1146
+ purchaseCredits: {
1147
+ methodKind: "unary";
1148
+ input: typeof PurchaseCreditsRequestSchema;
1149
+ output: typeof PurchaseCreditsResponseSchema;
1150
+ },
1151
+ /**
1152
+ * Invoice Management
1153
+ *
1154
+ * @generated from rpc api.v1.BillingService.GetInvoices
1155
+ */
1156
+ getInvoices: {
1157
+ methodKind: "unary";
1158
+ input: typeof GetInvoicesRequestSchema;
1159
+ output: typeof GetInvoicesResponseSchema;
1160
+ },
1161
+ /**
1162
+ * Promotion Code Validation
1163
+ *
1164
+ * @generated from rpc api.v1.BillingService.ValidatePromotionCode
1165
+ */
1166
+ validatePromotionCode: {
1167
+ methodKind: "unary";
1168
+ input: typeof ValidatePromotionCodeRequestSchema;
1169
+ output: typeof ValidatePromotionCodeResponseSchema;
1170
+ },
1171
+ /**
1172
+ * Webhooks (Internal/Admin)
1173
+ *
1174
+ * @generated from rpc api.v1.BillingService.ProcessWebhook
1175
+ */
1176
+ processWebhook: {
1177
+ methodKind: "unary";
1178
+ input: typeof ProcessWebhookRequestSchema;
1179
+ output: typeof ProcessWebhookResponseSchema;
1180
+ },
1181
+ }>;
1182
+
1183
+ /**
1184
+ * Admin-only Product Configuration Service
1185
+ *
1186
+ * @generated from service api.v1.BillingAdminService
1187
+ */
1188
+ export declare const BillingAdminService: GenService<{
1189
+ /**
1190
+ * @generated from rpc api.v1.BillingAdminService.GetProductConfigs
1191
+ */
1192
+ getProductConfigs: {
1193
+ methodKind: "unary";
1194
+ input: typeof GetProductConfigsRequestSchema;
1195
+ output: typeof GetProductConfigsResponseSchema;
1196
+ },
1197
+ /**
1198
+ * @generated from rpc api.v1.BillingAdminService.UpsertProductConfig
1199
+ */
1200
+ upsertProductConfig: {
1201
+ methodKind: "unary";
1202
+ input: typeof UpsertProductConfigRequestSchema;
1203
+ output: typeof UpsertProductConfigResponseSchema;
1204
+ },
1205
+ }>;
1206
+