@openfort/openfort-node 0.7.0 → 0.7.1
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/CHANGELOG.md +6 -0
- package/dist/index.d.mts +0 -11
- package/dist/index.d.ts +0 -11
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -14
- package/dist/index.mjs.map +1 -1
- package/examples/.env.example +1 -1
- package/examples/README.md +20 -17
- package/examples/contracts/createContract.ts +2 -2
- package/examples/{iam/pregenerateUser.ts → evm/embedded/pregenerate.ts} +2 -2
- package/examples/transactions/createTransactionIntent.ts +13 -8
- package/examples/transactions/estimateGas.ts +14 -4
- package/examples/transactions/getTransactionIntent.ts +14 -3
- package/package.json +1 -1
- package/examples/contracts/readContract.ts +0 -29
package/dist/index.mjs
CHANGED
|
@@ -374,7 +374,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
// src/version.ts
|
|
377
|
-
var VERSION = "0.7.
|
|
377
|
+
var VERSION = "0.7.1";
|
|
378
378
|
var PACKAGE = "@openfort/openfort-node";
|
|
379
379
|
|
|
380
380
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -4206,9 +4206,7 @@ var Openfort = class {
|
|
|
4206
4206
|
/** Update a contract */
|
|
4207
4207
|
update: updateContract,
|
|
4208
4208
|
/** Delete a contract */
|
|
4209
|
-
delete: deleteContract
|
|
4210
|
-
/** Read a contract */
|
|
4211
|
-
read: readContract
|
|
4209
|
+
delete: deleteContract
|
|
4212
4210
|
};
|
|
4213
4211
|
}
|
|
4214
4212
|
// ============================================
|
|
@@ -4390,7 +4388,6 @@ var Openfort = class {
|
|
|
4390
4388
|
* // V2 (default) - Users
|
|
4391
4389
|
* const users = await openfort.iam.users.list();
|
|
4392
4390
|
* const user = await openfort.iam.users.get('usr_...');
|
|
4393
|
-
* await openfort.iam.users.pregenerate({ email: 'user@example.com' }, shieldConfig);
|
|
4394
4391
|
*
|
|
4395
4392
|
* // V1 - Players
|
|
4396
4393
|
* const players = await openfort.iam.v1.players.list();
|
|
@@ -4408,15 +4405,7 @@ var Openfort = class {
|
|
|
4408
4405
|
/** Get an authenticated user by ID */
|
|
4409
4406
|
get: getAuthUser,
|
|
4410
4407
|
/** Delete a user */
|
|
4411
|
-
delete: deleteUser
|
|
4412
|
-
/**
|
|
4413
|
-
* Pre-generate a user with an embedded account before they authenticate.
|
|
4414
|
-
* Creates a user record and an embedded account.
|
|
4415
|
-
* @param req - The pregenerate user request
|
|
4416
|
-
* @param shieldConfig - Optional Shield configuration for storing the recovery share
|
|
4417
|
-
* @returns The pregenerated account response
|
|
4418
|
-
*/
|
|
4419
|
-
pregenerate: this.pregenerateUser.bind(this)
|
|
4408
|
+
delete: deleteUser
|
|
4420
4409
|
},
|
|
4421
4410
|
/** OAuth configuration */
|
|
4422
4411
|
authProvidersConfig: {
|