@t-0/provider-sdk 1.0.22 → 1.0.24

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 (38) hide show
  1. package/README.md +2 -2
  2. package/lib/client/client.d.ts +3 -33
  3. package/lib/client/client.js +4 -5
  4. package/lib/common/gen/tzero/v1/common/common_pb.d.ts +64 -0
  5. package/lib/common/gen/tzero/v1/common/common_pb.js +53 -0
  6. package/lib/common/gen/tzero/v1/common/payment_method_pb.d.ts +122 -0
  7. package/lib/common/gen/tzero/v1/common/payment_method_pb.js +57 -0
  8. package/lib/common/gen/tzero/v1/payment/network_pb.d.ts +567 -0
  9. package/lib/common/gen/tzero/v1/payment/network_pb.js +144 -0
  10. package/lib/common/gen/tzero/v1/payment/provider_pb.d.ts +641 -0
  11. package/lib/common/gen/tzero/v1/payment/provider_pb.js +203 -0
  12. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +296 -0
  13. package/lib/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +84 -0
  14. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +214 -0
  15. package/lib/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +59 -0
  16. package/lib/common/gen/tzero/v1/public/public_pb.d.ts +234 -0
  17. package/lib/common/gen/tzero/v1/public/public_pb.js +85 -0
  18. package/lib/gen/common/common_pb.d.ts +39 -1
  19. package/lib/gen/common/common_pb.js +42 -2
  20. package/lib/gen/common/payment_method_pb.d.ts +77 -6
  21. package/lib/gen/common/payment_method_pb.js +41 -2
  22. package/lib/gen/network/network_pb.d.ts +16 -98
  23. package/lib/gen/network/network_pb.js +2 -21
  24. package/lib/gen/network/provider_pb.d.ts +20 -98
  25. package/lib/gen/network/provider_pb.js +1 -21
  26. package/lib/gen/payment_intent/provider/provider_pb.d.ts +296 -0
  27. package/lib/gen/payment_intent/provider/provider_pb.js +84 -0
  28. package/lib/gen/payment_intent/recipient/recipient_pb.d.ts +214 -0
  29. package/lib/gen/payment_intent/recipient/recipient_pb.js +59 -0
  30. package/lib/index.d.ts +6 -4
  31. package/lib/index.js +6 -4
  32. package/lib/payment_intent/provider/index.d.ts +1 -0
  33. package/lib/payment_intent/provider/index.js +1 -0
  34. package/lib/payment_intent/recipient/index.d.ts +1 -0
  35. package/lib/payment_intent/recipient/index.js +1 -0
  36. package/lib/service/service.d.ts +6 -2
  37. package/lib/service/service.js +4 -6
  38. package/package.json +7 -7
