skapi-js 2.0.0-rc.0 → 2.0.0-rc.2
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/README.md +11 -11
- 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 +16 -0
- package/dist/skapi.d.ts +16 -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
|
@@ -494,6 +494,10 @@ type RequestHistory = {
|
|
|
494
494
|
expires?: number;
|
|
495
495
|
status: 'pending' | 'running' | 'resolved' | 'failed';
|
|
496
496
|
queue_name?: string;
|
|
497
|
+
request_text?: string;
|
|
498
|
+
response_text?: string;
|
|
499
|
+
response_complete_marker?: boolean;
|
|
500
|
+
compact?: boolean;
|
|
497
501
|
poll?: (arg?: {
|
|
498
502
|
latency?: number;
|
|
499
503
|
onResponse?: (res: any) => void;
|
|
@@ -946,6 +950,15 @@ declare class Skapi {
|
|
|
946
950
|
}>;
|
|
947
951
|
/**
|
|
948
952
|
* Retrieves the history of client secret requests for a given URL and method.
|
|
953
|
+
*
|
|
954
|
+
* Listing modifiers: `compact` returns lightweight label/marker stubs
|
|
955
|
+
* (request_text, response_text, response_complete_marker) instead of the
|
|
956
|
+
* full request/response bodies, which stay on the server; `queue_exact`
|
|
957
|
+
* restricts a queue listing to exactly the named queue (the queue lookup is
|
|
958
|
+
* otherwise a prefix range, so queue "u1" would also match "u1-bg");
|
|
959
|
+
* `queue_exclude` drops one queue's rows from the listing. Both queue
|
|
960
|
+
* filters are applied server-side after the range read, so a page can come
|
|
961
|
+
* back short while more matches remain - keep paging by startKey/endOfList.
|
|
949
962
|
* @param params Request parameters.
|
|
950
963
|
* @param fetchOptions Pagination and fetch behavior options.
|
|
951
964
|
* @returns A promise that resolves to a paginated list of request history items.
|
|
@@ -955,6 +968,9 @@ declare class Skapi {
|
|
|
955
968
|
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
956
969
|
queue?: string;
|
|
957
970
|
status?: 'pending' | 'running' | 'resolved' | 'failed';
|
|
971
|
+
compact?: boolean;
|
|
972
|
+
queue_exact?: boolean;
|
|
973
|
+
queue_exclude?: string;
|
|
958
974
|
}, fetchOptions?: FetchOptions): Promise<DatabaseResponse<RequestHistory[]>>;
|
|
959
975
|
/**
|
|
960
976
|
* Cancels a pending client secret request and removes it from the client-side queue if applicable.
|
package/dist/skapi.d.ts
CHANGED
|
@@ -494,6 +494,10 @@ type RequestHistory = {
|
|
|
494
494
|
expires?: number;
|
|
495
495
|
status: 'pending' | 'running' | 'resolved' | 'failed';
|
|
496
496
|
queue_name?: string;
|
|
497
|
+
request_text?: string;
|
|
498
|
+
response_text?: string;
|
|
499
|
+
response_complete_marker?: boolean;
|
|
500
|
+
compact?: boolean;
|
|
497
501
|
poll?: (arg?: {
|
|
498
502
|
latency?: number;
|
|
499
503
|
onResponse?: (res: any) => void;
|
|
@@ -946,6 +950,15 @@ declare class Skapi {
|
|
|
946
950
|
}>;
|
|
947
951
|
/**
|
|
948
952
|
* Retrieves the history of client secret requests for a given URL and method.
|
|
953
|
+
*
|
|
954
|
+
* Listing modifiers: `compact` returns lightweight label/marker stubs
|
|
955
|
+
* (request_text, response_text, response_complete_marker) instead of the
|
|
956
|
+
* full request/response bodies, which stay on the server; `queue_exact`
|
|
957
|
+
* restricts a queue listing to exactly the named queue (the queue lookup is
|
|
958
|
+
* otherwise a prefix range, so queue "u1" would also match "u1-bg");
|
|
959
|
+
* `queue_exclude` drops one queue's rows from the listing. Both queue
|
|
960
|
+
* filters are applied server-side after the range read, so a page can come
|
|
961
|
+
* back short while more matches remain - keep paging by startKey/endOfList.
|
|
949
962
|
* @param params Request parameters.
|
|
950
963
|
* @param fetchOptions Pagination and fetch behavior options.
|
|
951
964
|
* @returns A promise that resolves to a paginated list of request history items.
|
|
@@ -955,6 +968,9 @@ declare class Skapi {
|
|
|
955
968
|
method: 'GET' | 'POST' | 'DELETE' | 'PUT';
|
|
956
969
|
queue?: string;
|
|
957
970
|
status?: 'pending' | 'running' | 'resolved' | 'failed';
|
|
971
|
+
compact?: boolean;
|
|
972
|
+
queue_exact?: boolean;
|
|
973
|
+
queue_exclude?: string;
|
|
958
974
|
}, fetchOptions?: FetchOptions): Promise<DatabaseResponse<RequestHistory[]>>;
|
|
959
975
|
/**
|
|
960
976
|
* Cancels a pending client secret request and removes it from the client-side queue if applicable.
|