@mysten/sui 2.6.0 → 2.7.0

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 (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bcs/index.d.mts +20 -20
  3. package/dist/client/types.d.mts +17 -0
  4. package/dist/client/types.d.mts.map +1 -1
  5. package/dist/cryptography/signature.d.mts +8 -8
  6. package/dist/graphql/core.d.mts.map +1 -1
  7. package/dist/graphql/core.mjs +21 -8
  8. package/dist/graphql/core.mjs.map +1 -1
  9. package/dist/graphql/generated/queries.d.mts.map +1 -1
  10. package/dist/graphql/generated/queries.mjs +18 -3
  11. package/dist/graphql/generated/queries.mjs.map +1 -1
  12. package/dist/graphql/generated/tada-env.d.mts +703 -73
  13. package/dist/grpc/core.d.mts.map +1 -1
  14. package/dist/grpc/core.mjs +15 -2
  15. package/dist/grpc/core.mjs.map +1 -1
  16. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
  17. package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
  18. package/dist/grpc/proto/sui/rpc/v2/object.d.mts +38 -1
  19. package/dist/grpc/proto/sui/rpc/v2/object.d.mts.map +1 -1
  20. package/dist/grpc/proto/sui/rpc/v2/object.mjs +26 -1
  21. package/dist/grpc/proto/sui/rpc/v2/object.mjs.map +1 -1
  22. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
  23. package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
  24. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.mts +4 -4
  25. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts +8 -0
  26. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts.map +1 -1
  27. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs +23 -12
  28. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs.map +1 -1
  29. package/dist/grpc/proto/types.d.mts +2 -2
  30. package/dist/grpc/proto/types.mjs +2 -1
  31. package/dist/jsonRpc/core.d.mts.map +1 -1
  32. package/dist/jsonRpc/core.mjs +10 -3
  33. package/dist/jsonRpc/core.mjs.map +1 -1
  34. package/dist/transactions/Transaction.d.mts +3 -3
  35. package/dist/transactions/Transaction.d.mts.map +1 -1
  36. package/dist/version.mjs +1 -1
  37. package/dist/version.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/src/client/types.ts +16 -0
  40. package/src/graphql/core.ts +34 -13
  41. package/src/graphql/generated/queries.ts +252 -14
  42. package/src/graphql/generated/schema.graphql +324 -8
  43. package/src/graphql/generated/tada-env.ts +844 -99
  44. package/src/graphql/queries/objects.graphql +10 -0
  45. package/src/graphql/queries/verifyZkLoginSignature.graphql +0 -1
  46. package/src/grpc/core.ts +34 -0
  47. package/src/grpc/proto/sui/rpc/v2/object.ts +44 -0
  48. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +16 -0
  49. package/src/jsonRpc/core.ts +9 -0
  50. package/src/version.ts +1 -1
package/dist/version.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region src/version.ts
2
- const PACKAGE_VERSION = "2.6.0";
2
+ const PACKAGE_VERSION = "2.7.0";
3
3
  const TARGETED_RPC_VERSION = "1.68.0";
4
4
 
5
5
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// This file is generated by genversion.mjs. Do not edit it directly.\n\nexport const PACKAGE_VERSION = '2.6.0';\nexport const TARGETED_RPC_VERSION = '1.68.0';\n"],"mappings":";AAKA,MAAa,kBAAkB;AAC/B,MAAa,uBAAuB"}
1
+ {"version":3,"file":"version.mjs","names":[],"sources":["../src/version.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// This file is generated by genversion.mjs. Do not edit it directly.\n\nexport const PACKAGE_VERSION = '2.7.0';\nexport const TARGETED_RPC_VERSION = '1.68.0';\n"],"mappings":";AAKA,MAAa,kBAAkB;AAC/B,MAAa,uBAAuB"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "Sui TypeScript API",
5
5
  "homepage": "https://sdk.mystenlabs.com",
6
- "version": "2.6.0",
6
+ "version": "2.7.0",
7
7
  "license": "Apache-2.0",
8
8
  "sideEffects": false,
9
9
  "files": [
@@ -85,6 +85,13 @@ export namespace SuiClientTypes {
85
85
  * use the `content` field and parse the BCS data directly.
86
86
  */
87
87
  json?: boolean;
88
+ /**
89
+ * Include the Display v2 rendered output for the object.
90
+ *
91
+ * Returns a map of display field names to their rendered string values.
92
+ * Returns `null` if the object's type does not have an associated Display template.
93
+ */
94
+ display?: boolean;
88
95
  }
89
96
 
90
97
  export interface GetObjectsOptions<
@@ -169,6 +176,15 @@ export namespace SuiClientTypes {
169
176
  * the `content` field and parse the BCS data directly.
170
177
  */
171
178
  json: Include extends { json: true } ? Record<string, unknown> | null : undefined;
179
+ /** Display rendered output. `null` if the type has no Display template. */
180
+ display: Include extends { display: true } ? Display | null : undefined;
181
+ }
182
+
183
+ export interface Display {
184
+ /** Successfully rendered display field values, keyed by field name. */
185
+ output: Record<string, string> | null;
186
+ /** Per-field rendering errors, keyed by field name. `null` if all fields succeeded. */
187
+ errors: Record<string, string> | null;
172
188
  }
173
189
 
174
190
  export interface Coin {
@@ -100,6 +100,7 @@ export class GraphQLCoreClient extends CoreClient {
100
100
  includePreviousTransaction: options.include?.previousTransaction ?? false,
101
101
  includeObjectBcs: options.include?.objectBcs ?? false,
102
102
  includeJson: options.include?.json ?? false,
103
+ includeDisplay: options.include?.display ?? false,
103
104
  },
104
105
  },
105
106
  (result) => result.multiGetObjects,
@@ -139,6 +140,11 @@ export class GraphQLCoreClient extends CoreClient {
139
140
  : null
140
141
  : undefined;
141
142
 
143
+ const displayData = mapDisplay(
144
+ options.include?.display,
145
+ obj.asMoveObject?.contents?.display,
146
+ );
147
+
142
148
  return {
143
149
  objectId: obj.address,
144
150
  version: obj.version?.toString()!,
@@ -150,6 +156,7 @@ export class GraphQLCoreClient extends CoreClient {
150
156
  undefined) as SuiClientTypes.Object<Include>['previousTransaction'],
151
157
  objectBcs: objectBcs as SuiClientTypes.Object<Include>['objectBcs'],
152
158
  json: jsonContent as SuiClientTypes.Object<Include>['json'],
159
+ display: displayData as SuiClientTypes.Object<Include>['display'],
153
160
  };
154
161
  }),
155
162
  );
@@ -176,6 +183,7 @@ export class GraphQLCoreClient extends CoreClient {
176
183
  includePreviousTransaction: options.include?.previousTransaction ?? false,
177
184
  includeObjectBcs: options.include?.objectBcs ?? false,
178
185
  includeJson: options.include?.json ?? false,
186
+ includeDisplay: options.include?.display ?? false,
179
187
  },
180
188
  },
