@metagptx/wallet 1.0.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 (38) hide show
  1. package/README.md +74 -0
  2. package/dist/google/api/annotations_pb.d.ts +14 -0
  3. package/dist/google/api/annotations_pb.d.ts.map +1 -0
  4. package/dist/google/api/annotations_pb.js +26 -0
  5. package/dist/google/api/http_pb.d.ts +441 -0
  6. package/dist/google/api/http_pb.d.ts.map +1 -0
  7. package/dist/google/api/http_pb.js +33 -0
  8. package/dist/index.d.ts +9 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +14 -0
  11. package/dist/v1/account/quota_service_pb.d.ts +603 -0
  12. package/dist/v1/account/quota_service_pb.d.ts.map +1 -0
  13. package/dist/v1/account/quota_service_pb.js +117 -0
  14. package/dist/v1/common/base_pb.d.ts +38 -0
  15. package/dist/v1/common/base_pb.d.ts.map +1 -0
  16. package/dist/v1/common/base_pb.js +14 -0
  17. package/dist/v1/common/code_pb.d.ts +69 -0
  18. package/dist/v1/common/code_pb.d.ts.map +1 -0
  19. package/dist/v1/common/code_pb.js +72 -0
  20. package/dist/v1/common/enums_pb.d.ts +76 -0
  21. package/dist/v1/common/enums_pb.d.ts.map +1 -0
  22. package/dist/v1/common/enums_pb.js +80 -0
  23. package/dist/v1/server_pb.d.ts +67 -0
  24. package/dist/v1/server_pb.d.ts.map +1 -0
  25. package/dist/v1/server_pb.js +41 -0
  26. package/dist/v1/topup/order_service_pb.d.ts +585 -0
  27. package/dist/v1/topup/order_service_pb.d.ts.map +1 -0
  28. package/dist/v1/topup/order_service_pb.js +171 -0
  29. package/package.json +42 -0
  30. package/src/google/api/annotations_pb.ts +39 -0
  31. package/src/google/api/http_pb.ts +474 -0
  32. package/src/index.ts +21 -0
  33. package/src/v1/account/quota_service_pb.ts +713 -0
  34. package/src/v1/common/base_pb.ts +51 -0
  35. package/src/v1/common/code_pb.ts +89 -0
  36. package/src/v1/common/enums_pb.ts +95 -0
  37. package/src/v1/server_pb.ts +87 -0
  38. package/src/v1/topup/order_service_pb.ts +695 -0
