@zuplo/runtime 5.1965.0 → 5.1968.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/internal.d.ts +462 -2
- package/mocks.d.ts +468 -3
- package/package.json +1 -1
- package/types-beta.d.ts +538 -13
- package/types-public.d.ts +537 -12
package/types-public.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyLike } from 'jose';
|
|
2
|
-
import type { OpenAPIV3_1 } from 'openapi-types';
|
|
3
2
|
import type { ValidateFunction as ValidateFunction_2 } from 'ajv';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -390,7 +389,7 @@ declare interface AWSLoggingOptions {
|
|
|
390
389
|
export declare class AWSLoggingPlugin extends LogPlugin {
|
|
391
390
|
private options;
|
|
392
391
|
constructor(options: AWSLoggingOptions);
|
|
393
|
-
|
|
392
|
+
/* Excluded from this release type: getTransport */
|
|
394
393
|
}
|
|
395
394
|
|
|
396
395
|
export declare class BackgroundDispatcher<TPayload> {
|
|
@@ -904,13 +903,16 @@ declare interface DataDogMetricsOptions {
|
|
|
904
903
|
export declare class DataDogMetricsPlugin extends MetricsPlugin {
|
|
905
904
|
private options;
|
|
906
905
|
constructor(options: DataDogMetricsOptions);
|
|
907
|
-
|
|
906
|
+
/* Excluded from this release type: getTransport */
|
|
908
907
|
static setContext(context: ZuploContext, data: DataDogMetricsContext): void;
|
|
909
908
|
}
|
|
910
909
|
|
|
911
910
|
/* Excluded from this release type: DevPortalRuntimeConfig */
|
|
912
911
|
|
|
913
|
-
|
|
912
|
+
/**
|
|
913
|
+
* @public
|
|
914
|
+
*/
|
|
915
|
+
declare type DispatchFunction<TPayload> = (batch: TPayload[]) => Promise<void>;
|
|
914
916
|
|
|
915
917
|
declare interface DynaTraceLoggingOptions {
|
|
916
918
|
url: string;
|
|
@@ -938,7 +940,7 @@ declare interface DynatraceMetricsOptions {
|
|
|
938
940
|
export declare class DynatraceMetricsPlugin extends MetricsPlugin {
|
|
939
941
|
private options;
|
|
940
942
|
constructor(options: DynatraceMetricsOptions);
|
|
941
|
-
|
|
943
|
+
/* Excluded from this release type: getTransport */
|
|
942
944
|
static setContext(context: ZuploContext, data: DynatraceMetricsContext): void;
|
|
943
945
|
}
|
|
944
946
|
|
|
@@ -1286,7 +1288,12 @@ export declare class MemoryZoneReadThroughCache<T = unknown> {
|
|
|
1286
1288
|
put(key: string, data: T, ttlSeconds: number): void;
|
|
1287
1289
|
}
|
|
1288
1290
|
|
|
1289
|
-
|
|
1291
|
+
/**
|
|
1292
|
+
* Base class for determining type of plugin
|
|
1293
|
+
* @public
|
|
1294
|
+
*/
|
|
1295
|
+
declare abstract class MeteringPlugin extends SystemRuntimePlugin {
|
|
1296
|
+
}
|
|
1290
1297
|
|
|
1291
1298
|
/* Excluded from this release type: MeteringRegions */
|
|
1292
1299
|
|
|
@@ -1294,7 +1301,32 @@ export declare class MemoryZoneReadThroughCache<T = unknown> {
|
|
|
1294
1301
|
|
|
1295
1302
|
/* Excluded from this release type: MeteringSubscriptionStatus */
|
|
1296
1303
|
|
|
1297
|
-
|
|
1304
|
+
/**
|
|
1305
|
+
* @public
|
|
1306
|
+
*/
|
|
1307
|
+
declare interface MetricsData {
|
|
1308
|
+
timestamp: Date;
|
|
1309
|
+
durationMs: number;
|
|
1310
|
+
statusCode: number;
|
|
1311
|
+
requestContentLength?: number;
|
|
1312
|
+
responseContentLength?: number;
|
|
1313
|
+
requestId: string;
|
|
1314
|
+
routePath: string;
|
|
1315
|
+
systemRouteName?: string;
|
|
1316
|
+
method: HttpMethod;
|
|
1317
|
+
rayId?: string;
|
|
1318
|
+
instanceId: string;
|
|
1319
|
+
userSub?: string;
|
|
1320
|
+
clientIp?: string;
|
|
1321
|
+
asn?: number;
|
|
1322
|
+
asOrganization?: string;
|
|
1323
|
+
colo?: string;
|
|
1324
|
+
continent?: string;
|
|
1325
|
+
country?: string;
|
|
1326
|
+
city?: string;
|
|
1327
|
+
latitude?: string;
|
|
1328
|
+
longitude?: string;
|
|
1329
|
+
}
|
|
1298
1330
|
|
|
1299
1331
|
declare abstract class MetricsPlugin extends RuntimePlugin {
|
|
1300
1332
|
/* Excluded from this release type: getTransport */
|
|
@@ -1508,6 +1540,468 @@ declare interface OnSendingAwsLambdaEventHook {
|
|
|
1508
1540
|
|
|
1509
1541
|
/* Excluded from this release type: openApiSpecHandler */
|
|
1510
1542
|
|
|
1543
|
+
declare namespace OpenAPIV3 {
|
|
1544
|
+
interface Document<T extends {} = {}> {
|
|
1545
|
+
openapi: string;
|
|
1546
|
+
info: InfoObject;
|
|
1547
|
+
servers?: ServerObject[];
|
|
1548
|
+
paths: PathsObject<T>;
|
|
1549
|
+
components?: ComponentsObject;
|
|
1550
|
+
security?: SecurityRequirementObject[];
|
|
1551
|
+
tags?: TagObject[];
|
|
1552
|
+
externalDocs?: ExternalDocumentationObject;
|
|
1553
|
+
'x-express-openapi-additional-middleware'?: (((request: any, response: any, next: any) => Promise<void>) | ((request: any, response: any, next: any) => void))[];
|
|
1554
|
+
'x-express-openapi-validation-strict'?: boolean;
|
|
1555
|
+
}
|
|
1556
|
+
interface InfoObject {
|
|
1557
|
+
title: string;
|
|
1558
|
+
description?: string;
|
|
1559
|
+
termsOfService?: string;
|
|
1560
|
+
contact?: ContactObject;
|
|
1561
|
+
license?: LicenseObject;
|
|
1562
|
+
version: string;
|
|
1563
|
+
}
|
|
1564
|
+
interface ContactObject {
|
|
1565
|
+
name?: string;
|
|
1566
|
+
url?: string;
|
|
1567
|
+
email?: string;
|
|
1568
|
+
}
|
|
1569
|
+
interface LicenseObject {
|
|
1570
|
+
name: string;
|
|
1571
|
+
url?: string;
|
|
1572
|
+
}
|
|
1573
|
+
interface ServerObject {
|
|
1574
|
+
url: string;
|
|
1575
|
+
description?: string;
|
|
1576
|
+
variables?: {
|
|
1577
|
+
[variable: string]: ServerVariableObject;
|
|
1578
|
+
};
|
|
1579
|
+
}
|
|
1580
|
+
interface ServerVariableObject {
|
|
1581
|
+
enum?: string[];
|
|
1582
|
+
default: string;
|
|
1583
|
+
description?: string;
|
|
1584
|
+
}
|
|
1585
|
+
interface PathsObject<T extends {} = {}, P extends {} = {}> {
|
|
1586
|
+
[pattern: string]: (PathItemObject<T> & P) | undefined;
|
|
1587
|
+
}
|
|
1588
|
+
enum HttpMethods {
|
|
1589
|
+
GET = "get",
|
|
1590
|
+
PUT = "put",
|
|
1591
|
+
POST = "post",
|
|
1592
|
+
DELETE = "delete",
|
|
1593
|
+
OPTIONS = "options",
|
|
1594
|
+
HEAD = "head",
|
|
1595
|
+
PATCH = "patch",
|
|
1596
|
+
TRACE = "trace"
|
|
1597
|
+
}
|
|
1598
|
+
type PathItemObject<T extends {} = {}> = {
|
|
1599
|
+
$ref?: string;
|
|
1600
|
+
summary?: string;
|
|
1601
|
+
description?: string;
|
|
1602
|
+
servers?: ServerObject[];
|
|
1603
|
+
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1604
|
+
} & {
|
|
1605
|
+
[method in HttpMethods]?: OperationObject<T>;
|
|
1606
|
+
};
|
|
1607
|
+
type OperationObject<T extends {} = {}> = {
|
|
1608
|
+
tags?: string[];
|
|
1609
|
+
summary?: string;
|
|
1610
|
+
description?: string;
|
|
1611
|
+
externalDocs?: ExternalDocumentationObject;
|
|
1612
|
+
operationId?: string;
|
|
1613
|
+
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1614
|
+
requestBody?: ReferenceObject | RequestBodyObject;
|
|
1615
|
+
responses: ResponsesObject;
|
|
1616
|
+
callbacks?: {
|
|
1617
|
+
[callback: string]: ReferenceObject | CallbackObject;
|
|
1618
|
+
};
|
|
1619
|
+
deprecated?: boolean;
|
|
1620
|
+
security?: SecurityRequirementObject[];
|
|
1621
|
+
servers?: ServerObject[];
|
|
1622
|
+
} & T;
|
|
1623
|
+
interface ExternalDocumentationObject {
|
|
1624
|
+
description?: string;
|
|
1625
|
+
url: string;
|
|
1626
|
+
}
|
|
1627
|
+
interface ParameterObject extends ParameterBaseObject {
|
|
1628
|
+
name: string;
|
|
1629
|
+
in: string;
|
|
1630
|
+
}
|
|
1631
|
+
interface HeaderObject extends ParameterBaseObject {
|
|
1632
|
+
}
|
|
1633
|
+
interface ParameterBaseObject {
|
|
1634
|
+
description?: string;
|
|
1635
|
+
required?: boolean;
|
|
1636
|
+
deprecated?: boolean;
|
|
1637
|
+
allowEmptyValue?: boolean;
|
|
1638
|
+
style?: string;
|
|
1639
|
+
explode?: boolean;
|
|
1640
|
+
allowReserved?: boolean;
|
|
1641
|
+
schema?: ReferenceObject | SchemaObject;
|
|
1642
|
+
example?: any;
|
|
1643
|
+
examples?: {
|
|
1644
|
+
[media: string]: ReferenceObject | ExampleObject;
|
|
1645
|
+
};
|
|
1646
|
+
content?: {
|
|
1647
|
+
[media: string]: MediaTypeObject;
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
type NonArraySchemaObjectType = 'boolean' | 'object' | 'number' | 'string' | 'integer';
|
|
1651
|
+
type ArraySchemaObjectType = 'array';
|
|
1652
|
+
type SchemaObject = ArraySchemaObject | NonArraySchemaObject;
|
|
1653
|
+
interface ArraySchemaObject extends BaseSchemaObject {
|
|
1654
|
+
type: ArraySchemaObjectType;
|
|
1655
|
+
items: ReferenceObject | SchemaObject;
|
|
1656
|
+
}
|
|
1657
|
+
interface NonArraySchemaObject extends BaseSchemaObject {
|
|
1658
|
+
type?: NonArraySchemaObjectType;
|
|
1659
|
+
}
|
|
1660
|
+
interface BaseSchemaObject {
|
|
1661
|
+
title?: string;
|
|
1662
|
+
description?: string;
|
|
1663
|
+
format?: string;
|
|
1664
|
+
default?: any;
|
|
1665
|
+
multipleOf?: number;
|
|
1666
|
+
maximum?: number;
|
|
1667
|
+
exclusiveMaximum?: boolean;
|
|
1668
|
+
minimum?: number;
|
|
1669
|
+
exclusiveMinimum?: boolean;
|
|
1670
|
+
maxLength?: number;
|
|
1671
|
+
minLength?: number;
|
|
1672
|
+
pattern?: string;
|
|
1673
|
+
additionalProperties?: boolean | ReferenceObject | SchemaObject;
|
|
1674
|
+
maxItems?: number;
|
|
1675
|
+
minItems?: number;
|
|
1676
|
+
uniqueItems?: boolean;
|
|
1677
|
+
maxProperties?: number;
|
|
1678
|
+
minProperties?: number;
|
|
1679
|
+
required?: string[];
|
|
1680
|
+
enum?: any[];
|
|
1681
|
+
properties?: {
|
|
1682
|
+
[name: string]: ReferenceObject | SchemaObject;
|
|
1683
|
+
};
|
|
1684
|
+
allOf?: (ReferenceObject | SchemaObject)[];
|
|
1685
|
+
oneOf?: (ReferenceObject | SchemaObject)[];
|
|
1686
|
+
anyOf?: (ReferenceObject | SchemaObject)[];
|
|
1687
|
+
not?: ReferenceObject | SchemaObject;
|
|
1688
|
+
nullable?: boolean;
|
|
1689
|
+
discriminator?: DiscriminatorObject;
|
|
1690
|
+
readOnly?: boolean;
|
|
1691
|
+
writeOnly?: boolean;
|
|
1692
|
+
xml?: XMLObject;
|
|
1693
|
+
externalDocs?: ExternalDocumentationObject;
|
|
1694
|
+
example?: any;
|
|
1695
|
+
deprecated?: boolean;
|
|
1696
|
+
}
|
|
1697
|
+
interface DiscriminatorObject {
|
|
1698
|
+
propertyName: string;
|
|
1699
|
+
mapping?: {
|
|
1700
|
+
[value: string]: string;
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
interface XMLObject {
|
|
1704
|
+
name?: string;
|
|
1705
|
+
namespace?: string;
|
|
1706
|
+
prefix?: string;
|
|
1707
|
+
attribute?: boolean;
|
|
1708
|
+
wrapped?: boolean;
|
|
1709
|
+
}
|
|
1710
|
+
interface ReferenceObject {
|
|
1711
|
+
$ref: string;
|
|
1712
|
+
}
|
|
1713
|
+
interface ExampleObject {
|
|
1714
|
+
summary?: string;
|
|
1715
|
+
description?: string;
|
|
1716
|
+
value?: any;
|
|
1717
|
+
externalValue?: string;
|
|
1718
|
+
}
|
|
1719
|
+
interface MediaTypeObject {
|
|
1720
|
+
schema?: ReferenceObject | SchemaObject;
|
|
1721
|
+
example?: any;
|
|
1722
|
+
examples?: {
|
|
1723
|
+
[media: string]: ReferenceObject | ExampleObject;
|
|
1724
|
+
};
|
|
1725
|
+
encoding?: {
|
|
1726
|
+
[media: string]: EncodingObject;
|
|
1727
|
+
};
|
|
1728
|
+
}
|
|
1729
|
+
interface EncodingObject {
|
|
1730
|
+
contentType?: string;
|
|
1731
|
+
headers?: {
|
|
1732
|
+
[header: string]: ReferenceObject | HeaderObject;
|
|
1733
|
+
};
|
|
1734
|
+
style?: string;
|
|
1735
|
+
explode?: boolean;
|
|
1736
|
+
allowReserved?: boolean;
|
|
1737
|
+
}
|
|
1738
|
+
interface RequestBodyObject {
|
|
1739
|
+
description?: string;
|
|
1740
|
+
content: {
|
|
1741
|
+
[media: string]: MediaTypeObject;
|
|
1742
|
+
};
|
|
1743
|
+
required?: boolean;
|
|
1744
|
+
}
|
|
1745
|
+
interface ResponsesObject {
|
|
1746
|
+
[code: string]: ReferenceObject | ResponseObject;
|
|
1747
|
+
}
|
|
1748
|
+
interface ResponseObject {
|
|
1749
|
+
description: string;
|
|
1750
|
+
headers?: {
|
|
1751
|
+
[header: string]: ReferenceObject | HeaderObject;
|
|
1752
|
+
};
|
|
1753
|
+
content?: {
|
|
1754
|
+
[media: string]: MediaTypeObject;
|
|
1755
|
+
};
|
|
1756
|
+
links?: {
|
|
1757
|
+
[link: string]: ReferenceObject | LinkObject;
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
interface LinkObject {
|
|
1761
|
+
operationRef?: string;
|
|
1762
|
+
operationId?: string;
|
|
1763
|
+
parameters?: {
|
|
1764
|
+
[parameter: string]: any;
|
|
1765
|
+
};
|
|
1766
|
+
requestBody?: any;
|
|
1767
|
+
description?: string;
|
|
1768
|
+
server?: ServerObject;
|
|
1769
|
+
}
|
|
1770
|
+
interface CallbackObject {
|
|
1771
|
+
[url: string]: PathItemObject;
|
|
1772
|
+
}
|
|
1773
|
+
interface SecurityRequirementObject {
|
|
1774
|
+
[name: string]: string[];
|
|
1775
|
+
}
|
|
1776
|
+
interface ComponentsObject {
|
|
1777
|
+
schemas?: {
|
|
1778
|
+
[key: string]: ReferenceObject | SchemaObject;
|
|
1779
|
+
};
|
|
1780
|
+
responses?: {
|
|
1781
|
+
[key: string]: ReferenceObject | ResponseObject;
|
|
1782
|
+
};
|
|
1783
|
+
parameters?: {
|
|
1784
|
+
[key: string]: ReferenceObject | ParameterObject;
|
|
1785
|
+
};
|
|
1786
|
+
examples?: {
|
|
1787
|
+
[key: string]: ReferenceObject | ExampleObject;
|
|
1788
|
+
};
|
|
1789
|
+
requestBodies?: {
|
|
1790
|
+
[key: string]: ReferenceObject | RequestBodyObject;
|
|
1791
|
+
};
|
|
1792
|
+
headers?: {
|
|
1793
|
+
[key: string]: ReferenceObject | HeaderObject;
|
|
1794
|
+
};
|
|
1795
|
+
securitySchemes?: {
|
|
1796
|
+
[key: string]: ReferenceObject | SecuritySchemeObject;
|
|
1797
|
+
};
|
|
1798
|
+
links?: {
|
|
1799
|
+
[key: string]: ReferenceObject | LinkObject;
|
|
1800
|
+
};
|
|
1801
|
+
callbacks?: {
|
|
1802
|
+
[key: string]: ReferenceObject | CallbackObject;
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
type SecuritySchemeObject = HttpSecurityScheme | ApiKeySecurityScheme | OAuth2SecurityScheme | OpenIdSecurityScheme;
|
|
1806
|
+
interface HttpSecurityScheme {
|
|
1807
|
+
type: 'http';
|
|
1808
|
+
description?: string;
|
|
1809
|
+
scheme: string;
|
|
1810
|
+
bearerFormat?: string;
|
|
1811
|
+
}
|
|
1812
|
+
interface ApiKeySecurityScheme {
|
|
1813
|
+
type: 'apiKey';
|
|
1814
|
+
description?: string;
|
|
1815
|
+
name: string;
|
|
1816
|
+
in: string;
|
|
1817
|
+
}
|
|
1818
|
+
interface OAuth2SecurityScheme {
|
|
1819
|
+
type: 'oauth2';
|
|
1820
|
+
description?: string;
|
|
1821
|
+
flows: {
|
|
1822
|
+
implicit?: {
|
|
1823
|
+
authorizationUrl: string;
|
|
1824
|
+
refreshUrl?: string;
|
|
1825
|
+
scopes: {
|
|
1826
|
+
[scope: string]: string;
|
|
1827
|
+
};
|
|
1828
|
+
};
|
|
1829
|
+
password?: {
|
|
1830
|
+
tokenUrl: string;
|
|
1831
|
+
refreshUrl?: string;
|
|
1832
|
+
scopes: {
|
|
1833
|
+
[scope: string]: string;
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
clientCredentials?: {
|
|
1837
|
+
tokenUrl: string;
|
|
1838
|
+
refreshUrl?: string;
|
|
1839
|
+
scopes: {
|
|
1840
|
+
[scope: string]: string;
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1843
|
+
authorizationCode?: {
|
|
1844
|
+
authorizationUrl: string;
|
|
1845
|
+
tokenUrl: string;
|
|
1846
|
+
refreshUrl?: string;
|
|
1847
|
+
scopes: {
|
|
1848
|
+
[scope: string]: string;
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
interface OpenIdSecurityScheme {
|
|
1854
|
+
type: 'openIdConnect';
|
|
1855
|
+
description?: string;
|
|
1856
|
+
openIdConnectUrl: string;
|
|
1857
|
+
}
|
|
1858
|
+
interface TagObject {
|
|
1859
|
+
name: string;
|
|
1860
|
+
description?: string;
|
|
1861
|
+
externalDocs?: ExternalDocumentationObject;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
declare namespace OpenAPIV3_1 {
|
|
1866
|
+
type Modify<T, R> = Omit<T, keyof R> & R;
|
|
1867
|
+
type PathsWebhooksComponents<T extends {} = {}> = {
|
|
1868
|
+
paths: PathsObject<T>;
|
|
1869
|
+
webhooks: Record<string, PathItemObject | ReferenceObject>;
|
|
1870
|
+
components: ComponentsObject;
|
|
1871
|
+
};
|
|
1872
|
+
type Document<T extends {} = {}> = Modify<Omit<OpenAPIV3.Document<T>, 'paths' | 'components'>, {
|
|
1873
|
+
info: InfoObject;
|
|
1874
|
+
jsonSchemaDialect?: string;
|
|
1875
|
+
servers?: ServerObject[];
|
|
1876
|
+
} & ((Pick<PathsWebhooksComponents<T>, 'paths'> & Omit<Partial<PathsWebhooksComponents<T>>, 'paths'>) | (Pick<PathsWebhooksComponents<T>, 'webhooks'> & Omit<Partial<PathsWebhooksComponents<T>>, 'webhooks'>) | (Pick<PathsWebhooksComponents<T>, 'components'> & Omit<Partial<PathsWebhooksComponents<T>>, 'components'>))>;
|
|
1877
|
+
type InfoObject = Modify<OpenAPIV3.InfoObject, {
|
|
1878
|
+
summary?: string;
|
|
1879
|
+
license?: LicenseObject;
|
|
1880
|
+
}>;
|
|
1881
|
+
type ContactObject = OpenAPIV3.ContactObject;
|
|
1882
|
+
type LicenseObject = Modify<OpenAPIV3.LicenseObject, {
|
|
1883
|
+
identifier?: string;
|
|
1884
|
+
}>;
|
|
1885
|
+
type ServerObject = Modify<OpenAPIV3.ServerObject, {
|
|
1886
|
+
url: string;
|
|
1887
|
+
description?: string;
|
|
1888
|
+
variables?: Record<string, ServerVariableObject>;
|
|
1889
|
+
}>;
|
|
1890
|
+
type ServerVariableObject = Modify<OpenAPIV3.ServerVariableObject, {
|
|
1891
|
+
enum?: [string, ...string[]];
|
|
1892
|
+
}>;
|
|
1893
|
+
type PathsObject<T extends {} = {}, P extends {} = {}> = Record<string, (PathItemObject<T> & P) | undefined>;
|
|
1894
|
+
type HttpMethods = OpenAPIV3.HttpMethods;
|
|
1895
|
+
type PathItemObject<T extends {} = {}> = Modify<OpenAPIV3.PathItemObject<T>, {
|
|
1896
|
+
servers?: ServerObject[];
|
|
1897
|
+
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1898
|
+
}> & {
|
|
1899
|
+
[method in HttpMethods]?: OperationObject<T>;
|
|
1900
|
+
};
|
|
1901
|
+
type OperationObject<T extends {} = {}> = Modify<OpenAPIV3.OperationObject<T>, {
|
|
1902
|
+
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1903
|
+
requestBody?: ReferenceObject | RequestBodyObject;
|
|
1904
|
+
responses?: ResponsesObject;
|
|
1905
|
+
callbacks?: Record<string, ReferenceObject | CallbackObject>;
|
|
1906
|
+
servers?: ServerObject[];
|
|
1907
|
+
}> & T;
|
|
1908
|
+
type ExternalDocumentationObject = OpenAPIV3.ExternalDocumentationObject;
|
|
1909
|
+
type ParameterObject = OpenAPIV3.ParameterObject;
|
|
1910
|
+
type HeaderObject = OpenAPIV3.HeaderObject;
|
|
1911
|
+
type ParameterBaseObject = OpenAPIV3.ParameterBaseObject;
|
|
1912
|
+
type NonArraySchemaObjectType = OpenAPIV3.NonArraySchemaObjectType | 'null';
|
|
1913
|
+
type ArraySchemaObjectType = OpenAPIV3.ArraySchemaObjectType;
|
|
1914
|
+
/**
|
|
1915
|
+
* There is no way to tell typescript to require items when type is either 'array' or array containing 'array' type
|
|
1916
|
+
* 'items' will be always visible as optional
|
|
1917
|
+
* Casting schema object to ArraySchemaObject or NonArraySchemaObject will work fine
|
|
1918
|
+
*/
|
|
1919
|
+
type SchemaObject = ArraySchemaObject | NonArraySchemaObject | MixedSchemaObject;
|
|
1920
|
+
interface ArraySchemaObject extends BaseSchemaObject {
|
|
1921
|
+
type: ArraySchemaObjectType;
|
|
1922
|
+
items: ReferenceObject | SchemaObject;
|
|
1923
|
+
}
|
|
1924
|
+
interface NonArraySchemaObject extends BaseSchemaObject {
|
|
1925
|
+
type?: NonArraySchemaObjectType;
|
|
1926
|
+
}
|
|
1927
|
+
interface MixedSchemaObject extends BaseSchemaObject {
|
|
1928
|
+
type?: (ArraySchemaObjectType | NonArraySchemaObjectType)[];
|
|
1929
|
+
items?: ReferenceObject | SchemaObject;
|
|
1930
|
+
}
|
|
1931
|
+
type BaseSchemaObject = Modify<Omit<OpenAPIV3.BaseSchemaObject, 'nullable'>, {
|
|
1932
|
+
examples?: OpenAPIV3.BaseSchemaObject['example'][];
|
|
1933
|
+
exclusiveMinimum?: boolean | number;
|
|
1934
|
+
exclusiveMaximum?: boolean | number;
|
|
1935
|
+
contentMediaType?: string;
|
|
1936
|
+
$schema?: string;
|
|
1937
|
+
additionalProperties?: boolean | ReferenceObject | SchemaObject;
|
|
1938
|
+
properties?: {
|
|
1939
|
+
[name: string]: ReferenceObject | SchemaObject;
|
|
1940
|
+
};
|
|
1941
|
+
allOf?: (ReferenceObject | SchemaObject)[];
|
|
1942
|
+
oneOf?: (ReferenceObject | SchemaObject)[];
|
|
1943
|
+
anyOf?: (ReferenceObject | SchemaObject)[];
|
|
1944
|
+
not?: ReferenceObject | SchemaObject;
|
|
1945
|
+
discriminator?: DiscriminatorObject;
|
|
1946
|
+
externalDocs?: ExternalDocumentationObject;
|
|
1947
|
+
xml?: XMLObject;
|
|
1948
|
+
const?: any;
|
|
1949
|
+
}>;
|
|
1950
|
+
type DiscriminatorObject = OpenAPIV3.DiscriminatorObject;
|
|
1951
|
+
type XMLObject = OpenAPIV3.XMLObject;
|
|
1952
|
+
type ReferenceObject = Modify<OpenAPIV3.ReferenceObject, {
|
|
1953
|
+
summary?: string;
|
|
1954
|
+
description?: string;
|
|
1955
|
+
}>;
|
|
1956
|
+
type ExampleObject = OpenAPIV3.ExampleObject;
|
|
1957
|
+
type MediaTypeObject = Modify<OpenAPIV3.MediaTypeObject, {
|
|
1958
|
+
schema?: SchemaObject | ReferenceObject;
|
|
1959
|
+
examples?: Record<string, ReferenceObject | ExampleObject>;
|
|
1960
|
+
}>;
|
|
1961
|
+
type EncodingObject = OpenAPIV3.EncodingObject;
|
|
1962
|
+
type RequestBodyObject = Modify<OpenAPIV3.RequestBodyObject, {
|
|
1963
|
+
content: {
|
|
1964
|
+
[media: string]: MediaTypeObject;
|
|
1965
|
+
};
|
|
1966
|
+
}>;
|
|
1967
|
+
type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
|
|
1968
|
+
type ResponseObject = Modify<OpenAPIV3.ResponseObject, {
|
|
1969
|
+
headers?: {
|
|
1970
|
+
[header: string]: ReferenceObject | HeaderObject;
|
|
1971
|
+
};
|
|
1972
|
+
content?: {
|
|
1973
|
+
[media: string]: MediaTypeObject;
|
|
1974
|
+
};
|
|
1975
|
+
links?: {
|
|
1976
|
+
[link: string]: ReferenceObject | LinkObject;
|
|
1977
|
+
};
|
|
1978
|
+
}>;
|
|
1979
|
+
type LinkObject = Modify<OpenAPIV3.LinkObject, {
|
|
1980
|
+
server?: ServerObject;
|
|
1981
|
+
}>;
|
|
1982
|
+
type CallbackObject = Record<string, PathItemObject | ReferenceObject>;
|
|
1983
|
+
type SecurityRequirementObject = OpenAPIV3.SecurityRequirementObject;
|
|
1984
|
+
type ComponentsObject = Modify<OpenAPIV3.ComponentsObject, {
|
|
1985
|
+
schemas?: Record<string, SchemaObject>;
|
|
1986
|
+
responses?: Record<string, ReferenceObject | ResponseObject>;
|
|
1987
|
+
parameters?: Record<string, ReferenceObject | ParameterObject>;
|
|
1988
|
+
examples?: Record<string, ReferenceObject | ExampleObject>;
|
|
1989
|
+
requestBodies?: Record<string, ReferenceObject | RequestBodyObject>;
|
|
1990
|
+
headers?: Record<string, ReferenceObject | HeaderObject>;
|
|
1991
|
+
securitySchemes?: Record<string, ReferenceObject | SecuritySchemeObject>;
|
|
1992
|
+
links?: Record<string, ReferenceObject | LinkObject>;
|
|
1993
|
+
callbacks?: Record<string, ReferenceObject | CallbackObject>;
|
|
1994
|
+
pathItems?: Record<string, ReferenceObject | PathItemObject>;
|
|
1995
|
+
}>;
|
|
1996
|
+
type SecuritySchemeObject = OpenAPIV3.SecuritySchemeObject;
|
|
1997
|
+
type HttpSecurityScheme = OpenAPIV3.HttpSecurityScheme;
|
|
1998
|
+
type ApiKeySecurityScheme = OpenAPIV3.ApiKeySecurityScheme;
|
|
1999
|
+
type OAuth2SecurityScheme = OpenAPIV3.OAuth2SecurityScheme;
|
|
2000
|
+
type OpenIdSecurityScheme = OpenAPIV3.OpenIdSecurityScheme;
|
|
2001
|
+
type TagObject = OpenAPIV3.TagObject;
|
|
2002
|
+
{};
|
|
2003
|
+
}
|
|
2004
|
+
|
|
1511
2005
|
/**
|
|
1512
2006
|
* The Open ID JWT Authentication policy allows you to authenticate incoming requests using an Open ID compliant bearer token.
|
|
1513
2007
|
*
|
|
@@ -1617,7 +2111,16 @@ declare interface ParsedRouteData extends Omit<RouteData, "corsPolicies"> {
|
|
|
1617
2111
|
corsPolicies: ParsedCorsPolicyConfiguration[];
|
|
1618
2112
|
}
|
|
1619
2113
|
|
|
1620
|
-
|
|
2114
|
+
/**
|
|
2115
|
+
* @public
|
|
2116
|
+
* The base class for inbound and outbound policies
|
|
2117
|
+
*/
|
|
2118
|
+
declare abstract class PolicyBase<TOptions = any> {
|
|
2119
|
+
options: TOptions;
|
|
2120
|
+
policyName: string;
|
|
2121
|
+
policyType: string;
|
|
2122
|
+
/* Excluded from this release type: __constructor */
|
|
2123
|
+
}
|
|
1621
2124
|
|
|
1622
2125
|
export declare interface PolicyConfiguration {
|
|
1623
2126
|
name: string;
|
|
@@ -2128,7 +2631,11 @@ export declare interface RuntimeExtensionsFunction {
|
|
|
2128
2631
|
(runtime: RuntimeExtensions): Promise<void>;
|
|
2129
2632
|
}
|
|
2130
2633
|
|
|
2131
|
-
|
|
2634
|
+
/**
|
|
2635
|
+
* @public
|
|
2636
|
+
*/
|
|
2637
|
+
declare abstract class RuntimePlugin {
|
|
2638
|
+
}
|
|
2132
2639
|
|
|
2133
2640
|
/* Excluded from this release type: RuntimeSettings */
|
|
2134
2641
|
|
|
@@ -2448,11 +2955,24 @@ export declare interface SupabaseJwtInboundPolicyOptions {
|
|
|
2448
2955
|
|
|
2449
2956
|
/* Excluded from this release type: SystemRouteName */
|
|
2450
2957
|
|
|
2451
|
-
|
|
2958
|
+
/**
|
|
2959
|
+
* Plugins for registering system capabilities
|
|
2960
|
+
* @public
|
|
2961
|
+
*/
|
|
2962
|
+
declare abstract class SystemRuntimePlugin extends RuntimePlugin {
|
|
2963
|
+
/* Excluded from this release type: initialize */
|
|
2964
|
+
/* Excluded from this release type: registerRoutes */
|
|
2965
|
+
}
|
|
2452
2966
|
|
|
2453
2967
|
/* Excluded from this release type: TelemetryInitializationOptions */
|
|
2454
2968
|
|
|
2455
|
-
|
|
2969
|
+
/**
|
|
2970
|
+
* Base class for determining type of plugin
|
|
2971
|
+
* @public
|
|
2972
|
+
*/
|
|
2973
|
+
export declare abstract class TelemetryPlugin extends RuntimePlugin {
|
|
2974
|
+
/* Excluded from this release type: instrument */
|
|
2975
|
+
}
|
|
2456
2976
|
|
|
2457
2977
|
/**
|
|
2458
2978
|
* Uses Azure Active Directory to add an Authorization header to the request in order to authenticate requests using Azure identity.
|
|
@@ -2821,7 +3341,12 @@ export declare class VMWareLogInsightLoggingPlugin extends LogPlugin {
|
|
|
2821
3341
|
/* Excluded from this release type: getTransport */
|
|
2822
3342
|
}
|
|
2823
3343
|
|
|
2824
|
-
|
|
3344
|
+
/**
|
|
3345
|
+
* @public
|
|
3346
|
+
*/
|
|
3347
|
+
declare interface WaitUntilFunc {
|
|
3348
|
+
(promise: Promise<any>): void;
|
|
3349
|
+
}
|
|
2825
3350
|
|
|
2826
3351
|
/* Excluded from this release type: webSocketHandler */
|
|
2827
3352
|
|