weave-typescript 0.12.0 → 0.14.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/dist/google/api/annotations.pb.js +1 -1
  2. package/dist/google/api/http.pb.js +1 -1
  3. package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
  4. package/dist/google/protobuf/descriptor.pb.js +8 -1
  5. package/dist/google/protobuf/struct.pb.js +1 -1
  6. package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
  7. package/dist/google/protobuf/timestamp.pb.js +1 -1
  8. package/dist/index.d.ts +9 -16
  9. package/dist/index.js +13 -21
  10. package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
  11. package/dist/weaveapi/atc/v1/event.pb.js +263 -0
  12. package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
  13. package/dist/weaveapi/atc/v1/message.pb.js +287 -0
  14. package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
  15. package/dist/weaveapi/atc/v1/process.pb.js +658 -0
  16. package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
  17. package/dist/weaveapi/atc/v1/run.pb.js +525 -0
  18. package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
  19. package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
  20. package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
  21. package/dist/weaveapi/project/v1/project.pb.js +765 -66
  22. package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
  23. package/dist/weaveapi/project/v1/service.pb.js +1088 -401
  24. package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
  25. package/dist/weaveapi/task/v1/service.pb.js +1416 -0
  26. package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
  27. package/dist/weaveapi/task/v1/task.pb.js +782 -0
  28. package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
  29. package/dist/weavesql/atcdb/event_sql.js +191 -0
  30. package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
  31. package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
  32. package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
  33. package/dist/weavesql/weavedb/project_sql.js +304 -112
  34. package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
  35. package/dist/weavesql/weavedb/task_sql.js +328 -0
  36. package/package.json +1 -1
  37. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  38. package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
  39. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  40. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  41. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  42. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  43. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  44. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  45. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  46. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  47. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  48. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  49. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  50. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  51. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  52. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  53. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  54. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  55. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  56. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  57. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  58. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  59. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  60. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  61. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  62. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  63. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  64. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  65. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  66. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  67. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  68. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  69. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  70. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  71. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  72. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  73. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
  74. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  75. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  76. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  77. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  78. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  79. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  80. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  81. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  82. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  83. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  84. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  85. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  86. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  87. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  88. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  89. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  90. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  91. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  92. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  93. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  94. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  95. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  96. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  97. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  98. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  99. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  100. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  101. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  102. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  103. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  104. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  105. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  106. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  107. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  108. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  109. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  110. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  111. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  112. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  113. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  114. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  115. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  116. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  117. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  118. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  119. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  120. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  121. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  122. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  123. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  124. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
  125. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  126. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  127. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  128. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  129. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  130. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  131. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  132. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  133. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  134. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  135. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  136. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -1,662 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Invoice, TaxRate } from "./invoice.pb";
