@openfort/openfort-node 0.1.8
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/README.md +46 -0
- package/dist/api/apis.d.ts +26 -0
- package/dist/api/apis.js +54 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/contractsApi.d.ts +82 -0
- package/dist/api/contractsApi.js +317 -0
- package/dist/api/contractsApi.js.map +1 -0
- package/dist/api/defaultApi.d.ts +142 -0
- package/dist/api/defaultApi.js +653 -0
- package/dist/api/defaultApi.js.map +1 -0
- package/dist/api/logsApi.d.ts +52 -0
- package/dist/api/logsApi.js +155 -0
- package/dist/api/logsApi.js.map +1 -0
- package/dist/api/playersApi.d.ts +157 -0
- package/dist/api/playersApi.js +722 -0
- package/dist/api/playersApi.js.map +1 -0
- package/dist/api/policiesApi.d.ts +175 -0
- package/dist/api/policiesApi.js +812 -0
- package/dist/api/policiesApi.js.map +1 -0
- package/dist/api/projectsApi.d.ts +104 -0
- package/dist/api/projectsApi.js +450 -0
- package/dist/api/projectsApi.js.map +1 -0
- package/dist/api/sessionsApi.d.ts +70 -0
- package/dist/api/sessionsApi.js +276 -0
- package/dist/api/sessionsApi.js.map +1 -0
- package/dist/api/transactionIntentsApi.d.ts +124 -0
- package/dist/api/transactionIntentsApi.js +565 -0
- package/dist/api/transactionIntentsApi.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/model/accountResponse.d.ts +33 -0
- package/dist/model/accountResponse.js +64 -0
- package/dist/model/accountResponse.js.map +1 -0
- package/dist/model/accountsResponse.d.ts +28 -0
- package/dist/model/accountsResponse.js +39 -0
- package/dist/model/accountsResponse.js.map +1 -0
- package/dist/model/allowFunctionResponse.d.ts +31 -0
- package/dist/model/allowFunctionResponse.js +54 -0
- package/dist/model/allowFunctionResponse.js.map +1 -0
- package/dist/model/allowFunctionsResponse.d.ts +28 -0
- package/dist/model/allowFunctionsResponse.js +39 -0
- package/dist/model/allowFunctionsResponse.js.map +1 -0
- package/dist/model/apiKeyResponse.d.ts +28 -0
- package/dist/model/apiKeyResponse.js +44 -0
- package/dist/model/apiKeyResponse.js.map +1 -0
- package/dist/model/assetInventory.d.ts +34 -0
- package/dist/model/assetInventory.js +44 -0
- package/dist/model/assetInventory.js.map +1 -0
- package/dist/model/assetType.d.ts +17 -0
- package/dist/model/assetType.js +22 -0
- package/dist/model/assetType.js.map +1 -0
- package/dist/model/authResponse.d.ts +26 -0
- package/dist/model/authResponse.js +34 -0
- package/dist/model/authResponse.js.map +1 -0
- package/dist/model/contractResponse.d.ts +33 -0
- package/dist/model/contractResponse.js +64 -0
- package/dist/model/contractResponse.js.map +1 -0
- package/dist/model/contractResponseAbi.d.ts +24 -0
- package/dist/model/contractResponseAbi.js +23 -0
- package/dist/model/contractResponseAbi.js.map +1 -0
- package/dist/model/contractResponseAbiAnyOfInner.d.ts +34 -0
- package/dist/model/contractResponseAbiAnyOfInner.js +74 -0
- package/dist/model/contractResponseAbiAnyOfInner.js.map +1 -0
- package/dist/model/contractsResponse.d.ts +28 -0
- package/dist/model/contractsResponse.js +39 -0
- package/dist/model/contractsResponse.js.map +1 -0
- package/dist/model/createSessionPlayerRequest.d.ts +31 -0
- package/dist/model/createSessionPlayerRequest.js +59 -0
- package/dist/model/createSessionPlayerRequest.js.map +1 -0
- package/dist/model/fragment.d.ts +29 -0
- package/dist/model/fragment.js +44 -0
- package/dist/model/fragment.js.map +1 -0
- package/dist/model/gas.d.ts +29 -0
- package/dist/model/gas.js +39 -0
- package/dist/model/gas.js.map +1 -0
- package/dist/model/getProjectResponse.d.ts +27 -0
- package/dist/model/getProjectResponse.js +39 -0
- package/dist/model/getProjectResponse.js.map +1 -0
- package/dist/model/interaction.d.ts +27 -0
- package/dist/model/interaction.js +39 -0
- package/dist/model/interaction.js.map +1 -0
- package/dist/model/inventoryResponse.d.ts +29 -0
- package/dist/model/inventoryResponse.js +44 -0
- package/dist/model/inventoryResponse.js.map +1 -0
- package/dist/model/jsonFragment.d.ts +33 -0
- package/dist/model/jsonFragment.js +69 -0
- package/dist/model/jsonFragment.js.map +1 -0
- package/dist/model/log.d.ts +31 -0
- package/dist/model/log.js +59 -0
- package/dist/model/log.js.map +1 -0
- package/dist/model/models.d.ts +83 -0
- package/dist/model/models.js +324 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/paramType.d.ts +32 -0
- package/dist/model/paramType.js +64 -0
- package/dist/model/paramType.js.map +1 -0
- package/dist/model/playerResponse.d.ts +36 -0
- package/dist/model/playerResponse.js +74 -0
- package/dist/model/playerResponse.js.map +1 -0
- package/dist/model/playersResponse.d.ts +28 -0
- package/dist/model/playersResponse.js +39 -0
- package/dist/model/playersResponse.js.map +1 -0
- package/dist/model/policiesResponse.d.ts +28 -0
- package/dist/model/policiesResponse.js +39 -0
- package/dist/model/policiesResponse.js.map +1 -0
- package/dist/model/policyResponse.d.ts +34 -0
- package/dist/model/policyResponse.js +64 -0
- package/dist/model/policyResponse.js.map +1 -0
- package/dist/model/projectLogs.d.ts +28 -0
- package/dist/model/projectLogs.js +39 -0
- package/dist/model/projectLogs.js.map +1 -0
- package/dist/model/projectResponse.d.ts +32 -0
- package/dist/model/projectResponse.js +59 -0
- package/dist/model/projectResponse.js.map +1 -0
- package/dist/model/projectsResponse.d.ts +28 -0
- package/dist/model/projectsResponse.js +39 -0
- package/dist/model/projectsResponse.js.map +1 -0
- package/dist/model/responseResponse.d.ts +32 -0
- package/dist/model/responseResponse.js +64 -0
- package/dist/model/responseResponse.js.map +1 -0
- package/dist/model/sessionResponse.d.ts +32 -0
- package/dist/model/sessionResponse.js +64 -0
- package/dist/model/sessionResponse.js.map +1 -0
- package/dist/model/strategy.d.ts +27 -0
- package/dist/model/strategy.js +39 -0
- package/dist/model/strategy.js.map +1 -0
- package/dist/model/sumGas.d.ts +27 -0
- package/dist/model/sumGas.js +39 -0
- package/dist/model/sumGas.js.map +1 -0
- package/dist/model/transactionIntentResponse.d.ts +40 -0
- package/dist/model/transactionIntentResponse.js +89 -0
- package/dist/model/transactionIntentResponse.js.map +1 -0
- package/dist/model/transactionIntentsResponse.d.ts +28 -0
- package/dist/model/transactionIntentsResponse.js +39 -0
- package/dist/model/transactionIntentsResponse.js.map +1 -0
- package/dist/model/userOpResult.d.ts +26 -0
- package/dist/model/userOpResult.js +34 -0
- package/dist/model/userOpResult.js.map +1 -0
- package/package.json +40 -0
- package/tsconfig.json +38 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Openfort API
|
|
3
|
+
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: founders@openfort.xyz
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/// <reference types="node" />
|
|
13
|
+
import http from "http";
|
|
14
|
+
import { AccountResponse } from "../model/accountResponse";
|
|
15
|
+
import { AccountsResponse } from "../model/accountsResponse";
|
|
16
|
+
import { AllowFunctionResponse } from "../model/allowFunctionResponse";
|
|
17
|
+
import { AllowFunctionsResponse } from "../model/allowFunctionsResponse";
|
|
18
|
+
import { InventoryResponse } from "../model/inventoryResponse";
|
|
19
|
+
import { Authentication, Interceptor } from "../model/models";
|
|
20
|
+
import { HttpBearerAuth } from "../model/models";
|
|
21
|
+
export declare enum DefaultApiApiKeys {
|
|
22
|
+
}
|
|
23
|
+
export declare class DefaultApi {
|
|
24
|
+
protected _basePath: string;
|
|
25
|
+
protected _defaultHeaders: any;
|
|
26
|
+
protected _useQuerystring: boolean;
|
|
27
|
+
protected authentications: {
|
|
28
|
+
default: Authentication;
|
|
29
|
+
pk: HttpBearerAuth;
|
|
30
|
+
};
|
|
31
|
+
protected interceptors: Interceptor[];
|
|
32
|
+
constructor(basePath?: string);
|
|
33
|
+
set useQuerystring(value: boolean);
|
|
34
|
+
set basePath(basePath: string);
|
|
35
|
+
set defaultHeaders(defaultHeaders: any);
|
|
36
|
+
get defaultHeaders(): any;
|
|
37
|
+
get basePath(): string;
|
|
38
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
39
|
+
setApiKey(key: DefaultApiApiKeys, value: string): void;
|
|
40
|
+
set accessToken(accessToken: string | (() => string));
|
|
41
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
42
|
+
/**
|
|
43
|
+
* Creates an account object.
|
|
44
|
+
* @param chainId The chain_id
|
|
45
|
+
* @param player The player ID
|
|
46
|
+
* @param project The project ID
|
|
47
|
+
* @param externalOwnerAddress The address of the external owner
|
|
48
|
+
*/
|
|
49
|
+
createAccount(chainId: number, player: string, project?: string, externalOwnerAddress?: string, options?: {
|
|
50
|
+
headers: {
|
|
51
|
+
[name: string]: string;
|
|
52
|
+
};
|
|
53
|
+
}): Promise<{
|
|
54
|
+
response: http.IncomingMessage;
|
|
55
|
+
body: AccountResponse;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates an allow function object.
|
|
59
|
+
* @param type
|
|
60
|
+
* @param policy
|
|
61
|
+
* @param functionName
|
|
62
|
+
* @param project
|
|
63
|
+
* @param contract
|
|
64
|
+
*/
|
|
65
|
+
createAllowFunction(type: string, policy: string, functionName?: string, project?: string, contract?: string, options?: {
|
|
66
|
+
headers: {
|
|
67
|
+
[name: string]: string;
|
|
68
|
+
};
|
|
69
|
+
}): Promise<{
|
|
70
|
+
response: http.IncomingMessage;
|
|
71
|
+
body: AllowFunctionResponse;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
|
|
75
|
+
* @param id Specifies the unique account ID.
|
|
76
|
+
* @param project Specifies the unique project ID.
|
|
77
|
+
*/
|
|
78
|
+
getAccount(id: string, project?: string, options?: {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: string;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<{
|
|
83
|
+
response: http.IncomingMessage;
|
|
84
|
+
body: AccountResponse;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves the inventory of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
|
|
88
|
+
* @param id Specifies the unique account ID.
|
|
89
|
+
* @param project Specifies the unique project ID.
|
|
90
|
+
*/
|
|
91
|
+
getAccountInventory(id: string, project?: string, options?: {
|
|
92
|
+
headers: {
|
|
93
|
+
[name: string]: string;
|
|
94
|
+
};
|
|
95
|
+
}): Promise<{
|
|
96
|
+
response: http.IncomingMessage;
|
|
97
|
+
body: InventoryResponse;
|
|
98
|
+
}>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns a list of your accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
|
|
101
|
+
* @param player Specifies the unique player ID.
|
|
102
|
+
* @param project Specifies the unique project ID.
|
|
103
|
+
*/
|
|
104
|
+
getAccounts(player: string, project?: string, options?: {
|
|
105
|
+
headers: {
|
|
106
|
+
[name: string]: string;
|
|
107
|
+
};
|
|
108
|
+
}): Promise<{
|
|
109
|
+
response: http.IncomingMessage;
|
|
110
|
+
body: AccountsResponse;
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns a list of your allow functions for the given policy. The allow functions are returned sorted by creation date, with the most recently created allow functions appearing first.
|
|
114
|
+
* @param project Specifies the unique project ID.
|
|
115
|
+
* @param policy Specifies the unique policy ID.
|
|
116
|
+
*/
|
|
117
|
+
getAllowFunctions(project?: string, policy?: string, options?: {
|
|
118
|
+
headers: {
|
|
119
|
+
[name: string]: string;
|
|
120
|
+
};
|
|
121
|
+
}): Promise<{
|
|
122
|
+
response: http.IncomingMessage;
|
|
123
|
+
body: AllowFunctionsResponse;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Updates your allow functions object.
|
|
127
|
+
* @param id Specifies the unique allow function ID.
|
|
128
|
+
* @param type
|
|
129
|
+
* @param policy
|
|
130
|
+
* @param functionName
|
|
131
|
+
* @param project
|
|
132
|
+
* @param contract
|
|
133
|
+
*/
|
|
134
|
+
updateAllowFunction(id: string, type: string, policy: string, functionName?: string, project?: string, contract?: string, options?: {
|
|
135
|
+
headers: {
|
|
136
|
+
[name: string]: string;
|
|
137
|
+
};
|
|
138
|
+
}): Promise<{
|
|
139
|
+
response: http.IncomingMessage;
|
|
140
|
+
body: AllowFunctionResponse;
|
|
141
|
+
}>;
|
|
142
|
+
}
|