@t-0/provider-sdk 1.0.27 → 1.0.29

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 (37) hide show
  1. package/lib/cjs/client/client.js +2 -2
  2. package/lib/cjs/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
  3. package/lib/cjs/common/gen/tzero/v1/common/common_pb.js +1 -1
  4. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.d.ts +106 -13
  5. package/lib/cjs/common/gen/tzero/v1/common/payment_method_pb.js +43 -3
  6. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
  7. package/lib/cjs/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
  8. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.d.ts +110 -176
  9. package/lib/cjs/common/gen/tzero/v1/payment/network_pb.js +20 -20
  10. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
  11. package/lib/cjs/common/gen/tzero/v1/payment/provider_pb.js +2 -2
  12. package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
  13. package/lib/cjs/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
  14. package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
  15. package/lib/cjs/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
  16. package/lib/cjs/common/gen/tzero/v1/public/public_pb.js +1 -1
  17. package/lib/cjs/service/node.js +2 -2
  18. package/lib/esm/client/client.js +1 -1
  19. package/lib/esm/common/gen/tzero/v1/common/common_pb.d.ts +0 -2
  20. package/lib/esm/common/gen/tzero/v1/common/common_pb.js +1 -1
  21. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.d.ts +106 -13
  22. package/lib/esm/common/gen/tzero/v1/common/payment_method_pb.js +42 -2
  23. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.d.ts +0 -2
  24. package/lib/esm/common/gen/tzero/v1/common/payment_receipt_pb.js +1 -1
  25. package/lib/esm/common/gen/tzero/v1/payment/network_pb.d.ts +110 -176
  26. package/lib/esm/common/gen/tzero/v1/payment/network_pb.js +19 -19
  27. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.d.ts +2 -2
  28. package/lib/esm/common/gen/tzero/v1/payment/provider_pb.js +2 -2
  29. package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.d.ts +4 -16
  30. package/lib/esm/common/gen/tzero/v1/payment_intent/provider/provider_pb.js +2 -2
  31. package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.d.ts +0 -10
  32. package/lib/esm/common/gen/tzero/v1/payment_intent/recipient/recipient_pb.js +2 -2
  33. package/lib/esm/common/gen/tzero/v1/public/public_pb.js +1 -1
  34. package/lib/esm/service/node.js +1 -1
  35. package/lib/tsconfig.cjs.tsbuildinfo +1 -1
  36. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  37. package/package.json +10 -10
@@ -7,7 +7,7 @@ exports.DEFAULT_ENDPOINT = void 0;
7
7
  exports.createClient = createClient;
8
8
  const connect_1 = require("@connectrpc/connect");
9
9
  const connect_web_1 = require("@connectrpc/connect-web");
10
- const sha3_1 = require("@noble/hashes/sha3");
10
+ const sha3_js_1 = require("@noble/hashes/sha3.js");
11
11
  const signer_js_1 = __importDefault(require("./signer.js"));
12
12
  const headers_js_1 = __importDefault(require("../common/headers.js"));
13
13
  exports.DEFAULT_ENDPOINT = "https://api.t-0.network";