3
- import { Address, Discount, PaymentMethod, PricingPlan, SubscriptionStatus } from "./subscription.pb";
4
- export declare const protobufPackage = "weaveapi.payment.v1";
5
- export interface CreateCheckoutSessionRequest {
6
- /** Stripe price ID for the plan */
7
- priceId: string;
8
- /** Where to redirect on success */
9
- successUrl: string;
10
- /** Where to redirect on cancel */
11
- cancelUrl: string;
12
- /** Optional parameters */
13
- promoCode: string;
14
- allowPromotionCodes: boolean;
15
- trialDays: number;
16
- metadata: {
17
- [key: string]: string;
18
- };
19
- /** Customer info (if not logged in) */
20
- customerEmail: string;
21
- /** Tax */
22
- automaticTax: boolean;
23
- /** Types of tax IDs to collect */
24
- taxIdCollection: string[];
25
- }
26
- export interface CreateCheckoutSessionRequest_MetadataEntry {
27
- key: string;
28
- value: string;
29
- }
30
- export interface CreateCheckoutSessionResponse {
31
- sessionId: string;
32
- /** Stripe hosted checkout URL */
33
- checkoutUrl: string;
34
- expiresAt: Date | undefined;
35
- }
36
- /** Uses JWT from Authorization header */
37
- export interface GetSubscriptionStatusRequest {
38
- }
39
- export interface GetSubscriptionStatusResponse {
40
- subscription: SubscriptionStatus | undefined;
41
- }
42
- export interface UpdateSubscriptionRequest {
43
- paymentMethodId: string;
44
- promoCode: string;
45
- cancelAtPeriodEnd: boolean;
46
- metadata: {
47
- [key: string]: string;
48
- };
49
- }
50
- export interface UpdateSubscriptionRequest_MetadataEntry {
51
- key: string;
52
- value: string;
53
- }
54
- export interface UpdateSubscriptionResponse {
55
- subscription: SubscriptionStatus | undefined;
56
- message: string;
57
- }
58
- export interface CancelSubscriptionRequest {
59
- /** If true, cancel immediately; otherwise at period end */
60
- immediately: boolean;
61
- /** Optional cancellation reason */
62
- reason: string;
63
- /** Optional user feedback */
64
- feedback: string;
65
- }
66
- export interface CancelSubscriptionResponse {
67
- subscription: SubscriptionStatus | undefined;
68
- effectiveDate: Date | undefined;
69
- confirmation: string;
70
- }
71
- /** Resume a subscription that was set to cancel at period end */
72
- export interface ResumeSubscriptionRequest {
73
- }
74
- export interface ResumeSubscriptionResponse {
75
- subscription: SubscriptionStatus | undefined;
76
- message: string;
77
- }
78
- export interface GetBillingHistoryRequest {
79
- /** Default 10 */
80
- limit: number;
81
- /** Pagination cursor */
82
- startingAfter: string;
83
- /** Pagination cursor */
84
- endingBefore: string;
85
- /** Filters */
86
- status: string;
87
- createdAfter: Date | undefined;
88
- createdBefore: Date | undefined;
89
- }
90
- export interface GetBillingHistoryResponse {
91
- invoices: Invoice[];
92
- hasMore: boolean;
93
- nextCursor: string;
94
- previousCursor: string;
95
- }
96
- /** Preview next invoice */
97
- export interface GetUpcomingInvoiceRequest {
98
- }
99
- export interface GetUpcomingInvoiceResponse {
100
- invoice: Invoice | undefined;
101
- }
102
- export interface ListPaymentMethodsRequest {
103
- /** card, bank_account, or empty for all */
104
- type: string;
105
- }
106
- export interface ListPaymentMethodsResponse {
107
- paymentMethods: PaymentMethod[];
108
- defaultPaymentMethodId: string;
109
- }
110
- export interface AddPaymentMethodRequest {
111
- /** Stripe payment method ID from frontend */
112
- paymentMethodId: string;
113
- setAsDefault: boolean;
114
- }
115
- export interface AddPaymentMethodResponse {
116
- paymentMethod: PaymentMethod | undefined;
117
- isDefault: boolean;
118
- }
119
- export interface SetDefaultPaymentMethodRequest {
120
- paymentMethodId: string;
121
- }
122
- export interface SetDefaultPaymentMethodResponse {
123
- success: boolean;
124
- message: string;
125
- }
126
- export interface RemovePaymentMethodRequest {
127
- paymentMethodId: string;
128
- }
129
- export interface RemovePaymentMethodResponse {
130
- success: boolean;
131
- message: string;
132
- remainingMethods: number;
133
- }
134
- export interface CreatePortalSessionRequest {
135
- /** Where to return after portal session */
136
- returnUrl: string;
137
- }
138
- export interface CreatePortalSessionResponse {
139
- /** Stripe customer portal URL */
140
- portalUrl: string;
141
- expiresAt: Date | undefined;
142
- }
143
- export interface GetPricingPlansRequest {
144
- /** Optional: filter by currency */
145
- currency: string;
146
- /** Only show active plans */
147
- activeOnly: boolean;
148
- }
149
- export interface GetPricingPlansResponse {
150
- plans: PricingPlan[];
151
- recommendedPlanId: string;
152
- currentPlan: PricingPlan | undefined;
153
- }
154
- export interface ApplyPromoCodeRequest {
155
- promoCode: string;
156
- }
157
- export interface ApplyPromoCodeResponse {
158
- valid: boolean;
159
- discount: Discount | undefined;
160
- message: string;
161
- expiresAt: Date | undefined;
162
- }
163
- export interface HandleStripeWebhookRequest {
164
- /** Raw webhook payload */
165
- payload: Uint8Array;
166
- /** Stripe-Signature header */
167
- signature: string;
168
- }
169
- export interface HandleStripeWebhookResponse {
170
- success: boolean;
171
- eventId: string;
172
- eventType: string;
173
- message: string;
174
- }
175
- export interface GetUsageSummaryRequest {
176
- /** current, previous, custom */
177
- period: string;
178
- startDate: Date | undefined;
179
- endDate: Date | undefined;
180
- }
181
- export interface GetUsageSummaryResponse {
182
- currentPeriod: UsagePeriod | undefined;
183
- previousPeriods: UsagePeriod[];
184
- limits: UsageLimits | undefined;
185
- }
186
- export interface UsagePeriod {
187
- startDate: Date | undefined;
188
- endDate: Date | undefined;
189
- /** API usage */
190
- apiRequests: number;
191
- apiRequestsLimit: number;
192
- usagePercentage: number;
193
- /** Breakdown */
194
- requestsByEndpoint: {
195
- [key: string]: number;
196
- };
197
- requestsByApiKey: {
198
- [key: string]: number;
199
- };
200
- /** Billing */
201
- billableRequests: number;
202
- overageRequests: number;
203
- overageCostCents: number;
204
- }
205
- export interface UsagePeriod_RequestsByEndpointEntry {
206
- key: string;
207
- value: number;
208
- }
209
- export interface UsagePeriod_RequestsByApiKeyEntry {
210
- key: string;
211
- value: number;
212
- }
213
- export interface UsageLimits {
214
- tier: string;
215
- requestsPerHour: number;
216
- requestsPerDay: number;
217
- requestsPerMonth: number;
218
- unlimited: boolean;
219
- /** Cost per 1000 requests over limit */
220
- overageRateCents: number;
221
- }
222
- /** Get credit balance if using credit system */
223
- export interface GetCreditBalanceRequest {
224
- }
225
- export interface GetCreditBalanceResponse {
226
- credits: number;
227
- pendingCredits: number;
228
- expiresAt: Date | undefined;
229
- recentTransactions: CreditTransaction[];
230
- }
231
- export interface CreditTransaction {
232
- id: string;
233
- /** purchase, usage, refund, bonus */
234
- type: string;
235
- /** Positive for credits, negative for usage */
236
- amount: number;
237
- description: string;
238
- createdAt: Date | undefined;
239
- }
240
- export interface UpdateTaxInfoRequest {
241
- /** VAT number, GST, etc */
242
- taxId: string;
243
- /** eu_vat, gb_vat, us_ein, etc */
244
- taxIdType: string;
245
- billingAddress: Address | undefined;
246
- businessName: string;
247
- taxExempt: boolean;
248
- }
249
- export interface UpdateTaxInfoResponse {
250
- success: boolean;
251
- message: string;
252
- taxInfo: TaxInfo | undefined;
253
- }
254
- export interface TaxInfo {
255
- taxId: string;
256
- taxIdType: string;
257
- /** pending, verified, unverified */
258
- verificationStatus: string;
259
- billingAddress: Address | undefined;
260
- businessName: string;
261
- taxExempt: boolean;
262
- applicableRates: TaxRate[];
263
- }
264
- export interface DownloadInvoiceRequest {
265
- invoiceId: string;
266
- }
267
- export interface DownloadInvoiceResponse {
268
- pdfData: Uint8Array;
269
- filename: string;
270
- contentType: string;
271
- }
272
- export declare const CreateCheckoutSessionRequest: MessageFns<CreateCheckoutSessionRequest>;
273
- export declare const CreateCheckoutSessionRequest_MetadataEntry: MessageFns<CreateCheckoutSessionRequest_MetadataEntry>;
274
- export declare const CreateCheckoutSessionResponse: MessageFns<CreateCheckoutSessionResponse>;
275
- export declare const GetSubscriptionStatusRequest: MessageFns<GetSubscriptionStatusRequest>;
276
- export declare const GetSubscriptionStatusResponse: MessageFns<GetSubscriptionStatusResponse>;
277
- export declare const UpdateSubscriptionRequest: MessageFns<UpdateSubscriptionRequest>;
278
- export declare const UpdateSubscriptionRequest_MetadataEntry: MessageFns<UpdateSubscriptionRequest_MetadataEntry>;
279
- export declare const UpdateSubscriptionResponse: MessageFns<UpdateSubscriptionResponse>;
280
- export declare const CancelSubscriptionRequest: MessageFns<CancelSubscriptionRequest>;
281
- export declare const CancelSubscriptionResponse: MessageFns<CancelSubscriptionResponse>;
282
- export declare const ResumeSubscriptionRequest: MessageFns<ResumeSubscriptionRequest>;
283
- export declare const ResumeSubscriptionResponse: MessageFns<ResumeSubscriptionResponse>;
284
- export declare const GetBillingHistoryRequest: MessageFns<GetBillingHistoryRequest>;
285
- export declare const GetBillingHistoryResponse: MessageFns<GetBillingHistoryResponse>;
286
- export declare const GetUpcomingInvoiceRequest: MessageFns<GetUpcomingInvoiceRequest>;
287
- export declare const GetUpcomingInvoiceResponse: MessageFns<GetUpcomingInvoiceResponse>;
288
- export declare const ListPaymentMethodsRequest: MessageFns<ListPaymentMethodsRequest>;
289
- export declare const ListPaymentMethodsResponse: MessageFns<ListPaymentMethodsResponse>;
290
- export declare const AddPaymentMethodRequest: MessageFns<AddPaymentMethodRequest>;
291
- export declare const AddPaymentMethodResponse: MessageFns<AddPaymentMethodResponse>;
292
- export declare const SetDefaultPaymentMethodRequest: MessageFns<SetDefaultPaymentMethodRequest>;
293
- export declare const SetDefaultPaymentMethodResponse: MessageFns<SetDefaultPaymentMethodResponse>;
294
- export declare const RemovePaymentMethodRequest: MessageFns<RemovePaymentMethodRequest>;
295
- export declare const RemovePaymentMethodResponse: MessageFns<RemovePaymentMethodResponse>;
296
- export declare const CreatePortalSessionRequest: MessageFns<CreatePortalSessionRequest>;
297
- export declare const CreatePortalSessionResponse: MessageFns<CreatePortalSessionResponse>;
298
- export declare const GetPricingPlansRequest: MessageFns<GetPricingPlansRequest>;
299
- export declare const GetPricingPlansResponse: MessageFns<GetPricingPlansResponse>;
300
- export declare const ApplyPromoCodeRequest: MessageFns<ApplyPromoCodeRequest>;
301
- export declare const ApplyPromoCodeResponse: MessageFns<ApplyPromoCodeResponse>;
302
- export declare const HandleStripeWebhookRequest: MessageFns<HandleStripeWebhookRequest>;
303
- export declare const HandleStripeWebhookResponse: MessageFns<HandleStripeWebhookResponse>;
304
- export declare const GetUsageSummaryRequest: MessageFns<GetUsageSummaryRequest>;
305
- export declare const GetUsageSummaryResponse: MessageFns<GetUsageSummaryResponse>;
306
- export declare const UsagePeriod: MessageFns<UsagePeriod>;
307
- export declare const UsagePeriod_RequestsByEndpointEntry: MessageFns<UsagePeriod_RequestsByEndpointEntry>;
308
- export declare const UsagePeriod_RequestsByApiKeyEntry: MessageFns<UsagePeriod_RequestsByApiKeyEntry>;
309
- export declare const UsageLimits: MessageFns<UsageLimits>;
310
- export declare const GetCreditBalanceRequest: MessageFns<GetCreditBalanceRequest>;
311
- export declare const GetCreditBalanceResponse: MessageFns<GetCreditBalanceResponse>;
312
- export declare const CreditTransaction: MessageFns<CreditTransaction>;
313
- export declare const UpdateTaxInfoRequest: MessageFns<UpdateTaxInfoRequest>;
314
- export declare const UpdateTaxInfoResponse: MessageFns<UpdateTaxInfoResponse>;
315
- export declare const TaxInfo: MessageFns<TaxInfo>;
316
- export declare const DownloadInvoiceRequest: MessageFns<DownloadInvoiceRequest>;
317
- export declare const DownloadInvoiceResponse: MessageFns<DownloadInvoiceResponse>;
318
- /** PaymentService handles subscription management and payment processing */
319
- export interface Payment {
320
- /** Create a Stripe checkout session for subscription */
321
- CreateCheckoutSession(request: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;
322
- /** Get current subscription status */
323
- GetSubscriptionStatus(request: GetSubscriptionStatusRequest): Promise<GetSubscriptionStatusResponse>;
324
- /** Update subscription (change payment method, etc) */
325
- UpdateSubscription(request: UpdateSubscriptionRequest): Promise<UpdateSubscriptionResponse>;
326
- /** Cancel subscription */
327
- CancelSubscription(request: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse>;
328
- /** Resume cancelled subscription */
329
- ResumeSubscription(request: ResumeSubscriptionRequest): Promise<ResumeSubscriptionResponse>;
330
- /** Get billing history */
331
- GetBillingHistory(request: GetBillingHistoryRequest): Promise<GetBillingHistoryResponse>;
332
- /** Get upcoming invoice preview */
333
- GetUpcomingInvoice(request: GetUpcomingInvoiceRequest): Promise<GetUpcomingInvoiceResponse>;
334
- /** List payment methods */
335
- ListPaymentMethods(request: ListPaymentMethodsRequest): Promise<ListPaymentMethodsResponse>;
336
- /** Add payment method */
337
- AddPaymentMethod(request: AddPaymentMethodRequest): Promise<AddPaymentMethodResponse>;
338
- /** Set default payment method */
339
- SetDefaultPaymentMethod(request: SetDefaultPaymentMethodRequest): Promise<SetDefaultPaymentMethodResponse>;
340
- /** Remove payment method */
341
- RemovePaymentMethod(request: RemovePaymentMethodRequest): Promise<RemovePaymentMethodResponse>;
342
- /** Create Stripe customer portal session */
343
- CreatePortalSession(request: CreatePortalSessionRequest): Promise<CreatePortalSessionResponse>;
344
- /** Get available pricing plans */
345
- GetPricingPlans(request: GetPricingPlansRequest): Promise<GetPricingPlansResponse>;
346
- /** Apply promo code */
347
- ApplyPromoCode(request: ApplyPromoCodeRequest): Promise<ApplyPromoCodeResponse>;
348
- /** Handle Stripe webhook events */
349
- HandleStripeWebhook(request: HandleStripeWebhookRequest): Promise<HandleStripeWebhookResponse>;
350
- /** Get usage summary for billing period */
351
- GetUsageSummary(request: GetUsageSummaryRequest): Promise<GetUsageSummaryResponse>;
352
- /** Get credit balance (if applicable) */
353
- GetCreditBalance(request: GetCreditBalanceRequest): Promise<GetCreditBalanceResponse>;
354
- /** Update tax information */
355
- UpdateTaxInfo(request: UpdateTaxInfoRequest): Promise<UpdateTaxInfoResponse>;
356
- /** Download invoice PDF */
357
- DownloadInvoice(request: DownloadInvoiceRequest): Promise<DownloadInvoiceResponse>;
358
- }
359
- export declare const PaymentServiceName = "weaveapi.payment.v1.Payment";
360
- export declare class PaymentClientImpl implements Payment {
361
- private readonly rpc;
362
- private readonly service;
363
- constructor(rpc: Rpc, opts?: {
364
- service?: string;
365
- });
366
- CreateCheckoutSession(request: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;
367
- GetSubscriptionStatus(request: GetSubscriptionStatusRequest): Promise<GetSubscriptionStatusResponse>;
368
- UpdateSubscription(request: UpdateSubscriptionRequest): Promise<UpdateSubscriptionResponse>;
369
- CancelSubscription(request: CancelSubscriptionRequest): Promise<CancelSubscriptionResponse>;
370
- ResumeSubscription(request: ResumeSubscriptionRequest): Promise<ResumeSubscriptionResponse>;
371
- GetBillingHistory(request: GetBillingHistoryRequest): Promise<GetBillingHistoryResponse>;
372
- GetUpcomingInvoice(request: GetUpcomingInvoiceRequest): Promise<GetUpcomingInvoiceResponse>;
373
- ListPaymentMethods(request: ListPaymentMethodsRequest): Promise<ListPaymentMethodsResponse>;
374
- AddPaymentMethod(request: AddPaymentMethodRequest): Promise<AddPaymentMethodResponse>;
375
- SetDefaultPaymentMethod(request: SetDefaultPaymentMethodRequest): Promise<SetDefaultPaymentMethodResponse>;
376
- RemovePaymentMethod(request: RemovePaymentMethodRequest): Promise<RemovePaymentMethodResponse>;
377
- CreatePortalSession(request: CreatePortalSessionRequest): Promise<CreatePortalSessionResponse>;
378
- GetPricingPlans(request: GetPricingPlansRequest): Promise<GetPricingPlansResponse>;
379
- ApplyPromoCode(request: ApplyPromoCodeRequest): Promise<ApplyPromoCodeResponse>;
380
- HandleStripeWebhook(request: HandleStripeWebhookRequest): Promise<HandleStripeWebhookResponse>;
381
- GetUsageSummary(request: GetUsageSummaryRequest): Promise<GetUsageSummaryResponse>;
382
- GetCreditBalance(request: GetCreditBalanceRequest): Promise<GetCreditBalanceResponse>;
383
- UpdateTaxInfo(request: UpdateTaxInfoRequest): Promise<UpdateTaxInfoResponse>;
384
- DownloadInvoice(request: DownloadInvoiceRequest): Promise<DownloadInvoiceResponse>;
385
- }
386
- /** PaymentService handles subscription management and payment processing */
387
- export type PaymentDefinition = typeof PaymentDefinition;
388
- export declare const PaymentDefinition: {
389
- readonly name: "Payment";
390
- readonly fullName: "weaveapi.payment.v1.Payment";
391
- readonly methods: {
392
- /** Create a Stripe checkout session for subscription */
393
- readonly createCheckoutSession: {
394
- readonly name: "CreateCheckoutSession";
395
- readonly requestType: MessageFns<CreateCheckoutSessionRequest>;
396
- readonly requestStream: false;
397
- readonly responseType: MessageFns<CreateCheckoutSessionResponse>;
398
- readonly responseStream: false;
399
- readonly options: {
400
- readonly _unknownFields: {
401
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
402
- };
403
- };
404
- };
405
- /** Get current subscription status */
406
- readonly getSubscriptionStatus: {
407
- readonly name: "GetSubscriptionStatus";
408
- readonly requestType: MessageFns<GetSubscriptionStatusRequest>;
409
- readonly requestStream: false;
410
- readonly responseType: MessageFns<GetSubscriptionStatusResponse>;
411
- readonly responseStream: false;
412
- readonly options: {
413
- readonly _unknownFields: {
414
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
415
- };
416
- };
417
- };
418
- /** Update subscription (change payment method, etc) */
419
- readonly updateSubscription: {
420
- readonly name: "UpdateSubscription";
421
- readonly requestType: MessageFns<UpdateSubscriptionRequest>;
422
- readonly requestStream: false;
423
- readonly responseType: MessageFns<UpdateSubscriptionResponse>;
424
- readonly responseStream: false;
425
- readonly options: {
426
- readonly _unknownFields: {
427
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
428
- };
429
- };
430
- };
431
- /** Cancel subscription */
432
- readonly cancelSubscription: {
433
- readonly name: "CancelSubscription";
434
- readonly requestType: MessageFns<CancelSubscriptionRequest>;
435
- readonly requestStream: false;
436
- readonly responseType: MessageFns<CancelSubscriptionResponse>;
437
- readonly responseStream: false;
438
- readonly options: {
439
- readonly _unknownFields: {
440
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
441
- };
442
- };
443
- };
444
- /** Resume cancelled subscription */
445
- readonly resumeSubscription: {
446
- readonly name: "ResumeSubscription";
447
- readonly requestType: MessageFns<ResumeSubscriptionRequest>;
448
- readonly requestStream: false;
449
- readonly responseType: MessageFns<ResumeSubscriptionResponse>;
450
- readonly responseStream: false;
451
- readonly options: {
452
- readonly _unknownFields: {
453
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
454
- };
455
- };
456
- };
457
- /** Get billing history */
458
- readonly getBillingHistory: {
459
- readonly name: "GetBillingHistory";
460
- readonly requestType: MessageFns<GetBillingHistoryRequest>;
461
- readonly requestStream: false;
462
- readonly responseType: MessageFns<GetBillingHistoryResponse>;
463
- readonly responseStream: false;
464
- readonly options: {
465
- readonly _unknownFields: {
466
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
467
- };
468
- };
469
- };
470
- /** Get upcoming invoice preview */
471
- readonly getUpcomingInvoice: {
472
- readonly name: "GetUpcomingInvoice";
473
- readonly requestType: MessageFns<GetUpcomingInvoiceRequest>;
474
- readonly requestStream: false;
475
- readonly responseType: MessageFns<GetUpcomingInvoiceResponse>;
476
- readonly responseStream: false;
477
- readonly options: {
478
- readonly _unknownFields: {
479
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
480
- };
481
- };
482
- };
483
- /** List payment methods */
484
- readonly listPaymentMethods: {
485
- readonly name: "ListPaymentMethods";
486
- readonly requestType: MessageFns<ListPaymentMethodsRequest>;
487
- readonly requestStream: false;
488
- readonly responseType: MessageFns<ListPaymentMethodsResponse>;
489
- readonly responseStream: false;
490
- readonly options: {
491
- readonly _unknownFields: {
492
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
493
- };
494
- };
495
- };
496
- /** Add payment method */
497
- readonly addPaymentMethod: {
498
- readonly name: "AddPaymentMethod";
499
- readonly requestType: MessageFns<AddPaymentMethodRequest>;
500
- readonly requestStream: false;
501
- readonly responseType: MessageFns<AddPaymentMethodResponse>;
502
- readonly responseStream: false;
503
- readonly options: {
504
- readonly _unknownFields: {
505
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
506
- };
507
- };
508
- };
509
- /** Set default payment method */
510
- readonly setDefaultPaymentMethod: {
511
- readonly name: "SetDefaultPaymentMethod";
512
- readonly requestType: MessageFns<SetDefaultPaymentMethodRequest>;
513
- readonly requestStream: false;
514
- readonly responseType: MessageFns<SetDefaultPaymentMethodResponse>;
515
- readonly responseStream: false;
516
- readonly options: {
517
- readonly _unknownFields: {
518
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
519
- };
520
- };
521
- };
522
- /** Remove payment method */
523
- readonly removePaymentMethod: {
524
- readonly name: "RemovePaymentMethod";
525
- readonly requestType: MessageFns<RemovePaymentMethodRequest>;
526
- readonly requestStream: false;
527
- readonly responseType: MessageFns<RemovePaymentMethodResponse>;
528
- readonly responseStream: false;
529
- readonly options: {
530
- readonly _unknownFields: {
531
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
532
- };
533
- };
534
- };
535
- /** Create Stripe customer portal session */
536
- readonly createPortalSession: {
537
- readonly name: "CreatePortalSession";
538
- readonly requestType: MessageFns<CreatePortalSessionRequest>;
539
- readonly requestStream: false;
540
- readonly responseType: MessageFns<CreatePortalSessionResponse>;
541
- readonly responseStream: false;
542
- readonly options: {
543
- readonly _unknownFields: {
544
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
545
- };
546
- };
547
- };
548
- /** Get available pricing plans */
549
- readonly getPricingPlans: {
550
- readonly name: "GetPricingPlans";
551
- readonly requestType: MessageFns<GetPricingPlansRequest>;
552
- readonly requestStream: false;
553
- readonly responseType: MessageFns<GetPricingPlansResponse>;
554
- readonly responseStream: false;
555
- readonly options: {
556
- readonly _unknownFields: {
557
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
558
- };
559
- };
560
- };
561
- /** Apply promo code */
562
- readonly applyPromoCode: {
563
- readonly name: "ApplyPromoCode";
564
- readonly requestType: MessageFns<ApplyPromoCodeRequest>;
565
- readonly requestStream: false;
566
- readonly responseType: MessageFns<ApplyPromoCodeResponse>;
567
- readonly responseStream: false;
568
- readonly options: {
569
- readonly _unknownFields: {
570
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
571
- };
572
- };
573
- };
574
- /** Handle Stripe webhook events */
575
- readonly handleStripeWebhook: {
576
- readonly name: "HandleStripeWebhook";
577
- readonly requestType: MessageFns<HandleStripeWebhookRequest>;
578
- readonly requestStream: false;
579
- readonly responseType: MessageFns<HandleStripeWebhookResponse>;
580
- readonly responseStream: false;
581
- readonly options: {
582
- readonly _unknownFields: {
583
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
584
- };
585
- };
586
- };
587
- /** Get usage summary for billing period */
588
- readonly getUsageSummary: {
589
- readonly name: "GetUsageSummary";
590
- readonly requestType: MessageFns<GetUsageSummaryRequest>;
591
- readonly requestStream: false;
592
- readonly responseType: MessageFns<GetUsageSummaryResponse>;
593
- readonly responseStream: false;
594
- readonly options: {
595
- readonly _unknownFields: {
596
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
597
- };
598
- };
599
- };
600
- /** Get credit balance (if applicable) */
601
- readonly getCreditBalance: {
602
- readonly name: "GetCreditBalance";
603
- readonly requestType: MessageFns<GetCreditBalanceRequest>;
604
- readonly requestStream: false;
605
- readonly responseType: MessageFns<GetCreditBalanceResponse>;
606
- readonly responseStream: false;
607
- readonly options: {
608
- readonly _unknownFields: {
609
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
610
- };
611
- };
612
- };
613
- /** Update tax information */
614
- readonly updateTaxInfo: {
615
- readonly name: "UpdateTaxInfo";
616
- readonly requestType: MessageFns<UpdateTaxInfoRequest>;
617
- readonly requestStream: false;
618
- readonly responseType: MessageFns<UpdateTaxInfoResponse>;
619
- readonly responseStream: false;
620
- readonly options: {
621
- readonly _unknownFields: {
622
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
623
- };
624
- };
625
- };
626
- /** Download invoice PDF */
627
- readonly downloadInvoice: {
628
- readonly name: "DownloadInvoice";
629
- readonly requestType: MessageFns<DownloadInvoiceRequest>;
630
- readonly requestStream: false;
631
- readonly responseType: MessageFns<DownloadInvoiceResponse>;
632
- readonly responseStream: false;
633
- readonly options: {
634
- readonly _unknownFields: {
635
- readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
636
- };
637
- };
638
- };
639
- };
640
- };
641
- interface Rpc {
642
- request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
643
- }
644
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
645
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
646
- [K in keyof T]?: DeepPartial<T[K]>;
647
- } : Partial<T>;
648
- type KeysOfUnion<T> = T extends T ? keyof T : never;
649
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
650
- [K in keyof P]: Exact<P[K], I[K]>;
651
- } & {
652
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
653
- };
654
- export interface MessageFns<T> {
655
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
656
- decode(input: BinaryReader | Uint8Array, length?: number): T;
657
- fromJSON(object: any): T;
658
- toJSON(message: T): unknown;
659
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
660
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
661
- }
662
- export {};