Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amalto/typings

Package Overview
Dependencies
Maintainers
3
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amalto/typings - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

build/index.d.ts

@@ -5,3 +5,3 @@ import { Id, Ids, Description, ServiceItem, ServiceItems, ServiceItemFacade, ServiceItemFacades, CompiledWordings } from './models/Service';

import { UserModel, getUserJson, UserSearch } from './models/UserModel';
import { Auth, WebApi } from './models/WebApi';
import { WebApi } from './models/WebApi';
export { Id, Ids, Description, ServiceItem, ServiceItems, ServiceItemFacade, ServiceItemFacades, CompiledWordings };

@@ -11,2 +11,2 @@ export { Errors };

export { UserModel, getUserJson, UserSearch };
export { Auth, WebApi };
export { WebApi };
import { EndpointsUrl } from './EndpointsUrl';
declare namespace Auth {
interface AuthCodeBodyParameters {
code: string;
uname: string;
pw: string;
realm?: string;
}
interface AuthCodeData {
code: string;
scope: string;
redirect_uri: string;
state?: string;
}
interface TokenData {
access_token: string;
token_type: string;
expires_in: number;
refresh_token?: string;
scope?: string;
audience?: string;
user_id?: string;
}
interface TokenBodyParameters {
redirect_uri: string;
client_id: string;
client_secret: string;
grant_type: string;
code?: string;
refresh_token?: string;
}
}
interface WebApi {
requestAuthorizationCode: (code: string, uname: string, pw: string, realm?: string, cctx?: string) => Promise<Auth.AuthCodeData>;
requestAccessToken: (authorizationCode: string) => Promise<Auth.TokenData>;
requestClientAccessToken: () => Promise<Auth.TokenData>;
refreshAccessToken: () => Promise<Auth.TokenData>;
getWithClientToken: (url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean) => Promise<any>;

@@ -56,2 +21,2 @@ delWithClientToken: (url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean) => Promise<any>;

}
export { Auth, WebApi };
export { WebApi };
import { EndpointsUrl } from './EndpointsUrl'
namespace Auth {
export interface AuthCodeBodyParameters {
code: string;
uname: string;
pw: string;
realm?: string;
}
export interface AuthCodeData {
code: string;
scope: string;
redirect_uri: string;
state?: string;
}
export interface TokenData {
access_token: string
token_type: string
expires_in: number
refresh_token?: string
scope?: string
audience?: string
user_id?: string
}
export interface TokenBodyParameters {
redirect_uri: string
client_id: string
client_secret: string
grant_type: string
code?: string
refresh_token?: string
}
}
interface WebApi {
requestAuthorizationCode: ( code: string, uname: string, pw: string, realm?: string, cctx?: string ) => Promise<Auth.AuthCodeData>
requestAccessToken: ( authorizationCode: string ) => Promise<Auth.TokenData>
requestClientAccessToken: () => Promise<Auth.TokenData>
refreshAccessToken: () => Promise<Auth.TokenData>
getWithClientToken: ( url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean ) => Promise<any>

@@ -66,2 +24,2 @@ delWithClientToken: ( url: string, clientAccessToken: string, queryParameters?: any, disableTimeout?: boolean ) => Promise<any>

export { Auth, WebApi }
export { WebApi }

@@ -5,3 +5,3 @@ {

"description": "Interfaces used in Platform 6 UI component.",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

@@ -8,0 +8,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc