Comparing version 0.5.4 to 0.5.5-alpha.1
import { DfnsBaseApiOptions } from './baseAuthApi'; | ||
import { AuthClient } from './generated/auth'; | ||
import { ExchangesClient } from './generated/exchanges'; | ||
import { NetworksClient } from './generated/networks'; | ||
@@ -18,2 +19,3 @@ import { PermissionsClient } from './generated/permissions'; | ||
get auth(): AuthClient; | ||
get exchanges(): ExchangesClient; | ||
get networks(): NetworksClient; | ||
@@ -20,0 +22,0 @@ get permissions(): PermissionsClient; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const auth_1 = require("./generated/auth"); | ||
const exchanges_1 = require("./generated/exchanges"); | ||
const networks_1 = require("./generated/networks"); | ||
@@ -19,2 +20,5 @@ const permissions_1 = require("./generated/permissions"); | ||
} | ||
get exchanges() { | ||
return new exchanges_1.ExchangesClient(this.apiOptions); | ||
} | ||
get networks() { | ||
@@ -21,0 +25,0 @@ return new networks_1.NetworksClient(this.apiOptions); |
import { DfnsBaseApiOptions } from './baseAuthApi'; | ||
import { DelegatedAuthClient } from './generated/auth'; | ||
import { DelegatedExchangesClient } from './generated/exchanges'; | ||
import { DelegatedNetworksClient } from './generated/networks'; | ||
@@ -14,2 +15,3 @@ import { DelegatedPermissionsClient } from './generated/permissions'; | ||
get auth(): DelegatedAuthClient; | ||
get exchanges(): DelegatedExchangesClient; | ||
get networks(): DelegatedNetworksClient; | ||
@@ -16,0 +18,0 @@ get permissions(): DelegatedPermissionsClient; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const auth_1 = require("./generated/auth"); | ||
const exchanges_1 = require("./generated/exchanges"); | ||
const networks_1 = require("./generated/networks"); | ||
@@ -19,2 +20,5 @@ const permissions_1 = require("./generated/permissions"); | ||
} | ||
get exchanges() { | ||
return new exchanges_1.DelegatedExchangesClient(this.apiOptions); | ||
} | ||
get networks() { | ||
@@ -21,0 +25,0 @@ return new networks_1.DelegatedNetworksClient(this.apiOptions); |
@@ -55,3 +55,2 @@ import { DfnsApiClientOptions } from '../../dfnsApiClient'; | ||
listApplications(): Promise<T.ListApplicationsResponse>; | ||
listAvailableOrgs(request: T.ListAvailableOrgsRequest): Promise<T.ListAvailableOrgsResponse>; | ||
listCredentials(): Promise<T.ListCredentialsResponse>; | ||
@@ -58,0 +57,0 @@ /** @deprecated, use listCredentials instead */ |
@@ -473,14 +473,2 @@ "use strict"; | ||
} | ||
async listAvailableOrgs(request) { | ||
const path = (0, url_1.buildPathAndQuery)('/auth/login/orgs', { | ||
path: request ?? {}, | ||
query: {}, | ||
}); | ||
const response = await (0, fetch_1.simpleFetch)(path, { | ||
method: 'POST', | ||
body: request.body, | ||
apiOptions: this.apiOptions, | ||
}); | ||
return response.json(); | ||
} | ||
async listCredentials() { | ||
@@ -487,0 +475,0 @@ const path = (0, url_1.buildPathAndQuery)('/auth/credentials', { |
@@ -71,3 +71,2 @@ import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi'; | ||
listApplications(): Promise<T.ListApplicationsResponse>; | ||
listAvailableOrgs(request: T.ListAvailableOrgsRequest): Promise<T.ListAvailableOrgsResponse>; | ||
listCredentials(): Promise<T.ListCredentialsResponse>; | ||
@@ -74,0 +73,0 @@ /** @deprecated, use listCredentials instead */ |
@@ -803,14 +803,2 @@ "use strict"; | ||
} | ||
async listAvailableOrgs(request) { | ||
const path = (0, url_1.buildPathAndQuery)('/auth/login/orgs', { | ||
path: request ?? {}, | ||
query: {}, | ||
}); | ||
const response = await (0, fetch_1.simpleFetch)(path, { | ||
method: 'POST', | ||
body: request.body, | ||
apiOptions: this.apiOptions, | ||
}); | ||
return response.json(); | ||
} | ||
async listCredentials() { | ||
@@ -817,0 +805,0 @@ const path = (0, url_1.buildPathAndQuery)('/auth/credentials', { |
@@ -1497,17 +1497,2 @@ export type ActivateApplicationParams = { | ||
}; | ||
export type ListAvailableOrgsBody = { | ||
username: string; | ||
orgId?: string | undefined; | ||
permissions?: string[] | undefined; | ||
origin: string; | ||
}; | ||
export type ListAvailableOrgsResponse = { | ||
items: { | ||
orgId: string; | ||
appId: string; | ||
}[]; | ||
}; | ||
export type ListAvailableOrgsRequest = { | ||
body: ListAvailableOrgsBody; | ||
}; | ||
export type ListCredentialsResponse = { | ||
@@ -1514,0 +1499,0 @@ items: { |
@@ -39,3 +39,3 @@ export type ArchivePermissionBody = { | ||
name: string; | ||
operations: ("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" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Org:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "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" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[]; | ||
operations: ("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" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "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" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[]; | ||
}; | ||
@@ -182,3 +182,3 @@ export type CreatePermissionResponse = { | ||
name?: string | undefined; | ||
operations?: ("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" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Org:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "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" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined; | ||
operations?: ("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" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "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" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined; | ||
}; | ||
@@ -185,0 +185,0 @@ export type UpdatePermissionParams = { |
{ | ||
"name": "@dfns/sdk", | ||
"version": "0.5.4", | ||
"version": "0.5.5-alpha.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "buffer": "6.0.3", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
571925
113
14406
7