@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.
Files changed (142) hide show
  1. package/README.md +46 -0
  2. package/dist/api/apis.d.ts +26 -0
  3. package/dist/api/apis.js +54 -0
  4. package/dist/api/apis.js.map +1 -0
  5. package/dist/api/contractsApi.d.ts +82 -0
  6. package/dist/api/contractsApi.js +317 -0
  7. package/dist/api/contractsApi.js.map +1 -0
  8. package/dist/api/defaultApi.d.ts +142 -0
  9. package/dist/api/defaultApi.js +653 -0
  10. package/dist/api/defaultApi.js.map +1 -0
  11. package/dist/api/logsApi.d.ts +52 -0
  12. package/dist/api/logsApi.js +155 -0
  13. package/dist/api/logsApi.js.map +1 -0
  14. package/dist/api/playersApi.d.ts +157 -0
  15. package/dist/api/playersApi.js +722 -0
  16. package/dist/api/playersApi.js.map +1 -0
  17. package/dist/api/policiesApi.d.ts +175 -0
  18. package/dist/api/policiesApi.js +812 -0
  19. package/dist/api/policiesApi.js.map +1 -0
  20. package/dist/api/projectsApi.d.ts +104 -0
  21. package/dist/api/projectsApi.js +450 -0
  22. package/dist/api/projectsApi.js.map +1 -0
  23. package/dist/api/sessionsApi.d.ts +70 -0
  24. package/dist/api/sessionsApi.js +276 -0
  25. package/dist/api/sessionsApi.js.map +1 -0
  26. package/dist/api/transactionIntentsApi.d.ts +124 -0
  27. package/dist/api/transactionIntentsApi.js +565 -0
  28. package/dist/api/transactionIntentsApi.js.map +1 -0
  29. package/dist/index.d.ts +26 -0
  30. package/dist/index.js +66 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/model/accountResponse.d.ts +33 -0
  33. package/dist/model/accountResponse.js +64 -0
  34. package/dist/model/accountResponse.js.map +1 -0
  35. package/dist/model/accountsResponse.d.ts +28 -0
  36. package/dist/model/accountsResponse.js +39 -0
  37. package/dist/model/accountsResponse.js.map +1 -0
  38. package/dist/model/allowFunctionResponse.d.ts +31 -0
  39. package/dist/model/allowFunctionResponse.js +54 -0
  40. package/dist/model/allowFunctionResponse.js.map +1 -0
  41. package/dist/model/allowFunctionsResponse.d.ts +28 -0
  42. package/dist/model/allowFunctionsResponse.js +39 -0
  43. package/dist/model/allowFunctionsResponse.js.map +1 -0
  44. package/dist/model/apiKeyResponse.d.ts +28 -0
  45. package/dist/model/apiKeyResponse.js +44 -0
  46. package/dist/model/apiKeyResponse.js.map +1 -0
  47. package/dist/model/assetInventory.d.ts +34 -0
  48. package/dist/model/assetInventory.js +44 -0
  49. package/dist/model/assetInventory.js.map +1 -0
  50. package/dist/model/assetType.d.ts +17 -0
  51. package/dist/model/assetType.js +22 -0
  52. package/dist/model/assetType.js.map +1 -0
  53. package/dist/model/authResponse.d.ts +26 -0
  54. package/dist/model/authResponse.js +34 -0
  55. package/dist/model/authResponse.js.map +1 -0
  56. package/dist/model/contractResponse.d.ts +33 -0
  57. package/dist/model/contractResponse.js +64 -0
  58. package/dist/model/contractResponse.js.map +1 -0
  59. package/dist/model/contractResponseAbi.d.ts +24 -0
  60. package/dist/model/contractResponseAbi.js +23 -0
  61. package/dist/model/contractResponseAbi.js.map +1 -0
  62. package/dist/model/contractResponseAbiAnyOfInner.d.ts +34 -0
  63. package/dist/model/contractResponseAbiAnyOfInner.js +74 -0
  64. package/dist/model/contractResponseAbiAnyOfInner.js.map +1 -0
  65. package/dist/model/contractsResponse.d.ts +28 -0
  66. package/dist/model/contractsResponse.js +39 -0
  67. package/dist/model/contractsResponse.js.map +1 -0
  68. package/dist/model/createSessionPlayerRequest.d.ts +31 -0
  69. package/dist/model/createSessionPlayerRequest.js +59 -0
  70. package/dist/model/createSessionPlayerRequest.js.map +1 -0
  71. package/dist/model/fragment.d.ts +29 -0
  72. package/dist/model/fragment.js +44 -0
  73. package/dist/model/fragment.js.map +1 -0
  74. package/dist/model/gas.d.ts +29 -0
  75. package/dist/model/gas.js +39 -0
  76. package/dist/model/gas.js.map +1 -0
  77. package/dist/model/getProjectResponse.d.ts +27 -0
  78. package/dist/model/getProjectResponse.js +39 -0
  79. package/dist/model/getProjectResponse.js.map +1 -0
  80. package/dist/model/interaction.d.ts +27 -0
  81. package/dist/model/interaction.js +39 -0
  82. package/dist/model/interaction.js.map +1 -0
  83. package/dist/model/inventoryResponse.d.ts +29 -0
  84. package/dist/model/inventoryResponse.js +44 -0
  85. package/dist/model/inventoryResponse.js.map +1 -0
  86. package/dist/model/jsonFragment.d.ts +33 -0
  87. package/dist/model/jsonFragment.js +69 -0
  88. package/dist/model/jsonFragment.js.map +1 -0
  89. package/dist/model/log.d.ts +31 -0
  90. package/dist/model/log.js +59 -0
  91. package/dist/model/log.js.map +1 -0
  92. package/dist/model/models.d.ts +83 -0
  93. package/dist/model/models.js +324 -0
  94. package/dist/model/models.js.map +1 -0
  95. package/dist/model/paramType.d.ts +32 -0
  96. package/dist/model/paramType.js +64 -0
  97. package/dist/model/paramType.js.map +1 -0
  98. package/dist/model/playerResponse.d.ts +36 -0
  99. package/dist/model/playerResponse.js +74 -0
  100. package/dist/model/playerResponse.js.map +1 -0
  101. package/dist/model/playersResponse.d.ts +28 -0
  102. package/dist/model/playersResponse.js +39 -0
  103. package/dist/model/playersResponse.js.map +1 -0
  104. package/dist/model/policiesResponse.d.ts +28 -0
  105. package/dist/model/policiesResponse.js +39 -0
  106. package/dist/model/policiesResponse.js.map +1 -0
  107. package/dist/model/policyResponse.d.ts +34 -0
  108. package/dist/model/policyResponse.js +64 -0
  109. package/dist/model/policyResponse.js.map +1 -0
  110. package/dist/model/projectLogs.d.ts +28 -0
  111. package/dist/model/projectLogs.js +39 -0
  112. package/dist/model/projectLogs.js.map +1 -0
  113. package/dist/model/projectResponse.d.ts +32 -0
  114. package/dist/model/projectResponse.js +59 -0
  115. package/dist/model/projectResponse.js.map +1 -0
  116. package/dist/model/projectsResponse.d.ts +28 -0
  117. package/dist/model/projectsResponse.js +39 -0
  118. package/dist/model/projectsResponse.js.map +1 -0
  119. package/dist/model/responseResponse.d.ts +32 -0
  120. package/dist/model/responseResponse.js +64 -0
  121. package/dist/model/responseResponse.js.map +1 -0
  122. package/dist/model/sessionResponse.d.ts +32 -0
  123. package/dist/model/sessionResponse.js +64 -0
  124. package/dist/model/sessionResponse.js.map +1 -0
  125. package/dist/model/strategy.d.ts +27 -0
  126. package/dist/model/strategy.js +39 -0
  127. package/dist/model/strategy.js.map +1 -0
  128. package/dist/model/sumGas.d.ts +27 -0
  129. package/dist/model/sumGas.js +39 -0
  130. package/dist/model/sumGas.js.map +1 -0
  131. package/dist/model/transactionIntentResponse.d.ts +40 -0
  132. package/dist/model/transactionIntentResponse.js +89 -0
  133. package/dist/model/transactionIntentResponse.js.map +1 -0
  134. package/dist/model/transactionIntentsResponse.d.ts +28 -0
  135. package/dist/model/transactionIntentsResponse.js +39 -0
  136. package/dist/model/transactionIntentsResponse.js.map +1 -0
  137. package/dist/model/userOpResult.d.ts +26 -0
  138. package/dist/model/userOpResult.js +34 -0
  139. package/dist/model/userOpResult.js.map +1 -0
  140. package/package.json +40 -0
  141. package/tsconfig.json +38 -0
  142. 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
+ }