@iota/graphql-transport 0.15.0 → 0.17.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.
@@ -174,43 +174,6 @@ export type Scalars = {
174
174
  output: any;
175
175
  };
176
176
  };
177
- export type ActiveJwk = {
178
- __typename?: 'ActiveJwk';
179
- /** The JWK algorithm parameter, (RFC 7517, Section 4.4). */
180
- alg: Scalars['String']['output'];
181
- /** The JWK RSA public exponent, (RFC 7517, Section 9.3). */
182
- e: Scalars['String']['output'];
183
- /** The most recent epoch in which the JWK was validated. */
184
- epoch?: Maybe<Epoch>;
185
- /** The string (Issuing Authority) that identifies the OIDC provider. */
186
- iss: Scalars['String']['output'];
187
- /**
188
- * The string (Key ID) that identifies the JWK among a set of JWKs, (RFC
189
- * 7517, Section 4.5).
190
- */
191
- kid: Scalars['String']['output'];
192
- /** The JWK key type parameter, (RFC 7517, Section 4.1). */
193
- kty: Scalars['String']['output'];
194
- /** The JWK RSA modulus, (RFC 7517, Section 9.3). */
195
- n: Scalars['String']['output'];
196
- };
197
- export type ActiveJwkConnection = {
198
- __typename?: 'ActiveJwkConnection';
199
- /** A list of edges. */
200
- edges: Array<ActiveJwkEdge>;
201
- /** A list of nodes. */
202
- nodes: Array<ActiveJwk>;
203
- /** Information to aid in pagination. */
204
- pageInfo: PageInfo;
205
- };
206
- /** An edge in a connection. */
207
- export type ActiveJwkEdge = {
208
- __typename?: 'ActiveJwkEdge';
209
- /** A cursor for use in pagination */
210
- cursor: Scalars['String']['output'];
211
- /** The item at the end of the edge */
212
- node: ActiveJwk;
213
- };
214
177
  /**
215
178
  * The 32-byte address that is an account address (corresponding to a public
216
179
  * key).
@@ -400,38 +363,6 @@ export declare enum AddressTransactionBlockRelationship {
400
363
  */
401
364
  Sign = "SIGN"
402
365
  }
403
- /** System transaction for creating the on-chain state used by zkLogin. */
404
- export type AuthenticatorStateCreateTransaction = {
405
- __typename?: 'AuthenticatorStateCreateTransaction';
406
- /** A workaround to define an empty variant of a GraphQL union. */
407
- _?: Maybe<Scalars['Boolean']['output']>;
408
- };
409
- export type AuthenticatorStateExpireTransaction = {
410
- __typename?: 'AuthenticatorStateExpireTransaction';
411
- /** The initial version that the AuthenticatorStateUpdateV1 was shared at. */
412
- authenticatorObjInitialSharedVersion: Scalars['UInt53']['output'];
413
- /** Expire JWKs that have a lower epoch than this. */
414
- minEpoch?: Maybe<Epoch>;
415
- };
416
- /** System transaction for updating the on-chain state used by zkLogin. */
417
- export type AuthenticatorStateUpdateTransaction = {
418
- __typename?: 'AuthenticatorStateUpdateTransaction';
419
- /** The initial version of the authenticator object that it was shared at. */
420
- authenticatorObjInitialSharedVersion: Scalars['UInt53']['output'];
421
- /** Epoch of the authenticator state update transaction. */
422
- epoch?: Maybe<Epoch>;
423
- /** Newly active JWKs (JSON Web Keys). */
424
- newActiveJwks: ActiveJwkConnection;
425
- /** Consensus round of the authenticator state update. */
426
- round: Scalars['UInt53']['output'];
427
- };
428
- /** System transaction for updating the on-chain state used by zkLogin. */
429
- export type AuthenticatorStateUpdateTransactionNewActiveJwksArgs = {
430
- after?: InputMaybe<Scalars['String']['input']>;
431
- before?: InputMaybe<Scalars['String']['input']>;
432
- first?: InputMaybe<Scalars['Int']['input']>;
433
- last?: InputMaybe<Scalars['Int']['input']>;
434
- };
435
366
  /**
436
367
  * Range of checkpoints that the RPC is guaranteed to produce a consistent
437
368
  * response for.
@@ -1317,7 +1248,7 @@ export type EndOfEpochTransactionTransactionsArgs = {
1317
1248
  first?: InputMaybe<Scalars['Int']['input']>;
1318
1249
  last?: InputMaybe<Scalars['Int']['input']>;
1319
1250
  };
1320
- export type EndOfEpochTransactionKind = AuthenticatorStateCreateTransaction | AuthenticatorStateExpireTransaction | ChangeEpochTransaction | ChangeEpochTransactionV2;
1251
+ export type EndOfEpochTransactionKind = ChangeEpochTransaction | ChangeEpochTransactionV2;
1321
1252
  export type EndOfEpochTransactionKindConnection = {
1322
1253
  __typename?: 'EndOfEpochTransactionKindConnection';
1323
1254
  /** A list of edges. */
