@stackone/connect-sdk 2.28.0 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -130,8 +130,9 @@ declare const QueryArrayFormats: readonly ["repeat", "brackets", "comma"];
130
130
  type QueryArrayFormat = (typeof QueryArrayFormats)[number];
131
131
  //#endregion
132
132
  //#region ../transport/src/httpClient/types.d.ts
133
+ type HttpHeader = string | string[];
133
134
  type HttpHeaders = {
134
- [key: string]: string;
135
+ [key: string]: HttpHeader;
135
136
  };
136
137
  type HttpQueryParamValue = {
137
138
  value: string | string[];
@@ -142,7 +143,7 @@ type HttpQueryParams = {
142
143
  };
143
144
  declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
144
145
  type HttpMethod = (typeof HttpMethods)[number];
145
- type HttpResponse<T = any> = {
146
+ type HttpResponse<T = any, P = any> = {
146
147
  data: T;
147
148
  status: number;
148
149
  headers: HttpHeaders;
@@ -150,6 +151,7 @@ type HttpResponse<T = any> = {
150
151
  responseType?: string;
151
152
  responseTime?: Date;
152
153
  message?: string;
154
+ body?: P;
153
155
  };
154
156
  type StreamHttpResponse = {
155
157
  status: number;
@@ -539,7 +541,7 @@ type StepFunctionInstance = {
539
541
  };
540
542
  type StreamOutputData = {
541
543
  stream: Readable;
542
- headers: Record<string, string>;
544
+ headers: HttpHeaders;
543
545
  contentDisposition: string;
544
546
  fileMetadata: {
545
547
  contentType?: string;
package/dist/index.d.mts CHANGED
@@ -130,8 +130,9 @@ declare const QueryArrayFormats: readonly ["repeat", "brackets", "comma"];
130
130
  type QueryArrayFormat = (typeof QueryArrayFormats)[number];
131
131
  //#endregion
132
132
  //#region ../transport/src/httpClient/types.d.ts
133
+ type HttpHeader = string | string[];
133
134
  type HttpHeaders = {
134
- [key: string]: string;
135
+ [key: string]: HttpHeader;
135
136
  };
136
137
  type HttpQueryParamValue = {
137
138
  value: string | string[];
@@ -142,7 +143,7 @@ type HttpQueryParams = {
142
143
  };
143
144
  declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
144
145
  type HttpMethod = (typeof HttpMethods)[number];
145
- type HttpResponse<T = any> = {
146
+ type HttpResponse<T = any, P = any> = {
146
147
  data: T;
147
148
  status: number;
148
149
  headers: HttpHeaders;
@@ -150,6 +151,7 @@ type HttpResponse<T = any> = {
150
151
  responseType?: string;
151
152
  responseTime?: Date;
152
153
  message?: string;
154
+ body?: P;
153
155
  };
154
156
  type StreamHttpResponse = {
155
157
  status: number;
@@ -539,7 +541,7 @@ type StepFunctionInstance = {
539
541
  };
540
542
  type StreamOutputData = {
541
543
  stream: Readable;
542
- headers: Record<string, string>;
544
+ headers: HttpHeaders;
543
545
  contentDisposition: string;
544
546
  fileMetadata: {
545
547
  contentType?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/connect-sdk",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",