New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@luvio/generator-ts

Package Overview
Dependencies
Maintainers
0
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luvio/generator-ts - npm Package Compare versions

Comparing version 5.26.0 to 5.27.0

dist/types/v1/__tests__/test-utils/additional-properties-api.d.ts

3

dist/types/v1/__tests__/test-utils/any-api.d.ts

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class AnyAPI implements API {
export declare class AnyAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ArrayAPI implements API {
export declare class ArrayAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class DateTimeAPI implements API {
export declare class DateTimeAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class DiscriminatorAPI implements API {
export declare class DiscriminatorAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class EnumAPI implements API {
export declare class EnumAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -6,2 +6,5 @@ import type { Type, Property } from '@luvio/model/v1';

};
export declare function buildAllOf(...allOf: Type[]): Type & {
type: 'allOf';
};
export * from './array-api';

@@ -12,5 +15,5 @@ export * from './datetime-api';

export * from './object-api';
export * from './pattern-api';
export * from './additional-properties-api';
export * from './scalar-api';
export * from './union-api';
export * from './oneof-api';
export * from './any-api';

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ObjectAPI implements API {
export declare class ObjectAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ScalarAPI implements API {
export declare class ScalarAPI extends BaseAPI implements API {
typeRegistry: TypeRegistry;

@@ -4,0 +5,0 @@ constructor();

@@ -1,2 +0,2 @@

import type { Operation, ObjectType } from '@luvio/model/v1';
import type { Operation, Type } from '@luvio/model/v1';
import type { ContentModel } from '../model/base-command-model';

@@ -27,3 +27,3 @@ /**

*/
build(): ObjectType;
build(): Type;
}

@@ -18,3 +18,3 @@ import { BaseCommandModel } from './base-command-model';

type: "array";
items?: import("@luvio/model/v1").Type | undefined;
items: import("@luvio/model/v1").Type;
} & import("@luvio/model/v1").BaseType & {

@@ -21,0 +21,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -25,4 +25,10 @@ import { type ServiceVersion } from '@luvio/utils';

config: {
maxAge: number;
'max-age': number;
};
} | {
type: 'normalized';
'cache-control': {
'max-age': number;
};
key?: Record<string, string>;
};

@@ -100,3 +106,3 @@ export type ErrorStrategy = {

get body(): ContentModel | undefined;
get configType(): import("@luvio/model/v1").ObjectType;
get configType(): Type;
get responseType(): {

@@ -116,3 +122,3 @@ default: {

type: "array";
items?: Type | undefined;
items: Type;
} & import("@luvio/model/v1").BaseType & {

@@ -119,0 +125,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -14,3 +14,3 @@ import { BaseCommandModel, type ServiceDependency } from './base-command-model';

type: "array";
items?: import("@luvio/model/v1").Type | undefined;
items: import("@luvio/model/v1").Type;
} & import("@luvio/model/v1").BaseType & {

@@ -17,0 +17,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -21,17 +21,7 @@ import { type NamedService } from '@luvio/utils';

buildTypeCode(t: Type, options: TypeDefinitionForOptions): Code;
buildObjectCode(t: ObjectType, options: TypeDefinitionForOptions): Code[];
buildObjectCode(t: ObjectType, options: TypeDefinitionForOptions): Code;
buildDiscriminatedObjectCode(t: ObjectType & {
discriminator: Discriminator;
}, options: TypeDefinitionForOptions): Code[];
}, options: TypeDefinitionForOptions): Code;
buildObjectProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];
/**
* Process pattern properties in an object:
* - Collect all types from patterns to combine into one big UnionType: Record<string, type1 | ... | typeN>
* - Collect patterns for which we can't generate proper typings (all but //) and add a comment after the type.
*
* @param patternProperties
* @param options
* @returns Code | undefined
*/
buildPatternProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];
buildAdditionalProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];

@@ -38,0 +28,0 @@ buildTypeDeclaration(typename: string): ImportableReference;

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class AnyAPI implements API {
export declare class AnyAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ArrayAPI implements API {
export declare class ArrayAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class DateTimeAPI implements API {
export declare class DateTimeAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class DiscriminatorAPI implements API {
export declare class DiscriminatorAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class EnumAPI implements API {
export declare class EnumAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -6,2 +6,5 @@ import type { Type, Property } from '@luvio/model/v1';

};
export declare function buildAllOf(...allOf: Type[]): Type & {
type: 'allOf';
};
export * from './array-api';

@@ -12,5 +15,5 @@ export * from './datetime-api';

export * from './object-api';
export * from './pattern-api';
export * from './additional-properties-api';
export * from './scalar-api';
export * from './union-api';
export * from './oneof-api';
export * from './any-api';

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ObjectAPI implements API {
export declare class ObjectAPI extends BaseAPI implements API {
typeRegistry?: TypeRegistry;

@@ -4,0 +5,0 @@ get endpoints(): never[];

@@ -0,3 +1,4 @@

import { BaseAPI } from './base-api';
import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model/v1';
export declare class ScalarAPI implements API {
export declare class ScalarAPI extends BaseAPI implements API {
typeRegistry: TypeRegistry;

@@ -4,0 +5,0 @@ constructor();

@@ -1,2 +0,2 @@

import type { Operation, ObjectType } from '@luvio/model/v1';
import type { Operation, Type } from '@luvio/model/v1';
import type { ContentModel } from '../model/base-command-model';

@@ -27,3 +27,3 @@ /**

*/
build(): ObjectType;
build(): Type;
}

@@ -18,3 +18,3 @@ import { BaseCommandModel } from './base-command-model';

type: "array";
items?: import("@luvio/model/v1").Type | undefined;
items: import("@luvio/model/v1").Type;
} & import("@luvio/model/v1").BaseType & {

@@ -21,0 +21,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -25,4 +25,10 @@ import { type ServiceVersion } from '@luvio/utils';

config: {
maxAge: number;
'max-age': number;
};
} | {
type: 'normalized';
'cache-control': {
'max-age': number;
};
key?: Record<string, string>;
};

@@ -100,3 +106,3 @@ export type ErrorStrategy = {

get body(): ContentModel | undefined;
get configType(): import("@luvio/model/v1").ObjectType;
get configType(): Type;
get responseType(): {

@@ -116,3 +122,3 @@ default: {

type: "array";
items?: Type | undefined;
items: Type;
} & import("@luvio/model/v1").BaseType & {

@@ -119,0 +125,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -14,3 +14,3 @@ import { BaseCommandModel, type ServiceDependency } from './base-command-model';

type: "array";
items?: import("@luvio/model/v1").Type | undefined;
items: import("@luvio/model/v1").Type;
} & import("@luvio/model/v1").BaseType & {

@@ -17,0 +17,0 @@ items?: import("@luvio/model/v1").ScalarType | undefined;

@@ -21,17 +21,7 @@ import { type NamedService } from '@luvio/utils';

buildTypeCode(t: Type, options: TypeDefinitionForOptions): Code;
buildObjectCode(t: ObjectType, options: TypeDefinitionForOptions): Code[];
buildObjectCode(t: ObjectType, options: TypeDefinitionForOptions): Code;
buildDiscriminatedObjectCode(t: ObjectType & {
discriminator: Discriminator;
}, options: TypeDefinitionForOptions): Code[];
}, options: TypeDefinitionForOptions): Code;
buildObjectProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];
/**
* Process pattern properties in an object:
* - Collect all types from patterns to combine into one big UnionType: Record<string, type1 | ... | typeN>
* - Collect patterns for which we can't generate proper typings (all but //) and add a comment after the type.
*
* @param patternProperties
* @param options
* @returns Code | undefined
*/
buildPatternProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];
buildAdditionalProperties(t: ObjectType, options: TypeDefinitionForOptions): Code[];

@@ -38,0 +28,0 @@ buildTypeDeclaration(typename: string): ImportableReference;

{
"name": "@luvio/generator-ts",
"version": "5.26.0",
"version": "5.27.0",
"description": "Luvio TypeScript code generation",

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

"dependencies": {
"@luvio/jsonschema-validate": "5.26.0",
"@luvio/model": "5.26.0",
"@luvio/service-aura-network": "5.26.0",
"@luvio/service-fetch-network": "5.26.0",
"@luvio/service-provisioner": "5.26.0",
"@luvio/utils": "5.26.0",
"@luvio/jsonschema-validate": "5.27.0",
"@luvio/model": "5.27.0",
"@luvio/service-aura-network": "5.27.0",
"@luvio/service-fetch-network": "5.27.0",
"@luvio/service-provisioner": "5.27.0",
"@luvio/utils": "5.27.0",
"prettier": "^2.7.1"

@@ -40,0 +40,0 @@ },

Sorry, the diff of this file is too big to display

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