skapi-js 1.5.1 → 1.5.2-beta.10
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/skapi.browser.mjs +5 -5
- package/dist/skapi.browser.mjs.map +1 -1
- package/dist/skapi.cjs +6 -6
- package/dist/skapi.cjs.map +1 -1
- package/dist/skapi.d.mts +24 -0
- package/dist/skapi.d.ts +24 -0
- package/dist/skapi.js +5 -5
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.mjs +6 -6
- package/dist/skapi.mjs.map +1 -1
- package/package.json +1 -1
package/dist/skapi.d.mts
CHANGED
|
@@ -676,6 +676,10 @@ declare class Skapi {
|
|
|
676
676
|
bypassAwaitConnection?: boolean;
|
|
677
677
|
responseType?: "json" | "blob" | "text" | "arrayBuffer" | "formData" | "document";
|
|
678
678
|
contentType?: string;
|
|
679
|
+
tokenHeaders?: {
|
|
680
|
+
accessToken?: boolean | string;
|
|
681
|
+
idToken?: boolean | string;
|
|
682
|
+
};
|
|
679
683
|
}) => any;
|
|
680
684
|
};
|
|
681
685
|
private __connection;
|
|
@@ -834,6 +838,7 @@ declare class Skapi {
|
|
|
834
838
|
clientSecretRequest(params: {
|
|
835
839
|
url: string;
|
|
836
840
|
clientSecretName: string;
|
|
841
|
+
poll?: boolean | number;
|
|
837
842
|
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
838
843
|
headers?: {
|
|
839
844
|
[key: string]: string;
|
|
@@ -845,6 +850,21 @@ declare class Skapi {
|
|
|
845
850
|
[key: string]: string;
|
|
846
851
|
};
|
|
847
852
|
}): Promise<any>;
|
|
853
|
+
/**
|
|
854
|
+
* Retrieves the history of client secret requests for a given URL and method.
|
|
855
|
+
* @param params Request parameters.
|
|
856
|
+
* @param fetchOptions Pagination and fetch behavior options.
|
|
857
|
+
* @returns A promise that resolves to Promise<any[]>.
|
|
858
|
+
*/
|
|
859
|
+
clientSecretRequestHistory(params: {
|
|
860
|
+
url: string;
|
|
861
|
+
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
862
|
+
}, fetchOptions?: FetchOptions): DatabaseResponse<{
|
|
863
|
+
response_body: any;
|
|
864
|
+
error: any;
|
|
865
|
+
updated: number;
|
|
866
|
+
request_body: any;
|
|
867
|
+
}[]>;
|
|
848
868
|
/**
|
|
849
869
|
* Consumes a one-time ticket and executes the ticketed request payload.
|
|
850
870
|
* @param params Request parameters.
|
|
@@ -1326,6 +1346,10 @@ declare class Skapi {
|
|
|
1326
1346
|
method?: string;
|
|
1327
1347
|
responseType?: 'blob' | 'json' | 'text' | 'arrayBuffer' | 'formData' | 'document';
|
|
1328
1348
|
contentType?: string;
|
|
1349
|
+
tokenHeaders?: {
|
|
1350
|
+
accessToken?: boolean | string;
|
|
1351
|
+
idToken?: boolean | string;
|
|
1352
|
+
};
|
|
1329
1353
|
progress?: ProgressCallback;
|
|
1330
1354
|
}): Promise<{
|
|
1331
1355
|
[key: string]: any;
|
package/dist/skapi.d.ts
CHANGED
|
@@ -676,6 +676,10 @@ declare class Skapi {
|
|
|
676
676
|
bypassAwaitConnection?: boolean;
|
|
677
677
|
responseType?: "json" | "blob" | "text" | "arrayBuffer" | "formData" | "document";
|
|
678
678
|
contentType?: string;
|
|
679
|
+
tokenHeaders?: {
|
|
680
|
+
accessToken?: boolean | string;
|
|
681
|
+
idToken?: boolean | string;
|
|
682
|
+
};
|
|
679
683
|
}) => any;
|
|
680
684
|
};
|
|
681
685
|
private __connection;
|
|
@@ -834,6 +838,7 @@ declare class Skapi {
|
|
|
834
838
|
clientSecretRequest(params: {
|
|
835
839
|
url: string;
|
|
836
840
|
clientSecretName: string;
|
|
841
|
+
poll?: boolean | number;
|
|
837
842
|
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
838
843
|
headers?: {
|
|
839
844
|
[key: string]: string;
|
|
@@ -845,6 +850,21 @@ declare class Skapi {
|
|
|
845
850
|
[key: string]: string;
|
|
846
851
|
};
|
|
847
852
|
}): Promise<any>;
|
|
853
|
+
/**
|
|
854
|
+
* Retrieves the history of client secret requests for a given URL and method.
|
|
855
|
+
* @param params Request parameters.
|
|
856
|
+
* @param fetchOptions Pagination and fetch behavior options.
|
|
857
|
+
* @returns A promise that resolves to Promise<any[]>.
|
|
858
|
+
*/
|
|
859
|
+
clientSecretRequestHistory(params: {
|
|
860
|
+
url: string;
|
|
861
|
+
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
862
|
+
}, fetchOptions?: FetchOptions): DatabaseResponse<{
|
|
863
|
+
response_body: any;
|
|
864
|
+
error: any;
|
|
865
|
+
updated: number;
|
|
866
|
+
request_body: any;
|
|
867
|
+
}[]>;
|
|
848
868
|
/**
|
|
849
869
|
* Consumes a one-time ticket and executes the ticketed request payload.
|
|
850
870
|
* @param params Request parameters.
|
|
@@ -1326,6 +1346,10 @@ declare class Skapi {
|
|
|
1326
1346
|
method?: string;
|
|
1327
1347
|
responseType?: 'blob' | 'json' | 'text' | 'arrayBuffer' | 'formData' | 'document';
|
|
1328
1348
|
contentType?: string;
|
|
1349
|
+
tokenHeaders?: {
|
|
1350
|
+
accessToken?: boolean | string;
|
|
1351
|
+
idToken?: boolean | string;
|
|
1352
|
+
};
|
|
1329
1353
|
progress?: ProgressCallback;
|
|
1330
1354
|
}): Promise<{
|
|
1331
1355
|
[key: string]: any;
|