@liquidmetal-ai/drizzle 0.9.2 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/appify/build.d.ts +8 -1
- package/dist/appify/build.d.ts.map +1 -1
- package/dist/appify/build.js +69 -1
- package/dist/appify/build.test.js +156 -0
- package/dist/appify/validate.d.ts.map +1 -1
- package/dist/appify/validate.js +37 -0
- package/dist/appify/validate.test.js +38 -1
- package/dist/liquidmetal/v1alpha1/bucket_name_pb.d.ts +11 -11
- package/dist/liquidmetal/v1alpha1/bucket_name_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/bucket_name_pb.js +1 -1
- package/dist/liquidmetal/v1alpha1/object_pb.d.ts +8 -0
- package/dist/liquidmetal/v1alpha1/object_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/object_pb.js +1 -1
- package/dist/liquidmetal/v1alpha1/payments_pb.d.ts +461 -0
- package/dist/liquidmetal/v1alpha1/payments_pb.d.ts.map +1 -0
- package/dist/liquidmetal/v1alpha1/payments_pb.js +152 -0
- package/dist/liquidmetal/v1alpha1/rainbow_auth_pb.d.ts +315 -0
- package/dist/liquidmetal/v1alpha1/rainbow_auth_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/rainbow_auth_pb.js +56 -1
- package/dist/liquidmetal/v1alpha1/riverjack_pb.d.ts +6 -0
- package/dist/liquidmetal/v1alpha1/riverjack_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/riverjack_pb.js +1 -1
- package/dist/liquidmetal/v1alpha1/search_agent_pb.d.ts +374 -0
- package/dist/liquidmetal/v1alpha1/search_agent_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/search_agent_pb.js +46 -1
- package/dist/liquidmetal/v1alpha1/stripe_seller_integration_pb.d.ts +468 -0
- package/dist/liquidmetal/v1alpha1/stripe_seller_integration_pb.d.ts.map +1 -0
- package/dist/liquidmetal/v1alpha1/stripe_seller_integration_pb.js +151 -0
- package/package.json +3 -3
- package/src/appify/build.test.ts +184 -0
- package/src/appify/build.ts +73 -1
- package/src/appify/validate.test.ts +40 -1
- package/src/appify/validate.ts +40 -0
- package/src/liquidmetal/v1alpha1/bucket_name_pb.ts +12 -12
- package/src/liquidmetal/v1alpha1/object_pb.ts +10 -1
- package/src/liquidmetal/v1alpha1/payments_pb.ts +546 -0
- package/src/liquidmetal/v1alpha1/rainbow_auth_pb.ts +362 -1
- package/src/liquidmetal/v1alpha1/riverjack_pb.ts +8 -1
- package/src/liquidmetal/v1alpha1/search_agent_pb.ts +432 -1
- package/src/liquidmetal/v1alpha1/stripe_seller_integration_pb.ts +545 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.10.0 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file liquidmetal/v1alpha1/payments.proto (package liquidmetal.v1alpha1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
9
|
+
import type { StripeMode } from "./stripe_seller_integration_pb.js";
|
|
10
|
+
import { file_liquidmetal_v1alpha1_stripe_seller_integration } from "./stripe_seller_integration_pb.js";
|
|
11
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Describes the file liquidmetal/v1alpha1/payments.proto.
|
|
15
|
+
*/
|
|
16
|
+
export const file_liquidmetal_v1alpha1_payments: GenFile = /*@__PURE__*/
|
|
17
|
+
fileDesc("CiNs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EKFkdldFN1YnNjcmlwdGlvblByb2R1Y3QSMy5saXF1aWRtZXRhbC52MWFscGhhMS5HZXRTdWJzY3JpcHRpb25Qcm9kdWN0UmVxdWVzdBo0LmxpcXVpZG1ldGFsLnYxYWxwaGExLkdldFN1YnNjcmlwdGlvblByb2R1Y3RSZXNwb25zZRKMAQoZVXBkYXRlU3Vic2NyaXB0aW9uUHJvZHVjdBI2LmxpcXVpZG1ldGFsLnYxYWxwaGExLlVwZGF0ZVN1YnNjcmlwdGlvblByb2R1Y3RSZXF1ZXN0GjcubGlxdWlkbWV0YWwudjFhbHBoYTEuVXBkYXRlU3Vic2NyaXB0aW9uUHJvZHVjdFJlc3BvbnNlQugBChhjb20ubGlxdWlkbWV0YWwudjFhbHBoYTFCDVBheW1lbnRzUHJvdG9QAVpMZ2l0aHViLmNvbS9saXF1aWRtZXRhbC1haS9wcm90b2dlbjIvbGlxdWlkbWV0YWwvdjFhbHBoYTE7bGlxdWlkbWV0YWx2MWFscGhhMaICA0xYWKoCFExpcXVpZG1ldGFsLlYxYWxwaGExygIUTGlxdWlkbWV0YWxcVjFhbHBoYTHiAiBMaXF1aWRtZXRhbFxWMWFscGhhMVxHUEJNZXRhZGF0YeoCFUxpcXVpZG1ldGFsOjpWMWFscGhhMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_liquidmetal_v1alpha1_stripe_seller_integration]);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* SubscriptionProduct represents a Stripe subscription product for this application
|
|
21
|
+
*
|
|
22
|
+
* @generated from message liquidmetal.v1alpha1.SubscriptionProduct
|
|
23
|
+
*/
|
|
24
|
+
export type SubscriptionProduct = Message<"liquidmetal.v1alpha1.SubscriptionProduct"> & {
|
|
25
|
+
/**
|
|
26
|
+
* Stripe product ID
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: string product_id = 1;
|
|
29
|
+
*/
|
|
30
|
+
productId: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Stripe price ID
|
|
34
|
+
*
|
|
35
|
+
* @generated from field: string price_id = 2;
|
|
36
|
+
*/
|
|
37
|
+
priceId: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Price amount in cents
|
|
41
|
+
*
|
|
42
|
+
* @generated from field: int64 unit_amount = 3;
|
|
43
|
+
*/
|
|
44
|
+
unitAmount: bigint;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Currency code (e.g., "usd")
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: string currency = 4;
|
|
50
|
+
*/
|
|
51
|
+
currency: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Recurring interval
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: liquidmetal.v1alpha1.RecurringInterval interval = 5;
|
|
57
|
+
*/
|
|
58
|
+
interval: RecurringInterval;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Number of intervals between billings (e.g., 3 for quarterly with interval=MONTH)
|
|
62
|
+
*
|
|
63
|
+
* @generated from field: int32 interval_count = 6;
|
|
64
|
+
*/
|
|
65
|
+
intervalCount: number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* When the product was created
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
71
|
+
*/
|
|
72
|
+
createdAt?: Timestamp;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Describes the message liquidmetal.v1alpha1.SubscriptionProduct.
|
|
77
|
+
* Use `create(SubscriptionProductSchema)` to create a new message.
|
|
78
|
+
*/
|
|
79
|
+
export const SubscriptionProductSchema: GenMessage<SubscriptionProduct> = /*@__PURE__*/
|
|
80
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 0);
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* CreateSubscriptionProductRequest creates a subscription product
|
|
84
|
+
*
|
|
85
|
+
* @generated from message liquidmetal.v1alpha1.CreateSubscriptionProductRequest
|
|
86
|
+
*/
|
|
87
|
+
export type CreateSubscriptionProductRequest = Message<"liquidmetal.v1alpha1.CreateSubscriptionProductRequest"> & {
|
|
88
|
+
/**
|
|
89
|
+
* User making the request
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: string user_id = 1;
|
|
92
|
+
*/
|
|
93
|
+
userId: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Organization ID
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: string organization_id = 2;
|
|
99
|
+
*/
|
|
100
|
+
organizationId: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Application name (gets product name from manifest)
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: string application_name = 3;
|
|
106
|
+
*/
|
|
107
|
+
applicationName: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Price in cents
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: int64 unit_amount = 4;
|
|
113
|
+
*/
|
|
114
|
+
unitAmount: bigint;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Currency code (default: "usd")
|
|
118
|
+
*
|
|
119
|
+
* @generated from field: string currency = 5;
|
|
120
|
+
*/
|
|
121
|
+
currency: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Recurring interval (default: MONTH)
|
|
125
|
+
*
|
|
126
|
+
* @generated from field: liquidmetal.v1alpha1.RecurringInterval interval = 6;
|
|
127
|
+
*/
|
|
128
|
+
interval: RecurringInterval;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Interval count (default: 1)
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: int32 interval_count = 7;
|
|
134
|
+
*/
|
|
135
|
+
intervalCount: number;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Describes the message liquidmetal.v1alpha1.CreateSubscriptionProductRequest.
|
|
140
|
+
* Use `create(CreateSubscriptionProductRequestSchema)` to create a new message.
|
|
141
|
+
*/
|
|
142
|
+
export const CreateSubscriptionProductRequestSchema: GenMessage<CreateSubscriptionProductRequest> = /*@__PURE__*/
|
|
143
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 1);
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* CreateSubscriptionProductResponse returns the created product
|
|
147
|
+
*
|
|
148
|
+
* @generated from message liquidmetal.v1alpha1.CreateSubscriptionProductResponse
|
|
149
|
+
*/
|
|
150
|
+
export type CreateSubscriptionProductResponse = Message<"liquidmetal.v1alpha1.CreateSubscriptionProductResponse"> & {
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: liquidmetal.v1alpha1.SubscriptionProduct product = 1;
|
|
153
|
+
*/
|
|
154
|
+
product?: SubscriptionProduct;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The Stripe mode this product was created in (test or live)
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: liquidmetal.v1alpha1.StripeMode mode = 2;
|
|
160
|
+
*/
|
|
161
|
+
mode: StripeMode;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Describes the message liquidmetal.v1alpha1.CreateSubscriptionProductResponse.
|
|
166
|
+
* Use `create(CreateSubscriptionProductResponseSchema)` to create a new message.
|
|
167
|
+
*/
|
|
168
|
+
export const CreateSubscriptionProductResponseSchema: GenMessage<CreateSubscriptionProductResponse> = /*@__PURE__*/
|
|
169
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 2);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* GetSubscriptionProductRequest retrieves subscription product
|
|
173
|
+
*
|
|
174
|
+
* @generated from message liquidmetal.v1alpha1.GetSubscriptionProductRequest
|
|
175
|
+
*/
|
|
176
|
+
export type GetSubscriptionProductRequest = Message<"liquidmetal.v1alpha1.GetSubscriptionProductRequest"> & {
|
|
177
|
+
/**
|
|
178
|
+
* User making the request
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: string user_id = 1;
|
|
181
|
+
*/
|
|
182
|
+
userId: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Organization ID
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: string organization_id = 2;
|
|
188
|
+
*/
|
|
189
|
+
organizationId: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Application name
|
|
193
|
+
*
|
|
194
|
+
* @generated from field: string application_name = 3;
|
|
195
|
+
*/
|
|
196
|
+
applicationName: string;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message liquidmetal.v1alpha1.GetSubscriptionProductRequest.
|
|
201
|
+
* Use `create(GetSubscriptionProductRequestSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export const GetSubscriptionProductRequestSchema: GenMessage<GetSubscriptionProductRequest> = /*@__PURE__*/
|
|
204
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 3);
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* GetSubscriptionProductResponse returns the product
|
|
208
|
+
*
|
|
209
|
+
* @generated from message liquidmetal.v1alpha1.GetSubscriptionProductResponse
|
|
210
|
+
*/
|
|
211
|
+
export type GetSubscriptionProductResponse = Message<"liquidmetal.v1alpha1.GetSubscriptionProductResponse"> & {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: liquidmetal.v1alpha1.SubscriptionProduct product = 1;
|
|
214
|
+
*/
|
|
215
|
+
product?: SubscriptionProduct;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The Stripe mode for this product (test or live)
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: liquidmetal.v1alpha1.StripeMode mode = 2;
|
|
221
|
+
*/
|
|
222
|
+
mode: StripeMode;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Describes the message liquidmetal.v1alpha1.GetSubscriptionProductResponse.
|
|
227
|
+
* Use `create(GetSubscriptionProductResponseSchema)` to create a new message.
|
|
228
|
+
*/
|
|
229
|
+
export const GetSubscriptionProductResponseSchema: GenMessage<GetSubscriptionProductResponse> = /*@__PURE__*/
|
|
230
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 4);
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* UpdateSubscriptionProductRequest updates a subscription product
|
|
234
|
+
*
|
|
235
|
+
* @generated from message liquidmetal.v1alpha1.UpdateSubscriptionProductRequest
|
|
236
|
+
*/
|
|
237
|
+
export type UpdateSubscriptionProductRequest = Message<"liquidmetal.v1alpha1.UpdateSubscriptionProductRequest"> & {
|
|
238
|
+
/**
|
|
239
|
+
* User making the request
|
|
240
|
+
*
|
|
241
|
+
* @generated from field: string user_id = 1;
|
|
242
|
+
*/
|
|
243
|
+
userId: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Organization ID
|
|
247
|
+
*
|
|
248
|
+
* @generated from field: string organization_id = 2;
|
|
249
|
+
*/
|
|
250
|
+
organizationId: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Application name
|
|
254
|
+
*
|
|
255
|
+
* @generated from field: string application_name = 3;
|
|
256
|
+
*/
|
|
257
|
+
applicationName: string;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* New price in cents
|
|
261
|
+
*
|
|
262
|
+
* @generated from field: int64 unit_amount = 4;
|
|
263
|
+
*/
|
|
264
|
+
unitAmount: bigint;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Currency code (default: "usd")
|
|
268
|
+
*
|
|
269
|
+
* @generated from field: string currency = 5;
|
|
270
|
+
*/
|
|
271
|
+
currency: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Recurring interval (default: MONTH)
|
|
275
|
+
*
|
|
276
|
+
* @generated from field: liquidmetal.v1alpha1.RecurringInterval interval = 6;
|
|
277
|
+
*/
|
|
278
|
+
interval: RecurringInterval;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Interval count (default: 1)
|
|
282
|
+
*
|
|
283
|
+
* @generated from field: int32 interval_count = 7;
|
|
284
|
+
*/
|
|
285
|
+
intervalCount: number;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Describes the message liquidmetal.v1alpha1.UpdateSubscriptionProductRequest.
|
|
290
|
+
* Use `create(UpdateSubscriptionProductRequestSchema)` to create a new message.
|
|
291
|
+
*/
|
|
292
|
+
export const UpdateSubscriptionProductRequestSchema: GenMessage<UpdateSubscriptionProductRequest> = /*@__PURE__*/
|
|
293
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 5);
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* UpdateSubscriptionProductResponse returns the updated product
|
|
297
|
+
*
|
|
298
|
+
* @generated from message liquidmetal.v1alpha1.UpdateSubscriptionProductResponse
|
|
299
|
+
*/
|
|
300
|
+
export type UpdateSubscriptionProductResponse = Message<"liquidmetal.v1alpha1.UpdateSubscriptionProductResponse"> & {
|
|
301
|
+
/**
|
|
302
|
+
* @generated from field: liquidmetal.v1alpha1.SubscriptionProduct product = 1;
|
|
303
|
+
*/
|
|
304
|
+
product?: SubscriptionProduct;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* The Stripe mode this product was updated in (test or live)
|
|
308
|
+
*
|
|
309
|
+
* @generated from field: liquidmetal.v1alpha1.StripeMode mode = 2;
|
|
310
|
+
*/
|
|
311
|
+
mode: StripeMode;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Describes the message liquidmetal.v1alpha1.UpdateSubscriptionProductResponse.
|
|
316
|
+
* Use `create(UpdateSubscriptionProductResponseSchema)` to create a new message.
|
|
317
|
+
*/
|
|
318
|
+
export const UpdateSubscriptionProductResponseSchema: GenMessage<UpdateSubscriptionProductResponse> = /*@__PURE__*/
|
|
319
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 6);
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* HandleWebhookRequest contains the raw Stripe webhook event data.
|
|
323
|
+
*
|
|
324
|
+
* @generated from message liquidmetal.v1alpha1.HandleWebhookRequest
|
|
325
|
+
*/
|
|
326
|
+
export type HandleWebhookRequest = Message<"liquidmetal.v1alpha1.HandleWebhookRequest"> & {
|
|
327
|
+
/**
|
|
328
|
+
* Raw webhook payload as received from Stripe
|
|
329
|
+
*
|
|
330
|
+
* @generated from field: bytes payload = 1;
|
|
331
|
+
*/
|
|
332
|
+
payload: Uint8Array;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Stripe webhook signature header (stripe-signature)
|
|
336
|
+
*
|
|
337
|
+
* @generated from field: string signature = 2;
|
|
338
|
+
*/
|
|
339
|
+
signature: string;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Describes the message liquidmetal.v1alpha1.HandleWebhookRequest.
|
|
344
|
+
* Use `create(HandleWebhookRequestSchema)` to create a new message.
|
|
345
|
+
*/
|
|
346
|
+
export const HandleWebhookRequestSchema: GenMessage<HandleWebhookRequest> = /*@__PURE__*/
|
|
347
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 7);
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* HandleWebhookResponse confirms webhook processing.
|
|
351
|
+
*
|
|
352
|
+
* @generated from message liquidmetal.v1alpha1.HandleWebhookResponse
|
|
353
|
+
*/
|
|
354
|
+
export type HandleWebhookResponse = Message<"liquidmetal.v1alpha1.HandleWebhookResponse"> & {
|
|
355
|
+
/**
|
|
356
|
+
* Whether the webhook was processed successfully
|
|
357
|
+
*
|
|
358
|
+
* @generated from field: bool success = 1;
|
|
359
|
+
*/
|
|
360
|
+
success: boolean;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Stripe event ID that was processed
|
|
364
|
+
*
|
|
365
|
+
* @generated from field: string event_id = 2;
|
|
366
|
+
*/
|
|
367
|
+
eventId: string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Event type that was processed
|
|
371
|
+
*
|
|
372
|
+
* @generated from field: liquidmetal.v1alpha1.StripeEventType event_type = 3;
|
|
373
|
+
*/
|
|
374
|
+
eventType: StripeEventType;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Optional error message if processing failed
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: optional string error_message = 4;
|
|
380
|
+
*/
|
|
381
|
+
errorMessage?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* When the event was processed
|
|
385
|
+
*
|
|
386
|
+
* @generated from field: google.protobuf.Timestamp processed_at = 5;
|
|
387
|
+
*/
|
|
388
|
+
processedAt?: Timestamp;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Describes the message liquidmetal.v1alpha1.HandleWebhookResponse.
|
|
393
|
+
* Use `create(HandleWebhookResponseSchema)` to create a new message.
|
|
394
|
+
*/
|
|
395
|
+
export const HandleWebhookResponseSchema: GenMessage<HandleWebhookResponse> = /*@__PURE__*/
|
|
396
|
+
messageDesc(file_liquidmetal_v1alpha1_payments, 8);
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* StripeEventType enumerates the Stripe webhook event types we handle.
|
|
400
|
+
*
|
|
401
|
+
* @generated from enum liquidmetal.v1alpha1.StripeEventType
|
|
402
|
+
*/
|
|
403
|
+
export enum StripeEventType {
|
|
404
|
+
/**
|
|
405
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_UNSPECIFIED = 0;
|
|
406
|
+
*/
|
|
407
|
+
UNSPECIFIED = 0,
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Checkout and payment events
|
|
411
|
+
*
|
|
412
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_CHECKOUT_SESSION_COMPLETED = 1;
|
|
413
|
+
*/
|
|
414
|
+
CHECKOUT_SESSION_COMPLETED = 1,
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_PAYMENT_INTENT_SUCCEEDED = 2;
|
|
418
|
+
*/
|
|
419
|
+
PAYMENT_INTENT_SUCCEEDED = 2,
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_PAYMENT_INTENT_PAYMENT_FAILED = 3;
|
|
423
|
+
*/
|
|
424
|
+
PAYMENT_INTENT_PAYMENT_FAILED = 3,
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Subscription lifecycle events
|
|
428
|
+
*
|
|
429
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_CUSTOMER_SUBSCRIPTION_CREATED = 4;
|
|
430
|
+
*/
|
|
431
|
+
CUSTOMER_SUBSCRIPTION_CREATED = 4,
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_CUSTOMER_SUBSCRIPTION_UPDATED = 5;
|
|
435
|
+
*/
|
|
436
|
+
CUSTOMER_SUBSCRIPTION_UPDATED = 5,
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_CUSTOMER_SUBSCRIPTION_DELETED = 6;
|
|
440
|
+
*/
|
|
441
|
+
CUSTOMER_SUBSCRIPTION_DELETED = 6,
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Connected account events
|
|
445
|
+
*
|
|
446
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_ACCOUNT_UPDATED = 7;
|
|
447
|
+
*/
|
|
448
|
+
ACCOUNT_UPDATED = 7,
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_ACCOUNT_APPLICATION_AUTHORIZED = 8;
|
|
452
|
+
*/
|
|
453
|
+
ACCOUNT_APPLICATION_AUTHORIZED = 8,
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* @generated from enum value: STRIPE_EVENT_TYPE_ACCOUNT_APPLICATION_DEAUTHORIZED = 9;
|
|
457
|
+
*/
|
|
458
|
+
ACCOUNT_APPLICATION_DEAUTHORIZED = 9,
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Describes the enum liquidmetal.v1alpha1.StripeEventType.
|
|
463
|
+
*/
|
|
464
|
+
export const StripeEventTypeSchema: GenEnum<StripeEventType> = /*@__PURE__*/
|
|
465
|
+
enumDesc(file_liquidmetal_v1alpha1_payments, 0);
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* RecurringInterval specifies the billing frequency for subscription products
|
|
469
|
+
*
|
|
470
|
+
* @generated from enum liquidmetal.v1alpha1.RecurringInterval
|
|
471
|
+
*/
|
|
472
|
+
export enum RecurringInterval {
|
|
473
|
+
/**
|
|
474
|
+
* @generated from enum value: RECURRING_INTERVAL_UNSPECIFIED = 0;
|
|
475
|
+
*/
|
|
476
|
+
UNSPECIFIED = 0,
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @generated from enum value: RECURRING_INTERVAL_DAY = 1;
|
|
480
|
+
*/
|
|
481
|
+
DAY = 1,
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @generated from enum value: RECURRING_INTERVAL_WEEK = 2;
|
|
485
|
+
*/
|
|
486
|
+
WEEK = 2,
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @generated from enum value: RECURRING_INTERVAL_MONTH = 3;
|
|
490
|
+
*/
|
|
491
|
+
MONTH = 3,
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* @generated from enum value: RECURRING_INTERVAL_YEAR = 4;
|
|
495
|
+
*/
|
|
496
|
+
YEAR = 4,
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Describes the enum liquidmetal.v1alpha1.RecurringInterval.
|
|
501
|
+
*/
|
|
502
|
+
export const RecurringIntervalSchema: GenEnum<RecurringInterval> = /*@__PURE__*/
|
|
503
|
+
enumDesc(file_liquidmetal_v1alpha1_payments, 1);
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* PaymentsService provides Stripe webhook handling and subscription product management.
|
|
507
|
+
* Webhook events should be sent to the HTTP endpoint POST /webhook
|
|
508
|
+
*
|
|
509
|
+
* @generated from service liquidmetal.v1alpha1.PaymentsService
|
|
510
|
+
*/
|
|
511
|
+
export const PaymentsService: GenService<{
|
|
512
|
+
/**
|
|
513
|
+
* CreateSubscriptionProduct creates a recurring subscription product for this application.
|
|
514
|
+
* The product is created on the seller's Stripe Connect account.
|
|
515
|
+
*
|
|
516
|
+
* @generated from rpc liquidmetal.v1alpha1.PaymentsService.CreateSubscriptionProduct
|
|
517
|
+
*/
|
|
518
|
+
createSubscriptionProduct: {
|
|
519
|
+
methodKind: "unary";
|
|
520
|
+
input: typeof CreateSubscriptionProductRequestSchema;
|
|
521
|
+
output: typeof CreateSubscriptionProductResponseSchema;
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* GetSubscriptionProduct retrieves the subscription product for this application.
|
|
525
|
+
*
|
|
526
|
+
* @generated from rpc liquidmetal.v1alpha1.PaymentsService.GetSubscriptionProduct
|
|
527
|
+
*/
|
|
528
|
+
getSubscriptionProduct: {
|
|
529
|
+
methodKind: "unary";
|
|
530
|
+
input: typeof GetSubscriptionProductRequestSchema;
|
|
531
|
+
output: typeof GetSubscriptionProductResponseSchema;
|
|
532
|
+
},
|
|
533
|
+
/**
|
|
534
|
+
* UpdateSubscriptionProduct updates the subscription product pricing/interval.
|
|
535
|
+
* Creates a new price on the existing product and archives the old price.
|
|
536
|
+
*
|
|
537
|
+
* @generated from rpc liquidmetal.v1alpha1.PaymentsService.UpdateSubscriptionProduct
|
|
538
|
+
*/
|
|
539
|
+
updateSubscriptionProduct: {
|
|
540
|
+
methodKind: "unary";
|
|
541
|
+
input: typeof UpdateSubscriptionProductRequestSchema;
|
|
542
|
+
output: typeof UpdateSubscriptionProductResponseSchema;
|
|
543
|
+
},
|
|
544
|
+
}> = /*@__PURE__*/
|
|
545
|
+
serviceDesc(file_liquidmetal_v1alpha1_payments, 0);
|
|
546
|
+
|