@simpleapps-com/augur-api 2026.11.4 → 2026.11.6
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/core/base-client.d.ts.map +1 -1
- package/dist/core/call-rules.d.ts +35 -0
- package/dist/core/call-rules.d.ts.map +1 -1
- package/dist/core/call.d.ts.map +1 -1
- package/dist/core/client-rules.d.ts +66 -36
- package/dist/core/client-rules.d.ts.map +1 -1
- package/dist/core/client.d.ts +12 -2
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/encoded-segment.d.ts +7 -1
- package/dist/core/encoded-segment.d.ts.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/http-rules.d.ts +0 -32
- package/dist/core/http-rules.d.ts.map +1 -1
- package/dist/core/proxy-rules.d.ts +53 -0
- package/dist/core/proxy-rules.d.ts.map +1 -1
- package/dist/core/registry-rules.d.ts +7 -0
- package/dist/core/registry-rules.d.ts.map +1 -1
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/core/response-rules.d.ts +15 -0
- package/dist/core/response-rules.d.ts.map +1 -1
- package/dist/core/schemas.d.ts.map +1 -1
- package/dist/core/service-proxy.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +437 -233
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +437 -233
- package/dist/index.mjs.map +1 -1
- package/dist/services/commerce/generated/schemas.d.ts +1 -0
- package/dist/services/commerce/generated/schemas.d.ts.map +1 -1
- package/dist/services/commerce/generated/types.d.ts +2 -0
- package/dist/services/commerce/generated/types.d.ts.map +1 -1
- package/dist/services/goog-mc/generated/schemas.d.ts +8 -0
- package/dist/services/goog-mc/generated/schemas.d.ts.map +1 -1
- package/dist/services/goog-mc/generated/types.d.ts +8 -0
- package/dist/services/goog-mc/generated/types.d.ts.map +1 -1
- package/dist/services/items/client.d.ts +1 -1
- package/dist/services/items/generated/endpoints.d.ts.map +1 -1
- package/dist/services/items/generated/schemas.d.ts +10 -0
- package/dist/services/items/generated/schemas.d.ts.map +1 -1
- package/dist/services/items/generated/types.d.ts +29 -13
- package/dist/services/items/generated/types.d.ts.map +1 -1
- package/dist/services/joomla/generated/endpoints.d.ts.map +1 -1
- package/dist/services/joomla/generated/schemas.d.ts +5 -0
- package/dist/services/joomla/generated/schemas.d.ts.map +1 -1
- package/dist/services/joomla/generated/types.d.ts +18 -2
- package/dist/services/joomla/generated/types.d.ts.map +1 -1
- package/dist/services/legacy/generated/endpoints.d.ts.map +1 -1
- package/dist/services/legacy/generated/schemas.d.ts +2 -0
- package/dist/services/legacy/generated/schemas.d.ts.map +1 -1
- package/dist/services/legacy/generated/types.d.ts +4 -0
- package/dist/services/legacy/generated/types.d.ts.map +1 -1
- package/dist/services/open-search/generated/endpoints.d.ts.map +1 -1
- package/dist/services/open-search/generated/schemas.d.ts +2 -0
- package/dist/services/open-search/generated/schemas.d.ts.map +1 -1
- package/dist/services/open-search/generated/types.d.ts +4 -0
- package/dist/services/open-search/generated/types.d.ts.map +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +22 -9
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +20 -9
- package/dist/testing.mjs.map +1 -1
- package/dist/utils/cross-site-auth.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-client.d.ts","sourceRoot":"","sources":["../../src/core/base-client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-client.d.ts","sourceRoot":"","sources":["../../src/core/base-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAU3C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACpG,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,UAAU,GA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KG;gBACS,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAMlE;;;;;;;;;;;;;;;OAeG;cACa,cAAc,CAAC,OAAO,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,EACnE,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,OAAO,EAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC5C,KAAK,CAAC,EAAE,OAAO,GACd,OAAO,CAAC,SAAS,CAAC;IAiBrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAOvB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAmB1B;;;;;;;OAOG;YACW,kBAAkB;IAwBhC;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAmB7B;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,iBAAiB;CA+B1B"}
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* call()'s envelope: the body counts only when it is a plain object (not null, not an array)
|
|
3
|
+
* holding every one of the 8 keys.
|
|
4
|
+
*
|
|
5
|
+
* @ensures exactly the model's EnvelopeBody
|
|
6
|
+
*/
|
|
7
|
+
export declare function isEnvelopeBody(isPlainObject: boolean, allKeys: boolean): boolean;
|
|
8
|
+
/** What call()'s result body is. */
|
|
9
|
+
export type BodyKind = "json" | "text";
|
|
10
|
+
/**
|
|
11
|
+
* call()'s result body: the parsed JSON when the text is JSON, else the raw text.
|
|
12
|
+
*
|
|
13
|
+
* @ensures exactly the model's CallBodyKind
|
|
14
|
+
*/
|
|
15
|
+
export declare function callBodyKind(isJson: boolean): BodyKind;
|
|
16
|
+
/** Which validation failed: the request's params or the API's response. */
|
|
17
|
+
export type ValidationKind = "params" | "response";
|
|
18
|
+
/**
|
|
19
|
+
* A validation error's message, naming which side failed (base-client.ts).
|
|
20
|
+
*
|
|
21
|
+
* @ensures exactly the model's ValidationMessageOf
|
|
22
|
+
*/
|
|
23
|
+
export declare function validationMessageOf(kind: ValidationKind): string;
|
|
24
|
+
/**
|
|
25
|
+
* An issue's code: its type, or "unknown" (issues built outside valibot can lack one).
|
|
26
|
+
*
|
|
27
|
+
* @ensures exactly the model's IssueCodeOf
|
|
28
|
+
*/
|
|
29
|
+
export declare function issueCodeOf(type: string | undefined): string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether a validation error's text lists its issues: only when it has some.
|
|
32
|
+
*
|
|
33
|
+
* @ensures exactly the model's AppendsIssues
|
|
34
|
+
*/
|
|
35
|
+
export declare function appendsIssues(count: number): boolean;
|
|
1
36
|
/**
|
|
2
37
|
* A query key is allowed when the entry declares it, or it is `edgeCache` on an edge-cached
|
|
3
38
|
* entry.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-rules.d.ts","sourceRoot":"","sources":["../../src/core/call-rules.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAI7F;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIhE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAI7E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED;;;;GAIG;AAC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EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAG5F"}
|
package/dist/core/call.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/core/call.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/core/call.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAa,MAAM,UAAU,CAAC;AAK3E,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAEjE,8EAA8E;AAC9E,MAAM,WAAW,QAAQ;IACvB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAC7C,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,iFAAiF;AACjF,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,sBAAsB;AACtB,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,8EAA8E;IAC9E,IAAI,EAAE,OAAO,CAAC;CACf;AA+DD;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,aAAa,EACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1C,MAAM,CAQR;AAgBD;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,cAAc,EACtB,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,QAAa,EACnB,MAAM,GAAE,UAAsB,GAC7B,OAAO,CAAC,UAAU,CAAC,CAmBrB"}
|
|
@@ -21,32 +21,6 @@ export declare function retryableError(isAugurError: boolean, status: number): b
|
|
|
21
21
|
* @ensures exactly the model's RetryAfterCall
|
|
22
22
|
*/
|
|
23
23
|
export declare function retryAfterCall(attempt: number, retries: number, retryable: boolean, callAborted: boolean): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The DOMException names an abort surfaces as, rethrown as they are: AbortError, and TimeoutError
|
|
26
|
-
* (an `AbortSignal.timeout` signal's).
|
|
27
|
-
*
|
|
28
|
-
* @ensures exactly the model's IsAbortName
|
|
29
|
-
*/
|
|
30
|
-
export declare function isAbortName(name: string): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* What is left of a deadline after `elapsed` ms, never negative.
|
|
33
|
-
*
|
|
34
|
-
* @ensures exactly the model's RemainingOf
|
|
35
|
-
*/
|
|
36
|
-
export declare function remainingOf(deadline: number, elapsed: number): number;
|
|
37
|
-
/**
|
|
38
|
-
* An attempt's timeout: the per-attempt timeout, cut to what is left of the deadline when there
|
|
39
|
-
* is one.
|
|
40
|
-
*
|
|
41
|
-
* @ensures exactly the model's AttemptTimeoutOf
|
|
42
|
-
*/
|
|
43
|
-
export declare function attemptTimeoutOf(perAttempt: number, hasDeadline: boolean, remaining: number): number;
|
|
44
|
-
/**
|
|
45
|
-
* The wait before a retry: the backoff, cut to what is left of the deadline when there is one.
|
|
46
|
-
*
|
|
47
|
-
* @ensures exactly the model's WaitOf
|
|
48
|
-
*/
|
|
49
|
-
export declare function waitOf(backoff: number, hasDeadline: boolean, remaining: number): number;
|
|
50
24
|
/**
|
|
51
25
|
* Whether an attempt sets its own timer: only when its per-attempt timeout ends before the
|
|
52
26
|
* deadline. When the deadline is as tight or tighter, the call's one deadline timer cuts the
|
|
@@ -100,23 +74,79 @@ export declare function hasMergedDeadline(hasOuter: boolean, hasInner: boolean):
|
|
|
100
74
|
/** How an `edgeCache` value travels. */
|
|
101
75
|
export type EdgeCacheKind = "sub-hour" | "hourly" | "invalid";
|
|
102
76
|
/**
|
|
103
|
-
* An `edgeCache` value's kind (transformEdgeCacheParams
|
|
104
|
-
*
|
|
105
|
-
* as
|
|
77
|
+
* An `edgeCache` value's kind (transformEdgeCacheParams, which reads it as `String(value)`):
|
|
78
|
+
* exactly the documented values, sub-hour "30s", "1m", "5m" and hourly "1"-"5" and "8" (a number
|
|
79
|
+
* reads as the same text); anything else is dropped. Not `parseInt`: that read "2abc", "1.5" and
|
|
80
|
+
* "08" as hours (tightened 2026-11-10).
|
|
106
81
|
*
|
|
107
82
|
* @ensures exactly the model's EdgeCacheKindOf
|
|
108
83
|
*/
|
|
109
|
-
export declare function edgeCacheKindOf(text: string
|
|
84
|
+
export declare function edgeCacheKindOf(text: string): EdgeCacheKind;
|
|
110
85
|
/**
|
|
111
|
-
* `
|
|
86
|
+
* The edge directive's name: `cacheSiteId<value>` for a valid value, "" for an invalid one
|
|
87
|
+
* (dropped). Its value is the client's `SiteId` (proved `isSiteId` at construction; model
|
|
88
|
+
* EdgeDirectiveCarriesASiteId), and each name has its zone rule (EveryDirectiveHasItsZoneRule).
|
|
112
89
|
*
|
|
113
|
-
* @ensures exactly the model's
|
|
90
|
+
* @ensures exactly the model's EdgeCacheKeyOf
|
|
114
91
|
*/
|
|
115
|
-
export declare function
|
|
92
|
+
export declare function edgeCacheKeyOf(kind: EdgeCacheKind, text: string): string;
|
|
93
|
+
/** The error class a status gets: four with their own class, every other the base one. */
|
|
94
|
+
export type ErrorClassName = "validation" | "authentication" | "notFound" | "rateLimit" | "augur";
|
|
116
95
|
/**
|
|
117
|
-
*
|
|
96
|
+
* The one status → error class switch, shared by typed methods and call().
|
|
118
97
|
*
|
|
119
|
-
* @ensures exactly the model's
|
|
98
|
+
* @ensures exactly the model's ErrorClassOf
|
|
120
99
|
*/
|
|
121
|
-
export declare function
|
|
100
|
+
export declare function errorClassOf(status: number): ErrorClassName;
|
|
101
|
+
/**
|
|
102
|
+
* The message an error body gives: its `message` only when the body is JSON, an object, and the
|
|
103
|
+
* message a non-empty string. A non-JSON body (an HTML error page) never reaches it.
|
|
104
|
+
*
|
|
105
|
+
* @ensures exactly the model's DetailMessageOf
|
|
106
|
+
*/
|
|
107
|
+
export declare function detailMessageOf(isJson: boolean, isObject: boolean, isText: boolean, message: string): string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Each error class's fixed text; the base error's names the status.
|
|
110
|
+
*
|
|
111
|
+
* @ensures exactly the model's DefaultMessageOf
|
|
112
|
+
*/
|
|
113
|
+
export declare function defaultMessageOf(kind: ErrorClassName, status: number): string;
|
|
114
|
+
/**
|
|
115
|
+
* The error's message: the body's when it gave one, else the class's fixed text.
|
|
116
|
+
*
|
|
117
|
+
* @ensures exactly the model's ErrorMessageOf
|
|
118
|
+
*/
|
|
119
|
+
export declare function errorMessageOf(given: string | undefined, kind: ErrorClassName, status: number): string;
|
|
120
|
+
/**
|
|
121
|
+
* The signed-in user's id as text: a Joomla user id is an integer at least 1, so only a PosInt
|
|
122
|
+
* (`posIntOf` found one: `isId`) becomes its decimal text; anything else reports no id. Was
|
|
123
|
+
* `String(id)` for any number ("0", "-1", "1.5").
|
|
124
|
+
*
|
|
125
|
+
* @ensures exactly the model's CrossSiteUserIdOf
|
|
126
|
+
*/
|
|
127
|
+
export declare function crossSiteUserIdOf(isId: boolean, id: number): string | undefined;
|
|
128
|
+
/** Which response hook runs. */
|
|
129
|
+
export type ResponseHook = "onResponse" | "onError" | "noHook";
|
|
130
|
+
/**
|
|
131
|
+
* The response hook for a response: onResponse only on a 2xx, onError only on a failure, each
|
|
132
|
+
* only when configured (model HooksFollowTheOutcome).
|
|
133
|
+
*
|
|
134
|
+
* @ensures exactly the model's ResponseHookOf
|
|
135
|
+
*/
|
|
136
|
+
export declare function responseHookOf(ok: boolean, hasOnError: boolean, hasOnResponse: boolean): ResponseHook;
|
|
137
|
+
/** A cross-site sign-in's outcome. */
|
|
138
|
+
export type CrossSiteOutcome = "signedIn" | "notVerified" | "noToken";
|
|
139
|
+
/**
|
|
140
|
+
* Cross-site sign-in (utils/cross-site-auth.ts): refused unless verified; verified with no
|
|
141
|
+
* non-empty text token is no token; only then signed in, so only such a token becomes a bearer.
|
|
142
|
+
*
|
|
143
|
+
* @ensures exactly the model's CrossSiteOutcomeOf
|
|
144
|
+
*/
|
|
145
|
+
export declare function crossSiteOutcomeOf(isVerified: boolean, tokenIsText: boolean, token: string): CrossSiteOutcome;
|
|
146
|
+
/**
|
|
147
|
+
* `raw()` retries a GET like `get()`; anything else makes one attempt.
|
|
148
|
+
*
|
|
149
|
+
* @ensures exactly the model's RawRetries
|
|
150
|
+
*/
|
|
151
|
+
export declare function rawRetries(method: string): boolean;
|
|
122
152
|
//# sourceMappingURL=client-rules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-rules.d.ts","sourceRoot":"","sources":["../../src/core/client-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-rules.d.ts","sourceRoot":"","sources":["../../src/core/client-rules.ts"],"names":[],"mappings":"AASA,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,eAAe,CAAC;AAEtF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,OAAO,EACnB,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,EAC3B,gBAAgB,EAAE,OAAO,GACxB,cAAc,CAWhB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAI7E;AA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+25,17 @@ export declare class HTTPClient {
|
|
|
25
25
|
private serviceName;
|
|
26
26
|
private inflightRequests;
|
|
27
27
|
private bounds;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The siteId this client sends (`x-site-id`, and the value of every `cacheSiteId` edge
|
|
30
|
+
* directive): a `SiteId`, so only a proved `isSiteId` string reaches the header or Cloudflare's
|
|
31
|
+
* cache key (AugurApiClient.EdgeDirectiveCarriesASiteId; owner 2026-11-10).
|
|
32
|
+
*/
|
|
33
|
+
private siteId;
|
|
34
|
+
/**
|
|
35
|
+
* `bounds` bound every call this client makes (a view's, from `AugurAPI.withRequest`).
|
|
36
|
+
*
|
|
37
|
+
* @throws InvalidArgumentError when `config.siteId` is not a siteId (as `AugurAPI` does)
|
|
38
|
+
*/
|
|
29
39
|
constructor(serviceName: string, config: AugurAPIConfig, bounds?: CallBounds);
|
|
30
40
|
/**
|
|
31
41
|
* Build request headers with auth. A request's own headers come before `x-site-id` and
|
|
@@ -58,7 +68,7 @@ export declare class HTTPClient {
|
|
|
58
68
|
private attemptBounds;
|
|
59
69
|
/** The signal one attempt is sent with, and how to clear its timer and listeners after. */
|
|
60
70
|
private attemptSignal;
|
|
61
|
-
/** The request's timeout: per request, else the client's, else the default (
|
|
71
|
+
/** The request's timeout: per request, else the client's, else the default (firstGiven). */
|
|
62
72
|
private timeoutFor;
|
|
63
73
|
/** The request as the `onRequest` hook receives it. */
|
|
64
74
|
private baseRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAInB,KAAK,UAAU,EAGf,KAAK,aAAa,EACnB,MAAM,UAAU,CAAC;AAuClB,0FAA0F;AAC1F,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MA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G;YACW,gBAAgB;IAO9B,6EAA6E;YAC/D,UAAU;IAYxB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,wBAAwB;IA8B1B,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC;IAqCzE,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC;IAO1F,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC;IAOzF,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC;IAOlF;;;;;OAKG;IACG,GAAG,CACP,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,aAAa,CAAA;KAAO,GACzE,OAAO,CAAC,WAAW,CAAC;CAYxB"}
|
|
@@ -17,7 +17,13 @@ export type EncodedSegment = string & {
|
|
|
17
17
|
export declare function encodePathSegment(value: string): EncodedSegment;
|
|
18
18
|
/** `path` with every `{placeholder}` replaced by an already-encoded segment. */
|
|
19
19
|
export declare function fillPlaceholder(path: string, placeholder: string, segment: EncodedSegment): string;
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The template with each `{name}` replaced by its encoded segment; a missing name is an error.
|
|
22
|
+
* The names are utils' proved `templateNames`, the missing ones its proved `notInFrom`, and each
|
|
23
|
+
* fill the proved `placeholderFilled`. Filling one name at a time is the regex's answer: an
|
|
24
|
+
* encoded segment holds no `{` or `}` (`encodeURIComponent` escapes them), so no fill can make
|
|
25
|
+
* a placeholder another fill would then see.
|
|
26
|
+
*/
|
|
21
27
|
export declare function renderPath(template: string, segments: Readonly<Record<string, EncodedSegment>>): string;
|
|
22
28
|
export {};
|
|
23
29
|
//# sourceMappingURL=encoded-segment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoded-segment.d.ts","sourceRoot":"","sources":["../../src/core/encoded-segment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encoded-segment.d.ts","sourceRoot":"","sources":["../../src/core/encoded-segment.ts"],"names":[],"mappings":"AAcA,OAAO,CAAC,MAAM,mBAAmB,EAAE,OAAO,MAAM,CAAC;AAEjD,oGAAoG;AACpG,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/E;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAa/D;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,cAAc,GACtB,MAAM,CAIR;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,GACjD,MAAM,CAeR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":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ACH,kBAAkB,IAAI,MAAM,EAAE;IAW9B;;;OAGG;IACH,iBAAiB,IAAI,KAAK,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IAcF;;;OAGG;IACH,QAAQ,IAAI,MAAM;CAWnB;AAED,qBAAa,mBAAoB,SAAQ,UAAU;gBACrC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAO3E;AAED,qBAAa,aAAc,SAAQ,UAAU;gBAC/B,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAO3E;AAED,qBAAa,cAAe,SAAQ,UAAU;gBAChC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAO3E;AAED,qBAAa,oBAAqB,SAAQ,UAAU;gBACtC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAO3E"}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A status worth retrying: a client error (4xx) never is, except 429; anything else (network
|
|
3
|
-
* 0, 5xx) is.
|
|
4
|
-
*
|
|
5
|
-
* @ensures exactly the model's RetryableStatus
|
|
6
|
-
*/
|
|
7
|
-
export declare function isRetryableStatus(status: number): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The backoff before attempt `attempt` (0-indexed), before jitter: base · 2^attempt.
|
|
10
|
-
*
|
|
11
|
-
* @ensures exactly the model's ExponentialDelay
|
|
12
|
-
*/
|
|
13
|
-
export declare function exponentialDelay(base: number, attempt: number): number;
|
|
14
|
-
/**
|
|
15
|
-
* A delay capped at 30 seconds.
|
|
16
|
-
*
|
|
17
|
-
* @ensures exactly the model's CappedDelay
|
|
18
|
-
*/
|
|
19
|
-
export declare function cappedDelay(d: number): number;
|
|
20
|
-
/**
|
|
21
|
-
* A request's timeout: its own when given, else the client's when configured, else
|
|
22
|
-
* `fallback` (the default).
|
|
23
|
-
*
|
|
24
|
-
* @ensures exactly the model's TimeoutOf
|
|
25
|
-
*/
|
|
26
|
-
export declare function timeoutOf(hasRequest: boolean, request: number, hasClient: boolean, client: number, fallback: number): number;
|
|
27
1
|
/**
|
|
28
2
|
* The endpoints every service serves without a token: a URL ending in /health-check or /ping.
|
|
29
3
|
*
|
|
@@ -43,12 +17,6 @@ export declare function sendsBearer(url: string, hasToken: boolean): boolean;
|
|
|
43
17
|
* @ensures exactly the model's SendsJsonBody
|
|
44
18
|
*/
|
|
45
19
|
export declare function sendsJsonBody(hasData: boolean, method: string): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The query string joins with `&` when the URL already has a `?`.
|
|
48
|
-
*
|
|
49
|
-
* @ensures exactly the model's QuerySeparator
|
|
50
|
-
*/
|
|
51
|
-
export declare function querySeparator(url: string): string;
|
|
52
20
|
/**
|
|
53
21
|
* In-flight requests are deduplicated by `METHOD:url:params`.
|
|
54
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-rules.d.ts","sourceRoot":"","sources":["../../src/core/http-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http-rules.d.ts","sourceRoot":"","sources":["../../src/core/http-rules.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIrD;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAInE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAI9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIrD"}
|
|
@@ -1,3 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Legacy snake_case keys are renamed in a GET's query only: a POST or PUT body goes as given.
|
|
3
|
+
*
|
|
4
|
+
* @ensures exactly the model's RenamesWireParams
|
|
5
|
+
*/
|
|
6
|
+
export declare function renamesWireParams(method: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* An endpoint with no query params gets {} for a missing body (the hand-written `get` pattern).
|
|
9
|
+
*
|
|
10
|
+
* @ensures exactly the model's DefaultsEmptyBody
|
|
11
|
+
*/
|
|
12
|
+
export declare function defaultsEmptyBody(hasQueryParams: boolean, hasBody: boolean): boolean;
|
|
13
|
+
/** What a data proxy does with a property. */
|
|
14
|
+
export type DataRoute = "unwrap" | "nest" | "copy";
|
|
15
|
+
/**
|
|
16
|
+
* A data proxy unwraps a method's answer to its data, nests an object, and copies the rest.
|
|
17
|
+
*
|
|
18
|
+
* @ensures exactly the model's DataProxyRoute
|
|
19
|
+
*/
|
|
20
|
+
export declare function dataProxyRoute(isFunction: boolean, isObject: boolean): DataRoute;
|
|
21
|
+
/** Where the mock client sends a property. */
|
|
22
|
+
export type MockRoute = "absent" | "tag" | "stub" | "cached" | "child";
|
|
23
|
+
/**
|
|
24
|
+
* The mock client's property route (testing.ts): `then`, Symbol.toPrimitive and Symbol.iterator
|
|
25
|
+
* are absent (never a thenable or iterable), the toStringTag is the tag, a MockFn property
|
|
26
|
+
* reaches the stub, a seen name its cached child, any other a new child.
|
|
27
|
+
*
|
|
28
|
+
* @ensures exactly the model's MockPropRoute
|
|
29
|
+
*/
|
|
30
|
+
export declare function mockPropRoute(isThen: boolean, isToPrimitive: boolean, isIterator: boolean, isToStringTag: boolean, isMockFnProp: boolean, isCached: boolean): MockRoute;
|
|
31
|
+
/** How a generated method calls executeRequest. */
|
|
32
|
+
export type RequestShape = "withPathParams" | "paramsOnly" | "noParams";
|
|
33
|
+
/**
|
|
34
|
+
* With its path params; else with its params alone when the endpoint declares query params or a
|
|
35
|
+
* body was given; else bare.
|
|
36
|
+
*
|
|
37
|
+
* @ensures exactly the model's RequestShapeOf
|
|
38
|
+
*/
|
|
39
|
+
export declare function requestShapeOf(hasPathParams: boolean, hasQueryParams: boolean, hasBody: boolean): RequestShape;
|
|
40
|
+
/**
|
|
41
|
+
* A legacy key's value is copied to its camelCase name only when the caller did not give that
|
|
42
|
+
* name too: the caller's camelCase value always wins.
|
|
43
|
+
*
|
|
44
|
+
* @ensures exactly the model's CopiesLegacyValue
|
|
45
|
+
*/
|
|
46
|
+
export declare function copiesLegacyValue(camelGiven: boolean): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The placeholders a typed method's path param fills (base-client.ts): the key's own `{key}`
|
|
49
|
+
* when the path has it, else every placeholder matching it by folded name.
|
|
50
|
+
*
|
|
51
|
+
* @ensures exactly the model's PathParamTargets
|
|
52
|
+
*/
|
|
53
|
+
export declare function pathParamTargets(path: string, key: string): string[];
|
|
1
54
|
/**
|
|
2
55
|
* The trailing-argument slot of the request body after the path params: none (-1) for a
|
|
3
56
|
* DELETE, else the first (a GET's carries its query).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-rules.d.ts","sourceRoot":"","sources":["../../src/core/proxy-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy-rules.d.ts","sourceRoot":"","sources":["../../src/core/proxy-rules.ts"],"names":[],"mappings":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AKhD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAI1E"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An entry's id: `serviceId.chain.action`, the service's kebab wire name as its camelCase id
|
|
3
|
+
* root. The generator's rule too (its `entryId` over `serviceIdOf`; one model).
|
|
4
|
+
*
|
|
5
|
+
* @ensures exactly the model's EndpointId
|
|
6
|
+
*/
|
|
7
|
+
export declare function endpointIdOf(service: string, chain: string, action: string): string;
|
|
1
8
|
/**
|
|
2
9
|
* Whether an endpoint with `method` carries a request body: POST and PUT only.
|
|
3
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry-rules.d.ts","sourceRoot":"","sources":["../../src/core/registry-rules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry-rules.d.ts","sourceRoot":"","sources":["../../src/core/registry-rules.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAInF;AAOD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAIlD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAK5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":"AAeA,8FAA8F;AAC9F,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC,8CAA8C;AAC9C,MAAM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AC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IACzD,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B;AAkGD,yFAAyF;AACzF,wBAAgB,eAAe,IAAI,aAAa,EAAE,CAGjD;AAkBD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAGrE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,UAAU,CAAC,GAAG,OAAO,CAErF"}
|
|
@@ -16,6 +16,21 @@ export declare function syncedTotal(total: number, totalResults: number): number
|
|
|
16
16
|
* @ensures exactly the model's SyncedTotalResults
|
|
17
17
|
*/
|
|
18
18
|
export declare function syncedTotalResults(total: number, totalResults: number): number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether normalising changed the count (schemas.ts logs it).
|
|
21
|
+
*
|
|
22
|
+
* @ensures exactly the model's CountChanged
|
|
23
|
+
*/
|
|
24
|
+
export declare function countChanged(count: number, dataLength: number): boolean;
|
|
25
|
+
/** Which of the two totals normalising changed, if either. */
|
|
26
|
+
export type TotalsChange = "total" | "totalResults" | "kept";
|
|
27
|
+
/**
|
|
28
|
+
* The total changed; else the total results changed; else neither (they can't both change:
|
|
29
|
+
* model TotalsChangeIsTheOneThatHappened). schemas.ts logs the one that did.
|
|
30
|
+
*
|
|
31
|
+
* @ensures exactly the model's TotalsChangeOf
|
|
32
|
+
*/
|
|
33
|
+
export declare function totalsChangeOf(total: number, totalResults: number): TotalsChange;
|
|
19
34
|
/**
|
|
20
35
|
* Whether a normalisation is logged: in development only, NODE_ENV set and not
|
|
21
36
|
* "production" (Workers and browsers have none, so they never log).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-rules.d.ts","sourceRoot":"","sources":["../../src/core/response-rules.ts"],"names":[],"mappings":"AAOA;;;;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"schemas.d.ts","sourceRoot":"","sources":["../../src/core/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/core/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AA0D7B,iFAAiF;AACjF,KAAK,mBAAmB,GAAG,CAAC,CAAC,WAAW,CACtC;IACE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,EAAE,SAAS,CAAC;IACzC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,SAAS,CAAC;CACtE,EACD,SAAS,CACV,CAAC;AAEF,qEAAqE;AACrE,KAAK,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,iBAAiB,CAC9E;IACE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;CAClD,EACD,SAAS,CACV,CAAC;AAEF,KAAK,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,C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C;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAC5D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGhE,OAAO,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-proxy.d.ts","sourceRoot":"","sources":["../../src/core/service-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"service-proxy.d.ts","sourceRoot":"","sources":["../../src/core/service-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAWhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEzE,sFAAsF;AACtF,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,GACtE,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACzE,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAClC,CAAC,CAAC;AAIR;;;GAGG;AACH,KAAK,gBAAgB,GAAG,CAAC,OAAO,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,EAC7D,MAAM,EAAE;IACN,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC;IAC/B,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC;CACjC,EACD,MAAM,CAAC,EAAE,OAAO,EAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACnC,KAAK,CAAC,EAAE,OAAO,KACZ,OAAO,CAAC,SAAS,CAAC,CAAC;AAmDxB;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,gBAAgB,EAChC,SAAS,EAAE,WAAW,EAAE,GACvB,CAAC,CAGH;AA0DD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAiCrF;AAiFD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CA4B3D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2026.11.
|
|
1
|
+
export declare const VERSION = "2026.11.6";
|
|
2
2
|
export { AugurAPI } from "./client";
|
|
3
3
|
export { authenticateUserForSite, createCrossSiteAuthenticator, type CrossSiteAuthParams, type CrossSiteAuthResult, } from "./utils/cross-site-auth";
|
|
4
4
|
export { type AugurAPIConfig, type AugurRequestConfig, type AugurResponse, type AugurRequestError, type RequestConfig, type CallOptions, type AugurContext, ContextCreationError, } from "./core/config";
|