atlas.js-protos 0.1.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/LICENSE +21 -0
- package/README.md +85 -0
- package/dist/filetree/index.d.ts +2 -0
- package/dist/filetree/index.js +8 -0
- package/dist/filetree/index.mjs +3 -0
- package/dist/filetree/query.d.ts +1 -0
- package/dist/filetree/query.js +13 -0
- package/dist/filetree/query.mjs +2 -0
- package/dist/filetree/tx.d.ts +1 -0
- package/dist/filetree/tx.js +11 -0
- package/dist/filetree/tx.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/index.mjs +1 -0
- package/dist/storage/index.d.ts +5 -0
- package/dist/storage/index.js +16 -0
- package/dist/storage/index.mjs +6 -0
- package/dist/storage/query.d.ts +1 -0
- package/dist/storage/query.js +27 -0
- package/dist/storage/query.mjs +2 -0
- package/dist/storage/tx.d.ts +1 -0
- package/dist/storage/tx.js +21 -0
- package/dist/storage/tx.mjs +2 -0
- package/dist/types/amino/amino.d.ts +1 -0
- package/dist/types/amino/amino.js +2 -0
- package/dist/types/amino/amino.mjs +1 -0
- package/dist/types/amino/bundle.d.ts +1 -0
- package/dist/types/amino/bundle.js +41 -0
- package/dist/types/amino/bundle.mjs +5 -0
- package/dist/types/atlas/bundle.d.ts +905 -0
- package/dist/types/atlas/bundle.js +98 -0
- package/dist/types/atlas/bundle.mjs +62 -0
- package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/filetree/v1/genesis.js +107 -0
- package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
- package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
- package/dist/types/atlas/filetree/v1/params.js +94 -0
- package/dist/types/atlas/filetree/v1/params.mjs +58 -0
- package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
- package/dist/types/atlas/filetree/v1/query.js +567 -0
- package/dist/types/atlas/filetree/v1/query.mjs +531 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
- package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
- package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
- package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
- package/dist/types/atlas/filetree/v1/tree.js +124 -0
- package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
- package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
- package/dist/types/atlas/filetree/v1/tx.js +449 -0
- package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
- package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
- package/dist/types/atlas/rpc.query.d.ts +49 -0
- package/dist/types/atlas/rpc.query.js +59 -0
- package/dist/types/atlas/rpc.query.mjs +22 -0
- package/dist/types/atlas/rpc.tx.d.ts +18 -0
- package/dist/types/atlas/rpc.tx.js +52 -0
- package/dist/types/atlas/rpc.tx.mjs +15 -0
- package/dist/types/atlas/storage/v1/file.d.ts +59 -0
- package/dist/types/atlas/storage/v1/file.js +173 -0
- package/dist/types/atlas/storage/v1/file.mjs +137 -0
- package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
- package/dist/types/atlas/storage/v1/genesis.js +107 -0
- package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
- package/dist/types/atlas/storage/v1/params.d.ts +48 -0
- package/dist/types/atlas/storage/v1/params.js +127 -0
- package/dist/types/atlas/storage/v1/params.mjs +91 -0
- package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
- package/dist/types/atlas/storage/v1/proof.js +318 -0
- package/dist/types/atlas/storage/v1/proof.mjs +282 -0
- package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
- package/dist/types/atlas/storage/v1/provider.js +141 -0
- package/dist/types/atlas/storage/v1/provider.mjs +105 -0
- package/dist/types/atlas/storage/v1/query.d.ts +914 -0
- package/dist/types/atlas/storage/v1/query.js +1570 -0
- package/dist/types/atlas/storage/v1/query.mjs +1534 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
- package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
- package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
- package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
- package/dist/types/atlas/storage/v1/subscription.js +159 -0
- package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
- package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
- package/dist/types/atlas/storage/v1/tx.js +1203 -0
- package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
- package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
- package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
- package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
- package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
- package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
- package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
- package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
- package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
- package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
- package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
- package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
- package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
- package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
- package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
- package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
- package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
- package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
- package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
- package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
- package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
- package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
- package/dist/types/cosmos/bundle.d.ts +761 -0
- package/dist/types/cosmos/bundle.js +97 -0
- package/dist/types/cosmos/bundle.mjs +61 -0
- package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
- package/dist/types/cosmos/msg/v1/msg.js +2 -0
- package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
- package/dist/types/cosmos/query/v1/query.d.ts +1 -0
- package/dist/types/cosmos/query/v1/query.js +2 -0
- package/dist/types/cosmos/query/v1/query.mjs +1 -0
- package/dist/types/cosmos/rpc.query.d.ts +24 -0
- package/dist/types/cosmos/rpc.query.js +51 -0
- package/dist/types/cosmos/rpc.query.mjs +14 -0
- package/dist/types/cosmos/rpc.tx.d.ts +10 -0
- package/dist/types/cosmos/rpc.tx.js +44 -0
- package/dist/types/cosmos/rpc.tx.mjs +7 -0
- package/dist/types/cosmos_proto/bundle.d.ts +31 -0
- package/dist/types/cosmos_proto/bundle.js +41 -0
- package/dist/types/cosmos_proto/bundle.mjs +5 -0
- package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
- package/dist/types/cosmos_proto/cosmos.js +244 -0
- package/dist/types/cosmos_proto/cosmos.mjs +206 -0
- package/dist/types/extern.d.ts +11 -0
- package/dist/types/extern.js +47 -0
- package/dist/types/extern.mjs +41 -0
- package/dist/types/gogoproto/bundle.d.ts +1 -0
- package/dist/types/gogoproto/bundle.js +41 -0
- package/dist/types/gogoproto/bundle.mjs +5 -0
- package/dist/types/gogoproto/gogo.d.ts +1 -0
- package/dist/types/gogoproto/gogo.js +2 -0
- package/dist/types/gogoproto/gogo.mjs +1 -0
- package/dist/types/google/api/annotations.d.ts +1 -0
- package/dist/types/google/api/annotations.js +2 -0
- package/dist/types/google/api/annotations.mjs +1 -0
- package/dist/types/google/api/http.d.ts +1006 -0
- package/dist/types/google/api/http.js +589 -0
- package/dist/types/google/api/http.mjs +553 -0
- package/dist/types/google/bundle.d.ts +545 -0
- package/dist/types/google/bundle.js +52 -0
- package/dist/types/google/bundle.mjs +16 -0
- package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
- package/dist/types/google/protobuf/descriptor.js +4612 -0
- package/dist/types/google/protobuf/descriptor.mjs +4535 -0
- package/dist/types/google/protobuf/timestamp.d.ts +319 -0
- package/dist/types/google/protobuf/timestamp.js +197 -0
- package/dist/types/google/protobuf/timestamp.mjs +161 -0
- package/dist/types/helper-func-types.d.ts +40 -0
- package/dist/types/helper-func-types.js +57 -0
- package/dist/types/helper-func-types.mjs +53 -0
- package/dist/types/helpers.d.ts +56 -0
- package/dist/types/helpers.js +161 -0
- package/dist/types/helpers.mjs +110 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.js +32 -0
- package/dist/types/index.mjs +16 -0
- package/dist/types/registry.d.ts +35 -0
- package/dist/types/registry.js +200 -0
- package/dist/types/registry.mjs +163 -0
- package/dist/types/types.d.ts +74 -0
- package/dist/types/types.js +8 -0
- package/dist/types/types.mjs +7 -0
- package/package.json +97 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { buildQuery } from "../../../helper-func-types";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryProviderRequest, QueryProviderResponse, QueryProvidersRequest, QueryProvidersResponse, QueryFileRequest, QueryFileResponse, QueryFilesRequest, QueryFilesResponse, QuerySubscriptionRequest, QuerySubscriptionResponse, QuerySubscriptionsRequest, QuerySubscriptionsResponse, QueryChallengesRequest, QueryChallengesResponse, QueryStorageStatsRequest, QueryStorageStatsResponse, QueryFileStatsRequest, QueryFileStatsResponse, QueryStraysRequest, QueryStraysResponse } from "./query";
|
|
4
|
+
/**
|
|
5
|
+
* Parameters queries the parameters of the module.
|
|
6
|
+
* @name getParams
|
|
7
|
+
* @package atlas.storage.v1
|
|
8
|
+
* @see proto service: atlas.storage.v1.Params
|
|
9
|
+
*/
|
|
10
|
+
export const getParams = buildQuery({
|
|
11
|
+
encode: QueryParamsRequest.encode,
|
|
12
|
+
decode: QueryParamsResponse.decode,
|
|
13
|
+
service: "atlas.storage.v1.Query",
|
|
14
|
+
method: "Params",
|
|
15
|
+
deps: [QueryParamsRequest, QueryParamsResponse]
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* Provider Queries a list of Provider items.
|
|
19
|
+
* @name getProvider
|
|
20
|
+
* @package atlas.storage.v1
|
|
21
|
+
* @see proto service: atlas.storage.v1.Provider
|
|
22
|
+
*/
|
|
23
|
+
export const getProvider = buildQuery({
|
|
24
|
+
encode: QueryProviderRequest.encode,
|
|
25
|
+
decode: QueryProviderResponse.decode,
|
|
26
|
+
service: "atlas.storage.v1.Query",
|
|
27
|
+
method: "Provider",
|
|
28
|
+
deps: [QueryProviderRequest, QueryProviderResponse]
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Providers Queries a list of Providers items.
|
|
32
|
+
* @name getProviders
|
|
33
|
+
* @package atlas.storage.v1
|
|
34
|
+
* @see proto service: atlas.storage.v1.Providers
|
|
35
|
+
*/
|
|
36
|
+
export const getProviders = buildQuery({
|
|
37
|
+
encode: QueryProvidersRequest.encode,
|
|
38
|
+
decode: QueryProvidersResponse.decode,
|
|
39
|
+
service: "atlas.storage.v1.Query",
|
|
40
|
+
method: "Providers",
|
|
41
|
+
deps: [QueryProvidersRequest, QueryProvidersResponse]
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* File Queries a list of File items.
|
|
45
|
+
* @name getFile
|
|
46
|
+
* @package atlas.storage.v1
|
|
47
|
+
* @see proto service: atlas.storage.v1.File
|
|
48
|
+
*/
|
|
49
|
+
export const getFile = buildQuery({
|
|
50
|
+
encode: QueryFileRequest.encode,
|
|
51
|
+
decode: QueryFileResponse.decode,
|
|
52
|
+
service: "atlas.storage.v1.Query",
|
|
53
|
+
method: "File",
|
|
54
|
+
deps: [QueryFileRequest, QueryFileResponse]
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Files Queries a list of Files items.
|
|
58
|
+
* @name getFiles
|
|
59
|
+
* @package atlas.storage.v1
|
|
60
|
+
* @see proto service: atlas.storage.v1.Files
|
|
61
|
+
*/
|
|
62
|
+
export const getFiles = buildQuery({
|
|
63
|
+
encode: QueryFilesRequest.encode,
|
|
64
|
+
decode: QueryFilesResponse.decode,
|
|
65
|
+
service: "atlas.storage.v1.Query",
|
|
66
|
+
method: "Files",
|
|
67
|
+
deps: [QueryFilesRequest, QueryFilesResponse]
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Subscription Queries a list of Subscription items.
|
|
71
|
+
* @name getSubscription
|
|
72
|
+
* @package atlas.storage.v1
|
|
73
|
+
* @see proto service: atlas.storage.v1.Subscription
|
|
74
|
+
*/
|
|
75
|
+
export const getSubscription = buildQuery({
|
|
76
|
+
encode: QuerySubscriptionRequest.encode,
|
|
77
|
+
decode: QuerySubscriptionResponse.decode,
|
|
78
|
+
service: "atlas.storage.v1.Query",
|
|
79
|
+
method: "Subscription",
|
|
80
|
+
deps: [QuerySubscriptionRequest, QuerySubscriptionResponse]
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* Subscriptions Queries a list of Subscriptions items.
|
|
84
|
+
* @name getSubscriptions
|
|
85
|
+
* @package atlas.storage.v1
|
|
86
|
+
* @see proto service: atlas.storage.v1.Subscriptions
|
|
87
|
+
*/
|
|
88
|
+
export const getSubscriptions = buildQuery({
|
|
89
|
+
encode: QuerySubscriptionsRequest.encode,
|
|
90
|
+
decode: QuerySubscriptionsResponse.decode,
|
|
91
|
+
service: "atlas.storage.v1.Query",
|
|
92
|
+
method: "Subscriptions",
|
|
93
|
+
deps: [QuerySubscriptionsRequest, QuerySubscriptionsResponse]
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Challenges Queries a list of Challenges items.
|
|
97
|
+
* @name getChallenges
|
|
98
|
+
* @package atlas.storage.v1
|
|
99
|
+
* @see proto service: atlas.storage.v1.Challenges
|
|
100
|
+
*/
|
|
101
|
+
export const getChallenges = buildQuery({
|
|
102
|
+
encode: QueryChallengesRequest.encode,
|
|
103
|
+
decode: QueryChallengesResponse.decode,
|
|
104
|
+
service: "atlas.storage.v1.Query",
|
|
105
|
+
method: "Challenges",
|
|
106
|
+
deps: [QueryChallengesRequest, QueryChallengesResponse]
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* StorageStats Queries a list of StorageStats items.
|
|
110
|
+
* @name getStorageStats
|
|
111
|
+
* @package atlas.storage.v1
|
|
112
|
+
* @see proto service: atlas.storage.v1.StorageStats
|
|
113
|
+
*/
|
|
114
|
+
export const getStorageStats = buildQuery({
|
|
115
|
+
encode: QueryStorageStatsRequest.encode,
|
|
116
|
+
decode: QueryStorageStatsResponse.decode,
|
|
117
|
+
service: "atlas.storage.v1.Query",
|
|
118
|
+
method: "StorageStats",
|
|
119
|
+
deps: [QueryStorageStatsRequest, QueryStorageStatsResponse]
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* FileStats Queries a list of FileStats items.
|
|
123
|
+
* @name getFileStats
|
|
124
|
+
* @package atlas.storage.v1
|
|
125
|
+
* @see proto service: atlas.storage.v1.FileStats
|
|
126
|
+
*/
|
|
127
|
+
export const getFileStats = buildQuery({
|
|
128
|
+
encode: QueryFileStatsRequest.encode,
|
|
129
|
+
decode: QueryFileStatsResponse.decode,
|
|
130
|
+
service: "atlas.storage.v1.Query",
|
|
131
|
+
method: "FileStats",
|
|
132
|
+
deps: [QueryFileStatsRequest, QueryFileStatsResponse]
|
|
133
|
+
});
|
|
134
|
+
/**
|
|
135
|
+
* Strays Queries a list of Strays items.
|
|
136
|
+
* @name getStrays
|
|
137
|
+
* @package atlas.storage.v1
|
|
138
|
+
* @see proto service: atlas.storage.v1.Strays
|
|
139
|
+
*/
|
|
140
|
+
export const getStrays = buildQuery({
|
|
141
|
+
encode: QueryStraysRequest.encode,
|
|
142
|
+
decode: QueryStraysResponse.decode,
|
|
143
|
+
service: "atlas.storage.v1.Query",
|
|
144
|
+
method: "Strays",
|
|
145
|
+
deps: [QueryStraysRequest, QueryStraysResponse]
|
|
146
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
/**
|
|
3
|
+
* File defines the File message.
|
|
4
|
+
* @name StorageSubscription
|
|
5
|
+
* @package atlas.storage.v1
|
|
6
|
+
* @see proto type: atlas.storage.v1.StorageSubscription
|
|
7
|
+
*/
|
|
8
|
+
export interface StorageSubscription {
|
|
9
|
+
id: string;
|
|
10
|
+
start: Date;
|
|
11
|
+
end: Date;
|
|
12
|
+
status: string;
|
|
13
|
+
spaceAvailable: number;
|
|
14
|
+
spaceUsed: number;
|
|
15
|
+
replicaSpaceUsed: number;
|
|
16
|
+
credits: string;
|
|
17
|
+
}
|
|
18
|
+
export interface StorageSubscriptionProtoMsg {
|
|
19
|
+
typeUrl: "/atlas.storage.v1.StorageSubscription";
|
|
20
|
+
value: Uint8Array;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* File defines the File message.
|
|
24
|
+
* @name StorageSubscriptionSDKType
|
|
25
|
+
* @package atlas.storage.v1
|
|
26
|
+
* @see proto type: atlas.storage.v1.StorageSubscription
|
|
27
|
+
*/
|
|
28
|
+
export interface StorageSubscriptionSDKType {
|
|
29
|
+
id: string;
|
|
30
|
+
start: Date;
|
|
31
|
+
end: Date;
|
|
32
|
+
status: string;
|
|
33
|
+
spaceAvailable: number;
|
|
34
|
+
spaceUsed: number;
|
|
35
|
+
replicaSpaceUsed: number;
|
|
36
|
+
credits: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* File defines the File message.
|
|
40
|
+
* @name StorageSubscription
|
|
41
|
+
* @package atlas.storage.v1
|
|
42
|
+
* @see proto type: atlas.storage.v1.StorageSubscription
|
|
43
|
+
*/
|
|
44
|
+
export declare const StorageSubscription: {
|
|
45
|
+
typeUrl: string;
|
|
46
|
+
is(o: any): o is StorageSubscription;
|
|
47
|
+
isSDK(o: any): o is StorageSubscriptionSDKType;
|
|
48
|
+
encode(message: StorageSubscription, writer?: _m0.Writer): _m0.Writer;
|
|
49
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StorageSubscription;
|
|
50
|
+
fromPartial(object: Partial<StorageSubscription>): StorageSubscription;
|
|
51
|
+
fromProtoMsg(message: StorageSubscriptionProtoMsg): StorageSubscription;
|
|
52
|
+
toProto(message: StorageSubscription): Uint8Array;
|
|
53
|
+
toProtoMsg(message: StorageSubscription): StorageSubscriptionProtoMsg;
|
|
54
|
+
registerTypeUrl(): void;
|
|
55
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.StorageSubscription = void 0;
|
|
37
|
+
//@ts-nocheck
|
|
38
|
+
const timestamp_1 = require("../../../google/protobuf/timestamp");
|
|
39
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
40
|
+
const helpers_1 = require("../../../helpers");
|
|
41
|
+
const registry_1 = require("../../../registry");
|
|
42
|
+
function createBaseStorageSubscription() {
|
|
43
|
+
return {
|
|
44
|
+
id: "",
|
|
45
|
+
start: new Date(),
|
|
46
|
+
end: new Date(),
|
|
47
|
+
status: "",
|
|
48
|
+
spaceAvailable: 0,
|
|
49
|
+
spaceUsed: 0,
|
|
50
|
+
replicaSpaceUsed: 0,
|
|
51
|
+
credits: ""
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* File defines the File message.
|
|
56
|
+
* @name StorageSubscription
|
|
57
|
+
* @package atlas.storage.v1
|
|
58
|
+
* @see proto type: atlas.storage.v1.StorageSubscription
|
|
59
|
+
*/
|
|
60
|
+
exports.StorageSubscription = {
|
|
61
|
+
typeUrl: "/atlas.storage.v1.StorageSubscription",
|
|
62
|
+
is(o) {
|
|
63
|
+
return o && (o.$typeUrl === exports.StorageSubscription.typeUrl || typeof o.id === "string" && timestamp_1.Timestamp.is(o.start) && timestamp_1.Timestamp.is(o.end) && typeof o.status === "string" && typeof o.spaceAvailable === "bigint" && typeof o.spaceUsed === "bigint" && typeof o.replicaSpaceUsed === "bigint" && typeof o.credits === "string");
|
|
64
|
+
},
|
|
65
|
+
isSDK(o) {
|
|
66
|
+
return o && (o.$typeUrl === exports.StorageSubscription.typeUrl || typeof o.id === "string" && timestamp_1.Timestamp.isSDK(o.start) && timestamp_1.Timestamp.isSDK(o.end) && typeof o.status === "string" && typeof o.spaceAvailable === "bigint" && typeof o.spaceUsed === "bigint" && typeof o.replicaSpaceUsed === "bigint" && typeof o.credits === "string");
|
|
67
|
+
},
|
|
68
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
69
|
+
if (message.id !== "") {
|
|
70
|
+
writer.uint32(10).string(message.id);
|
|
71
|
+
}
|
|
72
|
+
if (message.start !== undefined) {
|
|
73
|
+
timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.start), writer.uint32(18).fork()).ldelim();
|
|
74
|
+
}
|
|
75
|
+
if (message.end !== undefined) {
|
|
76
|
+
timestamp_1.Timestamp.encode((0, helpers_1.toTimestamp)(message.end), writer.uint32(26).fork()).ldelim();
|
|
77
|
+
}
|
|
78
|
+
if (message.status !== "") {
|
|
79
|
+
writer.uint32(34).string(message.status);
|
|
80
|
+
}
|
|
81
|
+
if (message.spaceAvailable !== 0) {
|
|
82
|
+
writer.uint32(40).int64(message.spaceAvailable);
|
|
83
|
+
}
|
|
84
|
+
if (message.spaceUsed !== 0) {
|
|
85
|
+
writer.uint32(48).int64(message.spaceUsed);
|
|
86
|
+
}
|
|
87
|
+
if (message.replicaSpaceUsed !== 0) {
|
|
88
|
+
writer.uint32(56).int64(message.replicaSpaceUsed);
|
|
89
|
+
}
|
|
90
|
+
if (message.credits !== "") {
|
|
91
|
+
writer.uint32(66).string(message.credits);
|
|
92
|
+
}
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
decode(input, length) {
|
|
96
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBaseStorageSubscription();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
case 1:
|
|
103
|
+
message.id = reader.string();
|
|
104
|
+
break;
|
|
105
|
+
case 2:
|
|
106
|
+
message.start = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
107
|
+
break;
|
|
108
|
+
case 3:
|
|
109
|
+
message.end = (0, helpers_1.fromTimestamp)(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
110
|
+
break;
|
|
111
|
+
case 4:
|
|
112
|
+
message.status = reader.string();
|
|
113
|
+
break;
|
|
114
|
+
case 5:
|
|
115
|
+
message.spaceAvailable = Number(reader.int64().toString());
|
|
116
|
+
break;
|
|
117
|
+
case 6:
|
|
118
|
+
message.spaceUsed = Number(reader.int64().toString());
|
|
119
|
+
break;
|
|
120
|
+
case 7:
|
|
121
|
+
message.replicaSpaceUsed = Number(reader.int64().toString());
|
|
122
|
+
break;
|
|
123
|
+
case 8:
|
|
124
|
+
message.credits = reader.string();
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromPartial(object) {
|
|
134
|
+
const message = createBaseStorageSubscription();
|
|
135
|
+
message.id = object.id ?? "";
|
|
136
|
+
message.start = object.start ?? undefined;
|
|
137
|
+
message.end = object.end ?? undefined;
|
|
138
|
+
message.status = object.status ?? "";
|
|
139
|
+
message.spaceAvailable = object.spaceAvailable !== undefined && object.spaceAvailable !== null ? Number(object.spaceAvailable.toString()) : 0;
|
|
140
|
+
message.spaceUsed = object.spaceUsed !== undefined && object.spaceUsed !== null ? Number(object.spaceUsed.toString()) : 0;
|
|
141
|
+
message.replicaSpaceUsed = object.replicaSpaceUsed !== undefined && object.replicaSpaceUsed !== null ? Number(object.replicaSpaceUsed.toString()) : 0;
|
|
142
|
+
message.credits = object.credits ?? "";
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
fromProtoMsg(message) {
|
|
146
|
+
return exports.StorageSubscription.decode(message.value);
|
|
147
|
+
},
|
|
148
|
+
toProto(message) {
|
|
149
|
+
return exports.StorageSubscription.encode(message).finish();
|
|
150
|
+
},
|
|
151
|
+
toProtoMsg(message) {
|
|
152
|
+
return {
|
|
153
|
+
typeUrl: "/atlas.storage.v1.StorageSubscription",
|
|
154
|
+
value: exports.StorageSubscription.encode(message).finish()
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
registerTypeUrl() { }
|
|
158
|
+
};
|
|
159
|
+
registry_1.GlobalDecoderRegistry.register(exports.StorageSubscription.typeUrl, exports.StorageSubscription);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
import { toTimestamp, fromTimestamp } from "../../../helpers";
|
|
5
|
+
import { GlobalDecoderRegistry } from "../../../registry";
|
|
6
|
+
function createBaseStorageSubscription() {
|
|
7
|
+
return {
|
|
8
|
+
id: "",
|
|
9
|
+
start: new Date(),
|
|
10
|
+
end: new Date(),
|
|
11
|
+
status: "",
|
|
12
|
+
spaceAvailable: 0,
|
|
13
|
+
spaceUsed: 0,
|
|
14
|
+
replicaSpaceUsed: 0,
|
|
15
|
+
credits: ""
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* File defines the File message.
|
|
20
|
+
* @name StorageSubscription
|
|
21
|
+
* @package atlas.storage.v1
|
|
22
|
+
* @see proto type: atlas.storage.v1.StorageSubscription
|
|
23
|
+
*/
|
|
24
|
+
export const StorageSubscription = {
|
|
25
|
+
typeUrl: "/atlas.storage.v1.StorageSubscription",
|
|
26
|
+
is(o) {
|
|
27
|
+
return o && (o.$typeUrl === StorageSubscription.typeUrl || typeof o.id === "string" && Timestamp.is(o.start) && Timestamp.is(o.end) && typeof o.status === "string" && typeof o.spaceAvailable === "bigint" && typeof o.spaceUsed === "bigint" && typeof o.replicaSpaceUsed === "bigint" && typeof o.credits === "string");
|
|
28
|
+
},
|
|
29
|
+
isSDK(o) {
|
|
30
|
+
return o && (o.$typeUrl === StorageSubscription.typeUrl || typeof o.id === "string" && Timestamp.isSDK(o.start) && Timestamp.isSDK(o.end) && typeof o.status === "string" && typeof o.spaceAvailable === "bigint" && typeof o.spaceUsed === "bigint" && typeof o.replicaSpaceUsed === "bigint" && typeof o.credits === "string");
|
|
31
|
+
},
|
|
32
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
33
|
+
if (message.id !== "") {
|
|
34
|
+
writer.uint32(10).string(message.id);
|
|
35
|
+
}
|
|
36
|
+
if (message.start !== undefined) {
|
|
37
|
+
Timestamp.encode(toTimestamp(message.start), writer.uint32(18).fork()).ldelim();
|
|
38
|
+
}
|
|
39
|
+
if (message.end !== undefined) {
|
|
40
|
+
Timestamp.encode(toTimestamp(message.end), writer.uint32(26).fork()).ldelim();
|
|
41
|
+
}
|
|
42
|
+
if (message.status !== "") {
|
|
43
|
+
writer.uint32(34).string(message.status);
|
|
44
|
+
}
|
|
45
|
+
if (message.spaceAvailable !== 0) {
|
|
46
|
+
writer.uint32(40).int64(message.spaceAvailable);
|
|
47
|
+
}
|
|
48
|
+
if (message.spaceUsed !== 0) {
|
|
49
|
+
writer.uint32(48).int64(message.spaceUsed);
|
|
50
|
+
}
|
|
51
|
+
if (message.replicaSpaceUsed !== 0) {
|
|
52
|
+
writer.uint32(56).int64(message.replicaSpaceUsed);
|
|
53
|
+
}
|
|
54
|
+
if (message.credits !== "") {
|
|
55
|
+
writer.uint32(66).string(message.credits);
|
|
56
|
+
}
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
decode(input, length) {
|
|
60
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
61
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
62
|
+
const message = createBaseStorageSubscription();
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
const tag = reader.uint32();
|
|
65
|
+
switch (tag >>> 3) {
|
|
66
|
+
case 1:
|
|
67
|
+
message.id = reader.string();
|
|
68
|
+
break;
|
|
69
|
+
case 2:
|
|
70
|
+
message.start = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
71
|
+
break;
|
|
72
|
+
case 3:
|
|
73
|
+
message.end = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
74
|
+
break;
|
|
75
|
+
case 4:
|
|
76
|
+
message.status = reader.string();
|
|
77
|
+
break;
|
|
78
|
+
case 5:
|
|
79
|
+
message.spaceAvailable = Number(reader.int64().toString());
|
|
80
|
+
break;
|
|
81
|
+
case 6:
|
|
82
|
+
message.spaceUsed = Number(reader.int64().toString());
|
|
83
|
+
break;
|
|
84
|
+
case 7:
|
|
85
|
+
message.replicaSpaceUsed = Number(reader.int64().toString());
|
|
86
|
+
break;
|
|
87
|
+
case 8:
|
|
88
|
+
message.credits = reader.string();
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
reader.skipType(tag & 7);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
fromPartial(object) {
|
|
98
|
+
const message = createBaseStorageSubscription();
|
|
99
|
+
message.id = object.id ?? "";
|
|
100
|
+
message.start = object.start ?? undefined;
|
|
101
|
+
message.end = object.end ?? undefined;
|
|
102
|
+
message.status = object.status ?? "";
|
|
103
|
+
message.spaceAvailable = object.spaceAvailable !== undefined && object.spaceAvailable !== null ? Number(object.spaceAvailable.toString()) : 0;
|
|
104
|
+
message.spaceUsed = object.spaceUsed !== undefined && object.spaceUsed !== null ? Number(object.spaceUsed.toString()) : 0;
|
|
105
|
+
message.replicaSpaceUsed = object.replicaSpaceUsed !== undefined && object.replicaSpaceUsed !== null ? Number(object.replicaSpaceUsed.toString()) : 0;
|
|
106
|
+
message.credits = object.credits ?? "";
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromProtoMsg(message) {
|
|
110
|
+
return StorageSubscription.decode(message.value);
|
|
111
|
+
},
|
|
112
|
+
toProto(message) {
|
|
113
|
+
return StorageSubscription.encode(message).finish();
|
|
114
|
+
},
|
|
115
|
+
toProtoMsg(message) {
|
|
116
|
+
return {
|
|
117
|
+
typeUrl: "/atlas.storage.v1.StorageSubscription",
|
|
118
|
+
value: StorageSubscription.encode(message).finish()
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
registerTypeUrl() { }
|
|
122
|
+
};
|
|
123
|
+
GlobalDecoderRegistry.register(StorageSubscription.typeUrl, StorageSubscription);
|