@zapier/kitcore 0.19.0 → 0.20.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/CHANGELOG.md +53 -0
- package/README.md +45 -0
- package/dist/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +248 -59
- package/dist/index.d.ts +248 -59
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1802,6 +1802,10 @@ type DisposeFn = (bag: {
|
|
|
1802
1802
|
/** The surfaced shape of one re-exported child: a method's callable or a
|
|
1803
1803
|
* property's value. */
|
|
1804
1804
|
type ExportSurface<TChild extends AnyLeafPlugin> = TChild extends MethodPlugin<any, infer TInput, infer TOutput, infer TPositional> ? SurfaceCall<TInput, TOutput, TPositional> : TChild extends PropertyPlugin<any, infer TValue> ? TValue : never;
|
|
1805
|
+
/** The bindings a module surfaces: each export under its binding name. */
|
|
1806
|
+
type AggregateBindings<TExports extends Record<string, AnyLeafPlugin>> = {
|
|
1807
|
+
[K in keyof TExports]: ExportSurface<TExports[K]>;
|
|
1808
|
+
};
|
|
1805
1809
|
/**
|
|
1806
1810
|
* The SDK surface a plugin contributes, derived from its descriptor: a
|
|
1807
1811
|
* method's callable or a property's value under its name, or an aggregate's
|
|
@@ -1823,9 +1827,7 @@ type PluginSurface<P extends AnyPlugin> = P extends MethodPlugin<infer TName, in
|
|
|
1823
1827
|
[K in TName]: SurfaceCall<TInput, TOutput, TPositional>;
|
|
1824
1828
|
} : P extends PropertyPlugin<infer TName, infer TValue> ? {
|
|
1825
1829
|
[K in TName]: TValue;
|
|
1826
|
-
} : P extends AggregatePlugin<string, infer TExports> ?
|
|
1827
|
-
[K in keyof TExports]: ExportSurface<TExports[K]>;
|
|
1828
|
-
} : never;
|
|
1830
|
+
} : P extends AggregatePlugin<string, infer TExports> ? AggregateBindings<TExports> : never;
|
|
1829
1831
|
/**
|
|
1830
1832
|
* The framework-owned access an SDK carries beyond its string surface.
|
|
1831
1833
|
*
|
|
@@ -1861,9 +1863,7 @@ type PropertySdk<TName extends string, TValue> = {
|
|
|
1861
1863
|
* surface entry, typed from the re-exported child (callable for a method,
|
|
1862
1864
|
* value for a property).
|
|
1863
1865
|
*/
|
|
1864
|
-
type AggregateSdk<TExports extends Record<string, AnyLeafPlugin>> =
|
|
1865
|
-
[K in keyof TExports]: ExportSurface<TExports[K]>;
|
|
1866
|
-
} & SdkInternals;
|
|
1866
|
+
type AggregateSdk<TExports extends Record<string, AnyLeafPlugin>> = AggregateBindings<TExports> & SdkInternals;
|
|
1867
1867
|
/**
|
|
1868
1868
|
* The surface a plugin adds to an SDK when passed to `addPlugin`: a method
|
|
1869
1869
|
* under its name, a property's value, an aggregate's export bindings, or a
|
|
@@ -1880,12 +1880,59 @@ type AddedSurface<P> = [P] extends [AnyPlugin] ? [
|
|
|
1880
1880
|
type LiteralString<T extends string> = string extends T ? never : T;
|
|
1881
1881
|
declare const REQUIRES: unique symbol;
|
|
1882
1882
|
declare const PROVIDES: unique symbol;
|
|
1883
|
-
|
|
1884
|
-
|
|
1883
|
+
declare const REQUIRED_CONTRACTS: unique symbol;
|
|
1884
|
+
declare const PROVIDED_CONTRACTS: unique symbol;
|
|
1885
|
+
/**
|
|
1886
|
+
* One id's contract, as the ledger compares it: the binding a consumer of that
|
|
1887
|
+
* id sees. A method's is its {@link SurfaceCall}, a property's is its value, an
|
|
1888
|
+
* aggregate's is its export-bindings record.
|
|
1889
|
+
*
|
|
1890
|
+
* The surfaced binding, not the raw `run`, is the thing compared, because that
|
|
1891
|
+
* is what a consumer actually calls. Under `strictFunctionTypes` that gives the
|
|
1892
|
+
* useful rule: a provider may accept WIDER input and must return a SUBTYPE of
|
|
1893
|
+
* the declared output.
|
|
1894
|
+
*/
|
|
1895
|
+
interface ContractEntry<TId extends string = string, TBinding = unknown> {
|
|
1896
|
+
readonly id: TId;
|
|
1897
|
+
readonly binding: TBinding;
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* The input a contract compares on. A `void` input means "the caller passes
|
|
1901
|
+
* nothing", and the only value that expresses is `undefined`. Comparing the
|
|
1902
|
+
* literal `void` would reject nearly every provider, because `void` is
|
|
1903
|
+
* assignable to almost nothing, so a provider taking an optional argument
|
|
1904
|
+
* would fail a declaration it serves perfectly. A provider that demands real
|
|
1905
|
+
* input is still rejected: `undefined` is not assignable to it.
|
|
1906
|
+
*/
|
|
1907
|
+
type ContractInput<TInput> = [TInput] extends [void] ? undefined : TInput;
|
|
1908
|
+
/** The contract binding a method contributes: its surfaced call signature. */
|
|
1909
|
+
type MethodContract<TInput, TOutput, TPositional extends readonly string[] = readonly []> = SurfaceCall<ContractInput<TInput>, TOutput, TPositional>;
|
|
1910
|
+
/**
|
|
1911
|
+
* The contract input of a method whose surfaced call carries framework keys on
|
|
1912
|
+
* top of the author's own (`item` adds `CallOutputOptions`, `list` adds those
|
|
1913
|
+
* plus `PaginatedCallInput`).
|
|
1914
|
+
*
|
|
1915
|
+
* A `run` that declares no input infers `unknown`, and intersecting `unknown`
|
|
1916
|
+
* with those keys collapses it to an all-optional object. Comparing against
|
|
1917
|
+
* THAT rejects any declared input sharing no key with it (TypeScript's
|
|
1918
|
+
* weak-type rule), even though the provider reads no input at all and serves
|
|
1919
|
+
* every caller. Keep it `unknown` in that case.
|
|
1920
|
+
*/
|
|
1921
|
+
type CallContractInput<TInput, TFrameworkInput> = [unknown] extends [
|
|
1922
|
+
TInput
|
|
1923
|
+
] ? unknown : TInput & TFrameworkInput;
|
|
1924
|
+
/** Phantom carriers for the requirements and contract ledgers; never present at
|
|
1925
|
+
* runtime. The contract parameters default to `never`, so a summary written
|
|
1926
|
+
* with two arguments carries no contract and is unchanged. */
|
|
1927
|
+
interface PluginSummary<TRequires extends string = never, TProvides extends string = never, TRequiredContracts extends ContractEntry = never, TProvidedContracts extends ContractEntry = never> {
|
|
1885
1928
|
/** Declaration ids the plugin's subgraph still needs. @internal */
|
|
1886
1929
|
readonly [REQUIRES]?: TRequires;
|
|
1887
1930
|
/** Ids the plugin and its subgraph provide. @internal */
|
|
1888
1931
|
readonly [PROVIDES]?: TProvides;
|
|
1932
|
+
/** Contracts the plugin's subgraph declared, by id. @internal */
|
|
1933
|
+
readonly [REQUIRED_CONTRACTS]?: TRequiredContracts;
|
|
1934
|
+
/** Contracts the plugin's subgraph implements, by id. @internal */
|
|
1935
|
+
readonly [PROVIDED_CONTRACTS]?: TProvidedContracts;
|
|
1889
1936
|
}
|
|
1890
1937
|
/**
|
|
1891
1938
|
* The id a stand-in declares, carried separately from the requires ledger.
|
|
@@ -1914,9 +1961,20 @@ type RequiresOf<P> = P extends {
|
|
|
1914
1961
|
type ProvidesOf$1<P> = P extends {
|
|
1915
1962
|
readonly [PROVIDES]?: infer R;
|
|
1916
1963
|
} ? Extract<R, string> : never;
|
|
1964
|
+
/** The contracts a plugin's subgraph declared (reads the phantom carrier). */
|
|
1965
|
+
type RequiredContractsOf<P> = P extends {
|
|
1966
|
+
readonly [REQUIRED_CONTRACTS]?: infer C;
|
|
1967
|
+
} ? Extract<C, ContractEntry> : never;
|
|
1968
|
+
/** The contracts a plugin's subgraph implements (reads the phantom carrier). */
|
|
1969
|
+
type ProvidedContractsOf<P> = P extends {
|
|
1970
|
+
readonly [PROVIDED_CONTRACTS]?: infer C;
|
|
1971
|
+
} ? Extract<C, ContractEntry> : never;
|
|
1917
1972
|
/** Union the requires / provides across an inline imports or exports tuple. */
|
|
1918
1973
|
type RequiresIn<T extends readonly unknown[]> = RequiresOf<T[number]>;
|
|
1919
1974
|
type ProvidesIn<T extends readonly unknown[]> = ProvidesOf$1<T[number]>;
|
|
1975
|
+
/** Union the contracts across an inline imports or exports tuple. */
|
|
1976
|
+
type RequiredContractsIn<T extends readonly unknown[]> = RequiredContractsOf<T[number]>;
|
|
1977
|
+
type ProvidedContractsIn<T extends readonly unknown[]> = ProvidedContractsOf<T[number]>;
|
|
1920
1978
|
/**
|
|
1921
1979
|
* Reject an `imports` / `exports` value whose type widened to a non-tuple
|
|
1922
1980
|
* `Plugin[]`: a literal tuple has a literal `length`, a widened array has
|
|
@@ -1927,14 +1985,6 @@ type ProvidesIn<T extends readonly unknown[]> = ProvidesOf$1<T[number]>;
|
|
|
1927
1985
|
type StaticList<T extends readonly unknown[]> = number extends T["length"] ? {
|
|
1928
1986
|
readonly __kitcoreError: "must be a fixed inline list of plugins, not a widened Plugin[]; declare them inline so the dependency graph stays statically known";
|
|
1929
1987
|
} : T;
|
|
1930
|
-
/** A leaf provides its own name plus whatever its imports provide. */
|
|
1931
|
-
type LeafProvides<TName extends string, TImports extends readonly unknown[]> = TName | ProvidesIn<TImports>;
|
|
1932
|
-
/** A leaf requires its imports' requirements, minus what it provides. */
|
|
1933
|
-
type LeafRequires<TName extends string, TImports extends readonly unknown[]> = Exclude<RequiresIn<TImports>, LeafProvides<TName, TImports>>;
|
|
1934
|
-
/** An aggregate provides its own name plus its imports' and exports' provides. */
|
|
1935
|
-
type AggregateProvides<TName extends string, TImports extends readonly unknown[], TExports extends readonly unknown[]> = TName | ProvidesIn<TImports> | ProvidesIn<TExports>;
|
|
1936
|
-
/** An aggregate requires its imports' and exports' requirements, minus provides. */
|
|
1937
|
-
type AggregateRequires<TName extends string, TImports extends readonly unknown[], TExports extends readonly unknown[]> = Exclude<RequiresIn<TImports> | RequiresIn<TExports>, AggregateProvides<TName, TImports, TExports>>;
|
|
1938
1988
|
/** A plugin's id as a type: `namespace/name`, or bare `name` when the namespace
|
|
1939
1989
|
* is empty. The ledger keys on this (matching runtime id resolution), not the
|
|
1940
1990
|
* bare name, so same-named plugins in different namespaces stay distinct. */
|
|
@@ -1942,10 +1992,83 @@ type IdOf<TNamespace extends string, TName extends string> = TNamespace extends
|
|
|
1942
1992
|
/** The binding name of an id: its last `/`-separated segment. The inverse view
|
|
1943
1993
|
* of `IdOf`, used by `declare*` to derive the bare binding from a full id. */
|
|
1944
1994
|
type LastSegment<TId extends string> = TId extends `${string}/${infer Rest}` ? LastSegment<Rest> : TId;
|
|
1945
|
-
/**
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1995
|
+
/**
|
|
1996
|
+
* The `PluginSummary` a leaf carries, keyed on its full id. `TBinding` is the
|
|
1997
|
+
* surfaced binding the leaf implements (its call signature or its value).
|
|
1998
|
+
*
|
|
1999
|
+
* `TBinding` is REQUIRED, deliberately. Defaulting it to `never` would make a
|
|
2000
|
+
* three-argument annotation contribute no contract, so a hand-written
|
|
2001
|
+
* annotation would keep compiling and silently drop the leaf out of the
|
|
2002
|
+
* compatibility check.
|
|
2003
|
+
* A missing argument is a compile error instead.
|
|
2004
|
+
*/
|
|
2005
|
+
type LeafSummary<TNamespace extends string, TName extends string, TImports extends readonly unknown[], TBinding> = LeafSummaryById<IdOf<TNamespace, TName>, TImports, TBinding>;
|
|
2006
|
+
/** {@link LeafSummary} for a leaf whose full id is already known rather than
|
|
2007
|
+
* composed from a namespace and a name, which is what the by-reference
|
|
2008
|
+
* `define*(ref, config)` forms have: the id comes off the stand-in. */
|
|
2009
|
+
type LeafSummaryById<TId extends string, TImports extends readonly unknown[], TBinding> = LeafSummaryOf<TId, RequiresIn<TImports>, ProvidesIn<TImports>, RequiredContractsIn<TImports>, ProvidedContractsIn<TImports>, TBinding>;
|
|
2010
|
+
/**
|
|
2011
|
+
* {@link LeafSummaryById} with each import ledger already read, so it is read
|
|
2012
|
+
* ONCE per leaf. See the rule on {@link AggregateSummaryOf}.
|
|
2013
|
+
*/
|
|
2014
|
+
type LeafSummaryOf<TId extends string, TRequires extends string, TProvides extends string, TRequiredContracts extends ContractEntry, TProvidedContracts extends ContractEntry, TBinding> = PluginSummary<Exclude<TRequires, TId | TProvides>, TId | TProvides, TRequiredContracts, ContractEntry<TId, TBinding> | TProvidedContracts>;
|
|
2015
|
+
/**
|
|
2016
|
+
* The `PluginSummary` an aggregate carries, keyed on its full id.
|
|
2017
|
+
*
|
|
2018
|
+
* It contributes no contract for its own id. A module's contract IS its
|
|
2019
|
+
* exports, and each export already carries one keyed by its own id, so
|
|
2020
|
+
* `declarePlugin` is checked against the real module leaf by leaf. Carrying the
|
|
2021
|
+
* whole export-bindings record as a second entry would only add the binding
|
|
2022
|
+
* NAMES to the comparison, and it costs a mapped type over every export inside
|
|
2023
|
+
* every enclosing summary. That cost grows with the graph, for nothing.
|
|
2024
|
+
*/
|
|
2025
|
+
type AggregateSummary<TNamespace extends string, TName extends string, TImports extends readonly unknown[], TExports extends readonly unknown[]> = AggregateSummaryOf<IdOf<TNamespace, TName>, RequiresIn<TImports> | RequiresIn<TExports>, ProvidesIn<TImports> | ProvidesIn<TExports>, RequiredContractsIn<TImports> | RequiredContractsIn<TExports>, ProvidedContractsIn<TImports> | ProvidedContractsIn<TExports>>;
|
|
2026
|
+
/**
|
|
2027
|
+
* {@link AggregateSummary} with each child ledger already read, so it is read
|
|
2028
|
+
* ONCE per aggregate.
|
|
2029
|
+
*
|
|
2030
|
+
* THE RULE FOR EVERY SUMMARY: read each child ledger ONCE, at the call site,
|
|
2031
|
+
* and pass it in. A summary's phantom slots must never contain an expression
|
|
2032
|
+
* that reads the children again.
|
|
2033
|
+
*
|
|
2034
|
+
* Duplicating a read makes the cost grow exponentially with graph depth rather
|
|
2035
|
+
* than linearly, and a deep graph then fails to compile at all. TypeScript has
|
|
2036
|
+
* no way to name an intermediate type, so a helper that takes the ledgers as
|
|
2037
|
+
* parameters is the only way to read each one exactly once.
|
|
2038
|
+
*
|
|
2039
|
+
* So `Exclude<TRequires, TId | TProvides>` is safe here: `TProvides` is a
|
|
2040
|
+
* parameter, already resolved, shared by both slots. Inlining it back to
|
|
2041
|
+
* `Exclude<RequiresIn<TImports>, TId | ProvidesIn<TImports>>` reads the
|
|
2042
|
+
* children twice and brings the exponential back. Do not "simplify" these
|
|
2043
|
+
* helpers away. `composition-depth.test.ts` and `import-chain-depth.test.ts`
|
|
2044
|
+
* are the canaries.
|
|
2045
|
+
*/
|
|
2046
|
+
type AggregateSummaryOf<TId extends string, TRequires extends string, TProvides extends string, TRequiredContracts extends ContractEntry, TProvidedContracts extends ContractEntry> = PluginSummary<Exclude<TRequires, TId | TProvides>, TId | TProvides, TRequiredContracts, TProvidedContracts>;
|
|
2047
|
+
/**
|
|
2048
|
+
* The `PluginSummary` a re-export synthetic forwards from its source: the
|
|
2049
|
+
* source's own ledgers, unchanged, since `selectExports` / `omitExports` change
|
|
2050
|
+
* which bindings are visible and never which ids the graph reaches. Each read
|
|
2051
|
+
* appears once, per the rule on {@link AggregateSummaryOf}.
|
|
2052
|
+
*
|
|
2053
|
+
* `TSource` is inferred from an intersection parameter, which is fragile. If it
|
|
2054
|
+
* ever stops binding the source's summary it falls back to `unknown`, these
|
|
2055
|
+
* ledgers come out empty, and every check behind the helper switches off
|
|
2056
|
+
* SILENTLY, with nothing failing to compile. The forwarding case in
|
|
2057
|
+
* `select-exports.test.ts` is the only thing that catches that, so it is
|
|
2058
|
+
* load-bearing rather than illustrative.
|
|
2059
|
+
*/
|
|
2060
|
+
type ForwardedSummary<TSource> = PluginSummary<RequiresOf<TSource>, ProvidesOf$1<TSource>, RequiredContractsOf<TSource>, ProvidedContractsOf<TSource>>;
|
|
2061
|
+
/** The `PluginSummary` a `declarePlugin` declaration carries: its id in the
|
|
2062
|
+
* requirements ledger, plus the contracts its export stand-ins declared, read
|
|
2063
|
+
* once at the call site per the rule on {@link AggregateSummaryOf}. */
|
|
2064
|
+
type AggregateDeclarationSummary<TId extends string, TRequiredContracts extends ContractEntry> = PluginSummary<TId, never, TRequiredContracts, never>;
|
|
2065
|
+
/** The `PluginSummary` a required declaration carries: its id in the
|
|
2066
|
+
* requirements ledger, and the contract every provider of that id must honor. */
|
|
2067
|
+
type DeclarationSummary<TId extends string, TBinding> = PluginSummary<TId, never, ContractEntry<TId, TBinding>, never>;
|
|
2068
|
+
/** The optional twin of {@link DeclarationSummary}: it claims no slot, so it is
|
|
2069
|
+
* never a missing dependency, but a provider that DOES appear under the id
|
|
2070
|
+
* still has to honor the contract. */
|
|
2071
|
+
type OptionalDeclarationSummary<TId extends string, TBinding> = PluginSummary<never, never, ContractEntry<TId, TBinding>, never>;
|
|
1949
2072
|
/**
|
|
1950
2073
|
* The runtime-input channel for `createSdk`. `configuration` maps plugin ids to
|
|
1951
2074
|
* immutable values; each entry materializes as a static value property under
|
|
@@ -1960,20 +2083,80 @@ type AggregateSummary<TNamespace extends string, TName extends string, TImports
|
|
|
1960
2083
|
interface CreateSdkOptions {
|
|
1961
2084
|
configuration?: Record<string, unknown>;
|
|
1962
2085
|
}
|
|
1963
|
-
/**
|
|
1964
|
-
|
|
2086
|
+
/**
|
|
2087
|
+
* Surfaced by `createSdk` when reachable declarations have no provider.
|
|
2088
|
+
*
|
|
2089
|
+
* The guard names the property it checks (`CompletenessOf`) and the brand
|
|
2090
|
+
* names the fault, so the pair shares no root. That is deliberate: "missing"
|
|
2091
|
+
* tells a reader what to do, where "incomplete" only restates the property.
|
|
2092
|
+
*/
|
|
2093
|
+
interface MissingProviders<TIds extends string> {
|
|
1965
2094
|
readonly __kitcoreError: "Missing concrete provider(s) for required declaration id(s)";
|
|
1966
2095
|
readonly missing: TIds;
|
|
1967
2096
|
}
|
|
1968
2097
|
/**
|
|
1969
2098
|
* `unknown` when every reachable declaration is provided, otherwise a
|
|
1970
|
-
* `
|
|
2099
|
+
* `MissingProviders` brand. `createSdk` takes `root: P & CompletenessOf<P>`,
|
|
1971
2100
|
* so a complete root infers `P` unchanged (intersect `unknown`) while an
|
|
1972
2101
|
* incomplete one fails to assign (the argument lacks `missing`).
|
|
1973
2102
|
*/
|
|
1974
2103
|
type CompletenessOf<P> = [
|
|
1975
2104
|
Exclude<RequiresOf<P>, ProvidesOf$1<P>>
|
|
1976
|
-
] extends [never] ? unknown :
|
|
2105
|
+
] extends [never] ? unknown : MissingProviders<Exclude<RequiresOf<P>, ProvidesOf$1<P>>>;
|
|
2106
|
+
/** The provided entries registered under one id. */
|
|
2107
|
+
type ProvidersFor<TProvided extends ContractEntry, TId extends string> = Extract<TProvided, {
|
|
2108
|
+
readonly id: TId;
|
|
2109
|
+
}>;
|
|
2110
|
+
/**
|
|
2111
|
+
* The ids whose reachable providers do not all honor the declared contract.
|
|
2112
|
+
*
|
|
2113
|
+
* EVERY provider under an id must honor it, not just one: `declareDefault` lets
|
|
2114
|
+
* a default coexist with an explicit provider, so "some compatible provider
|
|
2115
|
+
* exists" would pass a good default beside a bad explicit one while the runtime
|
|
2116
|
+
* picks the bad one.
|
|
2117
|
+
*
|
|
2118
|
+
* An id with no provider yields nothing here. That is `CompletenessOf`'s
|
|
2119
|
+
* report, and two errors for one cause read worse than one.
|
|
2120
|
+
*/
|
|
2121
|
+
type IncompatibleIds<TRequired extends ContractEntry, TProvided extends ContractEntry> = TRequired extends ContractEntry ? MismatchedProviders<TRequired, ProvidersFor<TProvided, TRequired["id"]>> : never;
|
|
2122
|
+
/** The required id, once per provider of it that fails the contract. An id with
|
|
2123
|
+
* no provider yields `never` here, since a distributive conditional over
|
|
2124
|
+
* `never` is `never`. */
|
|
2125
|
+
type MismatchedProviders<TRequired extends ContractEntry, TCandidate extends ContractEntry> = TCandidate extends ContractEntry ? [TCandidate["binding"]] extends [TRequired["binding"]] ? never : ServesEveryDeclaredCall<TCandidate["binding"], TRequired["binding"]> extends true ? never : TRequired["id"] : never;
|
|
2126
|
+
/** The keys a caller of `T` must supply. */
|
|
2127
|
+
type RequiredKeys<T> = keyof {
|
|
2128
|
+
[K in keyof T as {} extends Pick<T, K> ? never : K]: unknown;
|
|
2129
|
+
};
|
|
2130
|
+
/**
|
|
2131
|
+
* Rescues a provider that whole-function assignability rejects for a reason
|
|
2132
|
+
* that does not apply here.
|
|
2133
|
+
*
|
|
2134
|
+
* TypeScript's weak-type rule refuses to relate two object types that share no
|
|
2135
|
+
* properties, even when the target needs none of them. So a declaration
|
|
2136
|
+
* promising `{ search: string }` failed against a provider taking
|
|
2137
|
+
* `{ locale?: string }`, though that provider requires nothing and reads
|
|
2138
|
+
* nothing the declaration sends. That contradicts the rule this check is built
|
|
2139
|
+
* on, which is that a provider may accept WIDER input.
|
|
2140
|
+
*
|
|
2141
|
+
* The escape stays sound by demanding all three: the output is still a subtype,
|
|
2142
|
+
* the provider requires no input field, and the two inputs share no key, so
|
|
2143
|
+
* there is no field the provider can read at a type it does not expect.
|
|
2144
|
+
*/
|
|
2145
|
+
type ServesEveryDeclaredCall<TProvided, TRequired> = TRequired extends (...args: infer TDeclaredArgs) => infer TDeclaredOut ? TProvided extends (...args: infer TProviderArgs) => infer TProviderOut ? [TProviderOut] extends [TDeclaredOut] ? [TDeclaredArgs] extends [readonly [unknown?]] ? [TProviderArgs] extends [readonly [unknown?]] ? [
|
|
2146
|
+
Extract<keyof NonNullable<TDeclaredArgs[0]>, keyof NonNullable<TProviderArgs[0]>>
|
|
2147
|
+
] extends [never] ? [RequiredKeys<NonNullable<TProviderArgs[0]>>] extends [never] ? true : false : false : false : false : false : false : false;
|
|
2148
|
+
/** Surfaced by `createSdk` when a provider contradicts its declaration. */
|
|
2149
|
+
interface IncompatibleProviders<TIds extends string> {
|
|
2150
|
+
readonly __kitcoreError: "Provider(s) do not match the contract declared for the id(s); a provider may accept wider input but must return a subtype of the declared output";
|
|
2151
|
+
readonly incompatible: TIds;
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* `unknown` when every provided id honors the contract declared for it,
|
|
2155
|
+
* otherwise an `IncompatibleProviders` brand. `createSdk` takes
|
|
2156
|
+
* `root: P & CompletenessOf<P> & CompatibilityOf<P>`, so a sound graph infers
|
|
2157
|
+
* `P` unchanged (intersect `unknown`) while an unsound one fails to assign.
|
|
2158
|
+
*/
|
|
2159
|
+
type CompatibilityOf<P> = IncompatibleIds<RequiredContractsOf<P>, ProvidedContractsOf<P>> extends infer TIds extends string ? [TIds] extends [never] ? unknown : IncompatibleProviders<TIds> : never;
|
|
1977
2160
|
/** Recover the materialized SDK type for a checked root (the summary that
|
|
1978
2161
|
* rides on the `define*` return is transparent to these). */
|
|
1979
2162
|
type MethodSdkOf<P> = P extends MethodPlugin<infer TName, infer TInput, infer TOutput, infer TPos> ? Sdk$1<TName, TInput, TOutput, TPos> : never;
|
|
@@ -2609,7 +2792,7 @@ declare function defineMethod<const TName extends string, TInput, TOutput, const
|
|
|
2609
2792
|
input?: unknown;
|
|
2610
2793
|
}) => void | Promise<void>;
|
|
2611
2794
|
run: (bag: MethodRunBag<ImportsOf<TImports>, TInput, TState>) => TOutput;
|
|
2612
|
-
} & LeafMetaFields): MethodPlugin<TName, TInput, TOutput, TPositional> & LeafSummary<TNamespace, TName, TImports
|
|
2795
|
+
} & LeafMetaFields): MethodPlugin<TName, TInput, TOutput, TPositional> & LeafSummary<TNamespace, TName, TImports, MethodContract<TInput, TOutput, TPositional>>;
|
|
2613
2796
|
declare function defineMethod<const TName extends string, TInput, TResponse extends StrictItem<TResponse>, TData = DataOf<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
|
|
2614
2797
|
name: TName;
|
|
2615
2798
|
namespace?: TNamespace;
|
|
@@ -2633,7 +2816,10 @@ declare function defineMethod<const TName extends string, TInput, TResponse exte
|
|
|
2633
2816
|
} & LeafMetaFields): MethodPlugin<TName, TInput & CallOutputOptions, Promise<{
|
|
2634
2817
|
data: TData;
|
|
2635
2818
|
meta?: ResponseMeta;
|
|
2636
|
-
}>, readonly [], ItemRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports
|
|
2819
|
+
}>, readonly [], ItemRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports, MethodContract<CallContractInput<TInput, CallOutputOptions>, Promise<{
|
|
2820
|
+
data: TData;
|
|
2821
|
+
meta?: ResponseMeta;
|
|
2822
|
+
}>>>;
|
|
2637
2823
|
declare function defineMethod<const TName extends string, TInput, TResponse extends StrictPage$1<TResponse>, TItem = ItemOf$1<TResponse>, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
|
|
2638
2824
|
name: TName;
|
|
2639
2825
|
namespace?: TNamespace;
|
|
@@ -2656,7 +2842,7 @@ declare function defineMethod<const TName extends string, TInput, TResponse exte
|
|
|
2656
2842
|
input?: unknown;
|
|
2657
2843
|
}) => void | Promise<void>;
|
|
2658
2844
|
run: (bag: MethodRunBag<ImportsOf<TImports>, TInput & PageFetchInput, TState>) => TResponse | Promise<TResponse>;
|
|
2659
|
-
} & LeafMetaFields): MethodPlugin<TName, TInput & PaginatedCallInput & CallOutputOptions, PaginatedSdkResult<TItem>, readonly [], ListRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports
|
|
2845
|
+
} & LeafMetaFields): MethodPlugin<TName, TInput & PaginatedCallInput & CallOutputOptions, PaginatedSdkResult<TItem>, readonly [], ListRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports, MethodContract<CallContractInput<TInput, PaginatedCallInput & CallOutputOptions>, PaginatedSdkResult<TItem>>>;
|
|
2660
2846
|
declare function defineMethod<const TName extends string, TInput, TResponse, TItem, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
|
|
2661
2847
|
name: TName;
|
|
2662
2848
|
namespace?: TNamespace;
|
|
@@ -2679,7 +2865,7 @@ declare function defineMethod<const TName extends string, TInput, TResponse, TIt
|
|
|
2679
2865
|
input?: unknown;
|
|
2680
2866
|
}) => void | Promise<void>;
|
|
2681
2867
|
run: (bag: MethodRunBag<ImportsOf<TImports>, TInput & PageFetchInput, TState>) => TResponse | Promise<TResponse>;
|
|
2682
|
-
} & LeafMetaFields): MethodPlugin<TName, TInput & PaginatedCallInput & CallOutputOptions, PaginatedSdkResult<TItem>, readonly [], ListRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports
|
|
2868
|
+
} & LeafMetaFields): MethodPlugin<TName, TInput & PaginatedCallInput & CallOutputOptions, PaginatedSdkResult<TItem>, readonly [], ListRunInput<TInput>> & LeafSummary<TNamespace, TName, TImports, MethodContract<CallContractInput<TInput, PaginatedCallInput & CallOutputOptions>, PaginatedSdkResult<TItem>>>;
|
|
2683
2869
|
declare function defineMethod<const TName extends string, TInput, TOutput, const TId extends string, const TImports extends ImportsInput = readonly [], TState = undefined>(ref: MethodPlugin<TName, TInput, TOutput> & StandInId<TId> & RefFormRawOnly<TOutput>, config: {
|
|
2684
2870
|
imports?: TImports & StaticList<TImports>;
|
|
2685
2871
|
inputSchema?: z.ZodType<TInput>;
|
|
@@ -2695,7 +2881,7 @@ declare function defineMethod<const TName extends string, TInput, TOutput, const
|
|
|
2695
2881
|
input?: unknown;
|
|
2696
2882
|
}) => void | Promise<void>;
|
|
2697
2883
|
run: (bag: MethodRunBag<ImportsOf<TImports>, NoInfer<TInput>, TState>) => NoInfer<TOutput>;
|
|
2698
|
-
} & LeafMetaFields): MethodPlugin<TName, TInput, TOutput> &
|
|
2884
|
+
} & LeafMetaFields): MethodPlugin<TName, TInput, TOutput> & LeafSummaryById<TId, TImports, MethodContract<TInput, TOutput>>;
|
|
2699
2885
|
/**
|
|
2700
2886
|
* Patch how a surface PRESENTS an already-defined method, by reference. Pass
|
|
2701
2887
|
* the method (or its `declareMethod` stand-in) and any of
|
|
@@ -2885,7 +3071,7 @@ declare function defineFormatter<const TImports extends ImportsInput = readonly
|
|
|
2885
3071
|
*/
|
|
2886
3072
|
declare function declareMethod<const TId extends string, TInput = unknown, TOutput = unknown>(config: {
|
|
2887
3073
|
id: LiteralString<TId>;
|
|
2888
|
-
}): MethodPlugin<LastSegment<TId>, TInput, TOutput> &
|
|
3074
|
+
}): MethodPlugin<LastSegment<TId>, TInput, TOutput> & DeclarationSummary<TId, MethodContract<TInput, TOutput>> & StandInId<TId>;
|
|
2889
3075
|
/**
|
|
2890
3076
|
* Declare an OPTIONAL stand-in for a method registered elsewhere: the method twin
|
|
2891
3077
|
* of `declareOptionalProperty`. Unlike `declareMethod`, an unsatisfied optional
|
|
@@ -2898,7 +3084,7 @@ declare function declareOptionalMethod<const TId extends string, TInput = unknow
|
|
|
2898
3084
|
id: LiteralString<TId>;
|
|
2899
3085
|
}): MethodPlugin<LastSegment<TId>, TInput, TOutput> & {
|
|
2900
3086
|
optional: true;
|
|
2901
|
-
} &
|
|
3087
|
+
} & OptionalDeclarationSummary<TId, MethodContract<TInput, TOutput>> & StandInId<TId>;
|
|
2902
3088
|
/**
|
|
2903
3089
|
* Define a property leaf. Either a static `value` or a computed `get`, which
|
|
2904
3090
|
* re-runs live on each read; an optional `setup` runs once at `createSdk`
|
|
@@ -2910,7 +3096,7 @@ declare function defineProperty<const TName extends string, TValue, const TNames
|
|
|
2910
3096
|
name: TName;
|
|
2911
3097
|
namespace?: TNamespace;
|
|
2912
3098
|
value: TValue;
|
|
2913
|
-
} & LeafMetaFields): PropertyPlugin<TName, TValue> &
|
|
3099
|
+
} & LeafMetaFields): PropertyPlugin<TName, TValue> & LeafSummary<TNamespace, TName, readonly [], TValue>;
|
|
2914
3100
|
declare function defineProperty<const TName extends string, TValue, const TImports extends ImportsInput = readonly [], const TNamespace extends string = "", TState = undefined>(config: {
|
|
2915
3101
|
name: TName;
|
|
2916
3102
|
namespace?: TNamespace;
|
|
@@ -2937,7 +3123,7 @@ declare function defineProperty<const TName extends string, TValue, const TImpor
|
|
|
2937
3123
|
/** Templated registry members for this property's dynamic sub-surface (e.g.
|
|
2938
3124
|
* a proxy): each a bodyless declaration keyed by `path` instead of `name`. */
|
|
2939
3125
|
dynamicMembers?: readonly DynamicMember[];
|
|
2940
|
-
} & LeafMetaFields): PropertyPlugin<TName, TValue> & LeafSummary<TNamespace, TName, TImports>;
|
|
3126
|
+
} & LeafMetaFields): PropertyPlugin<TName, TValue> & LeafSummary<TNamespace, TName, TImports, TValue>;
|
|
2941
3127
|
/**
|
|
2942
3128
|
* Provide a value for a declared property BY REFERENCE: pass the
|
|
2943
3129
|
* `declareProperty` / `declareOptionalProperty` stand-in instead of respelling
|
|
@@ -2948,7 +3134,7 @@ declare function defineProperty<const TName extends string, TValue, const TImpor
|
|
|
2948
3134
|
*/
|
|
2949
3135
|
declare function defineProperty<const TName extends string, TValue, const TId extends string>(ref: PropertyPlugin<TName, TValue> & StandInId<TId>, config: {
|
|
2950
3136
|
value: NoInfer<TValue>;
|
|
2951
|
-
} & LeafMetaFields): PropertyPlugin<TName, TValue> & PluginSummary<never, TId
|
|
3137
|
+
} & LeafMetaFields): PropertyPlugin<TName, TValue> & PluginSummary<never, TId, never, ContractEntry<TId, TValue>>;
|
|
2952
3138
|
/**
|
|
2953
3139
|
* Declare a stand-in for a property registered elsewhere (a configured factory
|
|
2954
3140
|
* plugin, e.g. the api client built from options). Carries only a name and a
|
|
@@ -2959,7 +3145,7 @@ declare function defineProperty<const TName extends string, TValue, const TId ex
|
|
|
2959
3145
|
*/
|
|
2960
3146
|
declare function declareProperty<const TId extends string, TValue = unknown>(config: {
|
|
2961
3147
|
id: LiteralString<TId>;
|
|
2962
|
-
}): PropertyPlugin<LastSegment<TId>, TValue> &
|
|
3148
|
+
}): PropertyPlugin<LastSegment<TId>, TValue> & DeclarationSummary<TId, TValue> & StandInId<TId>;
|
|
2963
3149
|
/**
|
|
2964
3150
|
* Declare an OPTIONAL stand-in for a property registered elsewhere. Unlike
|
|
2965
3151
|
* `declareProperty`, a `declareOptionalProperty` left unsatisfied is NOT a missing
|
|
@@ -2975,7 +3161,7 @@ declare function declareProperty<const TId extends string, TValue = unknown>(con
|
|
|
2975
3161
|
*/
|
|
2976
3162
|
declare function declareOptionalProperty<const TId extends string, TValue = unknown>(config: {
|
|
2977
3163
|
id: LiteralString<TId>;
|
|
2978
|
-
}): PropertyPlugin<LastSegment<TId>, TValue | undefined> &
|
|
3164
|
+
}): PropertyPlugin<LastSegment<TId>, TValue | undefined> & OptionalDeclarationSummary<TId, TValue | undefined> & StandInId<TId>;
|
|
2979
3165
|
/**
|
|
2980
3166
|
* Declare a DEFAULT provider for a dependency you own: import the capability the
|
|
2981
3167
|
* given plugin provides, and fall back to that plugin when nothing else provides
|
|
@@ -3057,7 +3243,7 @@ declare function defineHook<const TImports extends ImportsInput = readonly [], T
|
|
|
3057
3243
|
declare function declarePlugin<const TId extends string, const TExports extends readonly AnyLeafPlugin[] = readonly []>(config: {
|
|
3058
3244
|
id: LiteralString<TId>;
|
|
3059
3245
|
exports?: TExports & StaticList<TExports>;
|
|
3060
|
-
}): AggregatePlugin<LastSegment<TId>, ArrayExports<TExports>> &
|
|
3246
|
+
}): AggregatePlugin<LastSegment<TId>, ArrayExports<TExports>> & AggregateDeclarationSummary<TId, RequiredContractsIn<TExports>>;
|
|
3061
3247
|
/**
|
|
3062
3248
|
* Function form — the legacy function-plugin identity wrapper: it returns the
|
|
3063
3249
|
* function unchanged but constrains its return to `PluginProvides` and
|
|
@@ -3119,9 +3305,9 @@ type AsExports<T> = T extends Record<string, AnyLeafPlugin> ? T : Record<string,
|
|
|
3119
3305
|
* synthetic aggregate over the chosen bindings) that drops straight into either
|
|
3120
3306
|
* array; the selected bindings keep the source module's identity.
|
|
3121
3307
|
*/
|
|
3122
|
-
declare function selectExports<TExports extends Record<string, AnyLeafPlugin>, const TSpecs extends readonly SelectSpec<TExports>[]>(source: AggregatePlugin<string, TExports
|
|
3308
|
+
declare function selectExports<TExports extends Record<string, AnyLeafPlugin>, const TSpecs extends readonly SelectSpec<TExports>[], TSource = unknown>(source: AggregatePlugin<string, TExports> & TSource, ...specs: TSpecs): AggregatePlugin<string, AsExports<UnionToIntersection<{
|
|
3123
3309
|
[I in keyof TSpecs]: ResolveSpec<TExports, TSpecs[I]>;
|
|
3124
|
-
}[number]
|
|
3310
|
+
}[number]>>> & ForwardedSummary<TSource>;
|
|
3125
3311
|
/**
|
|
3126
3312
|
* Re-export all of a module's exports EXCEPT the named ones, the denylist
|
|
3127
3313
|
* complement to {@link selectExports}'s allowlist (think TS `Omit` vs `Pick`).
|
|
@@ -3133,7 +3319,7 @@ declare function selectExports<TExports extends Record<string, AnyLeafPlugin>, c
|
|
|
3133
3319
|
* not surfaced under a binding. That lets a head replace an export's binding
|
|
3134
3320
|
* with its own plugin while still depending on the original by id.
|
|
3135
3321
|
*/
|
|
3136
|
-
declare function omitExports<TExports extends Record<string, AnyLeafPlugin>, const TOmit extends readonly (keyof TExports & string)[]>(source: AggregatePlugin<string, TExports
|
|
3322
|
+
declare function omitExports<TExports extends Record<string, AnyLeafPlugin>, const TOmit extends readonly (keyof TExports & string)[], TSource = unknown>(source: AggregatePlugin<string, TExports> & TSource, omit: TOmit): AggregatePlugin<string, Omit<TExports, TOmit[number]>> & ForwardedSummary<TSource>;
|
|
3137
3323
|
|
|
3138
3324
|
/**
|
|
3139
3325
|
* Lift a legacy function plugin into the module model. The
|
|
@@ -3381,7 +3567,7 @@ interface CoreOptions {
|
|
|
3381
3567
|
* `CoreOptions | undefined` (absent means kitcore's built-in behavior). Heads
|
|
3382
3568
|
* supply the value via `createSdk`'s `configuration` or a registered property.
|
|
3383
3569
|
*/
|
|
3384
|
-
declare const coreOptionsPluginRef: PropertyPlugin<"coreOptions", CoreOptions | undefined> &
|
|
3570
|
+
declare const coreOptionsPluginRef: PropertyPlugin<"coreOptions", CoreOptions | undefined> & OptionalDeclarationSummary<"kitcore/coreOptions", CoreOptions | undefined> & StandInId<"kitcore/coreOptions">;
|
|
3385
3571
|
/**
|
|
3386
3572
|
* Escape hatch. A built-in privileged plugin whose value is the live
|
|
3387
3573
|
* `SdkContext` (the raw plugin graph). Importing it (`imports.context`) lets a
|
|
@@ -3407,7 +3593,9 @@ declare const getRegistryPlugin: MethodPlugin<"getRegistry", {
|
|
|
3407
3593
|
package?: string | undefined;
|
|
3408
3594
|
} | undefined, RegistryResult, readonly [], {
|
|
3409
3595
|
package?: string | undefined;
|
|
3410
|
-
} | undefined> & LeafSummary<"kitcore", "getRegistry", readonly [PropertyPlugin<"context", SdkContext>]
|
|
3596
|
+
} | undefined> & LeafSummary<"kitcore", "getRegistry", readonly [PropertyPlugin<"context", SdkContext>], (input?: {
|
|
3597
|
+
package?: string | undefined;
|
|
3598
|
+
} | undefined) => RegistryResult>;
|
|
3411
3599
|
|
|
3412
3600
|
/** The off-surface escape hatch to an SDK's `SdkContext`. */
|
|
3413
3601
|
declare function getContext(sdk: unknown): SdkContext;
|
|
@@ -3460,15 +3648,16 @@ declare function disposeSdk(sdk: unknown, input?: unknown): Promise<void>;
|
|
|
3460
3648
|
* value; an aggregate root its export bindings. `options.configuration`
|
|
3461
3649
|
* injects runtime values by plugin id (see {@link CreateSdkOptions}).
|
|
3462
3650
|
*/
|
|
3463
|
-
declare function createSdk<P extends AnyMethodPlugin>(root: P & CompletenessOf<P>, options?: CreateSdkOptions): MethodSdkOf<P>;
|
|
3464
|
-
declare function createSdk<P extends AnyPropertyPlugin>(root: P & CompletenessOf<P>, options?: CreateSdkOptions): PropertySdkOf<P>;
|
|
3465
|
-
declare function createSdk<P extends AnyAggregatePlugin>(root: P & CompletenessOf<P>, options?: CreateSdkOptions): AggregateSdkOf<P>;
|
|
3651
|
+
declare function createSdk<P extends AnyMethodPlugin>(root: P & CompletenessOf<P> & CompatibilityOf<P>, options?: CreateSdkOptions): MethodSdkOf<P>;
|
|
3652
|
+
declare function createSdk<P extends AnyPropertyPlugin>(root: P & CompletenessOf<P> & CompatibilityOf<P>, options?: CreateSdkOptions): PropertySdkOf<P>;
|
|
3653
|
+
declare function createSdk<P extends AnyAggregatePlugin>(root: P & CompletenessOf<P> & CompatibilityOf<P>, options?: CreateSdkOptions): AggregateSdkOf<P>;
|
|
3466
3654
|
declare function createSdk<TSurface>(root: LegacyPlugin<TSurface>, options?: CreateSdkOptions): TSurface & SdkInternals;
|
|
3467
3655
|
declare function createSdk<TProvides extends PluginProvides, TPlugin extends AnyPlugin>(root: LegacyMergePlugin<TProvides, TPlugin>, options?: CreateSdkOptions): TProvides & {
|
|
3468
3656
|
getRegistry: (options?: {
|
|
3469
3657
|
package?: string;
|
|
3470
3658
|
}) => RegistryResult;
|
|
3471
3659
|
} & AddedSurface<TPlugin> & SdkInternals;
|
|
3660
|
+
declare function createSdk<P extends AnyPlugin>(root: P & CompletenessOf<P> & CompatibilityOf<P>, options?: CreateSdkOptions): never;
|
|
3472
3661
|
/**
|
|
3473
3662
|
* Extend an already-built SDK in place with one more plugin (the post-seal
|
|
3474
3663
|
* extension path). Dispatches on shape: a module-model plugin (`defineMethod` /
|
|
@@ -4521,14 +4710,14 @@ type SendHttpRequest = (request: HttpRequest) => ReturnType<typeof fetch>;
|
|
|
4521
4710
|
* removes the only boundary below `initializeHttpRequest`, and a retry wrap
|
|
4522
4711
|
* would then re-initialize and mint a fresh `operationId` per attempt.
|
|
4523
4712
|
*/
|
|
4524
|
-
declare const attemptHttpRequestPlugin: MethodPlugin<"attemptHttpRequest", AttemptHttpRequestInput, Promise<Response>, readonly [], AttemptHttpRequestInput> & LeafSummary<"kitcore", "attemptHttpRequest", readonly [MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly []
|
|
4713
|
+
declare const attemptHttpRequestPlugin: MethodPlugin<"attemptHttpRequest", AttemptHttpRequestInput, Promise<Response>, readonly [], AttemptHttpRequestInput> & LeafSummary<"kitcore", "attemptHttpRequest", readonly [MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly [], (input: PrepareHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"authorizeHttpRequest", AuthorizeHttpRequestInput, Promise<HttpRequest>, readonly [], AuthorizeHttpRequestInput> & LeafSummary<"kitcore", "authorizeHttpRequest", readonly [], (input: AuthorizeHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"dispatchHttpRequest", DispatchHttpRequestInput, Promise<Response>, readonly [], DispatchHttpRequestInput> & LeafSummary<"kitcore", "dispatchHttpRequest", readonly [PropertyPlugin<"httpFetch", typeof fetch | undefined> & OptionalDeclarationSummary<"kitcore/httpFetch", typeof fetch | undefined> & StandInId<"kitcore/httpFetch">], (input: DispatchHttpRequestInput) => Promise<Response>>, MethodPlugin<"receiveHttpResponse", ReceiveHttpResponseInput, Promise<Response>, readonly [], ReceiveHttpResponseInput> & LeafSummary<"kitcore", "receiveHttpResponse", readonly [], (input: ReceiveHttpResponseInput) => Promise<Response>>], (input: AttemptHttpRequestInput) => Promise<Response>>;
|
|
4525
4714
|
|
|
4526
4715
|
/**
|
|
4527
4716
|
* Completes the operation context: normalizes the caller's request and records
|
|
4528
4717
|
* whether its body can be sent again. Everything below this stage reads those
|
|
4529
4718
|
* two facts off `attempt.operation`, and neither changes across retries.
|
|
4530
4719
|
*/
|
|
4531
|
-
declare const initializeHttpRequestPlugin: MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly []
|
|
4720
|
+
declare const initializeHttpRequestPlugin: MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly [], (input: InitializeHttpRequestInput) => Promise<HttpOperationContext>>;
|
|
4532
4721
|
|
|
4533
4722
|
/**
|
|
4534
4723
|
* Details about a retry the loop has scheduled.
|
|
@@ -4602,7 +4791,7 @@ interface RetryHttpRequestOptions {
|
|
|
4602
4791
|
onRetry?: (attempt: RetryHttpRequestAttempt) => void;
|
|
4603
4792
|
}
|
|
4604
4793
|
declare const RETRY_HTTP_REQUEST_OPTIONS_ID = "kitcore/retryHttpRequestOptions";
|
|
4605
|
-
declare const retryHttpRequestOptionsPluginRef: PropertyPlugin<"retryHttpRequestOptions", RetryHttpRequestOptions | undefined> &
|
|
4794
|
+
declare const retryHttpRequestOptionsPluginRef: PropertyPlugin<"retryHttpRequestOptions", RetryHttpRequestOptions | undefined> & OptionalDeclarationSummary<"kitcore/retryHttpRequestOptions", RetryHttpRequestOptions | undefined> & StandInId<"kitcore/retryHttpRequestOptions">;
|
|
4606
4795
|
/**
|
|
4607
4796
|
* Re-issue a failed attempt, opt-in by composition.
|
|
4608
4797
|
*
|
|
@@ -4634,9 +4823,9 @@ declare const retryHttpRequestOptionsPluginRef: PropertyPlugin<"retryHttpRequest
|
|
|
4634
4823
|
*/
|
|
4635
4824
|
declare const retryHttpRequestPlugin: HookPlugin<string>;
|
|
4636
4825
|
|
|
4637
|
-
declare const prepareHttpRequestPlugin: MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly []
|
|
4826
|
+
declare const prepareHttpRequestPlugin: MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly [], (input: PrepareHttpRequestInput) => Promise<HttpRequest>>;
|
|
4638
4827
|
|
|
4639
|
-
declare const authorizeHttpRequestPlugin: MethodPlugin<"authorizeHttpRequest", AuthorizeHttpRequestInput, Promise<HttpRequest>, readonly [], AuthorizeHttpRequestInput> & LeafSummary<"kitcore", "authorizeHttpRequest", readonly []
|
|
4828
|
+
declare const authorizeHttpRequestPlugin: MethodPlugin<"authorizeHttpRequest", AuthorizeHttpRequestInput, Promise<HttpRequest>, readonly [], AuthorizeHttpRequestInput> & LeafSummary<"kitcore", "authorizeHttpRequest", readonly [], (input: AuthorizeHttpRequestInput) => Promise<HttpRequest>>;
|
|
4640
4829
|
|
|
4641
4830
|
declare const HTTP_FETCH_ID = "kitcore/httpFetch";
|
|
4642
4831
|
/**
|
|
@@ -4645,10 +4834,10 @@ declare const HTTP_FETCH_ID = "kitcore/httpFetch";
|
|
|
4645
4834
|
* `dispatchHttpRequest` wrap slot that hosts use to replace dispatch. When
|
|
4646
4835
|
* absent, dispatch uses `globalThis.fetch`.
|
|
4647
4836
|
*/
|
|
4648
|
-
declare const httpFetchPluginRef: PropertyPlugin<"httpFetch", typeof fetch | undefined> &
|
|
4649
|
-
declare const dispatchHttpRequestPlugin: MethodPlugin<"dispatchHttpRequest", DispatchHttpRequestInput, Promise<Response>, readonly [], DispatchHttpRequestInput> & LeafSummary<"kitcore", "dispatchHttpRequest", readonly [PropertyPlugin<"httpFetch", typeof fetch | undefined> &
|
|
4837
|
+
declare const httpFetchPluginRef: PropertyPlugin<"httpFetch", typeof fetch | undefined> & OptionalDeclarationSummary<"kitcore/httpFetch", typeof fetch | undefined> & StandInId<"kitcore/httpFetch">;
|
|
4838
|
+
declare const dispatchHttpRequestPlugin: MethodPlugin<"dispatchHttpRequest", DispatchHttpRequestInput, Promise<Response>, readonly [], DispatchHttpRequestInput> & LeafSummary<"kitcore", "dispatchHttpRequest", readonly [PropertyPlugin<"httpFetch", typeof fetch | undefined> & OptionalDeclarationSummary<"kitcore/httpFetch", typeof fetch | undefined> & StandInId<"kitcore/httpFetch">], (input: DispatchHttpRequestInput) => Promise<Response>>;
|
|
4650
4839
|
|
|
4651
|
-
declare const receiveHttpResponsePlugin: MethodPlugin<"receiveHttpResponse", ReceiveHttpResponseInput, Promise<Response>, readonly [], ReceiveHttpResponseInput> & LeafSummary<"kitcore", "receiveHttpResponse", readonly []
|
|
4840
|
+
declare const receiveHttpResponsePlugin: MethodPlugin<"receiveHttpResponse", ReceiveHttpResponseInput, Promise<Response>, readonly [], ReceiveHttpResponseInput> & LeafSummary<"kitcore", "receiveHttpResponse", readonly [], (input: ReceiveHttpResponseInput) => Promise<Response>>;
|
|
4652
4841
|
|
|
4653
4842
|
/**
|
|
4654
4843
|
* The transport orchestrator: turn an {@link HttpRequestInput} into a native
|
|
@@ -4677,7 +4866,7 @@ declare const receiveHttpResponsePlugin: MethodPlugin<"receiveHttpResponse", Rec
|
|
|
4677
4866
|
* No retry by default: with nothing composed this runs exactly one attempt.
|
|
4678
4867
|
* `retryHttpRequestPlugin` is opt-in.
|
|
4679
4868
|
*/
|
|
4680
|
-
declare const sendHttpRequestPlugin: MethodPlugin<"sendHttpRequest", HttpRequestInput, Promise<Response>, readonly [], HttpRequestInput> & LeafSummary<"kitcore", "sendHttpRequest", readonly [MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly []
|
|
4869
|
+
declare const sendHttpRequestPlugin: MethodPlugin<"sendHttpRequest", HttpRequestInput, Promise<Response>, readonly [], HttpRequestInput> & LeafSummary<"kitcore", "sendHttpRequest", readonly [MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly [], (input: InitializeHttpRequestInput) => Promise<HttpOperationContext>>, MethodPlugin<"attemptHttpRequest", AttemptHttpRequestInput, Promise<Response>, readonly [], AttemptHttpRequestInput> & LeafSummary<"kitcore", "attemptHttpRequest", readonly [MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly [], (input: PrepareHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"authorizeHttpRequest", AuthorizeHttpRequestInput, Promise<HttpRequest>, readonly [], AuthorizeHttpRequestInput> & LeafSummary<"kitcore", "authorizeHttpRequest", readonly [], (input: AuthorizeHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"dispatchHttpRequest", DispatchHttpRequestInput, Promise<Response>, readonly [], DispatchHttpRequestInput> & LeafSummary<"kitcore", "dispatchHttpRequest", readonly [PropertyPlugin<"httpFetch", typeof fetch | undefined> & OptionalDeclarationSummary<"kitcore/httpFetch", typeof fetch | undefined> & StandInId<"kitcore/httpFetch">], (input: DispatchHttpRequestInput) => Promise<Response>>, MethodPlugin<"receiveHttpResponse", ReceiveHttpResponseInput, Promise<Response>, readonly [], ReceiveHttpResponseInput> & LeafSummary<"kitcore", "receiveHttpResponse", readonly [], (input: ReceiveHttpResponseInput) => Promise<Response>>], (input: AttemptHttpRequestInput) => Promise<Response>>], (input: HttpRequestInput) => Promise<Response>>;
|
|
4681
4870
|
|
|
4682
4871
|
/**
|
|
4683
4872
|
* `fetch` — native `fetch(url, init)` ergonomics over the transport. It
|
|
@@ -4706,7 +4895,7 @@ declare const fetchPlugin: MethodPlugin<"fetch", {
|
|
|
4706
4895
|
}, Promise<Response>, readonly ["url", "init"], {
|
|
4707
4896
|
url: string | URL;
|
|
4708
4897
|
init?: Omit<HttpRequestInput, "url">;
|
|
4709
|
-
}> & LeafSummary<"kitcore", "fetch", readonly [MethodPlugin<"sendHttpRequest", HttpRequestInput, Promise<Response>, readonly [], HttpRequestInput> & LeafSummary<"kitcore", "sendHttpRequest", readonly [MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly []
|
|
4898
|
+
}> & LeafSummary<"kitcore", "fetch", readonly [MethodPlugin<"sendHttpRequest", HttpRequestInput, Promise<Response>, readonly [], HttpRequestInput> & LeafSummary<"kitcore", "sendHttpRequest", readonly [MethodPlugin<"initializeHttpRequest", InitializeHttpRequestInput, Promise<HttpOperationContext>, readonly [], InitializeHttpRequestInput> & LeafSummary<"kitcore", "initializeHttpRequest", readonly [], (input: InitializeHttpRequestInput) => Promise<HttpOperationContext>>, MethodPlugin<"attemptHttpRequest", AttemptHttpRequestInput, Promise<Response>, readonly [], AttemptHttpRequestInput> & LeafSummary<"kitcore", "attemptHttpRequest", readonly [MethodPlugin<"prepareHttpRequest", PrepareHttpRequestInput, Promise<HttpRequest>, readonly [], PrepareHttpRequestInput> & LeafSummary<"kitcore", "prepareHttpRequest", readonly [], (input: PrepareHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"authorizeHttpRequest", AuthorizeHttpRequestInput, Promise<HttpRequest>, readonly [], AuthorizeHttpRequestInput> & LeafSummary<"kitcore", "authorizeHttpRequest", readonly [], (input: AuthorizeHttpRequestInput) => Promise<HttpRequest>>, MethodPlugin<"dispatchHttpRequest", DispatchHttpRequestInput, Promise<Response>, readonly [], DispatchHttpRequestInput> & LeafSummary<"kitcore", "dispatchHttpRequest", readonly [PropertyPlugin<"httpFetch", typeof fetch | undefined> & OptionalDeclarationSummary<"kitcore/httpFetch", typeof fetch | undefined> & StandInId<"kitcore/httpFetch">], (input: DispatchHttpRequestInput) => Promise<Response>>, MethodPlugin<"receiveHttpResponse", ReceiveHttpResponseInput, Promise<Response>, readonly [], ReceiveHttpResponseInput> & LeafSummary<"kitcore", "receiveHttpResponse", readonly [], (input: ReceiveHttpResponseInput) => Promise<Response>>], (input: AttemptHttpRequestInput) => Promise<Response>>], (input: HttpRequestInput) => Promise<Response>>], (arg: string | URL, arg_1?: Omit<HttpRequestInput, "url"> | undefined) => Promise<Response>>;
|
|
4710
4899
|
|
|
4711
4900
|
/**
|
|
4712
4901
|
* Headers with every credential value masked, as a plain object a logger can
|
|
@@ -4752,9 +4941,9 @@ interface NormalizedConnection {
|
|
|
4752
4941
|
value: string;
|
|
4753
4942
|
}
|
|
4754
4943
|
|
|
4755
|
-
declare const defaultConnectionSchemePlugin: MethodPlugin<"defaultConnectionScheme", DefaultConnectionSchemeInput, string | undefined, readonly [], DefaultConnectionSchemeInput> & LeafSummary<"kitcore", "defaultConnectionScheme", readonly []>;
|
|
4944
|
+
declare const defaultConnectionSchemePlugin: MethodPlugin<"defaultConnectionScheme", DefaultConnectionSchemeInput, string | undefined, readonly [], DefaultConnectionSchemeInput> & LeafSummary<"kitcore", "defaultConnectionScheme", readonly [], (input: DefaultConnectionSchemeInput) => string | undefined>;
|
|
4756
4945
|
|
|
4757
|
-
declare const normalizeConnectionPlugin: MethodPlugin<"normalizeConnection", NormalizeConnectionInput, NormalizedConnection | undefined, readonly [], NormalizeConnectionInput> & LeafSummary<"kitcore", "normalizeConnection", readonly [MethodPlugin<"defaultConnectionScheme", DefaultConnectionSchemeInput, string | undefined, readonly [], DefaultConnectionSchemeInput> & LeafSummary<"kitcore", "defaultConnectionScheme", readonly []>]>;
|
|
4946
|
+
declare const normalizeConnectionPlugin: MethodPlugin<"normalizeConnection", NormalizeConnectionInput, NormalizedConnection | undefined, readonly [], NormalizeConnectionInput> & LeafSummary<"kitcore", "normalizeConnection", readonly [MethodPlugin<"defaultConnectionScheme", DefaultConnectionSchemeInput, string | undefined, readonly [], DefaultConnectionSchemeInput> & LeafSummary<"kitcore", "defaultConnectionScheme", readonly [], (input: DefaultConnectionSchemeInput) => string | undefined>], (input?: NormalizeConnectionInput | undefined) => NormalizedConnection | undefined>;
|
|
4758
4947
|
|
|
4759
4948
|
/**
|
|
4760
4949
|
* SELECT which connection REFERENCE a call should use: the explicit one if the
|
|
@@ -4772,6 +4961,6 @@ declare const normalizeConnectionPlugin: MethodPlugin<"normalizeConnection", Nor
|
|
|
4772
4961
|
* fatal depends on what the caller declared it needs, which this stage cannot
|
|
4773
4962
|
* see, so this stays policy-free.
|
|
4774
4963
|
*/
|
|
4775
|
-
declare const resolveConnectionPlugin: MethodPlugin<"resolveConnection", ResolveConnectionInput, string | undefined, readonly [], ResolveConnectionInput> & LeafSummary<"kitcore", "resolveConnection", readonly []>;
|
|
4964
|
+
declare const resolveConnectionPlugin: MethodPlugin<"resolveConnection", ResolveConnectionInput, string | undefined, readonly [], ResolveConnectionInput> & LeafSummary<"kitcore", "resolveConnection", readonly [], (input: ResolveConnectionInput) => string | undefined>;
|
|
4776
4965
|
|
|
4777
|
-
export { type AdaptError, type AdaptErrorOptions, type AdaptPage, type AggregatePlugin, type Annotations, type ArrayResolver$1 as ArrayResolver, type AsyncContext, type AttemptHttpRequestInput, type AuthorizeHttpRequestInput, type BoundFormatter, type BoundResolver, CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, type CallContext, type CallOrigin, type CategoryDefinition, type ComposedAnnotator, type ConstantResolver$1 as ConstantResolver, type Controller, type ControllerAction, type ControllerAffordance, type ControllerAnswerFn, type ControllerChoice, type ControllerError, type ControllerIssue, type ControllerListingPage, type ControllerListingPosition, type ControllerMethodDescription, type ControllerMethodSummary, type ControllerPagination, type ControllerParameterDescription, type ControllerPath, type ControllerQuestion, type ControllerResult, type ControllerSdk, type ControllerSelectPage, type ControllerState, type CoreApiError, CoreCancelledSignal, CoreDisposeError, CoreError, CoreErrorCode, type CoreErrorOptions, type CoreOptions, CoreSignal, type CreateSdkOptions, type DefaultConnectionSchemeInput, type DeprecatedPromptConfigChoice, type DeprecationLogger, type DeprecationWarning, type DispatchHttpRequestInput, type DisposeFn, type DynamicListResolver, type DynamicMember, type DynamicResolver$1 as DynamicResolver, type DynamicSearchResolver, type FieldsResolver, type FormattedItem, type Formatter, type FunctionDeprecation, type FunctionRegistryEntry, HTTP_FETCH_ID, type HookAnnotator, type HookPlugin, type HttpAttemptContext, type HttpFetchInit, type HttpOperationContext, type HttpOperationStart, type HttpPipelineState, type HttpRequest, type HttpRequestInput, type HttpResponse, type InitializeHttpRequestInput, type LeafMeta, type LeafSummary, type LegacyMergePlugin, type LegacyPlugin, type ListItemsResult, type ListPromptConfig, type MethodAnnotator, type MethodAttachment, type MethodHooks, type MethodOverridePlugin, type MethodPlugin, type MethodScope, type Resolver as ModelResolver, type NegatableMetadata, type NormalizeConnectionInput, type NormalizedConnection, type OnMethodEnd, type OnMethodEndContext, type OnMethodStart, type OnMethodStartContext, type OutputDataValidationReport, type OutputFormatter, type OverridableMetaFields, type PaginatedSdkFunction, type PaginatedSdkResult, type Plugin, type PluginMeta, type PluginProvides, type PluginStack, type PluginSummary, type PluginSurface, type PositionalMetadata, type PrepareHttpRequestInput, type PromptConfig, type PromptConfigChoice, type PropertyPlugin, RETRY_HTTP_REQUEST_OPTIONS_ID, type ReceiveHttpResponseInput, type RegistryResult, type RequiredSdkOf, type ResolveConnectionInput, type Resolver$1 as Resolver, type ResolverConfig, type ResolverFieldItem, type ResolverMetadata, type ResolverPromptConfig, type ResolverRequirement, type ResolverType, type ResponseMeta, type RetryHttpRequestAttempt, type RetryHttpRequestOptions, STABILITY_LEVELS, STABILITY_TITLES, type Sdk, type SdkContext, type SdkContextCarrier, type SdkPage, type SendHttpRequest, type StabilityLevel, type StabilityNotice, type StabilityNoticeLogger, type StandInId, type StaticResolver$1 as StaticResolver, type ValidResolvers, addPlugin, applyStabilityLabel, attemptHttpRequestPlugin, authorizeHttpRequestPlugin, canonicalInputSchema, composePlugins, concatLists, concatPaginated, coreOptionsPluginRef, createAsyncContext, createController, createCoreError, createCorePlugin, createDeprecationLogger, createFunction, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createPrefixedCursor, createSdk, createStabilityNoticeLogger, createValidator, dangerousContextPlugin, declareDefault, declareMethod, declareOptionalMethod, declareOptionalProperty, declarePlugin, declareProperty, decodeIncomingCursor, defaultConnectionSchemePlugin, defaultLogDeprecation, defineFormatter, defineHook, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, dispatchHttpRequestPlugin, disposeSdk, fetchPlugin, fromFunctionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCurrentDepth, getCurrentScope, getFieldDescriptions, getNegatable, getOutputSchema, getRegistry, getRegistryPlugin, getSchemaDescription, httpFetchPluginRef, initializeHttpRequestPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isNestedMethodCall, isPositional, isTelemetryNested, normalizeConnectionPlugin, normalizeStability, objectShapeOf, omitExports, openEnum, paginate, paginateBuffered, paginateMaxItems, prepareHttpRequestPlugin, receiveHttpResponsePlugin, redactHeaders, redactHttpRequest, resolveConnectionPlugin, resolvePlugin, retryHttpRequestOptionsPluginRef, retryHttpRequestPlugin, runInMethodScope, runWithTelemetryContext, selectExports, sendHttpRequestPlugin, splitPrefixedCursor, toIterable, toSnakeCase, toTitleCase, unwrapSchema, validateOptions, withOutputSchema, withPositional, withResolver };
|
|
4966
|
+
export { type AdaptError, type AdaptErrorOptions, type AdaptPage, type AggregatePlugin, type Annotations, type ArrayResolver$1 as ArrayResolver, type AsyncContext, type AttemptHttpRequestInput, type AuthorizeHttpRequestInput, type BoundFormatter, type BoundResolver, CONTEXT, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, type CallContext, type CallOrigin, type CategoryDefinition, type ComposedAnnotator, type ConstantResolver$1 as ConstantResolver, type ContractEntry, type Controller, type ControllerAction, type ControllerAffordance, type ControllerAnswerFn, type ControllerChoice, type ControllerError, type ControllerIssue, type ControllerListingPage, type ControllerListingPosition, type ControllerMethodDescription, type ControllerMethodSummary, type ControllerPagination, type ControllerParameterDescription, type ControllerPath, type ControllerQuestion, type ControllerResult, type ControllerSdk, type ControllerSelectPage, type ControllerState, type CoreApiError, CoreCancelledSignal, CoreDisposeError, CoreError, CoreErrorCode, type CoreErrorOptions, type CoreOptions, CoreSignal, type CreateSdkOptions, type DeclarationSummary, type DefaultConnectionSchemeInput, type DeprecatedPromptConfigChoice, type DeprecationLogger, type DeprecationWarning, type DispatchHttpRequestInput, type DisposeFn, type DynamicListResolver, type DynamicMember, type DynamicResolver$1 as DynamicResolver, type DynamicSearchResolver, type FieldsResolver, type FormattedItem, type Formatter, type FunctionDeprecation, type FunctionRegistryEntry, HTTP_FETCH_ID, type HookAnnotator, type HookPlugin, type HttpAttemptContext, type HttpFetchInit, type HttpOperationContext, type HttpOperationStart, type HttpPipelineState, type HttpRequest, type HttpRequestInput, type HttpResponse, type InitializeHttpRequestInput, type LeafMeta, type LeafSummary, type LegacyMergePlugin, type LegacyPlugin, type ListItemsResult, type ListPromptConfig, type MethodAnnotator, type MethodAttachment, type MethodContract, type MethodHooks, type MethodOverridePlugin, type MethodPlugin, type MethodScope, type Resolver as ModelResolver, type NegatableMetadata, type NormalizeConnectionInput, type NormalizedConnection, type OnMethodEnd, type OnMethodEndContext, type OnMethodStart, type OnMethodStartContext, type OptionalDeclarationSummary, type OutputDataValidationReport, type OutputFormatter, type OverridableMetaFields, type PaginatedSdkFunction, type PaginatedSdkResult, type Plugin, type PluginMeta, type PluginProvides, type PluginStack, type PluginSummary, type PluginSurface, type PositionalMetadata, type PrepareHttpRequestInput, type PromptConfig, type PromptConfigChoice, type PropertyPlugin, RETRY_HTTP_REQUEST_OPTIONS_ID, type ReceiveHttpResponseInput, type RegistryResult, type RequiredSdkOf, type ResolveConnectionInput, type Resolver$1 as Resolver, type ResolverConfig, type ResolverFieldItem, type ResolverMetadata, type ResolverPromptConfig, type ResolverRequirement, type ResolverType, type ResponseMeta, type RetryHttpRequestAttempt, type RetryHttpRequestOptions, STABILITY_LEVELS, STABILITY_TITLES, type Sdk, type SdkContext, type SdkContextCarrier, type SdkPage, type SendHttpRequest, type StabilityLevel, type StabilityNotice, type StabilityNoticeLogger, type StandInId, type StaticResolver$1 as StaticResolver, type ValidResolvers, addPlugin, applyStabilityLabel, attemptHttpRequestPlugin, authorizeHttpRequestPlugin, canonicalInputSchema, composePlugins, concatLists, concatPaginated, coreOptionsPluginRef, createAsyncContext, createController, createCoreError, createCorePlugin, createDeprecationLogger, createFunction, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createPrefixedCursor, createSdk, createStabilityNoticeLogger, createValidator, dangerousContextPlugin, declareDefault, declareMethod, declareOptionalMethod, declareOptionalProperty, declarePlugin, declareProperty, decodeIncomingCursor, defaultConnectionSchemePlugin, defaultLogDeprecation, defineFormatter, defineHook, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, dispatchHttpRequestPlugin, disposeSdk, fetchPlugin, fromFunctionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCurrentDepth, getCurrentScope, getFieldDescriptions, getNegatable, getOutputSchema, getRegistry, getRegistryPlugin, getSchemaDescription, httpFetchPluginRef, initializeHttpRequestPlugin, isCoreCancelledSignal, isCoreError, isCoreSignal, isNestedMethodCall, isPositional, isTelemetryNested, normalizeConnectionPlugin, normalizeStability, objectShapeOf, omitExports, openEnum, paginate, paginateBuffered, paginateMaxItems, prepareHttpRequestPlugin, receiveHttpResponsePlugin, redactHeaders, redactHttpRequest, resolveConnectionPlugin, resolvePlugin, retryHttpRequestOptionsPluginRef, retryHttpRequestPlugin, runInMethodScope, runWithTelemetryContext, selectExports, sendHttpRequestPlugin, splitPrefixedCursor, toIterable, toSnakeCase, toTitleCase, unwrapSchema, validateOptions, withOutputSchema, withPositional, withResolver };
|