@iota/graphql-transport 0.16.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.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/generated/queries.d.ts +30 -132
- package/dist/cjs/generated/queries.d.ts.map +1 -1
- package/dist/cjs/generated/queries.js +1 -8
- package/dist/cjs/generated/queries.js.map +3 -3
- package/dist/cjs/methods.d.ts.map +1 -1
- package/dist/cjs/methods.js +0 -3
- package/dist/cjs/methods.js.map +2 -2
- package/dist/esm/generated/queries.d.ts +30 -132
- package/dist/esm/generated/queries.d.ts.map +1 -1
- package/dist/esm/generated/queries.js +1 -8
- package/dist/esm/generated/queries.js.map +3 -3
- package/dist/esm/methods.d.ts.map +1 -1
- package/dist/esm/methods.js +0 -3
- package/dist/esm/methods.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @iota/graphql-transport
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2223521: Subscriptions recovery types generation.
|
|
8
|
+
- 8043617: Add request inspector support for the GraphQLClient
|
|
9
|
+
- c4e159b: Remove ZkLogin.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [76ab06f]
|
|
14
|
+
- Updated dependencies [3b04d23]
|
|
15
|
+
- Updated dependencies [3b178c6]
|
|
16
|
+
- Updated dependencies [2223521]
|
|
17
|
+
- Updated dependencies [8043617]
|
|
18
|
+
- Updated dependencies [c4e159b]
|
|
19
|
+
- @iota/iota-sdk@1.14.0
|
|
20
|
+
|
|
3
21
|
## 0.16.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -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 =
|
|
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 =
|
|
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. */
|
|
@@ -5483,24 +5417,6 @@ export type ValidatorSetCommitteeMembersArgs = {
|
|
|
5483
5417
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
5484
5418
|
last?: InputMaybe<Scalars['Int']['input']>;
|
|
5485
5419
|
};
|
|
5486
|
-
/**
|
|
5487
|
-
* An enum that specifies the intent scope to be used to parse the bytes for
|
|
5488
|
-
* signature verification.
|
|
5489
|
-
*/
|
|
5490
|
-
export declare enum ZkLoginIntentScope {
|
|
5491
|
-
/** Indicates that the bytes are to be parsed as a personal message. */
|
|
5492
|
-
PersonalMessage = "PERSONAL_MESSAGE",
|
|
5493
|
-
/** Indicates that the bytes are to be parsed as transaction data bytes. */
|
|
5494
|
-
TransactionData = "TRANSACTION_DATA"
|
|
5495
|
-
}
|
|
5496
|
-
/** The result of the zkLogin signature verification. */
|
|
5497
|
-
export type ZkLoginVerifyResult = {
|
|
5498
|
-
__typename?: 'ZkLoginVerifyResult';
|
|
5499
|
-
/** The errors field captures any verification error */
|
|
5500
|
-
errors: Array<Scalars['String']['output']>;
|
|
5501
|
-
/** The boolean result of the verification. If true, errors should be empty. */
|
|
5502
|
-
success: Scalars['Boolean']['output'];
|
|
5503
|
-
};
|
|
5504
5420
|
export type GetCheckpointQueryVariables = Exact<{
|
|
5505
5421
|
id?: InputMaybe<CheckpointId>;
|
|
5506
5422
|
}>;
|
|
@@ -5543,18 +5459,12 @@ export type GetCheckpointQuery = {
|
|
|
5543
5459
|
nodes: Array<{
|
|
5544
5460
|
__typename?: 'TransactionBlock';
|
|
5545
5461
|
kind?: {
|
|
5546
|
-
__typename: 'AuthenticatorStateUpdateTransaction';
|
|
5547
|
-
} | {
|
|
5548
5462
|
__typename: 'ConsensusCommitPrologueTransaction';
|
|
5549
5463
|
} | {
|
|
5550
5464
|
__typename: 'EndOfEpochTransaction';
|
|
5551
5465
|
transactions: {
|
|
5552
5466
|
__typename?: 'EndOfEpochTransactionKindConnection';
|
|
5553
5467
|
nodes: Array<{
|
|
5554
|
-
__typename: 'AuthenticatorStateCreateTransaction';
|
|
5555
|
-
} | {
|
|
5556
|
-
__typename: 'AuthenticatorStateExpireTransaction';
|
|
5557
|
-
} | {
|
|
5558
5468
|
__typename: 'ChangeEpochTransaction';
|
|
5559
5469
|
} | {
|
|
5560
5470
|
__typename: 'ChangeEpochTransactionV2';
|
|
@@ -5668,18 +5578,12 @@ export type GetCheckpointsQuery = {
|
|
|
5668
5578
|
nodes: Array<{
|
|
5669
5579
|
__typename?: 'TransactionBlock';
|
|
5670
5580
|
kind?: {
|
|
5671
|
-
__typename: 'AuthenticatorStateUpdateTransaction';
|
|
5672
|
-
} | {
|
|
5673
5581
|
__typename: 'ConsensusCommitPrologueTransaction';
|
|
5674
5582
|
} | {
|
|
5675
5583
|
__typename: 'EndOfEpochTransaction';
|
|
5676
5584
|
transactions: {
|
|
5677
5585
|
__typename?: 'EndOfEpochTransactionKindConnection';
|
|
5678
5586
|
nodes: Array<{
|
|
5679
|
-
__typename: 'AuthenticatorStateCreateTransaction';
|
|
5680
|
-
} | {
|
|
5681
|
-
__typename: 'AuthenticatorStateExpireTransaction';
|
|
5682
|
-
} | {
|
|
5683
5587
|
__typename: 'ChangeEpochTransaction';
|
|
5684
5588
|
} | {
|
|
5685
5589
|
__typename: 'ChangeEpochTransactionV2';
|
|
@@ -5799,18 +5703,12 @@ export type Rpc_Checkpoint_FieldsFragment = {
|
|
|
5799
5703
|
nodes: Array<{
|
|
5800
5704
|
__typename?: 'TransactionBlock';
|
|
5801
5705
|
kind?: {
|
|
5802
|
-
__typename: 'AuthenticatorStateUpdateTransaction';
|
|
5803
|
-
} | {
|
|
5804
5706
|
__typename: 'ConsensusCommitPrologueTransaction';
|
|
5805
5707
|
} | {
|
|
5806
5708
|
__typename: 'EndOfEpochTransaction';
|
|
5807
5709
|
transactions: {
|
|
5808
5710
|
__typename?: 'EndOfEpochTransactionKindConnection';
|
|
5809
5711
|
nodes: Array<{
|
|
5810
|
-
__typename: 'AuthenticatorStateCreateTransaction';
|
|
5811
|
-
} | {
|
|
5812
|
-
__typename: 'AuthenticatorStateExpireTransaction';
|
|
5813
|
-
} | {
|
|
5814
5712
|
__typename: 'ChangeEpochTransaction';
|
|
5815
5713
|
} | {
|
|
5816
5714
|
__typename: 'ChangeEpochTransactionV2';
|