@@ -25,7 +25,7 @@ function createClient(signer, endpoint, svc) {
25
25
  // 64‑bit little‑endian timestamp
26
26
  const tsBuf = Buffer.alloc(8);
27
27
  tsBuf.writeBigUInt64LE(BigInt(ts));
28
- const hash = sha3_1.keccak_256.create()
28
+ const hash = sha3_js_1.keccak_256.create()
29
29
  .update(init.body)
30
30
  .update(tsBuf);
31
31
  const hashHex = Buffer.from(hash.digest());
@@ -15,8 +15,6 @@ export type Decimal = Message<"tzero.v1.common.Decimal"> & {
15
15
  */
16
16
  unscaled: bigint;
17
17
  /**
18
- * Exponent should be reasonable for financial calculations (typically -8 to 8)
19
- *
20
18
  * @generated from field: int32 exponent = 20;
21
19
  */
22
20
  exponent: number;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
2
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
3
3
  // @generated from file tzero/v1/common/common.proto (package tzero.v1.common, syntax proto3)
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,6 +30,18 @@ export type PaymentMethod = Message<"tzero.v1.common.PaymentMethod"> & {
30
30
  */
31
31
  value: StablecoinPaymentDetails;
32
32
  case: "stablecoin";
33
+ } | {
34
+ /**
35
+ * @generated from field: tzero.v1.common.AchPaymentDetails ach = 50;
36
+ */
37
+ value: AchPaymentDetails;
38
+ case: "ach";
39
+ } | {
40
+ /**
41
+ * @generated from field: tzero.v1.common.WirePaymentDetails wire = 60;
42
+ */
43
+ value: WirePaymentDetails;
44
+ case: "wire";
33
45
  } | {
34
46
  case: undefined;
35
47
  value?: undefined;
@@ -45,20 +57,14 @@ export declare const PaymentMethodSchema: GenMessage<PaymentMethod>;
45
57
  */
46
58
  export type SepaPaymentDetails = Message<"tzero.v1.common.SepaPaymentDetails"> & {
47
59
  /**
48
- * IBAN should be 15-34 characters, alphanumeric
49
- *
50
60
  * @generated from field: string iban = 20;
51
61
  */
52
62
  iban: string;
53
63
  /**
54
- * Beneficiary name should be 1-70 characters (SEPA standard)
55
- *
56
64
  * @generated from field: string beneficiary_name = 30;
57
65
  */
58
66
  beneficiaryName: string;
59
67
  /**
60
- * Payment reference up to 140 characters (SEPA standard)
61
- *
62
68
  * @generated from field: string payment_reference = 40;
63
69
  */
64
70
  paymentReference: string;
@@ -82,20 +88,14 @@ export declare const SwiftPaymentDetailsSchema: GenMessage<SwiftPaymentDetails>;
82
88
  */
83
89
  export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymentDetails"> & {
84
90
  /**
85
- * Blockchain must be specified and not UNSPECIFIED
86
- *
87
91
  * @generated from field: tzero.v1.common.Blockchain blockchain = 10;
88
92
  */
89
93
  blockchain: Blockchain;
90
94
  /**
91
- * Stablecoin must be specified and not UNSPECIFIED
92
- *
93
95
  * @generated from field: tzero.v1.common.Stablecoin stablecoin = 20;
94
96
  */
95
97
  stablecoin: Stablecoin;
96
98
  /**
97
- * Blockchain address should be a valid hex address (20-64 chars for most blockchains)
98
- *
99
99
  * @generated from field: string address = 30;
100
100
  */
101
101
  address: string;
@@ -105,6 +105,91 @@ export type StablecoinPaymentDetails = Message<"tzero.v1.common.StablecoinPaymen
105
105
  * Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
106
106
  */
107
107
  export declare const StablecoinPaymentDetailsSchema: GenMessage<StablecoinPaymentDetails>;
108
+ /**
109
+ * @generated from message tzero.v1.common.AchPaymentDetails
110
+ */
111
+ export type AchPaymentDetails = Message<"tzero.v1.common.AchPaymentDetails"> & {
112
+ /**
113
+ * @generated from field: string routing_number = 10;
114
+ */
115
+ routingNumber: string;
116
+ /**
117
+ * @generated from field: string account_number = 20;
118
+ */
119
+ accountNumber: string;
120
+ /**
121
+ * @generated from field: string account_holder_name = 30;
122
+ */
123
+ accountHolderName: string;
124
+ /**
125
+ * @generated from field: tzero.v1.common.AchPaymentDetails.AchAccountType account_type = 40;
126
+ */
127
+ accountType: AchPaymentDetails_AchAccountType;
128
+ };
129
+ /**
130
+ * Describes the message tzero.v1.common.AchPaymentDetails.
131
+ * Use `create(AchPaymentDetailsSchema)` to create a new message.
132
+ */
133
+ export declare const AchPaymentDetailsSchema: GenMessage<AchPaymentDetails>;
134
+ /**
135
+ * @generated from enum tzero.v1.common.AchPaymentDetails.AchAccountType
136
+ */
137
+ export declare enum AchPaymentDetails_AchAccountType {
138
+ /**
139
+ * @generated from enum value: ACH_ACCOUNT_TYPE_UNSPECIFIED = 0;
140
+ */
141
+ UNSPECIFIED = 0,
142
+ /**
143
+ * @generated from enum value: ACH_ACCOUNT_TYPE_CHECKING = 10;
144
+ */
145
+ CHECKING = 10,
146
+ /**
147
+ * @generated from enum value: ACH_ACCOUNT_TYPE_SAVINGS = 20;
148
+ */
149
+ SAVINGS = 20
150
+ }
151
+ /**
152
+ * Describes the enum tzero.v1.common.AchPaymentDetails.AchAccountType.
153
+ */
154
+ export declare const AchPaymentDetails_AchAccountTypeSchema: GenEnum<AchPaymentDetails_AchAccountType>;
155
+ /**
156
+ * @generated from message tzero.v1.common.WirePaymentDetails
157
+ */
158
+ export type WirePaymentDetails = Message<"tzero.v1.common.WirePaymentDetails"> & {
159
+ /**
160
+ * @generated from field: string bank_name = 10;
161
+ */
162
+ bankName: string;
163
+ /**
164
+ * @generated from field: string bank_address = 20;
165
+ */
166
+ bankAddress: string;
167
+ /**
168
+ * @generated from field: string swift_code = 30;
169
+ */
170
+ swiftCode: string;
171
+ /**
172
+ * @generated from field: string account_number = 40;
173
+ */
174
+ accountNumber: string;
175
+ /**
176
+ * @generated from field: string beneficiary_name = 50;
177
+ */
178
+ beneficiaryName: string;
179
+ /**
180
+ * @generated from field: string beneficiary_address = 60;
181
+ */
182
+ beneficiaryAddress: string;
183
+ /**
184
+ * @generated from field: string wire_reference = 70;
185
+ */
186
+ wireReference: string;
187
+ };
188
+ /**
189
+ * Describes the message tzero.v1.common.WirePaymentDetails.
190
+ * Use `create(WirePaymentDetailsSchema)` to create a new message.
191
+ */
192
+ export declare const WirePaymentDetailsSchema: GenMessage<WirePaymentDetails>;
108
193
  /**
109
194
  * @generated from enum tzero.v1.common.PaymentMethodType
110
195
  */
@@ -132,7 +217,15 @@ export declare enum PaymentMethodType {
132
217
  *
133
218
  * @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
134
219
  */
135
- STABLECOIN = 40
220
+ STABLECOIN = 40,
221
+ /**
222
+ * @generated from enum value: PAYMENT_METHOD_TYPE_ACH = 50;
223
+ */
224
+ ACH = 50,
225
+ /**
226
+ * @generated from enum value: PAYMENT_METHOD_TYPE_WIRE = 60;
227
+ */
228
+ WIRE = 60
136
229
  }
137
230
  /**
138
231
  * Describes the enum tzero.v1.common.PaymentMethodType.
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
2
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
3
3
  // @generated from file tzero/v1/common/payment_method.proto (package tzero.v1.common, syntax proto3)
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PaymentMethodTypeSchema = exports.PaymentMethodType = exports.StablecoinPaymentDetailsSchema = exports.SwiftPaymentDetailsSchema = exports.SepaPaymentDetailsSchema = exports.PaymentMethodSchema = exports.file_tzero_v1_common_payment_method = void 0;
6
+ exports.PaymentMethodTypeSchema = exports.PaymentMethodType = exports.WirePaymentDetailsSchema = exports.AchPaymentDetails_AchAccountTypeSchema = exports.AchPaymentDetails_AchAccountType = exports.AchPaymentDetailsSchema = exports.StablecoinPaymentDetailsSchema = exports.SwiftPaymentDetailsSchema = exports.SepaPaymentDetailsSchema = exports.PaymentMethodSchema = exports.file_tzero_v1_common_payment_method = void 0;
7
7
  const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
8
8
  const common_pb_js_1 = require("./common_pb.js");
9
9
  const validate_pb_js_1 = require("../../../buf/validate/validate_pb.js");
10
10
  /**
11
11
  * Describes the file tzero/v1/common/payment_method.proto.
12
12
  */
13
- exports.file_tzero_v1_common_payment_method = (0, codegenv2_1.fileDesc)("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiLOAQoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0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kNvbW1vbmIGcHJvdG8z", [common_pb_js_1.file_tzero_v1_common_common, validate_pb_js_1.file_buf_validate_validate]);
13
+ exports.file_tzero_v1_common_payment_method = (0, codegenv2_1.fileDesc)("CiR0emVyby92MS9jb21tb24vcGF5bWVudF9tZXRob2QucHJvdG8SD3R6ZXJvLnYxLmNvbW1vbiK2AgoNUGF5bWVudE1ldGhvZBIzCgRzZXBhGAogASgLMiMudHplcm8udjEuY29tbW9uLlNlcGFQYXltZW50RGV0YWlsc0gAEjUKBXN3aWZ0GB4gASgLMiQudHplcm8udjEuY29tbW9uLlN3aWZ0UGF5bWVudERldGFpbHNIABI/CgpzdGFibGVjb2luGCggASgLMikudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5QYXltZW50RGV0YWlsc0gAEjEKA2FjaBgyIAEoCzIiLnR6ZXJvLnYxLmNvbW1vbi5BY2hQYXltZW50RGV0YWlsc0gAEjMKBHdpcmUYPCABKAsyIy50emVyby52MS5jb21tb24uV2lyZVBheW1lbnREZXRhaWxzSABCEAoHZGV0YWlscxIFukgCCAEilAEKElNlcGFQYXltZW50RGV0YWlscxI0CgRpYmFuGBQgASgJQia6SCNyIRAPGCIyG15bQS1aXXsyfVswLTldezJ9W0EtWjAtOV0rJBIjChBiZW5lZmljaWFyeV9uYW1lGB4gASgJQgm6SAZyBBABGEYSIwoRcGF5bWVudF9yZWZlcmVuY2UYKCABKAlCCLpIBXIDGIwBIhUKE1N3aWZ0UGF5bWVudERldGFpbHMivQEKGFN0YWJsZWNvaW5QYXltZW50RGV0YWlscxI3CgpibG9ja2NoYWluGAogASgOMhsudHplcm8udjEuY29tbW9uLkJsb2NrY2hhaW5CBrpIA8gBARI3CgpzdGFibGVjb2luGBQgASgOMhsudHplcm8udjEuY29tbW9uLlN0YWJsZWNvaW5CBrpIA8gBARIvCgdhZGRyZXNzGB4gASgJQh66SBtyGRAUGEAyE14oMHgpP1thLWZBLUYwLTldKyQi2wIKEUFjaFBheW1lbnREZXRhaWxzEi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FQ09JThAoEhsKF1BBWU1FTlRfTUVUSE9EX1RZUEVfQUNIEDISHAoYUEFZTUVOVF9NRVRIT0RfVFlQRV9XSVJFEDxChwEKE2NvbS50emVyby52MS5jb21tb25CElBheW1lbnRNZXRob2RQcm90b1ABogIDVFZDqgIPVHplcm8uVjEuQ29tbW9uygIPVHplcm9cVjFcQ29tbW9u4gIbVHplcm9cVjFcQ29tbW9uXEdQQk1ldGFkYXRh6gIRVHplcm86OlYxOjpDb21tb25iBnByb3RvMw", [common_pb_js_1.file_tzero_v1_common_common, validate_pb_js_1.file_buf_validate_validate]);
14
14
  /**
15
15
  * Describes the message tzero.v1.common.PaymentMethod.
16
16
  * Use `create(PaymentMethodSchema)` to create a new message.
@@ -31,6 +31,38 @@ exports.SwiftPaymentDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_tz
31
31
  * Use `create(StablecoinPaymentDetailsSchema)` to create a new message.
32
32
  */
33
33
  exports.StablecoinPaymentDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_common_payment_method, 3);
34
+ /**
35
+ * Describes the message tzero.v1.common.AchPaymentDetails.
36
+ * Use `create(AchPaymentDetailsSchema)` to create a new message.
37
+ */
38
+ exports.AchPaymentDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_common_payment_method, 4);
39
+ /**
40
+ * @generated from enum tzero.v1.common.AchPaymentDetails.AchAccountType
41
+ */
42
+ var AchPaymentDetails_AchAccountType;
43
+ (function (AchPaymentDetails_AchAccountType) {
44
+ /**
45
+ * @generated from enum value: ACH_ACCOUNT_TYPE_UNSPECIFIED = 0;
46
+ */
47
+ AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
48
+ /**
49
+ * @generated from enum value: ACH_ACCOUNT_TYPE_CHECKING = 10;
50
+ */
51
+ AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["CHECKING"] = 10] = "CHECKING";
52
+ /**
53
+ * @generated from enum value: ACH_ACCOUNT_TYPE_SAVINGS = 20;
54
+ */
55
+ AchPaymentDetails_AchAccountType[AchPaymentDetails_AchAccountType["SAVINGS"] = 20] = "SAVINGS";
56
+ })(AchPaymentDetails_AchAccountType || (exports.AchPaymentDetails_AchAccountType = AchPaymentDetails_AchAccountType = {}));
57
+ /**
58
+ * Describes the enum tzero.v1.common.AchPaymentDetails.AchAccountType.
59
+ */
60
+ exports.AchPaymentDetails_AchAccountTypeSchema = (0, codegenv2_1.enumDesc)(exports.file_tzero_v1_common_payment_method, 4, 0);
61
+ /**
62
+ * Describes the message tzero.v1.common.WirePaymentDetails.
63
+ * Use `create(WirePaymentDetailsSchema)` to create a new message.
64
+ */
65
+ exports.WirePaymentDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_tzero_v1_common_payment_method, 5);
34
66
  /**
35
67
  * @generated from enum tzero.v1.common.PaymentMethodType
36
68
  */
