nara-sdk 1.0.60 → 1.0.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nara-sdk",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "SDK for the Nara chain (Solana-compatible)",
5
5
  "module": "index.ts",
6
6
  "main": "index.ts",
@@ -1329,13 +1329,12 @@ export async function submitTweet(
1329
1329
  connection: Connection,
1330
1330
  wallet: Keypair,
1331
1331
  agentId: string,
1332
- username: string,
1333
1332
  tweetUrl: string,
1334
1333
  options?: AgentRegistryOptions
1335
1334
  ): Promise<string> {
1336
1335
  const program = createProgram(connection, wallet, options?.programId);
1337
1336
  const ix = await program.methods
1338
- .submitTweet(agentId, username, tweetUrl)
1337
+ .submitTweet(agentId, tweetUrl)
1339
1338
  .accounts({ authority: wallet.publicKey } as any)
1340
1339
  .instruction();
1341
1340
  return sendTx(connection, wallet, [ix]);
@@ -2814,10 +2814,6 @@
2814
2814
  "name": "agent_id",
2815
2815
  "type": "string"
2816
2816
  },
2817
- {
2818
- "name": "username",
2819
- "type": "string"
2820
- },
2821
2817
  {
2822
2818
  "name": "tweet_url",
2823
2819
  "type": "string"
@@ -4299,8 +4295,13 @@
4299
4295
  },
4300
4296
  {
4301
4297
  "code": 6042,
4302
- "name": "TwitterUsernameMismatch",
4303
- "msg": "Twitter username does not match verified account"
4298
+ "name": "TwitterHandleAlreadyTaken",
4299
+ "msg": "Twitter handle is already bound to another agent"
4300
+ },
4301
+ {
4302
+ "code": 6043,
4303
+ "name": "TwitterAlreadyVerified",
4304
+ "msg": "Twitter is already verified, unbind first"
4304
4305
  }
4305
4306
  ],
4306
4307
  "types": [
@@ -2820,10 +2820,6 @@ export type NaraAgentRegistry = {
2820
2820
  "name": "agentId",
2821
2821
  "type": "string"
2822
2822
  },
2823
- {
2824
- "name": "username",
2825
- "type": "string"
2826
- },
2827
2823
  {
2828
2824
  "name": "tweetUrl",
2829
2825
  "type": "string"
@@ -4305,8 +4301,13 @@ export type NaraAgentRegistry = {
4305
4301
  },
4306
4302
  {
4307
4303
  "code": 6042,
4308
- "name": "twitterUsernameMismatch",
4309
- "msg": "Twitter username does not match verified account"
4304
+ "name": "twitterHandleAlreadyTaken",
4305
+ "msg": "Twitter handle is already bound to another agent"
4306
+ },
4307
+ {
4308
+ "code": 6043,
4309
+ "name": "twitterAlreadyVerified",
4310
+ "msg": "Twitter is already verified, unbind first"
4310
4311
  }
4311
4312
  ],
4312
4313
  "types": [