181
189
  (result) => result.address?.objects,
@@ -202,6 +210,10 @@ export class GraphQLCoreClient extends CoreClient {
202
210
  ? (obj.contents.json as Record<string, unknown>)
203
211
  : null
204
212
  : undefined) as SuiClientTypes.Object<Include>['json'],
213
+ display: mapDisplay(
214
+ options.include?.display,
215
+ obj.contents?.display,
216
+ ) as SuiClientTypes.Object<Include>['display'],
205
217
  }),
206
218
  ),
207
219
  hasNextPage: objects.pageInfo.hasNextPage,
@@ -556,22 +568,19 @@ export class GraphQLCoreClient extends CoreClient {
556
568
  ? ZkLoginIntentScope.TransactionData
557
569
  : ZkLoginIntentScope.PersonalMessage;
558
570
 
559
- const result = await this.#graphqlQuery(
560
- {
561
- query: VerifyZkLoginSignatureDocument,
562
- variables: {
563
- bytes: options.bytes,
564
- signature: options.signature,
565
- intentScope,
566
- author: options.address,
567
- },
571
+ const { data } = await this.#graphqlClient.query({
572
+ query: VerifyZkLoginSignatureDocument,
573
+ variables: {
574
+ bytes: options.bytes,
575
+ signature: options.signature,
576
+ intentScope,
577
+ author: options.address,
568
578
  },
569
- (result) => result.verifyZkLoginSignature,
570
- );
579
+ });
571
580
 
572
581
  return {
573
- success: result.success ?? false,
574
- errors: result.error ? [result.error] : [],
582
+ success: data?.verifyZkLoginSignature?.success ?? false,
583
+ errors: [],
575
584
  };
576
585
  }
577
586
 
@@ -748,6 +757,18 @@ export type GraphQLResponseErrors = Array<{
748
757
  path?: (string | number)[];
749
758
  }>;
