@eudiplo/sdk-core 5.0.0 → 5.1.0-main.0f9e336

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.
@@ -6,6 +6,13 @@ interface Auth {
6
6
  * @default 'header'
7
7
  */
8
8
  in?: 'header' | 'query' | 'cookie';
9
+ /**
10
+ * A unique identifier for the security scheme.
11
+ *
12
+ * Defined only when there are multiple security schemes whose `Auth`
13
+ * shape would otherwise be identical.
14
+ */
15
+ key?: string;
9
16
  /**
10
17
  * Header or query parameter name.
11
18
  *
@@ -121,6 +128,11 @@ interface Config$1 {
121
128
  */
122
129
  responseValidator?: (data: unknown) => Promise<unknown>;
123
130
  }
131
+ /**
132
+ * Arbitrary metadata passed through the `meta` request option.
133
+ */
134
+ interface ClientMeta {
135
+ }
124
136
 
125
137
  type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
126
138
  /**
@@ -332,4 +344,4 @@ interface TDataShape {
332
344
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
333
345
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
334
346
 
335
- export { type Auth as A, type Client as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type TDataShape as T, type ClientOptions as a, type Config as b, type CreateClientConfig as c, type RequestResult as d, type ResolvedRequestOptions as e, type ResponseStyle as f, createConfig as g, formDataBodySerializer as h, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
347
+ export { type Auth as A, type Config as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type ServerSentEventsResult as S, type TDataShape as T, type Client as a, type ClientOptions as b, type ClientMeta as c, type CreateClientConfig as d, type RequestResult as e, type ResolvedRequestOptions as f, type ResponseStyle as g, createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
@@ -6,6 +6,13 @@ interface Auth {
6
6
  * @default 'header'
7
7
  */
8
8
  in?: 'header' | 'query' | 'cookie';
9
+ /**
10
+ * A unique identifier for the security scheme.
11
+ *
12
+ * Defined only when there are multiple security schemes whose `Auth`
13
+ * shape would otherwise be identical.
14
+ */
15
+ key?: string;
9
16
  /**
10
17
  * Header or query parameter name.
11
18
  *
@@ -121,6 +128,11 @@ interface Config$1 {
121
128
  */
122
129
  responseValidator?: (data: unknown) => Promise<unknown>;
123
130
  }
131
+ /**
132
+ * Arbitrary metadata passed through the `meta` request option.
133
+ */
134
+ interface ClientMeta {
135
+ }
124
136
 
125
137
  type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
126
138
  /**
@@ -332,4 +344,4 @@ interface TDataShape {
332
344
  type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
333
345
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
334
346
 
335
- export { type Auth as A, type Client as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type TDataShape as T, type ClientOptions as a, type Config as b, type CreateClientConfig as c, type RequestResult as d, type ResolvedRequestOptions as e, type ResponseStyle as f, createConfig as g, formDataBodySerializer as h, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
347
+ export { type Auth as A, type Config as C, type Options as O, type QuerySerializerOptions as Q, type RequestOptions as R, type ServerSentEventsResult as S, type TDataShape as T, type Client as a, type ClientOptions as b, type ClientMeta as c, type CreateClientConfig as d, type RequestResult as e, type ResolvedRequestOptions as f, type ResponseStyle as g, createConfig as h, formDataBodySerializer as i, jsonBodySerializer as j, mergeHeaders as m, urlSearchParamsBodySerializer as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eudiplo/sdk-core",
3
- "version": "5.0.0",
3
+ "version": "5.1.0-main.0f9e336",
4
4
  "description": "Framework-agnostic EUDIPLO SDK for demos and integrations",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,11 +36,11 @@
36
36
  "prepublishOnly": "pnpm build"
37
37
  },
38
38
  "devDependencies": {
39
- "@hey-api/openapi-ts": "^0.98.2",
40
- "@types/node": "^25.3.3",
39
+ "@hey-api/openapi-ts": "^0.99.0",
40
+ "@types/node": "^26.0.1",
41
41
  "tsup": "^8.5.1",
42
42
  "typescript": "^6.0.3",
43
- "vitest": "4.1.8"
43
+ "vitest": "4.1.10"
44
44
  },
45
45
  "files": [
46
46
  "dist",