@@ -0,0 +1,51 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file v1/common/base.proto (package mgx.wallet.v1.common, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
7
+ import type { Code } from "./code_pb";
8
+ import { file_v1_common_code } from "./code_pb";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file v1/common/base.proto.
13
+ */
14
+ export const file_v1_common_base: GenFile = /*@__PURE__*/
15
+ fileDesc("ChR2MS9jb21tb24vYmFzZS5wcm90bxIUbWd4LndhbGxldC52MS5jb21tb24ifgoOQ29tbW9uUmVzcG9uc2USLQoEY29kZRgBIAEoDjIaLm1neC53YWxsZXQudjEuY29tbW9uLkNvZGVIAIgBARIUCgdtZXNzYWdlGAIgASgJSAGIAQESEgoKcmVxdWVzdF9pZBgDIAEoCUIHCgVfY29kZUIKCghfbWVzc2FnZUI/Wj1naXRsYWIuZGVlcHdpc2RvbWFpLmNvbS9pZGwvZ29sYW5nL21neC93YWxsZXQvcHJvdG8vdjEvY29tbW9uYgZwcm90bzM", [file_v1_common_code]);
16
+
17
+ /**
18
+ * Common response body (reused by all interfaces, simplifies duplicate definitions)
19
+ *
20
+ * @generated from message mgx.wallet.v1.common.CommonResponse
21
+ */
22
+ export type CommonResponse = Message<"mgx.wallet.v1.common.CommonResponse"> & {
23
+ /**
24
+ * Response code
25
+ *
26
+ * @generated from field: optional mgx.wallet.v1.common.Code code = 1;
27
+ */
28
+ code?: Code;
29
+
30
+ /**
31
+ * Message
32
+ *
33
+ * @generated from field: optional string message = 2;
34
+ */
35
+ message?: string;
36
+
37
+ /**
38
+ * Request ID (for tracing)
39
+ *
40
+ * @generated from field: string request_id = 3;
41
+ */
42
+ requestId: string;
43
+ };
44
+
45
+ /**
46
+ * Describes the message mgx.wallet.v1.common.CommonResponse.
47
+ * Use `create(CommonResponseSchema)` to create a new message.
48
+ */
49
+ export const CommonResponseSchema: GenMessage<CommonResponse> = /*@__PURE__*/
50
+ messageDesc(file_v1_common_base, 0);
51
+
@@ -0,0 +1,89 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file v1/common/code.proto (package mgx.wallet.v1.common, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
7
+
8
+ /**
9
+ * Describes the file v1/common/code.proto.
10
+ */
11
+ export const file_v1_common_code: GenFile = /*@__PURE__*/
12
+ fileDesc("ChR2MS9jb21tb24vY29kZS5wcm90bxIUbWd4LndhbGxldC52MS5jb21tb24qxQIKBENvZGUSFAoQQ09ERV9VTlNQRUNJRklFRBAAEhEKDENPREVfU1VDQ0VTUxDIARIbChVDT0RFX0lOVkFMSURfQVJHVU1FTlQQoY0GEhgKEkNPREVfTk9fUEVSTUlTU0lPThCijQYSHAoWQ09ERV9EVVBMSUNBVEVfUkVRVUVTVBCjjQYSHwoZQ09ERV9BVVRIT1JJWkFUSU9OX0ZBSUxFRBCkjQYSGQoTQ09ERV9JTlRFUk5BTF9FUlJPUhCDjgYSHwoZQ09ERV9JTlNVRkZJQ0lFTlRfQkFMQU5DRRCFjgYSIAoaQ09ERV9NT05USExZX0xJTUlUX1JFQUNIRUQQho4GEiQKHkNPREVfUFJPQ0VTU0lOR19QQVlNRU5UX0VYSVNUUxDpjgYSGgoUQ09ERV9PUkRFUl9OT1RfRk9VTkQQ6o4GQj9aPWdpdGxhYi5kZWVwd2lzZG9tYWkuY29tL2lkbC9nb2xhbmcvbWd4L3dhbGxldC9wcm90by92MS9jb21tb25iBnByb3RvMw");
13
+
14
+ /**
15
+ * @generated from enum mgx.wallet.v1.common.Code
16
+ */
17
+ export enum Code {
18
+ /**
19
+ * Default value, unspecified
20
+ *
21
+ * @generated from enum value: CODE_UNSPECIFIED = 0;
22
+ */
23
+ UNSPECIFIED = 0,
24
+
25
+ /**
26
+ * Success
27
+ *
28
+ * @generated from enum value: CODE_SUCCESS = 200;
29
+ */
30
+ SUCCESS = 200,
31
+
32
+ /**
33
+ * Common errors 1000xx
34
+ *
35
+ * @generated from enum value: CODE_INVALID_ARGUMENT = 100001;
36
+ */
37
+ INVALID_ARGUMENT = 100001,
38
+
39
+ /**
40
+ * @generated from enum value: CODE_NO_PERMISSION = 100002;
41
+ */
42
+ NO_PERMISSION = 100002,
43
+
44
+ /**
45
+ * @generated from enum value: CODE_DUPLICATE_REQUEST = 100003;
46
+ */
47
+ DUPLICATE_REQUEST = 100003,
48
+
49
+ /**
50
+ * @generated from enum value: CODE_AUTHORIZATION_FAILED = 100004;
51
+ */
52
+ AUTHORIZATION_FAILED = 100004,
53
+
54
+ /**
55
+ * @generated from enum value: CODE_INTERNAL_ERROR = 100099;
56
+ */
57
+ INTERNAL_ERROR = 100099,
58
+
59
+ /**
60
+ * Account module 1001xx
61
+ *
62
+ * @generated from enum value: CODE_INSUFFICIENT_BALANCE = 100101;
63
+ */
64
+ INSUFFICIENT_BALANCE = 100101,
65
+
66
+ /**
67
+ * @generated from enum value: CODE_MONTHLY_LIMIT_REACHED = 100102;
68
+ */
69
+ MONTHLY_LIMIT_REACHED = 100102,
70
+
71
+ /**
72
+ * Top-up module 1002xx
73
+ *
74
+ * @generated from enum value: CODE_PROCESSING_PAYMENT_EXISTS = 100201;
75
+ */
76
+ PROCESSING_PAYMENT_EXISTS = 100201,
77
+
78
+ /**
79
+ * @generated from enum value: CODE_ORDER_NOT_FOUND = 100202;
80
+ */
81
+ ORDER_NOT_FOUND = 100202,
82
+ }
83
+
84
+ /**
85
+ * Describes the enum mgx.wallet.v1.common.Code.
86
+ */
87
+ export const CodeSchema: GenEnum<Code> = /*@__PURE__*/
88
+ enumDesc(file_v1_common_code, 0);
89
+
@@ -0,0 +1,95 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file v1/common/enums.proto (package mgx.wallet.v1.common, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
6
+ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
7
+
8
+ /**
9
+ * Describes the file v1/common/enums.proto.
10
+ */
11
+ export const file_v1_common_enums: GenFile = /*@__PURE__*/
12
+ fileDesc("ChV2MS9jb21tb24vZW51bXMucHJvdG8SFG1neC53YWxsZXQudjEuY29tbW9uKnwKDVF1b3RhQ2F0ZWdvcnkSHgoaUVVPVEFfQ0FURUdPUllfVU5TUEVDSUZJRUQQABIYChRRVU9UQV9DQVRFR09SWV9DTE9VRBABEhUKEVFVT1RBX0NBVEVHT1JZX0FJEAISGgoWUVVPVEFfQ0FURUdPUllfR0VORVJBTBADKn4KC0FjY291bnRUeXBlEhwKGEFDQ09VTlRfVFlQRV9VTlNQRUNJRklFRBAAEhgKFEFDQ09VTlRfVFlQRV9CQUxBTkNFEAESHAoYQUNDT1VOVF9UWVBFX0JPTlVTX0NMT1VEEAISGQoVQUNDT1VOVF9UWVBFX0JPTlVTX0FJEANCP1o9Z2l0bGFiLmRlZXB3aXNkb21haS5jb20vaWRsL2dvbGFuZy9tZ3gvd2FsbGV0L3Byb3RvL3YxL2NvbW1vbmIGcHJvdG8z");
13
+
14
+ /**
15
+ * Quota category enumeration
16
+ *
17
+ * @generated from enum mgx.wallet.v1.common.QuotaCategory
18
+ */
19
+ export enum QuotaCategory {
20
+ /**
21
+ * Default value, unspecified
22
+ *
23
+ * @generated from enum value: QUOTA_CATEGORY_UNSPECIFIED = 0;
24
+ */
25
+ UNSPECIFIED = 0,
26
+
27
+ /**
28
+ * Cloud service quota
29
+ *
30
+ * @generated from enum value: QUOTA_CATEGORY_CLOUD = 1;
31
+ */
32
+ CLOUD = 1,
33
+
34
+ /**
35
+ * AI service quota
36
+ *
37
+ * @generated from enum value: QUOTA_CATEGORY_AI = 2;
38
+ */
39
+ AI = 2,
40
+
41
+ /**
42
+ * General quota
43
+ *
44
+ * @generated from enum value: QUOTA_CATEGORY_GENERAL = 3;
45
+ */
46
+ GENERAL = 3,
47
+ }
48
+
49
+ /**
50
+ * Describes the enum mgx.wallet.v1.common.QuotaCategory.
51
+ */
52
+ export const QuotaCategorySchema: GenEnum<QuotaCategory> = /*@__PURE__*/
53
+ enumDesc(file_v1_common_enums, 0);
54
+
55
+ /**
56
+ * Account type enumeration
57
+ *
58
+ * @generated from enum mgx.wallet.v1.common.AccountType
59
+ */
60
+ export enum AccountType {
61
+ /**
62
+ * Default value, unspecified account type
63
+ *
64
+ * @generated from enum value: ACCOUNT_TYPE_UNSPECIFIED = 0;
65
+ */
66
+ UNSPECIFIED = 0,
67
+
68
+ /**
69
+ * Normal balance account
70
+ *
71
+ * @generated from enum value: ACCOUNT_TYPE_BALANCE = 1;
72
+ */
73
+ BALANCE = 1,
74
+
75
+ /**
76
+ * Cloud service bonus account
77
+ *
78
+ * @generated from enum value: ACCOUNT_TYPE_BONUS_CLOUD = 2;
79
+ */
80
+ BONUS_CLOUD = 2,
81
+
82
+ /**
83
+ * AI service bonus account
84
+ *
85
+ * @generated from enum value: ACCOUNT_TYPE_BONUS_AI = 3;
86
+ */
87
+ BONUS_AI = 3,
88
+ }
89
+
90
+ /**
91
+ * Describes the enum mgx.wallet.v1.common.AccountType.
92
+ */
93
+ export const AccountTypeSchema: GenEnum<AccountType> = /*@__PURE__*/
94
+ enumDesc(file_v1_common_enums, 1);
95
+
@@ -0,0 +1,87 @@
1
+ // @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
2
+ // @generated from file v1/server.proto (package mgx.wallet.v1, 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 { file_google_api_annotations } from "../google/api/annotations_pb";
8
+ import type { Message } from "@bufbuild/protobuf";
9
+
10
+ /**
11
+ * Describes the file v1/server.proto.
12
+ */
13
+ export const file_v1_server: GenFile = /*@__PURE__*/
14
+ fileDesc("Cg92MS9zZXJ2ZXIucHJvdG8SDW1neC53YWxsZXQudjEiGQoLVGVzdFJlcXVlc3QSCgoCb2sYASABKAgiOgoMVGVzdFJlc3BvbnNlEioKCXRlc3RfZW51bRgBIAEoDjIXLm1neC53YWxsZXQudjEuVGVzdEVudW0qNwoIVGVzdEVudW0SGQoVVEVTVF9FTlVNX1VOU1BFQ0lGSUVEEAASEAoMVEVTVF9FTlVNX09LEAEybgoLVGVzdFNlcnZpY2USXwoEVGVzdBIaLm1neC53YWxsZXQudjEuVGVzdFJlcXVlc3QaGy5tZ3gud2FsbGV0LnYxLlRlc3RSZXNwb25zZSIegtPkkwIYOgEqIhMvYXBpL3YxL3dhbGxldC90ZXN0QjhaNmdpdGxhYi5kZWVwd2lzZG9tYWkuY29tL2lkbC9nb2xhbmcvbWd4L3dhbGxldC9wcm90by92MWIGcHJvdG8z", [file_google_api_annotations]);
15
+
16
+ /**
17
+ * @generated from message mgx.wallet.v1.TestRequest
18
+ */
19
+ export type TestRequest = Message<"mgx.wallet.v1.TestRequest"> & {
20
+ /**
21
+ * @generated from field: bool ok = 1;
22
+ */
23
+ ok: boolean;
24
+ };
25
+
26
+ /**
27
+ * Describes the message mgx.wallet.v1.TestRequest.
28
+ * Use `create(TestRequestSchema)` to create a new message.
29
+ */
30
+ export const TestRequestSchema: GenMessage<TestRequest> = /*@__PURE__*/
31
+ messageDesc(file_v1_server, 0);
32
+
33
+ /**
34
+ * @generated from message mgx.wallet.v1.TestResponse
35
+ */
36
+ export type TestResponse = Message<"mgx.wallet.v1.TestResponse"> & {
37
+ /**
38
+ * @generated from field: mgx.wallet.v1.TestEnum test_enum = 1;
39
+ */
40
+ testEnum: TestEnum;
41
+ };
42
+
43
+ /**
44
+ * Describes the message mgx.wallet.v1.TestResponse.
45
+ * Use `create(TestResponseSchema)` to create a new message.
46
+ */
47
+ export const TestResponseSchema: GenMessage<TestResponse> = /*@__PURE__*/
48
+ messageDesc(file_v1_server, 1);
49
+
50
+ /**
51
+ * @generated from enum mgx.wallet.v1.TestEnum
52
+ */
53
+ export enum TestEnum {
54
+ /**
55
+ * @generated from enum value: TEST_ENUM_UNSPECIFIED = 0;
56
+ */
57
+ UNSPECIFIED = 0,
58
+
59
+ /**
60
+ * @generated from enum value: TEST_ENUM_OK = 1;
61
+ */
62
+ OK = 1,
63
+ }
64
+
65
+ /**
66
+ * Describes the enum mgx.wallet.v1.TestEnum.
67
+ */
68
+ export const TestEnumSchema: GenEnum<TestEnum> = /*@__PURE__*/
69
+ enumDesc(file_v1_server, 0);
70
+
71
+ /**
72
+ * @generated from service mgx.wallet.v1.TestService
73
+ */
74
+ export const TestService: GenService<{
75
+ /**
76
+ * Test
77
+ *
78
+ * @generated from rpc mgx.wallet.v1.TestService.Test
79
+ */
80
+ test: {
81
+ methodKind: "unary";
82
+ input: typeof TestRequestSchema;
83
+ output: typeof TestResponseSchema;
84
+ },
85
+ }> = /*@__PURE__*/
86
+ serviceDesc(file_v1_server, 0);
87
+