@conduit-client/model 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/v1/index.d.ts +2 -1
- package/dist/types/v1/parser/__tests__/test-utils.d.ts +433 -0
- package/dist/types/v1/{amf → parser/amf}/AMFAPI.d.ts +3 -5
- package/dist/types/v1/{amf → parser/amf}/amf-api-service.d.ts +1 -8
- package/dist/types/v1/{amf → parser/amf}/amf-utils.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/endpoints/amf-endpoint.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/endpoints/amf-operation.d.ts +314 -314
- package/dist/types/v1/{amf → parser/amf}/index.d.ts +0 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFAllOfType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFAnyType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFArrayType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFBaseType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFDiscriminatedObjectType.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/AMFEnumType.d.ts +3 -3
- package/dist/types/v1/{amf → parser/amf}/types/AMFNilType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFNotType.d.ts +3 -3
- package/dist/types/v1/{amf → parser/amf}/types/AMFObjectType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFOneOfType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFRefType.d.ts +1 -1
- package/dist/types/v1/{amf → parser/amf}/types/AMFScalarTypes.d.ts +3 -3
- package/dist/types/v1/parser/amf/types/__tests__/AMFOneOfType.spec.d.ts +1 -0
- package/dist/types/v1/parser/amf/types/__tests__/AMFScalarType.spec.d.ts +1 -0
- package/dist/types/v1/{amf → parser/amf}/types/factory.d.ts +2 -2
- package/dist/types/v1/{amf → parser/amf}/types/index.d.ts +1 -2
- package/dist/types/v1/parser/parser-utils.d.ts +10 -0
- package/dist/types/v1/parser/zod-schemas.d.ts +445 -0
- package/dist/v1/index.js +1847 -1819
- package/dist/v1/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/types/v1/amf/__tests__/test-utils.d.ts +0 -211
- package/dist/types/v1/amf/types/annotations-schemas.d.ts +0 -172
- /package/dist/types/v1/{amf/types → parser}/__tests__/annotations-schemas.spec.d.ts +0 -0
- /package/dist/types/v1/{amf/__tests__/AMFAPI.spec.d.ts → parser/__tests__/parser-api.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-api-service.spec.d.ts → parser/__tests__/parser-utils.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-extensions-services.spec.d.ts → parser/__tests__/type-factory.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-extensions.spec.d.ts → parser/amf/__tests__/AMFAPI.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/amf-utils.spec.d.ts → parser/amf/__tests__/amf-api-service.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/parser.spec.d.ts → parser/amf/__tests__/amf-extensions-services.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/validation.spec.d.ts → parser/amf/__tests__/amf-extensions.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/__tests__/version.spec.d.ts → parser/amf/__tests__/amf-utils.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/endpoints/__tests__/amf-endpoint.spec.d.ts → parser/amf/__tests__/parser.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/endpoints/__tests__/amf-operation.spec.d.ts → parser/amf/__tests__/validation.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFAnyType.spec.d.ts → parser/amf/__tests__/version.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/amf-extensions.d.ts +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFArrayType.spec.d.ts → parser/amf/endpoints/__tests__/amf-endpoint.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFBaseType.spec.d.ts → parser/amf/endpoints/__tests__/amf-operation.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/parser.d.ts +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFDiscriminatedObjectType.spec.d.ts → parser/amf/types/__tests__/AMFAnyType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFEnumType.spec.d.ts → parser/amf/types/__tests__/AMFArrayType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFNilType.spec.d.ts → parser/amf/types/__tests__/AMFBaseType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFNotType.spec.d.ts → parser/amf/types/__tests__/AMFDiscriminatedObjectType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFObjectType.spec.d.ts → parser/amf/types/__tests__/AMFEnumType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFOneOfType.spec.d.ts → parser/amf/types/__tests__/AMFNilType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/AMFScalarType.spec.d.ts → parser/amf/types/__tests__/AMFNotType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf/types/__tests__/factory.spec.d.ts → parser/amf/types/__tests__/AMFObjectType.spec.d.ts} +0 -0
- /package/dist/types/v1/{amf → parser/amf}/validation.d.ts +0 -0
- /package/dist/types/v1/{amf → parser/amf}/version.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFType } from '.';
|
|
3
|
-
import type { AllOfType, DiscriminatedObjectType, Type } from '
|
|
3
|
+
import type { AllOfType, DiscriminatedObjectType, Type } from '../../../types';
|
|
4
4
|
import type amf from 'amf-client-js';
|
|
5
5
|
export type AMFAllOfType = AMFType & AllOfType;
|
|
6
6
|
export declare class AMFAllOfTypeImpl extends AMFBaseType<'allOf', amf.AnyShape> implements AMFAllOfType {
|
|
@@ -18,6 +18,6 @@ export declare class AMFAllOfTypeImpl extends AMFBaseType<'allOf', amf.AnyShape>
|
|
|
18
18
|
key: {
|
|
19
19
|
fields: Record<string, string>;
|
|
20
20
|
};
|
|
21
|
-
'cache-control': import("
|
|
21
|
+
'cache-control': import("../../..").TypeCacheControlExtension;
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFType } from '.';
|
|
3
|
-
import type { AnyType } from '
|
|
3
|
+
import type { AnyType } from '../../../types';
|
|
4
4
|
export type AMFAnyType = AMFType & AnyType;
|
|
5
5
|
export declare class AMFAnyTypeImpl extends AMFBaseType<'any'> implements AMFAnyType {
|
|
6
6
|
type: "any";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type amf from 'amf-client-js';
|
|
3
3
|
import type { AMFType } from '.';
|
|
4
|
-
import type { ArrayType, Type } from '
|
|
4
|
+
import type { ArrayType, Type } from '../../../types';
|
|
5
5
|
export type AMFArrayType = AMFType & ArrayType;
|
|
6
6
|
export declare class AMFArrayTypeImpl extends AMFBaseType<'array', amf.ArrayShape> implements AMFArrayType {
|
|
7
7
|
type: "array";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { AMFTypeFactory } from './factory';
|
|
2
2
|
import type amf from 'amf-client-js';
|
|
3
|
-
import type { BaseType, Type, TypeExtensions, TypeRegistry } from '
|
|
3
|
+
import type { BaseType, Type, TypeExtensions, TypeRegistry } from '../../../types';
|
|
4
4
|
import type { AMFType } from '.';
|
|
5
5
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
6
|
-
import type { API } from '
|
|
6
|
+
import type { API } from '../../../api';
|
|
7
7
|
export declare abstract class AMFBaseType<T extends Type['type'], S extends amf.AnyShape = amf.AnyShape> implements BaseType {
|
|
8
8
|
api: API;
|
|
9
9
|
shape: S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AMFObjectType, type AMFType, type AMFTypeFactory, AMFTypeProps } from './index';
|
|
2
2
|
import type amf from 'amf-client-js';
|
|
3
|
-
import type { DiscriminatedObjectType, Type, TypeRegistry } from '
|
|
4
|
-
import type { API } from '
|
|
3
|
+
import type { DiscriminatedObjectType, Type, TypeRegistry } from '../../../types';
|
|
4
|
+
import type { API } from '../../../api';
|
|
5
5
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
6
6
|
import { AMFBaseType } from './AMFBaseType';
|
|
7
7
|
export type AMFDiscriminatedObjectType = AMFTypeProps<amf.NodeShape> & DiscriminatedObjectType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFType, AMFTypeFactory, AMFTypeProps } from '.';
|
|
3
|
-
import type { EnumType } from '
|
|
3
|
+
import type { EnumType } from '../../../types';
|
|
4
4
|
import type amf from 'amf-client-js';
|
|
5
|
-
import type { TypeRegistry } from '
|
|
5
|
+
import type { TypeRegistry } from '../../../types';
|
|
6
6
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
7
|
-
import type { API } from '
|
|
7
|
+
import type { API } from '../../../api';
|
|
8
8
|
export type AMFEnumType = AMFTypeProps & EnumType;
|
|
9
9
|
export declare class AMFEnumTypeImpl extends AMFBaseType<'enum'> implements AMFEnumType {
|
|
10
10
|
shape: amf.NodeShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFTypeProps } from '.';
|
|
3
|
-
import type { NilType } from '
|
|
3
|
+
import type { NilType } from '../../../types';
|
|
4
4
|
export type AMFNilType = AMFTypeProps & NilType;
|
|
5
5
|
export declare class AMFNilTypeImpl extends AMFBaseType<'nil'> implements AMFNilType {
|
|
6
6
|
type: "nil";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFType, AMFTypeFactory, AMFTypeProps } from '.';
|
|
3
|
-
import type { NotType, Type } from '
|
|
3
|
+
import type { NotType, Type } from '../../../types';
|
|
4
4
|
import type amf from 'amf-client-js';
|
|
5
|
-
import type { TypeRegistry } from '
|
|
5
|
+
import type { TypeRegistry } from '../../../types';
|
|
6
6
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
7
|
-
import type { API } from '
|
|
7
|
+
import type { API } from '../../../api';
|
|
8
8
|
export type AMFNotType = AMFTypeProps<amf.NodeShape> & NotType;
|
|
9
9
|
export declare class AMFNotTypeImpl extends AMFBaseType<'not', amf.NodeShape> implements AMFNotType {
|
|
10
10
|
shape: amf.NodeShape;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type amf from 'amf-client-js';
|
|
3
3
|
import type { AMFTypeProps } from '.';
|
|
4
|
-
import type { Property, ObjectType, Type } from '
|
|
4
|
+
import type { Property, ObjectType, Type } from '../../../types';
|
|
5
5
|
export type AMFObjectType = AMFTypeProps<amf.NodeShape> & ObjectType;
|
|
6
6
|
export declare class AMFObjectTypeImpl extends AMFBaseType<'object', amf.NodeShape> implements AMFObjectType {
|
|
7
7
|
type: "object";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type { AMFType } from '.';
|
|
3
|
-
import type { OneOf } from '
|
|
3
|
+
import type { OneOf } from '../../../types';
|
|
4
4
|
import type amf from 'amf-client-js';
|
|
5
5
|
export type AMFOneOfType = AMFType & OneOf;
|
|
6
6
|
export declare class AMFOneOfTypeImpl extends AMFBaseType<'oneOf', amf.UnionShape> implements AMFOneOfType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
|
-
import type { RefType, AMFType, Type } from '
|
|
2
|
+
import type { RefType, AMFType, Type } from '../../../';
|
|
3
3
|
import type amf from 'amf-client-js';
|
|
4
4
|
export type AMFRefType = AMFType & RefType;
|
|
5
5
|
export declare class AMFRefTypeImpl extends AMFBaseType<'ref', amf.AnyShape> implements AMFRefType {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AMFBaseType } from './AMFBaseType';
|
|
2
2
|
import type amf from 'amf-client-js';
|
|
3
3
|
import type { AMFTypeProps, AMFType, AMFTypeFactory } from '.';
|
|
4
|
-
import type { BooleanType, DateTimeOnlyType, DateTimeType, DateType, DoubleType, IntegerType, NumberType, ScalarType, StringType, TimeType } from '
|
|
5
|
-
import type { TypeRegistry } from '
|
|
4
|
+
import type { BooleanType, DateTimeOnlyType, DateTimeType, DateType, DoubleType, IntegerType, NumberType, ScalarType, StringType, TimeType } from '../../../types';
|
|
5
|
+
import type { TypeRegistry } from '../../../types';
|
|
6
6
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
7
|
-
import type { API } from '
|
|
7
|
+
import type { API } from '../../../api';
|
|
8
8
|
export type AMFBooleanType = AMFTypeProps & BooleanType;
|
|
9
9
|
export type AMFDoubleType = AMFTypeProps & DoubleType;
|
|
10
10
|
export type AMFIntegerType = AMFTypeProps & IntegerType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type amf from 'amf-client-js';
|
|
2
2
|
import type { AMFType } from '.';
|
|
3
|
-
import type { TypeRegistry, Type } from '
|
|
3
|
+
import type { TypeRegistry, Type } from '../../../types';
|
|
4
4
|
import type { FileParserLogger, LoggerService } from '@conduit-client/utils';
|
|
5
|
-
import type { API } from '
|
|
5
|
+
import type { API } from '../../../api';
|
|
6
6
|
/**
|
|
7
7
|
* Constructs an AMFType based on the provided AMF Shape and a set of parameters that guide the creation process.
|
|
8
8
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type amf from 'amf-client-js';
|
|
2
|
-
import type { Type } from '
|
|
2
|
+
import type { Type } from '../../../types';
|
|
3
3
|
export type AMFTypeProps<S extends amf.AnyShape = amf.AnyShape> = {
|
|
4
4
|
shape: S;
|
|
5
5
|
resolve: () => void;
|
|
@@ -13,4 +13,3 @@ export * from './AMFNilType';
|
|
|
13
13
|
export * from './AMFScalarTypes';
|
|
14
14
|
export * from './AMFOneOfType';
|
|
15
15
|
export * from './factory';
|
|
16
|
-
export * from './annotations-schemas';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { API, APIService } from '../api';
|
|
2
|
+
export declare const V1_VERSION = "1.0.0";
|
|
3
|
+
export declare const ANONYMOUS_TYPE_NAME = "<anonymous>";
|
|
4
|
+
/**
|
|
5
|
+
* Wraps an already-created API in an APIService.
|
|
6
|
+
*
|
|
7
|
+
* @param api an API
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function asAPIService(api: API): APIService;
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CacheStrategy } from '../api';
|
|
3
|
+
export declare const rootExtensionSchema: z.ZodObject<{
|
|
4
|
+
onestore: z.ZodObject<{
|
|
5
|
+
version: z.ZodEffects<z.ZodString, import("@conduit-client/utils").Version, string>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
version: import("@conduit-client/utils").Version;
|
|
8
|
+
}, {
|
|
9
|
+
version: string;
|
|
10
|
+
}>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
onestore: {
|
|
13
|
+
version: import("@conduit-client/utils").Version;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
onestore: {
|
|
17
|
+
version: string;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
export declare const cacheControl: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
21
|
+
type: z.ZodLiteral<"max-age">;
|
|
22
|
+
'max-age': z.ZodNumber;
|
|
23
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
'max-age': number;
|
|
26
|
+
type: "max-age";
|
|
27
|
+
'stale-while-revalidate'?: number | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
'max-age': number;
|
|
30
|
+
type: "max-age";
|
|
31
|
+
'stale-while-revalidate'?: number | undefined;
|
|
32
|
+
}>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"no-cache">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
type: "no-cache";
|
|
36
|
+
}, {
|
|
37
|
+
type: "no-cache";
|
|
38
|
+
}>]>;
|
|
39
|
+
export declare const resourceCacheControl: z.ZodObject<{
|
|
40
|
+
'max-age': z.ZodNumber;
|
|
41
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
'max-age': number;
|
|
44
|
+
'stale-while-revalidate'?: number | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
'max-age': number;
|
|
47
|
+
'stale-while-revalidate'?: number | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const operationCacheStrategy: (defaultCacheStrategyType?: Pick<CacheStrategy, "type">) => z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"none">;
|
|
51
|
+
}, "strict", z.ZodTypeAny, {
|
|
52
|
+
type: "none";
|
|
53
|
+
}, {
|
|
54
|
+
type: "none";
|
|
55
|
+
}>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"resource">;
|
|
57
|
+
config: z.ZodObject<{
|
|
58
|
+
'max-age': z.ZodNumber;
|
|
59
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
}, "strict", z.ZodTypeAny, {
|
|
61
|
+
'max-age': number;
|
|
62
|
+
'stale-while-revalidate'?: number | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
'max-age': number;
|
|
65
|
+
'stale-while-revalidate'?: number | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
}, "strict", z.ZodTypeAny, {
|
|
68
|
+
type: "resource";
|
|
69
|
+
config: {
|
|
70
|
+
'max-age': number;
|
|
71
|
+
'stale-while-revalidate'?: number | undefined;
|
|
72
|
+
};
|
|
73
|
+
}, {
|
|
74
|
+
type: "resource";
|
|
75
|
+
config: {
|
|
76
|
+
'max-age': number;
|
|
77
|
+
'stale-while-revalidate'?: number | undefined;
|
|
78
|
+
};
|
|
79
|
+
}>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"normalized">;
|
|
81
|
+
'cache-control': z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<"max-age">;
|
|
83
|
+
'max-age': z.ZodNumber;
|
|
84
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
'max-age': number;
|
|
87
|
+
type: "max-age";
|
|
88
|
+
'stale-while-revalidate'?: number | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
'max-age': number;
|
|
91
|
+
type: "max-age";
|
|
92
|
+
'stale-while-revalidate'?: number | undefined;
|
|
93
|
+
}>, z.ZodObject<{
|
|
94
|
+
type: z.ZodLiteral<"no-cache">;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
type: "no-cache";
|
|
97
|
+
}, {
|
|
98
|
+
type: "no-cache";
|
|
99
|
+
}>]>>;
|
|
100
|
+
key: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
101
|
+
}, "strict", z.ZodTypeAny, {
|
|
102
|
+
type: "normalized";
|
|
103
|
+
key?: Record<string, string> | undefined;
|
|
104
|
+
'cache-control'?: {
|
|
105
|
+
'max-age': number;
|
|
106
|
+
type: "max-age";
|
|
107
|
+
'stale-while-revalidate'?: number | undefined;
|
|
108
|
+
} | {
|
|
109
|
+
type: "no-cache";
|
|
110
|
+
} | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
type: "normalized";
|
|
113
|
+
key?: Record<string, string> | undefined;
|
|
114
|
+
'cache-control'?: {
|
|
115
|
+
'max-age': number;
|
|
116
|
+
type: "max-age";
|
|
117
|
+
'stale-while-revalidate'?: number | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
type: "no-cache";
|
|
120
|
+
} | undefined;
|
|
121
|
+
}>]>, {
|
|
122
|
+
type: "none";
|
|
123
|
+
} | {
|
|
124
|
+
type: "resource";
|
|
125
|
+
config: {
|
|
126
|
+
'max-age': number;
|
|
127
|
+
'stale-while-revalidate'?: number | undefined;
|
|
128
|
+
};
|
|
129
|
+
} | {
|
|
130
|
+
type: "normalized";
|
|
131
|
+
key?: Record<string, string> | undefined;
|
|
132
|
+
'cache-control'?: {
|
|
133
|
+
'max-age': number;
|
|
134
|
+
type: "max-age";
|
|
135
|
+
'stale-while-revalidate'?: number | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
type: "no-cache";
|
|
138
|
+
} | undefined;
|
|
139
|
+
}, unknown>;
|
|
140
|
+
export declare const typeExtensions: z.ZodObject<{
|
|
141
|
+
key: z.ZodObject<{
|
|
142
|
+
fields: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
fields: Record<string, string>;
|
|
145
|
+
}, {
|
|
146
|
+
fields: Record<string, string>;
|
|
147
|
+
}>;
|
|
148
|
+
'cache-control': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
149
|
+
type: z.ZodLiteral<"max-age">;
|
|
150
|
+
'max-age': z.ZodNumber;
|
|
151
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
}, "strict", z.ZodTypeAny, {
|
|
153
|
+
'max-age': number;
|
|
154
|
+
type: "max-age";
|
|
155
|
+
'stale-while-revalidate'?: number | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
'max-age': number;
|
|
158
|
+
type: "max-age";
|
|
159
|
+
'stale-while-revalidate'?: number | undefined;
|
|
160
|
+
}>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"no-cache">;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
type: "no-cache";
|
|
164
|
+
}, {
|
|
165
|
+
type: "no-cache";
|
|
166
|
+
}>]>;
|
|
167
|
+
}, "strict", z.ZodTypeAny, {
|
|
168
|
+
key: {
|
|
169
|
+
fields: Record<string, string>;
|
|
170
|
+
};
|
|
171
|
+
'cache-control': {
|
|
172
|
+
'max-age': number;
|
|
173
|
+
type: "max-age";
|
|
174
|
+
'stale-while-revalidate'?: number | undefined;
|
|
175
|
+
} | {
|
|
176
|
+
type: "no-cache";
|
|
177
|
+
};
|
|
178
|
+
}, {
|
|
179
|
+
key: {
|
|
180
|
+
fields: Record<string, string>;
|
|
181
|
+
};
|
|
182
|
+
'cache-control': {
|
|
183
|
+
'max-age': number;
|
|
184
|
+
type: "max-age";
|
|
185
|
+
'stale-while-revalidate'?: number | undefined;
|
|
186
|
+
} | {
|
|
187
|
+
type: "no-cache";
|
|
188
|
+
};
|
|
189
|
+
}>;
|
|
190
|
+
export declare const baseExtensionsSchema: z.ZodObject<{
|
|
191
|
+
onestore: z.ZodObject<{
|
|
192
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
operations: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
'cache-strategy': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
195
|
+
type: z.ZodLiteral<"none">;
|
|
196
|
+
}, "strict", z.ZodTypeAny, {
|
|
197
|
+
type: "none";
|
|
198
|
+
}, {
|
|
199
|
+
type: "none";
|
|
200
|
+
}>, z.ZodObject<{
|
|
201
|
+
type: z.ZodLiteral<"resource">;
|
|
202
|
+
}, "strict", z.ZodTypeAny, {
|
|
203
|
+
type: "resource";
|
|
204
|
+
}, {
|
|
205
|
+
type: "resource";
|
|
206
|
+
}>, z.ZodObject<{
|
|
207
|
+
type: z.ZodLiteral<"normalized">;
|
|
208
|
+
}, "strict", z.ZodTypeAny, {
|
|
209
|
+
type: "normalized";
|
|
210
|
+
}, {
|
|
211
|
+
type: "normalized";
|
|
212
|
+
}>]>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
'cache-strategy': {
|
|
215
|
+
type: "none";
|
|
216
|
+
} | {
|
|
217
|
+
type: "resource";
|
|
218
|
+
} | {
|
|
219
|
+
type: "normalized";
|
|
220
|
+
};
|
|
221
|
+
}, {
|
|
222
|
+
'cache-strategy': {
|
|
223
|
+
type: "none";
|
|
224
|
+
} | {
|
|
225
|
+
type: "resource";
|
|
226
|
+
} | {
|
|
227
|
+
type: "normalized";
|
|
228
|
+
};
|
|
229
|
+
}>>;
|
|
230
|
+
schemas: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
'cache-control': z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
232
|
+
type: z.ZodLiteral<"max-age">;
|
|
233
|
+
'max-age': z.ZodNumber;
|
|
234
|
+
'stale-while-revalidate': z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
'max-age': number;
|
|
237
|
+
type: "max-age";
|
|
238
|
+
'stale-while-revalidate'?: number | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
'max-age': number;
|
|
241
|
+
type: "max-age";
|
|
242
|
+
'stale-while-revalidate'?: number | undefined;
|
|
243
|
+
}>, z.ZodObject<{
|
|
244
|
+
type: z.ZodLiteral<"no-cache">;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
type: "no-cache";
|
|
247
|
+
}, {
|
|
248
|
+
type: "no-cache";
|
|
249
|
+
}>]>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
'cache-control': {
|
|
252
|
+
'max-age': number;
|
|
253
|
+
type: "max-age";
|
|
254
|
+
'stale-while-revalidate'?: number | undefined;
|
|
255
|
+
} | {
|
|
256
|
+
type: "no-cache";
|
|
257
|
+
};
|
|
258
|
+
}, {
|
|
259
|
+
'cache-control': {
|
|
260
|
+
'max-age': number;
|
|
261
|
+
type: "max-age";
|
|
262
|
+
'stale-while-revalidate'?: number | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
type: "no-cache";
|
|
265
|
+
};
|
|
266
|
+
}>>;
|
|
267
|
+
}, "strict", z.ZodTypeAny, {
|
|
268
|
+
operations?: {
|
|
269
|
+
'cache-strategy': {
|
|
270
|
+
type: "none";
|
|
271
|
+
} | {
|
|
272
|
+
type: "resource";
|
|
273
|
+
} | {
|
|
274
|
+
type: "normalized";
|
|
275
|
+
};
|
|
276
|
+
} | undefined;
|
|
277
|
+
schemas?: {
|
|
278
|
+
'cache-control': {
|
|
279
|
+
'max-age': number;
|
|
280
|
+
type: "max-age";
|
|
281
|
+
'stale-while-revalidate'?: number | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
type: "no-cache";
|
|
284
|
+
};
|
|
285
|
+
} | undefined;
|
|
286
|
+
}, {
|
|
287
|
+
operations?: {
|
|
288
|
+
'cache-strategy': {
|
|
289
|
+
type: "none";
|
|
290
|
+
} | {
|
|
291
|
+
type: "resource";
|
|
292
|
+
} | {
|
|
293
|
+
type: "normalized";
|
|
294
|
+
};
|
|
295
|
+
} | undefined;
|
|
296
|
+
schemas?: {
|
|
297
|
+
'cache-control': {
|
|
298
|
+
'max-age': number;
|
|
299
|
+
type: "max-age";
|
|
300
|
+
'stale-while-revalidate'?: number | undefined;
|
|
301
|
+
} | {
|
|
302
|
+
type: "no-cache";
|
|
303
|
+
};
|
|
304
|
+
} | undefined;
|
|
305
|
+
}>>;
|
|
306
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
307
|
+
type: z.ZodString;
|
|
308
|
+
version: z.ZodString;
|
|
309
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
310
|
+
default: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
+
}, "strict", z.ZodTypeAny, {
|
|
312
|
+
type: string;
|
|
313
|
+
version: string;
|
|
314
|
+
tags?: Record<string, string> | undefined;
|
|
315
|
+
default?: boolean | undefined;
|
|
316
|
+
}, {
|
|
317
|
+
type: string;
|
|
318
|
+
version: string;
|
|
319
|
+
tags?: Record<string, string> | undefined;
|
|
320
|
+
default?: boolean | undefined;
|
|
321
|
+
}>>>;
|
|
322
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
323
|
+
version: z.ZodString;
|
|
324
|
+
}, "strict", z.ZodTypeAny, {
|
|
325
|
+
version: string;
|
|
326
|
+
services?: Record<string, {
|
|
327
|
+
type: string;
|
|
328
|
+
version: string;
|
|
329
|
+
tags?: Record<string, string> | undefined;
|
|
330
|
+
default?: boolean | undefined;
|
|
331
|
+
}> | undefined;
|
|
332
|
+
defaults?: {
|
|
333
|
+
operations?: {
|
|
334
|
+
'cache-strategy': {
|
|
335
|
+
type: "none";
|
|
336
|
+
} | {
|
|
337
|
+
type: "resource";
|
|
338
|
+
} | {
|
|
339
|
+
type: "normalized";
|
|
340
|
+
};
|
|
341
|
+
} | undefined;
|
|
342
|
+
schemas?: {
|
|
343
|
+
'cache-control': {
|
|
344
|
+
'max-age': number;
|
|
345
|
+
type: "max-age";
|
|
346
|
+
'stale-while-revalidate'?: number | undefined;
|
|
347
|
+
} | {
|
|
348
|
+
type: "no-cache";
|
|
349
|
+
};
|
|
350
|
+
} | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
namespace?: string | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
version: string;
|
|
355
|
+
services?: Record<string, {
|
|
356
|
+
type: string;
|
|
357
|
+
version: string;
|
|
358
|
+
tags?: Record<string, string> | undefined;
|
|
359
|
+
default?: boolean | undefined;
|
|
360
|
+
}> | undefined;
|
|
361
|
+
defaults?: {
|
|
362
|
+
operations?: {
|
|
363
|
+
'cache-strategy': {
|
|
364
|
+
type: "none";
|
|
365
|
+
} | {
|
|
366
|
+
type: "resource";
|
|
367
|
+
} | {
|
|
368
|
+
type: "normalized";
|
|
369
|
+
};
|
|
370
|
+
} | undefined;
|
|
371
|
+
schemas?: {
|
|
372
|
+
'cache-control': {
|
|
373
|
+
'max-age': number;
|
|
374
|
+
type: "max-age";
|
|
375
|
+
'stale-while-revalidate'?: number | undefined;
|
|
376
|
+
} | {
|
|
377
|
+
type: "no-cache";
|
|
378
|
+
};
|
|
379
|
+
} | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
namespace?: string | undefined;
|
|
382
|
+
}>;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
onestore: {
|
|
385
|
+
version: string;
|
|
386
|
+
services?: Record<string, {
|
|
387
|
+
type: string;
|
|
388
|
+
version: string;
|
|
389
|
+
tags?: Record<string, string> | undefined;
|
|
390
|
+
default?: boolean | undefined;
|
|
391
|
+
}> | undefined;
|
|
392
|
+
defaults?: {
|
|
393
|
+
operations?: {
|
|
394
|
+
'cache-strategy': {
|
|
395
|
+
type: "none";
|
|
396
|
+
} | {
|
|
397
|
+
type: "resource";
|
|
398
|
+
} | {
|
|
399
|
+
type: "normalized";
|
|
400
|
+
};
|
|
401
|
+
} | undefined;
|
|
402
|
+
schemas?: {
|
|
403
|
+
'cache-control': {
|
|
404
|
+
'max-age': number;
|
|
405
|
+
type: "max-age";
|
|
406
|
+
'stale-while-revalidate'?: number | undefined;
|
|
407
|
+
} | {
|
|
408
|
+
type: "no-cache";
|
|
409
|
+
};
|
|
410
|
+
} | undefined;
|
|
411
|
+
} | undefined;
|
|
412
|
+
namespace?: string | undefined;
|
|
413
|
+
};
|
|
414
|
+
}, {
|
|
415
|
+
onestore: {
|
|
416
|
+
version: string;
|
|
417
|
+
services?: Record<string, {
|
|
418
|
+
type: string;
|
|
419
|
+
version: string;
|
|
420
|
+
tags?: Record<string, string> | undefined;
|
|
421
|
+
default?: boolean | undefined;
|
|
422
|
+
}> | undefined;
|
|
423
|
+
defaults?: {
|
|
424
|
+
operations?: {
|
|
425
|
+
'cache-strategy': {
|
|
426
|
+
type: "none";
|
|
427
|
+
} | {
|
|
428
|
+
type: "resource";
|
|
429
|
+
} | {
|
|
430
|
+
type: "normalized";
|
|
431
|
+
};
|
|
432
|
+
} | undefined;
|
|
433
|
+
schemas?: {
|
|
434
|
+
'cache-control': {
|
|
435
|
+
'max-age': number;
|
|
436
|
+
type: "max-age";
|
|
437
|
+
'stale-while-revalidate'?: number | undefined;
|
|
438
|
+
} | {
|
|
439
|
+
type: "no-cache";
|
|
440
|
+
};
|
|
441
|
+
} | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
namespace?: string | undefined;
|
|
444
|
+
};
|
|
445
|
+
}>;
|