@@ -4218,23 +4149,6 @@ export type Query = {
4218
4149
  * layout information. Fails if the type is malformed.
4219
4150
  */
4220
4151
  type: MoveType;
4221
- /**
4222
- * Verify a zkLogin signature based on the provided transaction or personal
4223
- * message based on current epoch, chain id, and latest JWKs fetched
4224
- * on-chain. If the signature is valid, the function returns a
4225
- * `ZkLoginVerifyResult` with success as true and an empty list of
4226
- * errors. If the signature is invalid, the function returns
4227
- * a `ZkLoginVerifyResult` with success as false with a list of errors.
4228
- *
4229
- * - `bytes` is either the personal message in raw bytes or transaction
4230
- * data bytes in BCS-encoded and then Base64-encoded.
4231
- * - `signature` is a serialized zkLogin signature that is Base64-encoded.
4232
- * - `intentScope` is an enum that specifies the intent scope to be used to
4233
- * parse bytes.
4234
- * - `author` is the address of the signer of the transaction or personal
4235
- * msg.
4236
- */
4237
- verifyZkloginSignature: ZkLoginVerifyResult;
4238
4152
  };
4239
4153
  export type QueryAddressArgs = {
4240
4154
  address: Scalars['IotaAddress']['input'];
@@ -4341,12 +4255,6 @@ export type QueryTransactionBlocksByDigestsArgs = {
4341
4255
  export type QueryTypeArgs = {
4342
4256
  type: Scalars['String']['input'];
4343
4257
  };
4344
- export type QueryVerifyZkloginSignatureArgs = {
4345
- author: Scalars['IotaAddress']['input'];
4346
- bytes: Scalars['Base64']['input'];
4347
- intentScope: ZkLoginIntentScope;
4348
- signature: Scalars['Base64']['input'];
4349
- };
4350
4258
  /** System transaction to update the source of on-chain randomness. */
4351
4259
  export type RandomnessStateUpdateTransaction = {
4352
4260
  __typename?: 'RandomnessStateUpdateTransaction';
@@ -4864,20 +4772,48 @@ export type Subscription = {
4864
4772
  * Subscribe to incoming events from the IOTA network.
4865
4773
  *
4866
4774
  * If no filter is provided, all events will be returned.
4775
+ *
4776
+ * # Stream recovery
4777
+ *
4778
+ * Events are streamed in transaction order, all events from a single
4779
+ * transaction arrive contiguously before any events from the next one.
4780
+ *
4781
+ * When `start_after` is provided with a transaction digest, the stream
4782
+ * resumes from the transaction immediately after it.
4783
+ *
4784
+ * Because a single transaction can emit multiple events, a disconnection
4785
+ * may leave the client with only a partial set of events from the
4786
+ * transaction it was last receiving. A transaction is considered fully
4787
+ * received only once the client has seen an event from the following
4788
+ * transaction (a digest change signals the previous transaction is
4789
+ * complete).
4790
+ *
4791
+ * On reconnect, clients should pass the digest of the last fully
4792
+ * received transaction as `start_after`. The stream resumes from the
4793
+ * next transaction, so no partial transaction is ever observed.
4867
4794
  */
4868
4795
  events: EventSubscriptionPayload;
4869
4796
  /**
4870
4797
  * Subscribe to incoming transactions from the IOTA network.
4871
4798
  *
4872
4799
  * If no filter is provided, all transactions will be returned.
4800
+ *
4801
+ * # Stream recovery
4802
+ *
4803
+ * When `start_after` is provided with the digest of the last transaction
4804
+ * the client received, the stream resumes from the transaction
4805
+ * immediately after it. The identified transaction itself is not
4806
+ * emitted.
4873
4807
  */
4874
4808
  transactions: TransactionBlockSubscriptionPayload;
4875
4809
  };
4876
4810
  export type SubscriptionEventsArgs = {
4877
4811
  filter?: InputMaybe<SubscriptionEventFilter>;
4812
+ startAfter?: InputMaybe<Scalars['String']['input']>;
4878
4813
  };
4879
4814
  export type SubscriptionTransactionsArgs = {
4880
4815
  filter?: InputMaybe<SubscriptionTransactionFilter>;
4816
+ startAfter?: InputMaybe<Scalars['String']['input']>;
4881
4817
  };
4882
4818
  /** Filter incoming events in a subscription. */
4883
4819
  export type SubscriptionEventFilter =
@@ -5160,11 +5096,9 @@ export type TransactionBlockFilter = {
5160
5096
  * The kind of transaction block, either a programmable transaction or a system
5161
5097
  * transaction.
5162
5098
  */
5163
- export type TransactionBlockKind = AuthenticatorStateUpdateTransaction | ConsensusCommitPrologueTransaction | EndOfEpochTransaction | GenesisTransaction | ProgrammableTransactionBlock | RandomnessStateUpdateTransaction;
5099
+ export type TransactionBlockKind = ConsensusCommitPrologueTransaction | EndOfEpochTransaction | GenesisTransaction | ProgrammableTransactionBlock | RandomnessStateUpdateTransaction;
5164
5100
  /** An input filter selecting for either system or programmable transactions. */
5165
5101
  export declare enum TransactionBlockKindInput {
5166
- /** The authenticator state update transaction block. */
5167
- AuthenticatorStateUpdateV1 = "AUTHENTICATOR_STATE_UPDATE_V1",
5168
5102
  /** The consensus commit prologue transaction block. */
5169
5103
  ConsensusCommitPrologueV1 = "CONSENSUS_COMMIT_PROLOGUE_V1",
5170
5104
  /** The end of epoch transaction block. */
@@ -5296,7 +5230,7 @@ export type Validator = {
5296
5230
  * low stake threshold.
5297
5231
  */
5298
5232
  atRisk?: Maybe<Scalars['UInt53']['output']>;
5299
- /** The fee charged by the validator for staking services. */
5233
+ /** The fee set by the validator for providing staking services. */
5300
5234
  commissionRate?: Maybe<Scalars['Int']['output']>;
5301
5235
  /**
5302
5236
  * Validator's set of credentials such as public keys, network addresses
@@ -5305,6 +5239,13 @@ export type Validator = {
5305
5239
  credentials?: Maybe<ValidatorCredentials>;
5306
5240
  /** Validator's description. */
5307
5241
  description?: Maybe<Scalars['String']['output']>;
5242
+ /**
5243
+ * The effective fee charged by the validator for staking services.
5244
+ *
5245
+ * This is evaluated according to [IIP8](https://github.com/iotaledger/IIPs/blob/main/iips/IIP-0008/IIP-0008.md)
5246
+ * for epochs with protocol version >= 20.
5247
+ */
5248
+ effectiveCommissionRate?: Maybe<Scalars['Int']['output']>;
5308
5249
  /**
5309
5250
  * The validator's current exchange object. The exchange rate is used to
5310
5251
  * determine the amount of IOTA tokens that each past IOTA staker can
@@ -5476,24 +5417,6 @@ export type ValidatorSetCommitteeMembersArgs = {
5476
5417
  first?: InputMaybe<Scalars['Int']['input']>;
5477
5418
  last?: InputMaybe<Scalars['Int']['input']>;
5478
5419
  };
5479
- /**
5480
- * An enum that specifies the intent scope to be used to parse the bytes for
5481
- * signature verification.
5482
- */
5483
- export declare enum ZkLoginIntentScope {
5484
- /** Indicates that the bytes are to be parsed as a personal message. */
5485
- PersonalMessage = "PERSONAL_MESSAGE",
5486
- /** Indicates that the bytes are to be parsed as transaction data bytes. */
5487
- TransactionData = "TRANSACTION_DATA"
5488
- }
5489
- /** The result of the zkLogin signature verification. */
5490
- export type ZkLoginVerifyResult = {
5491
- __typename?: 'ZkLoginVerifyResult';
5492
- /** The errors field captures any verification error */
5493
- errors: Array<Scalars['String']['output']>;
5494
- /** The boolean result of the verification. If true, errors should be empty. */
5495
- success: Scalars['Boolean']['output'];
5496
- };
5497
5420
  export type GetCheckpointQueryVariables = Exact<{
5498
5421
  id?: InputMaybe<CheckpointId>;
5499
5422
  }>;
@@ -5536,18 +5459,12 @@ export type GetCheckpointQuery = {
5536
5459
  nodes: Array<{
5537
5460
  __typename?: 'TransactionBlock';
5538
5461
  kind?: {
5539
- __typename: 'AuthenticatorStateUpdateTransaction';
5540
- } | {
5541
5462
  __typename: 'ConsensusCommitPrologueTransaction';
5542
5463
  } | {
5543
5464
  __typename: 'EndOfEpochTransaction';
5544
5465
  transactions: {
5545
5466
  __typename?: 'EndOfEpochTransactionKindConnection';
5546
5467
  nodes: Array<{
5547
- __typename: 'AuthenticatorStateCreateTransaction';
5548
- } | {
5549
- __typename: 'AuthenticatorStateExpireTransaction';
5550
- } | {
5551
5468
  __typename: 'ChangeEpochTransaction';
5552
5469
  } | {
5553
5470
  __typename: 'ChangeEpochTransactionV2';
@@ -5661,18 +5578,12 @@ export type GetCheckpointsQuery = {
5661
5578
  nodes: Array<{
5662
5579
  __typename?: 'TransactionBlock';
5663
5580
  kind?: {
5664
- __typename: 'AuthenticatorStateUpdateTransaction';
5665
- } | {
5666
5581
  __typename: 'ConsensusCommitPrologueTransaction';
5667
5582
  } | {
5668
5583
  __typename: 'EndOfEpochTransaction';
5669
5584
  transactions: {
5670
5585
  __typename?: 'EndOfEpochTransactionKindConnection';
5671
5586
  nodes: Array<{
5672
- __typename: 'AuthenticatorStateCreateTransaction';
5673
- } | {
5674
- __typename: 'AuthenticatorStateExpireTransaction';
5675
- } | {
5676
5587
  __typename: 'ChangeEpochTransaction';
5677
5588
  } | {
5678
5589
  __typename: 'ChangeEpochTransactionV2';
@@ -5792,18 +5703,12 @@ export type Rpc_Checkpoint_FieldsFragment = {
5792
5703
  nodes: Array<{
5793
5704
  __typename?: 'TransactionBlock';
5794
5705
  kind?: {
5795
- __typename: 'AuthenticatorStateUpdateTransaction';
5796
- } | {
5797
5706
  __typename: 'ConsensusCommitPrologueTransaction';
5798
5707
  } | {
5799
5708
  __typename: 'EndOfEpochTransaction';
5800
5709
  transactions: {
5801
5710
  __typename?: 'EndOfEpochTransactionKindConnection';
5802
5711
  nodes: Array<{
5803
- __typename: 'AuthenticatorStateCreateTransaction';
5804
- } | {
5805
- __typename: 'AuthenticatorStateExpireTransaction';
5806
- } | {
5807
5712
  __typename: 'ChangeEpochTransaction';
5808
5713
  } | {
5809
5714
  __typename: 'ChangeEpochTransactionV2';
@@ -6485,6 +6390,7 @@ export type GetCurrentEpochQuery = {
6485
6390
  __typename?: 'Validator';
6486
6391
  atRisk?: any | null;
6487
6392
  commissionRate?: number | null;
6393
+ effectiveCommissionRate?: number | null;
6488
6394
  exchangeRatesSize?: any | null;
6489
6395
  description?: string | null;
6490
6396
  gasPrice?: any | null;
@@ -6548,6 +6454,7 @@ export type GetCurrentEpochQuery = {
6548
6454
  __typename?: 'Validator';
6549
6455
  atRisk?: any | null;
6550
6456
  commissionRate?: number | null;
6457
+ effectiveCommissionRate?: number | null;
6551
6458
  exchangeRatesSize?: any | null;
6552
6459
  description?: string | null;
6553
6460
  gasPrice?: any | null;
@@ -6631,6 +6538,7 @@ export type PaginateEpochValidatorsQuery = {
6631
6538
  __typename?: 'Validator';
6632
6539
  atRisk?: any | null;
6633
6540
  commissionRate?: number | null;
6541
+ effectiveCommissionRate?: number | null;
6634
6542
  exchangeRatesSize?: any | null;
6635
6543
  description?: string | null;
6636
6544
  gasPrice?: any | null;
@@ -6694,6 +6602,7 @@ export type PaginateEpochValidatorsQuery = {
6694
6602
  __typename?: 'Validator';
6695
6603
  atRisk?: any | null;
6696
6604
  commissionRate?: number | null;
6605
+ effectiveCommissionRate?: number | null;
6697
6606
  exchangeRatesSize?: any | null;
6698
6607
  description?: string | null;
6699
6608
  gasPrice?: any | null;
@@ -6753,6 +6662,7 @@ export type Rpc_Validator_FieldsFragment = {
6753
6662
  __typename?: 'Validator';
6754
6663
  atRisk?: any | null;
6755
6664
  commissionRate?: number | null;
6665
+ effectiveCommissionRate?: number | null;
6756
6666
  exchangeRatesSize?: any | null;
6757
6667
  description?: string | null;
6758
6668
  gasPrice?: any | null;
@@ -7032,6 +6942,7 @@ export type GetLatestIotaSystemStateQuery = {
7032
6942
  __typename?: 'Validator';
7033
6943
  atRisk?: any | null;
7034
6944
  commissionRate?: number | null;
6945
+ effectiveCommissionRate?: number | null;
7035
6946
  exchangeRatesSize?: any | null;
7036
6947
  description?: string | null;
7037
6948
  gasPrice?: any | null;
@@ -7095,6 +7006,7 @@ export type GetLatestIotaSystemStateQuery = {
7095
7006
  __typename?: 'Validator';
7096
7007
  atRisk?: any | null;
7097
7008
  commissionRate?: number | null;
7009
+ effectiveCommissionRate?: number | null;
7098
7010
  exchangeRatesSize?: any | null;
7099
7011
  description?: string | null;
7100
7012
  gasPrice?: any | null;