750
759
 
760
+ function mapDisplay(
761
+ include: boolean | undefined,
762
+ display: { output?: unknown | null; errors?: unknown | null } | null | undefined,
763
+ ): SuiClientTypes.Display | null | undefined {
764
+ if (!include) return undefined;
765
+ if (!display) return null;
766
+ return {
767
+ output: (display.output as Record<string, string> | null) ?? null,
768
+ errors: (display.errors as Record<string, string> | null) ?? null,
769
+ };
770
+ }
771
+
751
772
  function handleGraphQLErrors(errors: GraphQLResponseErrors | undefined): void {
752
773
  if (!errors || errors.length === 0) return;
753
774
 
@@ -574,6 +574,25 @@ export type CheckpointFilter = {
574
574
  beforeCheckpoint?: InputMaybe<Scalars['UInt53']['input']>;
575
575
  };
576
576
 
577
+ /** A G1 elliptic curve point with 3 base10-encoded Bn254 field elements. */
578
+ export type CircomG1 = {
579
+ __typename?: 'CircomG1';
580
+ e0?: Maybe<Scalars['String']['output']>;
581
+ e1?: Maybe<Scalars['String']['output']>;
582
+ e2?: Maybe<Scalars['String']['output']>;
583
+ };
584
+
585
+ /** A G2 elliptic curve point with 6 base10-encoded Bn254 field elements. */
586
+ export type CircomG2 = {
587
+ __typename?: 'CircomG2';
588
+ e00?: Maybe<Scalars['String']['output']>;
589
+ e01?: Maybe<Scalars['String']['output']>;
590
+ e10?: Maybe<Scalars['String']['output']>;
591
+ e11?: Maybe<Scalars['String']['output']>;
592
+ e20?: Maybe<Scalars['String']['output']>;
593
+ e21?: Maybe<Scalars['String']['output']>;
594
+ };
595
+
577
596
  /** System transaction for creating the coin deny list state. */
578
597
  export type CoinDenyListStateCreateTransaction = {
579
598
  __typename?: 'CoinDenyListStateCreateTransaction';
@@ -1294,6 +1313,22 @@ export type DynamicFieldName = {
1294
1313
  /** The value of a dynamic field (`MoveValue`) or dynamic object field (`MoveObject`). */
1295
1314
  export type DynamicFieldValue = MoveObject | MoveValue;
1296
1315
 
1316
+ /** An Ed25519 public key. */
1317
+ export type Ed25519PublicKey = {
1318
+ __typename?: 'Ed25519PublicKey';
1319
+ /** The raw public key bytes. */
1320
+ bytes?: Maybe<Scalars['Base64']['output']>;
1321
+ };
1322
+
1323
+ /** An Ed25519 signature. */
1324
+ export type Ed25519Signature = {
1325
+ __typename?: 'Ed25519Signature';
1326
+ /** The public key bytes. */
1327
+ publicKey?: Maybe<Scalars['Base64']['output']>;
1328
+ /** The raw signature bytes. */
1329
+ signature?: Maybe<Scalars['Base64']['output']>;
1330
+ };
1331
+
1297
1332
  /** System transaction that supersedes `ChangeEpochTransaction` as the new way to run transactions at the end of an epoch. Behaves similarly to `ChangeEpochTransaction` but can accommodate other optional transactions to run at the end of the epoch. */
1298
1333
  export type EndOfEpochTransaction = {
1299
1334
  __typename?: 'EndOfEpochTransaction';
@@ -2859,6 +2894,12 @@ export type MoveValue = {
2859
2894
  * Values of other types cannot be interpreted as addresses, and `null` is returned.
2860
2895
  */
2861
2896
  asAddress?: Maybe<Address>;
2897
+ /**
2898
+ * Attempts to treat this value as a `vector<T>` and paginate over its elements.
2899
+ *
2900
+ * Values of other types cannot be interpreted as vectors, and `null` is returned.
2901
+ */
2902
+ asVector?: Maybe<MoveValueConnection>;
2862
2903
  /** The BCS representation of this value, Base64-encoded. */
2863
2904
  bcs?: Maybe<Scalars['Base64']['output']>;
2864
2905
  /**
@@ -2898,6 +2939,14 @@ export type MoveValue = {
2898
2939
  };
2899
2940
 
2900
2941
 
2942
+ export type MoveValueAsVectorArgs = {
2943
+ after?: InputMaybe<Scalars['String']['input']>;
2944
+ before?: InputMaybe<Scalars['String']['input']>;
2945
+ first?: InputMaybe<Scalars['Int']['input']>;
2946
+ last?: InputMaybe<Scalars['Int']['input']>;
2947
+ };
2948
+
2949
+
2901
2950
  export type MoveValueExtractArgs = {
2902
2951
  path: Scalars['String']['input'];
2903
2952
  };
@@ -2907,6 +2956,25 @@ export type MoveValueFormatArgs = {
2907
2956
  format: Scalars['String']['input'];
2908
2957
  };
2909
2958
 
2959
+ export type MoveValueConnection = {
2960
+ __typename?: 'MoveValueConnection';
2961
+ /** A list of edges. */
2962
+ edges: Array<MoveValueEdge>;
2963
+ /** A list of nodes. */
2964
+ nodes: Array<MoveValue>;
2965
+ /** Information to aid in pagination. */
2966
+ pageInfo: PageInfo;
2967
+ };
2968
+
2969
+ /** An edge in a connection. */
2970
+ export type MoveValueEdge = {
2971
+ __typename?: 'MoveValueEdge';
2972
+ /** A cursor for use in pagination */
2973
+ cursor: Scalars['String']['output'];
2974
+ /** The item at the end of the edge */
2975
+ node: MoveValue;
2976
+ };
2977
+
2910
2978
  /**
2911
2979
  * The visibility modifier describes which modules can access this module member.
2912
2980
  *
@@ -2921,6 +2989,42 @@ export enum MoveVisibility {
2921
2989
  Public = 'PUBLIC'
2922
2990
  }
2923
2991
 
2992
+ /** The multisig committee definition. */
2993
+ export type MultisigCommittee = {
2994
+ __typename?: 'MultisigCommittee';
2995
+ /** The committee members (public key + weight). */
2996
+ members?: Maybe<Array<MultisigMember>>;
2997
+ /** The threshold number of weight needed for a valid multisig. */
2998
+ threshold?: Maybe<Scalars['Int']['output']>;
2999
+ };
3000
+
3001
+ /** A single member of a multisig committee. */
3002
+ export type MultisigMember = {
3003
+ __typename?: 'MultisigMember';
3004
+ /** The member's public key. */
3005
+ publicKey?: Maybe<MultisigMemberPublicKey>;
3006
+ /** The member's weight in the committee. */
3007
+ weight?: Maybe<Scalars['Int']['output']>;
3008
+ };
3009
+
3010
+ /** A multisig member's public key, varying by scheme. */
3011
+ export type MultisigMemberPublicKey = Ed25519PublicKey | PasskeyPublicKey | Secp256K1PublicKey | Secp256R1PublicKey | ZkLoginPublicIdentifier;
3012
+
3013
+ /** An aggregated multisig signature. */
3014
+ export type MultisigSignature = {
3015
+ __typename?: 'MultisigSignature';
3016
+ /** A bitmap indicating which members of the committee signed. */
3017
+ bitmap?: Maybe<Scalars['Int']['output']>;
3018
+ /** The multisig committee (public keys + weights + threshold). */
3019
+ committee?: Maybe<MultisigCommittee>;
3020
+ /**
3021
+ * The individual member signatures, one per signer who participated.
3022
+ * Compressed signatures within a multisig do not include the signer's public key,
3023
+ * so `publicKey` will be `null` for simple signature schemes (Ed25519, Secp256k1, Secp256r1).
3024
+ */
3025
+ signatures?: Maybe<Array<SignatureScheme>>;
3026
+ };
3027
+
2924
3028
  /** A transaction that wanted to mutate a consensus-managed object but couldn't because it became not-consensus-managed before the transaction executed (for example, it was deleted, turned into an owned object, or wrapped). */
2925
3029
  export type MutateConsensusStreamEnded = {
2926
3030
  __typename?: 'MutateConsensusStreamEnded';
@@ -3442,6 +3546,23 @@ export type PageInfo = {
3442
3546
  startCursor?: Maybe<Scalars['String']['output']>;
3443
3547
  };
3444
3548
 
3549
+ /** A Passkey public key. */
3550
+ export type PasskeyPublicKey = {
3551
+ __typename?: 'PasskeyPublicKey';
3552
+ /** The raw public key bytes. */
3553
+ bytes?: Maybe<Scalars['Base64']['output']>;
3554
+ };
3555
+
3556
+ export type PasskeySignature = {
3557
+ __typename?: 'PasskeySignature';
3558
+ /** The authenticator data returned by the passkey device. */
3559
+ authenticatorData?: Maybe<Scalars['Base64']['output']>;
3560
+ /** The client data JSON string passed to the authenticator. */
3561
+ clientDataJson?: Maybe<Scalars['String']['output']>;
3562
+ /** The inner user signature (secp256r1). */
3563
+ signature?: Maybe<SignatureScheme>;
3564
+ };
3565
+
3445
3566
  export type PerEpochConfig = {
3446
3567
  __typename?: 'PerEpochConfig';
3447
3568
  /** The per-epoch configuration object as of when the transaction was executed. */
@@ -3762,16 +3883,16 @@ export type Query = {
3762
3883
  */
3763
3884
  type?: Maybe<MoveType>;
3764
3885
  /**
3765
- * Verify a zkLogin signature os from the given `author`.
3886
+ * Verify a zkLogin signature is from the given `author`.
3766
3887
  *
3767
- * Returns a `ZkLoginVerifyResult` where `success` is `true` and `error` is empty if the signature is valid. If the signature is invalid, `success` is `false` and `error` contains the relevant error message.
3888
+ * Returns successfully if the signature is valid. If the signature is invalid, returns an error with the reason for the failure.
3768
3889
  *
3769
3890
  * - `bytes` are either the bytes of a serialized personal message, or `TransactionData`, Base64-encoded.
3770
3891
  * - `signature` is a serialized zkLogin signature, also Base64-encoded.
3771
3892
  * - `intentScope` indicates whether `bytes` are to be parsed as a personal message or `TransactionData`.
3772
3893
  * - `author` is the signer's address.
3773
3894
  */
3774
- verifyZkLoginSignature: ZkLoginVerifyResult;
3895
+ verifyZkLoginSignature?: Maybe<ZkLoginVerifyResult>;
3775
3896
  };
3776
3897
 
3777
3898
 
@@ -4013,6 +4134,38 @@ export enum RegulatedState {
4013
4134
  Unregulated = 'UNREGULATED'
4014
4135
  }
4015
4136
 
4137
+ /** A Secp256k1 public key. */
4138
+ export type Secp256K1PublicKey = {
4139
+ __typename?: 'Secp256K1PublicKey';
4140
+ /** The raw public key bytes. */
4141
+ bytes?: Maybe<Scalars['Base64']['output']>;
4142
+ };
4143
+
4144
+ /** A Secp256k1 signature. */
4145
+ export type Secp256K1Signature = {
4146
+ __typename?: 'Secp256K1Signature';
4147
+ /** The public key bytes. */
4148
+ publicKey?: Maybe<Scalars['Base64']['output']>;
4149
+ /** The raw signature bytes. */
4150
+ signature?: Maybe<Scalars['Base64']['output']>;
4151
+ };
4152
+
4153
+ /** A Secp256r1 public key. */
4154
+ export type Secp256R1PublicKey = {
4155
+ __typename?: 'Secp256R1PublicKey';
4156
+ /** The raw public key bytes. */
4157
+ bytes?: Maybe<Scalars['Base64']['output']>;
4158
+ };
4159
+
4160
+ /** A Secp256r1 signature. */
4161
+ export type Secp256R1Signature = {
4162
+ __typename?: 'Secp256R1Signature';
4163
+ /** The public key bytes. */
4164
+ publicKey?: Maybe<Scalars['Base64']['output']>;
4165
+ /** The raw signature bytes. */
4166
+ signature?: Maybe<Scalars['Base64']['output']>;
4167
+ };
4168
+
4016
4169
  export type ServiceConfig = {
4017
4170
  __typename?: 'ServiceConfig';
4018
4171
  /** Range of checkpoints for which data is available for a query type, field and optional filter. If filter is not provided, the strictest retention range for the query and type is returned. */
@@ -4152,6 +4305,9 @@ export type SharedInput = {
4152
4305
  mutable?: Maybe<Scalars['Boolean']['output']>;
4153
4306
  };
4154
4307
 
4308
+ /** The structured details of a signature, varying by scheme. */
4309
+ export type SignatureScheme = Ed25519Signature | MultisigSignature | PasskeySignature | Secp256K1Signature | Secp256R1Signature | ZkLoginSignature;
4310
+
4155
4311
  /** The result of simulating a transaction, including the predicted effects. */
4156
4312
  export type SimulationResult = {
4157
4313
  __typename?: 'SimulationResult';
@@ -4454,6 +4610,8 @@ export type UpgradeCommand = {
4454
4610
 
4455
4611
  export type UserSignature = {
4456
4612
  __typename?: 'UserSignature';
4613
+ /** The structured signature details, parsed by scheme. */
4614
+ scheme?: Maybe<SignatureScheme>;
4457
4615
  /**
4458
4616
  * The signature bytes, Base64-encoded.
4459
4617
  * For simple signatures: flag || signature || pubkey
@@ -4558,6 +4716,28 @@ export type WriteAccumulatorStorageCostTransaction = {
4558
4716
  _?: Maybe<Scalars['Boolean']['output']>;
4559
4717
  };
4560
4718
 
4719
+ /** A Base64-encoded claim from the JWT used in zkLogin. */
4720
+ export type ZkLoginClaim = {
4721
+ __typename?: 'ZkLoginClaim';
4722
+ /** The index mod 4 used for Base64 decoding alignment. */
4723
+ indexMod4?: Maybe<Scalars['Int']['output']>;
4724
+ /** The Base64url-unpadded encoded claim value. */
4725
+ value?: Maybe<Scalars['String']['output']>;
4726
+ };
4727
+
4728
+ /** The zkLogin inputs including proof, claim details, and JWT header. */
4729
+ export type ZkLoginInputs = {
4730
+ __typename?: 'ZkLoginInputs';
4731
+ /** The address seed as a base10-encoded string. */
4732
+ addressSeed?: Maybe<Scalars['String']['output']>;
4733
+ /** The Base64-encoded JWT header. */
4734
+ headerBase64?: Maybe<Scalars['String']['output']>;
4735
+ /** The Base64-encoded issuer claim details. */
4736
+ issBase64Details?: Maybe<ZkLoginClaim>;
4737
+ /** The zero-knowledge proof points. */
4738
+ proofPoints?: Maybe<ZkLoginProof>;
4739
+ };
4740
+
4561
4741
  /** An enum that specifies the intent scope to be used to parse the bytes for signature verification. */
4562
4742
  export enum ZkLoginIntentScope {
4563
4743
  /** Indicates that the bytes are to be parsed as a personal message. */
@@ -4566,12 +4746,53 @@ export enum ZkLoginIntentScope {
4566
4746
  TransactionData = 'TRANSACTION_DATA'
4567
4747
  }
4568
4748
 
4749
+ /** A JWK (JSON Web Key) identifier. */
4750
+ export type ZkLoginJwkId = {
4751
+ __typename?: 'ZkLoginJwkId';
4752
+ /** The OIDC provider issuer string. */
4753
+ iss?: Maybe<Scalars['String']['output']>;
4754
+ /** The key ID that identifies the JWK. */
4755
+ kid?: Maybe<Scalars['String']['output']>;
4756
+ };
4757
+
4758
+ /** The zero-knowledge proof consisting of three elliptic curve points. */
4759
+ export type ZkLoginProof = {
4760
+ __typename?: 'ZkLoginProof';
4761
+ /** G1 point 'a'. */
4762
+ a?: Maybe<CircomG1>;
4763
+ /** G2 point 'b'. */
4764
+ b?: Maybe<CircomG2>;
4765
+ /** G1 point 'c'. */
4766
+ c?: Maybe<CircomG1>;
4767
+ };
4768
+
4769
+ /** A zkLogin public identifier, containing the OAuth issuer and address seed. */
4770
+ export type ZkLoginPublicIdentifier = {
4771
+ __typename?: 'ZkLoginPublicIdentifier';
4772
+ /** The address seed as a decimal string. */
4773
+ addressSeed?: Maybe<Scalars['String']['output']>;
4774
+ /** The OAuth provider issuer string (e.g. "https://accounts.google.com"). */
4775
+ iss?: Maybe<Scalars['String']['output']>;
4776
+ };
4777
+
4778
+ export type ZkLoginSignature = {
4779
+ __typename?: 'ZkLoginSignature';
4780
+ /** The zkLogin inputs including proof, claim details, and JWT header. */
4781
+ inputs?: Maybe<ZkLoginInputs>;
4782
+ /** The JWK identifier used to verify the zkLogin proof. */
4783
+ jwkId?: Maybe<ZkLoginJwkId>;
4784
+ /** The maximum epoch for which this signature is valid. */
4785
+ maxEpoch?: Maybe<Scalars['UInt53']['output']>;
4786
+ /** The public identifier (issuer + address seed) for this zkLogin authenticator. */
4787
+ publicIdentifier?: Maybe<ZkLoginPublicIdentifier>;
4788
+ /** The inner user signature (ed25519/secp256k1/secp256r1). */
4789
+ signature?: Maybe<SignatureScheme>;
4790
+ };
4791
+
4569
4792
  /** The result of the zkLogin signature verification. */
4570
4793
  export type ZkLoginVerifyResult = {
4571
4794
  __typename?: 'ZkLoginVerifyResult';
4572
- /** The error field capture reasons why the signature could not be verified, assuming the inputs are valid and there are no internal errors. */
4573
- error?: Maybe<Scalars['String']['output']>;
4574
- /** The boolean result of the verification. If true, errors should be empty. */
4795
+ /** Whether the signature was verified successfully. */
4575
4796
  success?: Maybe<Scalars['Boolean']['output']>;
4576
4797
  };
4577
4798
 
@@ -4668,10 +4889,11 @@ export type GetOwnedObjectsQueryVariables = Exact<{
4668
4889
  includePreviousTransaction?: InputMaybe<Scalars['Boolean']['input']>;
4669
4890
  includeObjectBcs?: InputMaybe<Scalars['Boolean']['input']>;
4670
4891
  includeJson?: InputMaybe<Scalars['Boolean']['input']>;
4892
+ includeDisplay?: InputMaybe<Scalars['Boolean']['input']>;
4671
4893
  }>;
4672
4894
 
4673
4895
 
4674
- export type GetOwnedObjectsQuery = { __typename?: 'Query', address?: { __typename?: 'Address', objects?: { __typename?: 'MoveObjectConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
4896
+ export type GetOwnedObjectsQuery = { __typename?: 'Query', address?: { __typename?: 'Address', objects?: { __typename?: 'MoveObjectConnection', pageInfo: { __typename?: 'PageInfo', hasNextPage: boolean, endCursor?: string | null }, nodes: Array<{ __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
4675
4897
  | { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
4676
4898
  | { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
4677
4899
  | { __typename: 'Immutable' }
@@ -4685,10 +4907,11 @@ export type MultiGetObjectsQueryVariables = Exact<{
4685
4907
  includePreviousTransaction?: InputMaybe<Scalars['Boolean']['input']>;
4686
4908
  includeObjectBcs?: InputMaybe<Scalars['Boolean']['input']>;
4687
4909
  includeJson?: InputMaybe<Scalars['Boolean']['input']>;
4910
+ includeDisplay?: InputMaybe<Scalars['Boolean']['input']>;
4688
4911
  }>;
4689
4912
 
4690
4913
 
4691
- export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Array<{ __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
4914
+ export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Array<{ __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
4692
4915
  | { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
4693
4916
  | { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
4694
4917
  | { __typename: 'Immutable' }
@@ -4696,7 +4919,7 @@ export type MultiGetObjectsQuery = { __typename?: 'Query', multiGetObjects: Arra
4696
4919
  | { __typename: 'Shared', initialSharedVersion?: number | null }
4697
4920
  | null, previousTransaction?: { __typename?: 'Transaction', digest: string } | null } | null> };
4698
4921
 
4699
- export type Object_FieldsFragment = { __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
4922
+ export type Object_FieldsFragment = { __typename?: 'Object', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, asMoveObject?: { __typename?: 'MoveObject', contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null } | null, asMovePackage?: { __typename: 'MovePackage' } | null, owner?:
4700
4923
  | { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
4701
4924
  | { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
4702
4925
  | { __typename: 'Immutable' }
@@ -4704,7 +4927,7 @@ export type Object_FieldsFragment = { __typename?: 'Object', address: string, di
4704
4927
  | { __typename: 'Shared', initialSharedVersion?: number | null }
4705
4928
  | null, previousTransaction?: { __typename?: 'Transaction', digest: string } | null };
4706
4929
 
4707
- export type Move_Object_FieldsFragment = { __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
4930
+ export type Move_Object_FieldsFragment = { __typename?: 'MoveObject', address: string, digest?: string | null, version?: number | null, objectBcs?: string | null, contents?: { __typename?: 'MoveValue', bcs?: string | null, json?: unknown | null, display?: { __typename?: 'Display', output?: unknown | null, errors?: unknown | null } | null, type?: { __typename?: 'MoveType', repr: string } | null } | null, owner?:
4708
4931
  | { __typename: 'AddressOwner', address?: { __typename?: 'Address', address: string } | null }
4709
4932
  | { __typename: 'ConsensusAddressOwner', startVersion?: number | null, address?: { __typename?: 'Address', address: string } | null }
4710
4933
  | { __typename: 'Immutable' }
@@ -4791,7 +5014,7 @@ export type VerifyZkLoginSignatureQueryVariables = Exact<{
4791
5014
  }>;
4792
5015
 
4793
5016
 
4794
- export type VerifyZkLoginSignatureQuery = { __typename?: 'Query', verifyZkLoginSignature: { __typename?: 'ZkLoginVerifyResult', success?: boolean | null, error?: string | null } };
5017
+ export type VerifyZkLoginSignatureQuery = { __typename?: 'Query', verifyZkLoginSignature?: { __typename?: 'ZkLoginVerifyResult', success?: boolean | null } | null };
4795
5018
 
4796
5019
  export class TypedDocumentString<TResult, TVariables>
4797
5020
  extends String
@@ -4845,6 +5068,10 @@ export const Object_FieldsFragmentDoc = new TypedDocumentString(`
4845
5068
  contents {
4846
5069
  bcs @include(if: $includeContent)
4847
5070
  json @include(if: $includeJson)
5071
+ display @include(if: $includeDisplay) {
5072
+ output
5073
+ errors
5074
+ }
4848
5075
  type {
4849
5076
  repr
4850
5077
  }
@@ -4891,6 +5118,10 @@ export const Move_Object_FieldsFragmentDoc = new TypedDocumentString(`
4891
5118
  contents {
4892
5119
  bcs @include(if: $includeContent)
4893
5120
  json @include(if: $includeJson)
5121
+ display @include(if: $includeDisplay) {
5122
+ output
5123
+ errors
5124
+ }
4894
5125
  type {
4895
5126
  repr
4896
5127
  }
@@ -5188,7 +5419,7 @@ export const DefaultSuinsNameDocument = new TypedDocumentString(`
5188
5419
  }
5189
5420
  `) as unknown as TypedDocumentString<DefaultSuinsNameQuery, DefaultSuinsNameQueryVariables>;
5190
5421
  export const GetOwnedObjectsDocument = new TypedDocumentString(`
5191
- query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false) {
5422
+ query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {
5192
5423
  address(address: $owner) {
5193
5424
  objects(first: $limit, after: $cursor, filter: $filter) {
5194
5425
  pageInfo {
@@ -5209,6 +5440,10 @@ export const GetOwnedObjectsDocument = new TypedDocumentString(`
5209
5440
  contents {
5210
5441
  bcs @include(if: $includeContent)
5211
5442
  json @include(if: $includeJson)
5443
+ display @include(if: $includeDisplay) {
5444
+ output
5445
+ errors
5446
+ }
5212
5447
  type {
5213
5448
  repr
5214
5449
  }
@@ -5243,7 +5478,7 @@ fragment OBJECT_OWNER_FIELDS on Owner {
5243
5478
  }
5244
5479
  }`) as unknown as TypedDocumentString<GetOwnedObjectsQuery, GetOwnedObjectsQueryVariables>;
5245
5480
  export const MultiGetObjectsDocument = new TypedDocumentString(`
5246
- query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false) {
5481
+ query multiGetObjects($objectKeys: [ObjectKey!]!, $includeContent: Boolean = false, $includePreviousTransaction: Boolean = false, $includeObjectBcs: Boolean = false, $includeJson: Boolean = false, $includeDisplay: Boolean = false) {
5247
5482
  multiGetObjects(keys: $objectKeys) {
5248
5483
  ...OBJECT_FIELDS
5249
5484
  }
@@ -5257,6 +5492,10 @@ export const MultiGetObjectsDocument = new TypedDocumentString(`
5257
5492
  contents {
5258
5493
  bcs @include(if: $includeContent)
5259
5494
  json @include(if: $includeJson)
5495
+ display @include(if: $includeDisplay) {
5496
+ output
5497
+ errors
5498
+ }
5260
5499
  type {
5261
5500
  repr
5262
5501
  }
@@ -5592,7 +5831,6 @@ export const VerifyZkLoginSignatureDocument = new TypedDocumentString(`
5592
5831
  author: $author
5593
5832
  ) {
5594
5833
  success
5595
- error
5596
5834
  }
5597
5835
  }
5598
5836
  `) as unknown as TypedDocumentString<VerifyZkLoginSignatureQuery, VerifyZkLoginSignatureQueryVariables>;