@@ -60,6 +92,14 @@ var PaymentMethodType;
60
92
  * @generated from enum value: PAYMENT_METHOD_TYPE_STABLECOIN = 40;
61
93
  */
62
94
  PaymentMethodType[PaymentMethodType["STABLECOIN"] = 40] = "STABLECOIN";
95
+ /**
96
+ * @generated from enum value: PAYMENT_METHOD_TYPE_ACH = 50;
97
+ */
98
+ PaymentMethodType[PaymentMethodType["ACH"] = 50] = "ACH";
99
+ /**
100
+ * @generated from enum value: PAYMENT_METHOD_TYPE_WIRE = 60;
101
+ */
102
+ PaymentMethodType[PaymentMethodType["WIRE"] = 60] = "WIRE";
63
103
  })(PaymentMethodType || (exports.PaymentMethodType = PaymentMethodType = {}));
64
104
  /**
65
105
  * Describes the enum tzero.v1.common.PaymentMethodType.
@@ -62,8 +62,6 @@ export declare const SwiftReceiptSchema: GenMessage<SwiftReceipt>;
62
62
  */
63
63
  export type StablecoinReceipt = Message<"tzero.v1.common.StablecoinReceipt"> & {
64
64
  /**
65
- * Transaction hash should be a valid hex string (64 chars for most blockchains)
66
- *
67
65
  * on-chain hex encoded transaction hash
68
66
  *
69
67
  * @generated from field: string transaction_hash = 10;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // @generated by protoc-gen-es v2.6.2 with parameter "target=ts,import_extension=js"
2
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=js"
3
3
  // @generated from file tzero/v1/common/payment_receipt.proto (package tzero.v1.common, syntax proto3)
4
4
  /* eslint-disable */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });