@dfns/sdk
Advanced tools
Comparing version 0.4.1 to 0.4.2-alpha.1
import { DfnsBaseApiOptions } from './baseAuthApi'; | ||
import { AssetsClient } from './codegen/Assets'; | ||
import { AuthClient } from './codegen/Auth'; | ||
import { AuthClient } from './generated/auth'; | ||
import { CallbacksClient } from './codegen/Callbacks'; | ||
@@ -5,0 +5,0 @@ import { PublicKeysClient } from './codegen/PublicKeys'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const Assets_1 = require("./codegen/Assets"); | ||
const Auth_1 = require("./codegen/Auth"); | ||
const auth_1 = require("./generated/auth"); | ||
const Callbacks_1 = require("./codegen/Callbacks"); | ||
@@ -23,3 +23,3 @@ const PublicKeys_1 = require("./codegen/PublicKeys"); | ||
get auth() { | ||
return new Auth_1.AuthClient(this.apiOptions); | ||
return new auth_1.AuthClient(this.apiOptions); | ||
} | ||
@@ -26,0 +26,0 @@ get callbacks() { |
import { DfnsBaseApiOptions } from './baseAuthApi'; | ||
import { DelegatedAssetsClient } from './codegen/Assets'; | ||
import { DelegatedAuthClient } from './codegen/Auth'; | ||
import { DelegatedAuthClient } from './generated/auth'; | ||
import { DelegatedCallbacksClient } from './codegen/Callbacks'; | ||
@@ -5,0 +5,0 @@ import { DelegatedPublicKeysClient } from './codegen/PublicKeys'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const Assets_1 = require("./codegen/Assets"); | ||
const Auth_1 = require("./codegen/Auth"); | ||
const auth_1 = require("./generated/auth"); | ||
const Callbacks_1 = require("./codegen/Callbacks"); | ||
@@ -23,3 +23,3 @@ const PublicKeys_1 = require("./codegen/PublicKeys"); | ||
get auth() { | ||
return new Auth_1.DelegatedAuthClient(this.apiOptions); | ||
return new auth_1.DelegatedAuthClient(this.apiOptions); | ||
} | ||
@@ -26,0 +26,0 @@ get callbacks() { |
@@ -9,12 +9,12 @@ export type GetFeesQuery = { | ||
slow: { | ||
maxPriorityFee: number; | ||
maxFee: number; | ||
maxPriorityFeePerGas: string; | ||
maxFeePerGas: string; | ||
}; | ||
standard: { | ||
maxPriorityFee: number; | ||
maxFee: number; | ||
maxPriorityFeePerGas: string; | ||
maxFeePerGas: string; | ||
}; | ||
fast: { | ||
maxPriorityFee: number; | ||
maxFee: number; | ||
maxPriorityFeePerGas: string; | ||
maxFeePerGas: string; | ||
}; | ||
@@ -21,0 +21,0 @@ estimatedBaseFee: number; |
@@ -11,8 +11,6 @@ export type ArchivePermissionBody = { | ||
operations: string[]; | ||
resourceId?: (string | undefined) | null; | ||
status: "Active"; | ||
predicateIds?: string[] | undefined; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
isArchived: boolean; | ||
@@ -34,4 +32,4 @@ }; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
}; | ||
@@ -43,3 +41,3 @@ export type CreateAssignmentRequest = CreateAssignmentParams & { | ||
name: string; | ||
operations: ("ApiKeys:Create" | "ApiKeys:Read" | "ApiKeys:Revoke" | "AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Employees:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[]; | ||
operations: ("ApiKeys:Create" | "ApiKeys:Read" | "ApiKeys:Revoke" | "AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Employees:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[]; | ||
}; | ||
@@ -50,8 +48,6 @@ export type CreatePermissionResponse = { | ||
operations: string[]; | ||
resourceId?: (string | undefined) | null; | ||
status: "Active"; | ||
predicateIds?: string[] | undefined; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
isArchived: boolean; | ||
@@ -75,8 +71,6 @@ }; | ||
operations: string[]; | ||
resourceId?: (string | undefined) | null; | ||
status: "Active"; | ||
predicateIds?: string[] | undefined; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
isArchived: boolean; | ||
@@ -109,4 +103,4 @@ } & { | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
} & { | ||
@@ -140,8 +134,6 @@ pendingChangeRequest?: { | ||
operations: string[]; | ||
resourceId?: (string | undefined) | null; | ||
status: "Active"; | ||
predicateIds?: string[] | undefined; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
isArchived: boolean; | ||
@@ -171,3 +163,3 @@ } & { | ||
name?: string | undefined; | ||
operations?: ("ApiKeys:Create" | "ApiKeys:Read" | "ApiKeys:Revoke" | "AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Employees:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined; | ||
operations?: ("ApiKeys:Create" | "ApiKeys:Read" | "ApiKeys:Revoke" | "AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Employees:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined; | ||
}; | ||
@@ -181,8 +173,6 @@ export type UpdatePermissionParams = { | ||
operations: string[]; | ||
resourceId?: (string | undefined) | null; | ||
status: "Active"; | ||
predicateIds?: string[] | undefined; | ||
isImmutable: boolean; | ||
dateCreated?: string | undefined; | ||
dateUpdated?: string | undefined; | ||
dateCreated: string; | ||
dateUpdated: string; | ||
isArchived: boolean; | ||
@@ -189,0 +179,0 @@ }; |
@@ -394,2 +394,3 @@ export type BroadcastTransactionBody = { | ||
memo?: string | undefined; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -400,2 +401,3 @@ kind: "Erc20"; | ||
amount: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -406,2 +408,3 @@ kind: "Erc721"; | ||
tokenId: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -994,2 +997,3 @@ kind: "Trc10"; | ||
memo?: string | undefined; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1000,2 +1004,3 @@ kind: "Erc20"; | ||
amount: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1006,2 +1011,3 @@ kind: "Erc721"; | ||
tokenId: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1086,2 +1092,3 @@ kind: "Trc10"; | ||
memo?: string | undefined; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1092,2 +1099,3 @@ kind: "Erc20"; | ||
amount: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1098,2 +1106,3 @@ kind: "Erc721"; | ||
tokenId: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1137,2 +1146,3 @@ kind: "Trc10"; | ||
memo?: string | undefined; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1143,2 +1153,3 @@ kind: "Erc20"; | ||
amount: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1149,2 +1160,3 @@ kind: "Erc721"; | ||
tokenId: string; | ||
priority?: ("Slow" | "Standard" | "Fast") | undefined; | ||
} | { | ||
@@ -1151,0 +1163,0 @@ kind: "Trc10"; |
{ | ||
"name": "@dfns/sdk", | ||
"version": "0.4.1", | ||
"version": "0.4.2-alpha.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "buffer": "6.0.3", |
@@ -72,1 +72,4 @@ export type CredentialFactor = 'first' | 'second' | 'either'; | ||
} | ||
export declare class EmptySigner implements CredentialSigner { | ||
sign(): Promise<never>; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EmptySigner = void 0; | ||
const dfnsError_1 = require("./dfnsError"); | ||
class EmptySigner { | ||
async sign() { | ||
throw new dfnsError_1.DfnsError(-1, 'A signature is required, but an EmptySigner cannot fulfill it.'); | ||
} | ||
} | ||
exports.EmptySigner = EmptySigner; |
2477598
189
84317