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

@taskmagic/shared

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taskmagic/shared - npm Package Compare versions

Comparing version 0.10.29 to 0.10.30

2

package.json
{
"name": "@taskmagic/shared",
"version": "0.10.29",
"version": "0.10.30",
"type": "commonjs",

@@ -5,0 +5,0 @@ "dependencies": {

import { Static } from '@sinclair/typebox';
import { BaseModel } from '../common/base-model';
import { OAuth2AuthorizationMethod } from './oauth2-authorization-method';
import { OAuth2GrantType } from './dto/upsert-app-connection-request';
export type AppConnectionId = string;

@@ -38,2 +39,3 @@ export declare enum AppConnectionStatus {

props?: Record<string, unknown>;
grant_type?: OAuth2GrantType;
};

@@ -40,0 +42,0 @@ export type CustomAuthConnectionValue = {

import { Static } from '@sinclair/typebox';
import { AppConnectionType } from '../app-connection';
import { OAuth2AuthorizationMethod } from '../oauth2-authorization-method';
export declare enum OAuth2GrantType {
AUTHORIZATION_CODE = "authorization_code",
CLIENT_CREDENTIALS = "client_credentials"
}
export declare const UpsertCustomAuthRequest: import("@sinclair/typebox").TObject<{

@@ -58,2 +62,3 @@ type: import("@sinclair/typebox").TLiteral<AppConnectionType.CUSTOM_AUTH>;

client_secret: import("@sinclair/typebox").TString<string>;
grant_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>>;
token_url: import("@sinclair/typebox").TString<string>;

@@ -94,2 +99,3 @@ props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>;

client_secret: import("@sinclair/typebox").TString<string>;
grant_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof OAuth2GrantType>>;
token_url: import("@sinclair/typebox").TString<string>;

@@ -96,0 +102,0 @@ props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TAny>>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpsertAppConnectionRequestBody = exports.UpsertBasicAuthRequest = exports.UpsertOAuth2Request = exports.UpsertSecretTextRequest = exports.UpsertCloudOAuth2Request = exports.UpsertPlatformOAuth2Request = exports.UpsertCustomAuthRequest = void 0;
exports.UpsertAppConnectionRequestBody = exports.UpsertBasicAuthRequest = exports.UpsertOAuth2Request = exports.UpsertSecretTextRequest = exports.UpsertCloudOAuth2Request = exports.UpsertPlatformOAuth2Request = exports.UpsertCustomAuthRequest = exports.OAuth2GrantType = void 0;
const typebox_1 = require("@sinclair/typebox");

@@ -11,2 +11,7 @@ const app_connection_1 = require("../app-connection");

};
var OAuth2GrantType;
(function (OAuth2GrantType) {
OAuth2GrantType["AUTHORIZATION_CODE"] = "authorization_code";
OAuth2GrantType["CLIENT_CREDENTIALS"] = "client_credentials";
})(OAuth2GrantType || (exports.OAuth2GrantType = OAuth2GrantType = {}));
exports.UpsertCustomAuthRequest = typebox_1.Type.Object(Object.assign(Object.assign({}, commonAuthProps), { type: typebox_1.Type.Literal(app_connection_1.AppConnectionType.CUSTOM_AUTH), value: typebox_1.Type.Object({

@@ -44,2 +49,3 @@ type: typebox_1.Type.Literal(app_connection_1.AppConnectionType.CUSTOM_AUTH),

client_secret: typebox_1.Type.String({}),
grant_type: typebox_1.Type.Optional(typebox_1.Type.Enum(OAuth2GrantType)),
token_url: typebox_1.Type.String({}),

@@ -46,0 +52,0 @@ props: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())),

export declare function assertNotNullOrUndefined<T>(value: T | null | undefined, fieldName: string): asserts value is T;
export declare function assertEqual<T>(value1: T, value2: T, fieldName1: string, fieldName2: string): void;
export declare function assertNotEqual<T>(value1: T, value2: T, fieldName1: string, fieldName2: string): void;
export declare const isNotUndefined: <T>(value: T | undefined) => value is T;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNotUndefined = exports.assertEqual = exports.assertNotNullOrUndefined = void 0;
exports.isNotUndefined = exports.assertNotEqual = exports.assertEqual = exports.assertNotNullOrUndefined = void 0;
function assertNotNullOrUndefined(value, fieldName) {

@@ -16,2 +16,8 @@ if (value === null || value === undefined) {

exports.assertEqual = assertEqual;
function assertNotEqual(value1, value2, fieldName1, fieldName2) {
if (value1 === value2) {
throw new Error(`${fieldName1} and ${fieldName2} should not be equal`);
}
}
exports.assertNotEqual = assertNotEqual;
const isNotUndefined = (value) => {

@@ -18,0 +24,0 @@ return value !== undefined;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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