@@ -0,0 +1,214 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Decimal } from "../../common/common_pb";
3
+ import type { PaymentMethod, PaymentMethodType } from "../../common/payment_method_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
7
+ */
8
+ export declare const file_tzero_v1_payment_intent_recipient_recipient: GenFile;
9
+ /**
10
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest
11
+ */
12
+ export type CreatePaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest"> & {
13
+ /**
14
+ * *
15
+ * Idempotency Key
16
+ * payment reference to identify payment by client.
17
+ *
18
+ * idempotency key
19
+ *
20
+ * @generated from field: string payment_reference = 10;
21
+ */
22
+ paymentReference: string;
23
+ /**
24
+ * *
25
+ * Pay-in currency
26
+ *
27
+ * pay-in currency
28
+ *
29
+ * @generated from field: string pay_in_currency = 20;
30
+ */
31
+ payInCurrency: string;
32
+ /**
33
+ * *
34
+ * Amount denominated in the pay-in currency
35
+ *
36
+ * @generated from field: tzero.v1.common.Decimal pay_in_amount = 30;
37
+ */
38
+ payInAmount?: Decimal;
39
+ /**
40
+ * *
41
+ * Payout currency
42
+ *
43
+ * pay-out currency
44
+ *
45
+ * @generated from field: string pay_out_currency = 40;
46
+ */
47
+ payOutCurrency: string;
48
+ /**
49
+ * *
50
+ * Payout payment method
51
+ *
52
+ * @generated from field: tzero.v1.common.PaymentMethod pay_out_method = 50;
53
+ */
54
+ payOutMethod?: PaymentMethod;
55
+ };
56
+ /**
57
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
58
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
59
+ */
60
+ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
61
+ /**
62
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse
63
+ */
64
+ export type CreatePaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse"> & {
65
+ /**
66
+ * @generated from field: uint64 payment_intent_id = 10;
67
+ */
68
+ paymentIntentId: bigint;
69
+ /**
70
+ * @generated from field: repeated tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod pay_in_payment_methods = 20;
71
+ */
72
+ payInPaymentMethods: CreatePaymentIntentResponse_PaymentMethod[];
73
+ };
74
+ /**
75
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
76
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
77
+ */
78
+ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
79
+ /**
80
+ * @generated from message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod
81
+ */
82
+ export type CreatePaymentIntentResponse_PaymentMethod = Message<"tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod"> & {
83
+ /**
84
+ * @generated from field: string payment_url = 10;
85
+ */
86
+ paymentUrl: string;
87
+ /**
88
+ * @generated from field: uint32 provider_id = 20;
89
+ */
90
+ providerId: number;
91
+ /**
92
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
93
+ */
94
+ paymentMethod: PaymentMethodType;
95
+ };
96
+ /**
97
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
98
+ * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
99
+ */
100
+ export declare const CreatePaymentIntentResponse_PaymentMethodSchema: GenMessage<CreatePaymentIntentResponse_PaymentMethod>;
101
+ /**
102
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest
103
+ */
104
+ export type ConfirmPaymentRequest = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentRequest"> & {
105
+ /**
106
+ * payment_intent_id from the CreatePaymentIntentRequest
107
+ *
108
+ * @generated from field: uint64 payment_intent_id = 10;
109
+ */
110
+ paymentIntentId: bigint;
111
+ /**
112
+ * @generated from field: string payment_reference = 20;
113
+ */
114
+ paymentReference: string;
115
+ /**
116
+ * @generated from field: tzero.v1.common.PaymentMethodType payment_method = 30;
117
+ */
118
+ paymentMethod: PaymentMethodType;
119
+ };
120
+ /**
121
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
122
+ * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
123
+ */
124
+ export declare const ConfirmPaymentRequestSchema: GenMessage<ConfirmPaymentRequest>;
125
+ /**
126
+ * @generated from message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse
127
+ */
128
+ export type ConfirmPaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse"> & {};
129
+ /**
130
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse.
131
+ * Use `create(ConfirmPaymentIntentResponseSchema)` to create a new message.
132
+ */
133
+ export declare const ConfirmPaymentIntentResponseSchema: GenMessage<ConfirmPaymentIntentResponse>;
134
+ /**
135
+ * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest
136
+ */
137
+ export type RejectPaymentIntentRequest = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest"> & {
138
+ /**
139
+ * payment_intent_id from the CreatePaymentIntentRequest
140
+ *
141
+ * @generated from field: uint64 payment_intent_id = 10;
142
+ */
143
+ paymentIntentId: bigint;
144
+ /**
145
+ * payment_reference from the CreatePaymentIntentRequest
146
+ *
147
+ * @generated from field: string payment_reference = 20;
148
+ */
149
+ paymentReference: string;
150
+ /**
151
+ * @generated from field: string reason = 30;
152
+ */
153
+ reason: string;
154
+ };
155
+ /**
156
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
157
+ * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
158
+ */
159
+ export declare const RejectPaymentIntentRequestSchema: GenMessage<RejectPaymentIntentRequest>;
160
+ /**
161
+ * @generated from message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse
162
+ */
163
+ export type RejectPaymentIntentResponse = Message<"tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse"> & {};
164
+ /**
165
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
166
+ * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
167
+ */
168
+ export declare const RejectPaymentIntentResponseSchema: GenMessage<RejectPaymentIntentResponse>;
169
+ /**
170
+ * *
171
+ * NetworkService is used by recipient to create a payment intents
172
+ *
173
+ * @generated from service tzero.v1.payment_intent.recipient.NetworkService
174
+ */
175
+ export declare const NetworkService: GenService<{
176
+ /**
177
+ * @generated from rpc tzero.v1.payment_intent.recipient.NetworkService.CreatePaymentIntent
178
+ */
179
+ createPaymentIntent: {
180
+ methodKind: "unary";
181
+ input: typeof CreatePaymentIntentRequestSchema;
182
+ output: typeof CreatePaymentIntentResponseSchema;
183
+ };
184
+ }>;
185
+ /**
186
+ * *
187
+ * RecipientService is implemented by recipient in order to get updates on payment intents
188
+ *
189
+ * @generated from service tzero.v1.payment_intent.recipient.RecipientService
190
+ */
191
+ export declare const RecipientService: GenService<{
192
+ /**
193
+ * *
194
+ * notifies recipient about successful payment
195
+ *
196
+ * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.ConfirmPayment
197
+ */
198
+ confirmPayment: {
199
+ methodKind: "unary";
200
+ input: typeof ConfirmPaymentRequestSchema;
201
+ output: typeof ConfirmPaymentIntentResponseSchema;
202
+ };
203
+ /**
204
+ * *
205
+ * notifies recipient about failed payment
206
+ *
207
+ * @generated from rpc tzero.v1.payment_intent.recipient.RecipientService.RejectPaymentIntent
208
+ */
209
+ rejectPaymentIntent: {
210
+ methodKind: "unary";
211
+ input: typeof RejectPaymentIntentRequestSchema;
212
+ output: typeof RejectPaymentIntentResponseSchema;
213
+ };
214
+ }>;
@@ -0,0 +1,59 @@
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
2
+ // @generated from file tzero/v1/payment_intent/recipient/recipient.proto (package tzero.v1.payment_intent.recipient, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_tzero_v1_common_common } from "../../common/common_pb";
6
+ import { file_tzero_v1_common_payment_method } from "../../common/payment_method_pb";
7
+ /**
8
+ * Describes the file tzero/v1/payment_intent/recipient/recipient.proto.
9
+ */
10
+ export const file_tzero_v1_payment_intent_recipient_recipient = /*@__PURE__*/ fileDesc("CjF0emVyby92MS9wYXltZW50X2ludGVudC9yZWNpcGllbnQvcmVjaXBpZW50LnByb3RvEiF0emVyby52MS5wYXltZW50X2ludGVudC5yZWNpcGllbnQi0wEKGkNyZWF0ZVBheW1lbnRJbnRlbnRSZXF1ZXN0EhkKEXBheW1lbnRfcmVmZXJlbmNlGAogASgJEhcKD3BheV9pbl9jdXJyZW5jeRgUIAEoCRIvCg1wYXlfaW5fYW1vdW50GB4gASgLMhgudHplcm8udjEuY29tbW9uLkRlY2ltYWwSGAoQcGF5X291dF9jdXJyZW5jeRgoIAEoCRI2Cg5wYXlfb3V0X21ldGhvZBgyIAEoCzIeLnR6ZXJvLnYxLmNvbW1vbi5QYXltZW50TWV0aG9kIp0CChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2USGQoRcGF5bWVudF9pbnRlbnRfaWQYCiABKAQSbAoWcGF5X2luX3BheW1lbnRfbWV0aG9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uc2UiA5ACAhKZAQoTUmVqZWN0UGF5bWVudEludGVudBI9LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVxdWVzdBo+LnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudC5SZWplY3RQYXltZW50SW50ZW50UmVzcG9uc2UiA5ACAkLbAQolY29tLnR6ZXJvLnYxLnBheW1lbnRfaW50ZW50LnJlY2lwaWVudEIOUmVjaXBpZW50UHJvdG9QAaICBFRWUFKqAiBUemVyby5WMS5QYXltZW50SW50ZW50LlJlY2lwaWVudMoCIFR6ZXJvXFYxXFBheW1lbnRJbnRlbnRcUmVjaXBpZW504gIsVHplcm9cVjFcUGF5bWVudEludGVudFxSZWNpcGllbnRcR1BCTWV0YWRhdGHqAiNUemVybzo6VjE6OlBheW1lbnRJbnRlbnQ6OlJlY2lwaWVudGIGcHJvdG8z", [file_tzero_v1_common_common, file_tzero_v1_common_payment_method]);
11
+ /**
12
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentRequest.
13
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
14
+ */
15
+ export const CreatePaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 0);
16
+ /**
17
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.
18
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
19
+ */
20
+ export const CreatePaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 1);
21
+ /**
22
+ * Describes the message tzero.v1.payment_intent.recipient.CreatePaymentIntentResponse.PaymentMethod.
23
+ * Use `create(CreatePaymentIntentResponse_PaymentMethodSchema)` to create a new message.
24
+ */
25
+ export const CreatePaymentIntentResponse_PaymentMethodSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 1, 0);
26
+ /**
27
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentRequest.
28
+ * Use `create(ConfirmPaymentRequestSchema)` to create a new message.
29
+ */
30
+ export const ConfirmPaymentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 2);
31
+ /**
32
+ * Describes the message tzero.v1.payment_intent.recipient.ConfirmPaymentIntentResponse.
33
+ * Use `create(ConfirmPaymentIntentResponseSchema)` to create a new message.
34
+ */
35
+ export const ConfirmPaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 3);
36
+ /**
37
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentRequest.
38
+ * Use `create(RejectPaymentIntentRequestSchema)` to create a new message.
39
+ */
40
+ export const RejectPaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 4);
41
+ /**
42
+ * Describes the message tzero.v1.payment_intent.recipient.RejectPaymentIntentResponse.
43
+ * Use `create(RejectPaymentIntentResponseSchema)` to create a new message.
44
+ */
45
+ export const RejectPaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_payment_intent_recipient_recipient, 5);
46
+ /**
47
+ * *
48
+ * NetworkService is used by recipient to create a payment intents
49
+ *
50
+ * @generated from service tzero.v1.payment_intent.recipient.NetworkService
51
+ */
52
+ export const NetworkService = /*@__PURE__*/ serviceDesc(file_tzero_v1_payment_intent_recipient_recipient, 0);
53
+ /**
54
+ * *
55
+ * RecipientService is implemented by recipient in order to get updates on payment intents
56
+ *
57
+ * @generated from service tzero.v1.payment_intent.recipient.RecipientService
58
+ */
59
+ export const RecipientService = /*@__PURE__*/ serviceDesc(file_tzero_v1_payment_intent_recipient_recipient, 1);
@@ -0,0 +1,234 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file tzero/v1/public/public.proto.
5
+ */
6
+ export declare const file_tzero_v1_public_public: GenFile;
7
+ /**
8
+ * @generated from message tzero.v1.public.GetPaymentQuoteRequest
9
+ */
10
+ export type GetPaymentQuoteRequest = Message<"tzero.v1.public.GetPaymentQuoteRequest"> & {};
11
+ /**
12
+ * Describes the message tzero.v1.public.GetPaymentQuoteRequest.
13
+ * Use `create(GetPaymentQuoteRequestSchema)` to create a new message.
14
+ */
15
+ export declare const GetPaymentQuoteRequestSchema: GenMessage<GetPaymentQuoteRequest>;
16
+ /**
17
+ * @generated from message tzero.v1.public.GetPaymentQuoteResponse
18
+ */
19
+ export type GetPaymentQuoteResponse = Message<"tzero.v1.public.GetPaymentQuoteResponse"> & {};
20
+ /**
21
+ * Describes the message tzero.v1.public.GetPaymentQuoteResponse.
22
+ * Use `create(GetPaymentQuoteResponseSchema)` to create a new message.
23
+ */
24
+ export declare const GetPaymentQuoteResponseSchema: GenMessage<GetPaymentQuoteResponse>;
25
+ /**
26
+ * @generated from message tzero.v1.public.CreatePaymentIntentRequest
27
+ */
28
+ export type CreatePaymentIntentRequest = Message<"tzero.v1.public.CreatePaymentIntentRequest"> & {};
29
+ /**
30
+ * Describes the message tzero.v1.public.CreatePaymentIntentRequest.
31
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
32
+ */
33
+ export declare const CreatePaymentIntentRequestSchema: GenMessage<CreatePaymentIntentRequest>;
34
+ /**
35
+ * @generated from message tzero.v1.public.CreatePaymentIntentResponse
36
+ */
37
+ export type CreatePaymentIntentResponse = Message<"tzero.v1.public.CreatePaymentIntentResponse"> & {};
38
+ /**
39
+ * Describes the message tzero.v1.public.CreatePaymentIntentResponse.
40
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
41
+ */
42
+ export declare const CreatePaymentIntentResponseSchema: GenMessage<CreatePaymentIntentResponse>;
43
+ /**
44
+ * @generated from message tzero.v1.public.GetPayInDetailsRequest
45
+ */
46
+ export type GetPayInDetailsRequest = Message<"tzero.v1.public.GetPayInDetailsRequest"> & {
47
+ /**
48
+ * @generated from field: string payment_id = 10;
49
+ */
50
+ paymentId: string;
51
+ };
52
+ /**
53
+ * Describes the message tzero.v1.public.GetPayInDetailsRequest.
54
+ * Use `create(GetPayInDetailsRequestSchema)` to create a new message.
55
+ */
56
+ export declare const GetPayInDetailsRequestSchema: GenMessage<GetPayInDetailsRequest>;
57
+ /**
58
+ * @generated from message tzero.v1.public.GetPayInDetailsResponse
59
+ */
60
+ export type GetPayInDetailsResponse = Message<"tzero.v1.public.GetPayInDetailsResponse"> & {};
61
+ /**
62
+ * Describes the message tzero.v1.public.GetPayInDetailsResponse.
63
+ * Use `create(GetPayInDetailsResponseSchema)` to create a new message.
64
+ */
65
+ export declare const GetPayInDetailsResponseSchema: GenMessage<GetPayInDetailsResponse>;
66
+ /**
67
+ * @generated from message tzero.v1.public.GetPaymentsRequest
68
+ */
69
+ export type GetPaymentsRequest = Message<"tzero.v1.public.GetPaymentsRequest"> & {};
70
+ /**
71
+ * Describes the message tzero.v1.public.GetPaymentsRequest.
72
+ * Use `create(GetPaymentsRequestSchema)` to create a new message.
73
+ */
74
+ export declare const GetPaymentsRequestSchema: GenMessage<GetPaymentsRequest>;
75
+ /**
76
+ * @generated from message tzero.v1.public.GetPaymentsResponse
77
+ */
78
+ export type GetPaymentsResponse = Message<"tzero.v1.public.GetPaymentsResponse"> & {};
79
+ /**
80
+ * Describes the message tzero.v1.public.GetPaymentsResponse.
81
+ * Use `create(GetPaymentsResponseSchema)` to create a new message.
82
+ */
83
+ export declare const GetPaymentsResponseSchema: GenMessage<GetPaymentsResponse>;
84
+ /**
85
+ * @generated from message tzero.v1.public.GetCurrentUserRequest
86
+ */
87
+ export type GetCurrentUserRequest = Message<"tzero.v1.public.GetCurrentUserRequest"> & {};
88
+ /**
89
+ * Describes the message tzero.v1.public.GetCurrentUserRequest.
90
+ * Use `create(GetCurrentUserRequestSchema)` to create a new message.
91
+ */
92
+ export declare const GetCurrentUserRequestSchema: GenMessage<GetCurrentUserRequest>;
93
+ /**
94
+ * @generated from message tzero.v1.public.GetCurrentUserResponse
95
+ */
96
+ export type GetCurrentUserResponse = Message<"tzero.v1.public.GetCurrentUserResponse"> & {
97
+ /**
98
+ * @generated from field: string id = 10;
99
+ */
100
+ id: string;
101
+ /**
102
+ * @generated from oneof tzero.v1.public.GetCurrentUserResponse.kyc_status
103
+ */
104
+ kycStatus: {
105
+ /**
106
+ * @generated from field: tzero.v1.public.GetCurrentUserResponse.KycStatusRequired required = 100;
107
+ */
108
+ value: GetCurrentUserResponse_KycStatusRequired;
109
+ case: "required";
110
+ } | {
111
+ /**
112
+ * @generated from field: tzero.v1.public.GetCurrentUserResponse.KycStatusPending pending = 110;
113
+ */
114
+ value: GetCurrentUserResponse_KycStatusPending;
115
+ case: "pending";
116
+ } | {
117
+ /**
118
+ * @generated from field: tzero.v1.public.GetCurrentUserResponse.KycStatusDone done = 120;
119
+ */
120
+ value: GetCurrentUserResponse_KycStatusDone;
121
+ case: "done";
122
+ } | {
123
+ case: undefined;
124
+ value?: undefined;
125
+ };
126
+ };
127
+ /**
128
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.
129
+ * Use `create(GetCurrentUserResponseSchema)` to create a new message.
130
+ */
131
+ export declare const GetCurrentUserResponseSchema: GenMessage<GetCurrentUserResponse>;
132
+ /**
133
+ * @generated from message tzero.v1.public.GetCurrentUserResponse.KycStatusDone
134
+ */
135
+ export type GetCurrentUserResponse_KycStatusDone = Message<"tzero.v1.public.GetCurrentUserResponse.KycStatusDone"> & {};
136
+ /**
137
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusDone.
138
+ * Use `create(GetCurrentUserResponse_KycStatusDoneSchema)` to create a new message.
139
+ */
140
+ export declare const GetCurrentUserResponse_KycStatusDoneSchema: GenMessage<GetCurrentUserResponse_KycStatusDone>;
141
+ /**
142
+ * @generated from message tzero.v1.public.GetCurrentUserResponse.KycStatusRequired
143
+ */
144
+ export type GetCurrentUserResponse_KycStatusRequired = Message<"tzero.v1.public.GetCurrentUserResponse.KycStatusRequired"> & {
145
+ /**
146
+ * @generated from field: string url = 10;
147
+ */
148
+ url: string;
149
+ /**
150
+ * or failed ... // to may be Kyc needs to be re-verified
151
+ *
152
+ * @generated from field: bool retry = 20;
153
+ */
154
+ retry: boolean;
155
+ };
156
+ /**
157
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusRequired.
158
+ * Use `create(GetCurrentUserResponse_KycStatusRequiredSchema)` to create a new message.
159
+ */
160
+ export declare const GetCurrentUserResponse_KycStatusRequiredSchema: GenMessage<GetCurrentUserResponse_KycStatusRequired>;
161
+ /**
162
+ * @generated from message tzero.v1.public.GetCurrentUserResponse.KycStatusPending
163
+ */
164
+ export type GetCurrentUserResponse_KycStatusPending = Message<"tzero.v1.public.GetCurrentUserResponse.KycStatusPending"> & {};
165
+ /**
166
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusPending.
167
+ * Use `create(GetCurrentUserResponse_KycStatusPendingSchema)` to create a new message.
168
+ */
169
+ export declare const GetCurrentUserResponse_KycStatusPendingSchema: GenMessage<GetCurrentUserResponse_KycStatusPending>;
170
+ /**
171
+ * this service is available as a part of public API
172
+ *
173
+ * @generated from service tzero.v1.public.PaymentService
174
+ */
175
+ export declare const PaymentService: GenService<{
176
+ /**
177
+ * available without authentication. This will find a pair of best PayIn nad PayOut providers in order to
178
+ * provide best quote for payment
179
+ * TODO: should quote have a life time?
180
+ *
181
+ * @generated from rpc tzero.v1.public.PaymentService.GetPaymentQuote
182
+ */
183
+ getPaymentQuote: {
184
+ methodKind: "unary";
185
+ input: typeof GetPaymentQuoteRequestSchema;
186
+ output: typeof GetPaymentQuoteResponseSchema;
187
+ };
188
+ /**
189
+ * Creates a payment details containing all the required attributes for PayOut
190
+ * requires authentication and completed KYC
191
+ *
192
+ * @generated from rpc tzero.v1.public.PaymentService.CreatePaymentIntent
193
+ */
194
+ createPaymentIntent: {
195
+ methodKind: "unary";
196
+ input: typeof CreatePaymentIntentRequestSchema;
197
+ output: typeof CreatePaymentIntentResponseSchema;
198
+ };
199
+ /**
200
+ * Returns pay in details for the corresponding Payment
201
+ *
202
+ * @generated from rpc tzero.v1.public.PaymentService.GetPayInDetails
203
+ */
204
+ getPayInDetails: {
205
+ methodKind: "unary";
206
+ input: typeof GetPayInDetailsRequestSchema;
207
+ output: typeof GetPayInDetailsResponseSchema;
208
+ };
209
+ /**
210
+ * Returns history of payments
211
+ *
212
+ * @generated from rpc tzero.v1.public.PaymentService.GetPayments
213
+ */
214
+ getPayments: {
215
+ methodKind: "unary";
216
+ input: typeof GetPaymentsRequestSchema;
217
+ output: typeof GetPaymentsResponseSchema;
218
+ };
219
+ }>;
220
+ /**
221
+ * this service is available as a part of public API
222
+ *
223
+ * @generated from service tzero.v1.public.UserService
224
+ */
225
+ export declare const UserService: GenService<{
226
+ /**
227
+ * @generated from rpc tzero.v1.public.UserService.GetCurrentUser
228
+ */
229
+ getCurrentUser: {
230
+ methodKind: "unary";
231
+ input: typeof GetCurrentUserRequestSchema;
232
+ output: typeof GetCurrentUserResponseSchema;
233
+ };
234
+ }>;
@@ -0,0 +1,85 @@
1
+ // @generated by protoc-gen-es v2.6.2 with parameter "target=ts"
2
+ // @generated from file tzero/v1/public/public.proto (package tzero.v1.public, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ /**
6
+ * Describes the file tzero/v1/public/public.proto.
7
+ */
8
+ export const file_tzero_v1_public_public = /*@__PURE__*/ fileDesc("Chx0emVyby92MS9wdWJsaWMvcHVibGljLnByb3RvEg90emVyby52MS5wdWJsaWMiGAoWR2V0UGF5bWVudFF1b3RlUmVxdWVzdCIZChdHZXRQYXltZW50UXVvdGVSZXNwb25zZSIcChpDcmVhdGVQYXltZW50SW50ZW50UmVxdWVzdCIdChtDcmVhdGVQYXltZW50SW50ZW50UmVzcG9uc2UiLAoWR2V0UGF5SW5EZXRhaWx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VzcG9uc2USWAoLR2V0UGF5bWVudHMSIy50emVyby52MS5wdWJsaWMuR2V0UGF5bWVudHNSZXF1ZXN0GiQudHplcm8udjEucHVibGljLkdldFBheW1lbnRzUmVzcG9uc2UycAoLVXNlclNlcnZpY2USYQoOR2V0Q3VycmVudFVzZXISJi50emVyby52MS5wdWJsaWMuR2V0Q3VycmVudFVzZXJSZXF1ZXN0GicudHplcm8udjEucHVibGljLkdldEN1cnJlbnRVc2VyUmVzcG9uc2VCggEKE2NvbS50emVyby52MS5wdWJsaWNCC1B1YmxpY1Byb3RvUAGiAgNUVlCqAg9UemVyby5WMS5QdWJsaWPKAhBUemVyb1xWMVxQdWJsaWNf4gIcVHplcm9cVjFcUHVibGljX1xHUEJNZXRhZGF0YeoCEVR6ZXJvOjpWMTo6UHVibGljYgZwcm90bzM");
9
+ /**
10
+ * Describes the message tzero.v1.public.GetPaymentQuoteRequest.
11
+ * Use `create(GetPaymentQuoteRequestSchema)` to create a new message.
12
+ */
13
+ export const GetPaymentQuoteRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 0);
14
+ /**
15
+ * Describes the message tzero.v1.public.GetPaymentQuoteResponse.
16
+ * Use `create(GetPaymentQuoteResponseSchema)` to create a new message.
17
+ */
18
+ export const GetPaymentQuoteResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 1);
19
+ /**
20
+ * Describes the message tzero.v1.public.CreatePaymentIntentRequest.
21
+ * Use `create(CreatePaymentIntentRequestSchema)` to create a new message.
22
+ */
23
+ export const CreatePaymentIntentRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 2);
24
+ /**
25
+ * Describes the message tzero.v1.public.CreatePaymentIntentResponse.
26
+ * Use `create(CreatePaymentIntentResponseSchema)` to create a new message.
27
+ */
28
+ export const CreatePaymentIntentResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 3);
29
+ /**
30
+ * Describes the message tzero.v1.public.GetPayInDetailsRequest.
31
+ * Use `create(GetPayInDetailsRequestSchema)` to create a new message.
32
+ */
33
+ export const GetPayInDetailsRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 4);
34
+ /**
35
+ * Describes the message tzero.v1.public.GetPayInDetailsResponse.
36
+ * Use `create(GetPayInDetailsResponseSchema)` to create a new message.
37
+ */
38
+ export const GetPayInDetailsResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 5);
39
+ /**
40
+ * Describes the message tzero.v1.public.GetPaymentsRequest.
41
+ * Use `create(GetPaymentsRequestSchema)` to create a new message.
42
+ */
43
+ export const GetPaymentsRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 6);
44
+ /**
45
+ * Describes the message tzero.v1.public.GetPaymentsResponse.
46
+ * Use `create(GetPaymentsResponseSchema)` to create a new message.
47
+ */
48
+ export const GetPaymentsResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 7);
49
+ /**
50
+ * Describes the message tzero.v1.public.GetCurrentUserRequest.
51
+ * Use `create(GetCurrentUserRequestSchema)` to create a new message.
52
+ */
53
+ export const GetCurrentUserRequestSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 8);
54
+ /**
55
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.
56
+ * Use `create(GetCurrentUserResponseSchema)` to create a new message.
57
+ */
58
+ export const GetCurrentUserResponseSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 9);
59
+ /**
60
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusDone.
61
+ * Use `create(GetCurrentUserResponse_KycStatusDoneSchema)` to create a new message.
62
+ */
63
+ export const GetCurrentUserResponse_KycStatusDoneSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 9, 0);
64
+ /**
65
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusRequired.
66
+ * Use `create(GetCurrentUserResponse_KycStatusRequiredSchema)` to create a new message.
67
+ */
68
+ export const GetCurrentUserResponse_KycStatusRequiredSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 9, 1);
69
+ /**
70
+ * Describes the message tzero.v1.public.GetCurrentUserResponse.KycStatusPending.
71
+ * Use `create(GetCurrentUserResponse_KycStatusPendingSchema)` to create a new message.
72
+ */
73
+ export const GetCurrentUserResponse_KycStatusPendingSchema = /*@__PURE__*/ messageDesc(file_tzero_v1_public_public, 9, 2);
74
+ /**
75
+ * this service is available as a part of public API
76
+ *
77
+ * @generated from service tzero.v1.public.PaymentService
78
+ */
79
+ export const PaymentService = /*@__PURE__*/ serviceDesc(file_tzero_v1_public_public, 0);
80
+ /**
81
+ * this service is available as a part of public API
82
+ *
83
+ * @generated from service tzero.v1.public.UserService
84
+ */
85
+ export const UserService = /*@__PURE__*/ serviceDesc(file_tzero_v1_public_public, 1);
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { Message } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * Describes the file common/common.proto.
@@ -24,3 +24,41 @@ export type Decimal = Message<"tzero.v1.common.Decimal"> & {
24
24
  * Use `create(DecimalSchema)` to create a new message.
25
25
  */
26
26
  export declare const DecimalSchema: GenMessage<Decimal>;
27
+ /**
28
+ * @generated from enum tzero.v1.common.Blockchain
29
+ */
30
+ export declare enum Blockchain {
31
+ /**
32
+ * @generated from enum value: BLOCKCHAIN_UNSPECIFIED = 0;
33
+ */
34
+ UNSPECIFIED = 0,
35
+ /**
36
+ * @generated from enum value: BLOCKCHAIN_BSC = 10;
37
+ */
38
+ BSC = 10,
39
+ /**
40
+ * @generated from enum value: BLOCKCHAIN_TRON = 100;
41
+ */
42
+ TRON = 100
43
+ }
44
+ /**
45
+ * Describes the enum tzero.v1.common.Blockchain.
46
+ */
47
+ export declare const BlockchainSchema: GenEnum<Blockchain>;
48
+ /**
49
+ * @generated from enum tzero.v1.common.Stablecoin
50
+ */
51
+ export declare enum Stablecoin {
52
+ /**
53
+ * @generated from enum value: STABLECOIN_UNSPECIFIED = 0;
54
+ */
55
+ UNSPECIFIED = 0,
56
+ /**
57
+ * @generated from enum value: STABLECOIN_USDT = 10;
58
+ */
59
+ USDT = 10
60
+ }
61
+ /**
62
+ * Describes the enum tzero.v1.common.Stablecoin.
63
+ */
64
+ export declare const StablecoinSchema: GenEnum<Stablecoin>;