@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#44](https://github.com/openfort-xyz/openfort-node/pull/44) [`c59124b217a20296358e181425be37e80b9e176d`](https://github.com/openfort-xyz/openfort-node/commit/c59124b217a20296358e181425be37e80b9e176d) Thanks [@jamalavedra](https://github.com/jamalavedra)! - pregenerate only through account endpoints
|
|
8
|
+
|
|
3
9
|
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -9320,8 +9320,6 @@ declare class Openfort {
|
|
|
9320
9320
|
update: (id: string, updateContractRequest: UpdateContractRequest, options?: string | RequestOptions | undefined) => Promise<ContractResponse>;
|
|
9321
9321
|
/** Delete a contract */
|
|
9322
9322
|
delete: (id: string, options?: string | RequestOptions | undefined) => Promise<ContractDeleteResponse>;
|
|
9323
|
-
/** Read a contract */
|
|
9324
|
-
read: (id: string, params: ReadContractParams, options?: string | RequestOptions | undefined) => Promise<ContractReadResponse>;
|
|
9325
9323
|
};
|
|
9326
9324
|
/**
|
|
9327
9325
|
* Policy management endpoints
|
|
@@ -9457,7 +9455,6 @@ declare class Openfort {
|
|
|
9457
9455
|
* // V2 (default) - Users
|
|
9458
9456
|
* const users = await openfort.iam.users.list();
|
|
9459
9457
|
* const user = await openfort.iam.users.get('usr_...');
|
|
9460
|
-
* await openfort.iam.users.pregenerate({ email: 'user@example.com' }, shieldConfig);
|
|
9461
9458
|
*
|
|
9462
9459
|
* // V1 - Players
|
|
9463
9460
|
* const players = await openfort.iam.v1.players.list();
|
|
@@ -9478,14 +9475,6 @@ declare class Openfort {
|
|
|
9478
9475
|
get: (id: string, options?: string | RequestOptions | undefined) => Promise<AuthUserResponse>;
|
|
9479
9476
|
/** Delete a user */
|
|
9480
9477
|
delete: (id: string, options?: string | RequestOptions | undefined) => Promise<BaseDeleteEntityResponseEntityTypePLAYER>;
|
|
9481
|
-
/**
|
|
9482
|
-
* Pre-generate a user with an embedded account before they authenticate.
|
|
9483
|
-
* Creates a user record and an embedded account.
|
|
9484
|
-
* @param req - The pregenerate user request
|
|
9485
|
-
* @param shieldConfig - Optional Shield configuration for storing the recovery share
|
|
9486
|
-
* @returns The pregenerated account response
|
|
9487
|
-
*/
|
|
9488
|
-
pregenerate: (req: PregenerateUserRequestV2, shieldConfig: ShieldConfiguration) => Promise<AccountV2Response>;
|
|
9489
9478
|
};
|
|
9490
9479
|
/** OAuth configuration */
|
|
9491
9480
|
authProvidersConfig: {
|
package/dist/index.d.ts
CHANGED
|
@@ -9320,8 +9320,6 @@ declare class Openfort {
|
|
|
9320
9320
|
update: (id: string, updateContractRequest: UpdateContractRequest, options?: string | RequestOptions | undefined) => Promise<ContractResponse>;
|
|
9321
9321
|
/** Delete a contract */
|
|
9322
9322
|
delete: (id: string, options?: string | RequestOptions | undefined) => Promise<ContractDeleteResponse>;
|
|
9323
|
-
/** Read a contract */
|
|
9324
|
-
read: (id: string, params: ReadContractParams, options?: string | RequestOptions | undefined) => Promise<ContractReadResponse>;
|
|
9325
9323
|
};
|
|
9326
9324
|
/**
|
|
9327
9325
|
* Policy management endpoints
|
|
@@ -9457,7 +9455,6 @@ declare class Openfort {
|
|
|
9457
9455
|
* // V2 (default) - Users
|
|
9458
9456
|
* const users = await openfort.iam.users.list();
|
|
9459
9457
|
* const user = await openfort.iam.users.get('usr_...');
|
|
9460
|
-
* await openfort.iam.users.pregenerate({ email: 'user@example.com' }, shieldConfig);
|
|
9461
9458
|
*
|
|
9462
9459
|
* // V1 - Players
|
|
9463
9460
|
* const players = await openfort.iam.v1.players.list();
|
|
@@ -9478,14 +9475,6 @@ declare class Openfort {
|
|
|
9478
9475
|
get: (id: string, options?: string | RequestOptions | undefined) => Promise<AuthUserResponse>;
|
|
9479
9476
|
/** Delete a user */
|
|
9480
9477
|
delete: (id: string, options?: string | RequestOptions | undefined) => Promise<BaseDeleteEntityResponseEntityTypePLAYER>;
|
|
9481
|
-
/**
|
|
9482
|
-
* Pre-generate a user with an embedded account before they authenticate.
|
|
9483
|
-
* Creates a user record and an embedded account.
|
|
9484
|
-
* @param req - The pregenerate user request
|
|
9485
|
-
* @param shieldConfig - Optional Shield configuration for storing the recovery share
|
|
9486
|
-
* @returns The pregenerated account response
|
|
9487
|
-
*/
|
|
9488
|
-
pregenerate: (req: PregenerateUserRequestV2, shieldConfig: ShieldConfiguration) => Promise<AccountV2Response>;
|
|
9489
9478
|
};
|
|
9490
9479
|
/** OAuth configuration */
|
|
9491
9480
|
authProvidersConfig: {
|
package/dist/index.js
CHANGED
|
@@ -715,7 +715,7 @@ function requiresWalletAuth(requestMethod, requestPath) {
|
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
// src/version.ts
|
|
718
|
-
var VERSION = "0.7.
|
|
718
|
+
var VERSION = "0.7.1";
|
|
719
719
|
var PACKAGE = "@openfort/openfort-node";
|
|
720
720
|
|
|
721
721
|
// src/openapi-client/openfortApiClient.ts
|
|
@@ -4538,9 +4538,7 @@ var Openfort = class {
|
|
|
4538
4538
|
/** Update a contract */
|
|
4539
4539
|
update: updateContract,
|
|
4540
4540
|
/** Delete a contract */
|
|
4541
|
-
delete: deleteContract
|
|
4542
|
-
/** Read a contract */
|
|
4543
|
-
read: readContract
|
|
4541
|
+
delete: deleteContract
|
|
4544
4542
|
};
|
|
4545
4543
|
}
|
|
4546
4544
|
// ============================================
|
|
@@ -4722,7 +4720,6 @@ var Openfort = class {
|
|
|
4722
4720
|
* // V2 (default) - Users
|
|
4723
4721
|
* const users = await openfort.iam.users.list();
|
|
4724
4722
|
* const user = await openfort.iam.users.get('usr_...');
|
|
4725
|
-
* await openfort.iam.users.pregenerate({ email: 'user@example.com' }, shieldConfig);
|
|
4726
4723
|
*
|
|
4727
4724
|
* // V1 - Players
|
|
4728
4725
|
* const players = await openfort.iam.v1.players.list();
|
|
@@ -4740,15 +4737,7 @@ var Openfort = class {
|
|
|
4740
4737
|
/** Get an authenticated user by ID */
|
|
4741
4738
|
get: getAuthUser,
|
|
4742
4739
|
/** Delete a user */
|
|
4743
|
-
delete: deleteUser
|
|
4744
|
-
/**
|
|
4745
|
-
* Pre-generate a user with an embedded account before they authenticate.
|
|
4746
|
-
* Creates a user record and an embedded account.
|
|
4747
|
-
* @param req - The pregenerate user request
|
|
4748
|
-
* @param shieldConfig - Optional Shield configuration for storing the recovery share
|
|
4749
|
-
* @returns The pregenerated account response
|
|
4750
|
-
*/
|
|
4751
|
-
pregenerate: this.pregenerateUser.bind(this)
|
|
4740
|
+
delete: deleteUser
|
|
4752
4741
|
},
|
|
4753
4742
|
/** OAuth configuration */
|
|
4754
4743
|
authProvidersConfig: {
|