helprange 0.1.0 → 0.1.1
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/CHANGELOG.md +8 -1
- package/dist/cjs/client.d.ts +1 -1
- package/dist/cjs/generated/resources.d.ts +2 -2
- package/dist/cjs/generated/resources.js +2 -2
- package/dist/cjs/generated/types.d.ts +25 -15
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/generated/resources.d.ts +2 -2
- package/dist/esm/generated/resources.js +2 -2
- package/dist/esm/generated/types.d.ts +25 -15
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/generated/resources.ts +2 -2
- package/src/generated/types.ts +26 -16
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,14 @@ All notable changes to this package are documented here. The format follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
-
## [0.1.
|
|
8
|
+
## [0.1.1] – 2026-11-15
|
|
9
|
+
|
|
10
|
+
- `links.list` uses the `data_room_id` filter (`room_id` still accepted by the API but deprecated); date filters accept a date or date-time.
|
|
11
|
+
- Webhook endpoint deliveries can be paged (`page`, `limit`, `total`, `next_page`).
|
|
12
|
+
- `disabled_reason` on webhook endpoints may be `null`.
|
|
13
|
+
- Data room guest details use a named schema; removing guests or documents requires a body.
|
|
14
|
+
|
|
15
|
+
## [0.1.0] – 2026-11-15
|
|
9
16
|
|
|
10
17
|
First release, generated from HelpRange API spec version 2026-11-15 (not published yet; this entry describes
|
|
11
18
|
everything that will ship in it).
|
package/dist/cjs/client.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class HelpRange implements Requester {
|
|
|
67
67
|
rateLimit: RateLimitInfo;
|
|
68
68
|
/** Spec version this SDK was generated from. */
|
|
69
69
|
static readonly API_VERSION = "2026-11-15";
|
|
70
|
-
static readonly VERSION = "0.1.
|
|
70
|
+
static readonly VERSION = "0.1.1";
|
|
71
71
|
constructor(options?: HelpRangeOptions);
|
|
72
72
|
/** True for a test-mode key (`hr_test_…`): every call works on your team's sandbox, never on live data. */
|
|
73
73
|
get testMode(): boolean;
|
|
@@ -26,7 +26,7 @@ export declare class DataRoomsGuests {
|
|
|
26
26
|
/**
|
|
27
27
|
* Remove a guest.
|
|
28
28
|
*
|
|
29
|
-
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen.
|
|
29
|
+
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen. Send email or guest_id – an empty body is a 400.
|
|
30
30
|
*
|
|
31
31
|
* `POST /api/v2/data-rooms/{data_room_id}/guests/remove` – scope `rooms:write`
|
|
32
32
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -190,7 +190,7 @@ export declare class DataRoomsDocuments {
|
|
|
190
190
|
/**
|
|
191
191
|
* Remove documents from a data room.
|
|
192
192
|
*
|
|
193
|
-
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen.
|
|
193
|
+
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen. Send document_ids and / or room_link_ids – an empty body is a 400.
|
|
194
194
|
*
|
|
195
195
|
* `POST /api/v2/data-rooms/{data_room_id}/documents/remove` – scope `rooms:write`
|
|
196
196
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -35,7 +35,7 @@ class DataRoomsGuests {
|
|
|
35
35
|
/**
|
|
36
36
|
* Remove a guest.
|
|
37
37
|
*
|
|
38
|
-
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen.
|
|
38
|
+
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen. Send email or guest_id – an empty body is a 400.
|
|
39
39
|
*
|
|
40
40
|
* `POST /api/v2/data-rooms/{data_room_id}/guests/remove` – scope `rooms:write`
|
|
41
41
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -245,7 +245,7 @@ class DataRoomsDocuments {
|
|
|
245
245
|
/**
|
|
246
246
|
* Remove documents from a data room.
|
|
247
247
|
*
|
|
248
|
-
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen.
|
|
248
|
+
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen. Send document_ids and / or room_link_ids – an empty body is a 400.
|
|
249
249
|
*
|
|
250
250
|
* `POST /api/v2/data-rooms/{data_room_id}/documents/remove` – scope `rooms:write`
|
|
251
251
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -310,6 +310,17 @@ export interface RoomGuest {
|
|
|
310
310
|
/** The guest's own invitation link (what the invitation e-mail carries). */
|
|
311
311
|
link: string;
|
|
312
312
|
}
|
|
313
|
+
/** A guest of the room with views, last visit and NDA status (nda and nda_signed_at only when the room asks for an NDA). */
|
|
314
|
+
export interface DataRoomGuestDetail {
|
|
315
|
+
id: number;
|
|
316
|
+
email: string;
|
|
317
|
+
/** The guest's own invitation link (what the invitation e-mail carries). */
|
|
318
|
+
link: string;
|
|
319
|
+
views: number;
|
|
320
|
+
last_view_at: string | null;
|
|
321
|
+
nda?: "signed" | "signed an older version" | "not signed";
|
|
322
|
+
nda_signed_at?: string | null;
|
|
323
|
+
}
|
|
313
324
|
export interface WebhookEndpoint {
|
|
314
325
|
id: number;
|
|
315
326
|
url: string;
|
|
@@ -637,14 +648,16 @@ export interface ListLinksQuery {
|
|
|
637
648
|
document_id?: number;
|
|
638
649
|
/** Only links of documents in this folder. */
|
|
639
650
|
folder_id?: number;
|
|
640
|
-
/** Only links of this data room
|
|
651
|
+
/** Only links of this data room. */
|
|
652
|
+
data_room_id?: number;
|
|
653
|
+
/** Deprecated alias of data_room_id (still accepted; data_room_id wins when both are sent). */
|
|
641
654
|
room_id?: number;
|
|
642
655
|
/** Label contains this text (case-insensitive); "default" = the documents' default links. */
|
|
643
656
|
label?: string;
|
|
644
657
|
/** Created on or after: YYYY-MM-DD (UTC) or an ISO 8601 date-time. */
|
|
645
|
-
created_after?:
|
|
658
|
+
created_after?: unknown | unknown;
|
|
646
659
|
/** Created on or before: YYYY-MM-DD (the whole day, UTC) or an ISO 8601 date-time. */
|
|
647
|
-
created_before?:
|
|
660
|
+
created_before?: unknown | unknown;
|
|
648
661
|
/** active, expired (past its expiry date or views limit used up) or disabled (turned off in the panel). Missing or all: every link. */
|
|
649
662
|
status?: "active" | "expired" | "disabled" | "all";
|
|
650
663
|
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
@@ -998,16 +1011,6 @@ export interface CreateDataRoomBody {
|
|
|
998
1011
|
/** Only the settings sent change (unknown keys: 400). They may also be sent at the top level. A setting the plan does not include: 402 naming the plan – never dropped silently. */
|
|
999
1012
|
settings?: CreateDataRoomBodySettings;
|
|
1000
1013
|
}
|
|
1001
|
-
export interface CreateDataRoomResponseGuest {
|
|
1002
|
-
id: number;
|
|
1003
|
-
email: string;
|
|
1004
|
-
/** The guest's own invitation link. */
|
|
1005
|
-
link: string;
|
|
1006
|
-
views: number;
|
|
1007
|
-
last_view_at: string | null;
|
|
1008
|
-
nda?: "signed" | "signed an older version" | "not signed";
|
|
1009
|
-
nda_signed_at?: string | null;
|
|
1010
|
-
}
|
|
1011
1014
|
export interface CreateDataRoomResponseDocument {
|
|
1012
1015
|
id: number;
|
|
1013
1016
|
name: string;
|
|
@@ -1055,7 +1058,7 @@ export interface CreateDataRoomResponse {
|
|
|
1055
1058
|
/** The room's folders in order (empty while folders are off). */
|
|
1056
1059
|
folders: Array<ListFoldersResponseFolder>;
|
|
1057
1060
|
approval_workflow: boolean;
|
|
1058
|
-
guests: Array<
|
|
1061
|
+
guests: Array<DataRoomGuestDetail>;
|
|
1059
1062
|
pending_access_requests: number;
|
|
1060
1063
|
documents: Array<CreateDataRoomResponseDocument>;
|
|
1061
1064
|
expires_at: string | null;
|
|
@@ -1653,13 +1656,20 @@ export interface SendWebhookTestEventResponse {
|
|
|
1653
1656
|
export interface ListWebhookDeliveriesQuery {
|
|
1654
1657
|
/** Only this status. */
|
|
1655
1658
|
status?: "pending" | "delivered" | "failed";
|
|
1656
|
-
/** 1–100 (default 100). */
|
|
1659
|
+
/** Items per page, 1–100 (default 100). */
|
|
1657
1660
|
limit?: number;
|
|
1661
|
+
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
1662
|
+
page?: number;
|
|
1658
1663
|
}
|
|
1659
1664
|
export interface ListWebhookDeliveriesResponse {
|
|
1660
1665
|
webhook_endpoint_id: number;
|
|
1661
1666
|
retention_days: number;
|
|
1662
1667
|
deliveries: Array<WebhookDelivery>;
|
|
1668
|
+
page: number;
|
|
1669
|
+
limit: number;
|
|
1670
|
+
/** Deliveries matching the filter. */
|
|
1671
|
+
total: number;
|
|
1672
|
+
next_page: number | null;
|
|
1663
1673
|
/** false for test-mode (hr_test_) keys, true for live keys. */
|
|
1664
1674
|
livemode?: boolean;
|
|
1665
1675
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** SDK version – keep equal to package.json "version" (a test checks it). */
|
|
2
|
-
export declare const VERSION = "0.1.
|
|
2
|
+
export declare const VERSION = "0.1.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/client.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare class HelpRange implements Requester {
|
|
|
67
67
|
rateLimit: RateLimitInfo;
|
|
68
68
|
/** Spec version this SDK was generated from. */
|
|
69
69
|
static readonly API_VERSION = "2026-11-15";
|
|
70
|
-
static readonly VERSION = "0.1.
|
|
70
|
+
static readonly VERSION = "0.1.1";
|
|
71
71
|
constructor(options?: HelpRangeOptions);
|
|
72
72
|
/** True for a test-mode key (`hr_test_…`): every call works on your team's sandbox, never on live data. */
|
|
73
73
|
get testMode(): boolean;
|
|
@@ -26,7 +26,7 @@ export declare class DataRoomsGuests {
|
|
|
26
26
|
/**
|
|
27
27
|
* Remove a guest.
|
|
28
28
|
*
|
|
29
|
-
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen.
|
|
29
|
+
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen. Send email or guest_id – an empty body is a 400.
|
|
30
30
|
*
|
|
31
31
|
* `POST /api/v2/data-rooms/{data_room_id}/guests/remove` – scope `rooms:write`
|
|
32
32
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -190,7 +190,7 @@ export declare class DataRoomsDocuments {
|
|
|
190
190
|
/**
|
|
191
191
|
* Remove documents from a data room.
|
|
192
192
|
*
|
|
193
|
-
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen.
|
|
193
|
+
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen. Send document_ids and / or room_link_ids – an empty body is a 400.
|
|
194
194
|
*
|
|
195
195
|
* `POST /api/v2/data-rooms/{data_room_id}/documents/remove` – scope `rooms:write`
|
|
196
196
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -31,7 +31,7 @@ export class DataRoomsGuests {
|
|
|
31
31
|
/**
|
|
32
32
|
* Remove a guest.
|
|
33
33
|
*
|
|
34
|
-
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen.
|
|
34
|
+
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen. Send email or guest_id – an empty body is a 400.
|
|
35
35
|
*
|
|
36
36
|
* `POST /api/v2/data-rooms/{data_room_id}/guests/remove` – scope `rooms:write`
|
|
37
37
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -235,7 +235,7 @@ export class DataRoomsDocuments {
|
|
|
235
235
|
/**
|
|
236
236
|
* Remove documents from a data room.
|
|
237
237
|
*
|
|
238
|
-
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen.
|
|
238
|
+
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen. Send document_ids and / or room_link_ids – an empty body is a 400.
|
|
239
239
|
*
|
|
240
240
|
* `POST /api/v2/data-rooms/{data_room_id}/documents/remove` – scope `rooms:write`
|
|
241
241
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -310,6 +310,17 @@ export interface RoomGuest {
|
|
|
310
310
|
/** The guest's own invitation link (what the invitation e-mail carries). */
|
|
311
311
|
link: string;
|
|
312
312
|
}
|
|
313
|
+
/** A guest of the room with views, last visit and NDA status (nda and nda_signed_at only when the room asks for an NDA). */
|
|
314
|
+
export interface DataRoomGuestDetail {
|
|
315
|
+
id: number;
|
|
316
|
+
email: string;
|
|
317
|
+
/** The guest's own invitation link (what the invitation e-mail carries). */
|
|
318
|
+
link: string;
|
|
319
|
+
views: number;
|
|
320
|
+
last_view_at: string | null;
|
|
321
|
+
nda?: "signed" | "signed an older version" | "not signed";
|
|
322
|
+
nda_signed_at?: string | null;
|
|
323
|
+
}
|
|
313
324
|
export interface WebhookEndpoint {
|
|
314
325
|
id: number;
|
|
315
326
|
url: string;
|
|
@@ -637,14 +648,16 @@ export interface ListLinksQuery {
|
|
|
637
648
|
document_id?: number;
|
|
638
649
|
/** Only links of documents in this folder. */
|
|
639
650
|
folder_id?: number;
|
|
640
|
-
/** Only links of this data room
|
|
651
|
+
/** Only links of this data room. */
|
|
652
|
+
data_room_id?: number;
|
|
653
|
+
/** Deprecated alias of data_room_id (still accepted; data_room_id wins when both are sent). */
|
|
641
654
|
room_id?: number;
|
|
642
655
|
/** Label contains this text (case-insensitive); "default" = the documents' default links. */
|
|
643
656
|
label?: string;
|
|
644
657
|
/** Created on or after: YYYY-MM-DD (UTC) or an ISO 8601 date-time. */
|
|
645
|
-
created_after?:
|
|
658
|
+
created_after?: unknown | unknown;
|
|
646
659
|
/** Created on or before: YYYY-MM-DD (the whole day, UTC) or an ISO 8601 date-time. */
|
|
647
|
-
created_before?:
|
|
660
|
+
created_before?: unknown | unknown;
|
|
648
661
|
/** active, expired (past its expiry date or views limit used up) or disabled (turned off in the panel). Missing or all: every link. */
|
|
649
662
|
status?: "active" | "expired" | "disabled" | "all";
|
|
650
663
|
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
@@ -998,16 +1011,6 @@ export interface CreateDataRoomBody {
|
|
|
998
1011
|
/** Only the settings sent change (unknown keys: 400). They may also be sent at the top level. A setting the plan does not include: 402 naming the plan – never dropped silently. */
|
|
999
1012
|
settings?: CreateDataRoomBodySettings;
|
|
1000
1013
|
}
|
|
1001
|
-
export interface CreateDataRoomResponseGuest {
|
|
1002
|
-
id: number;
|
|
1003
|
-
email: string;
|
|
1004
|
-
/** The guest's own invitation link. */
|
|
1005
|
-
link: string;
|
|
1006
|
-
views: number;
|
|
1007
|
-
last_view_at: string | null;
|
|
1008
|
-
nda?: "signed" | "signed an older version" | "not signed";
|
|
1009
|
-
nda_signed_at?: string | null;
|
|
1010
|
-
}
|
|
1011
1014
|
export interface CreateDataRoomResponseDocument {
|
|
1012
1015
|
id: number;
|
|
1013
1016
|
name: string;
|
|
@@ -1055,7 +1058,7 @@ export interface CreateDataRoomResponse {
|
|
|
1055
1058
|
/** The room's folders in order (empty while folders are off). */
|
|
1056
1059
|
folders: Array<ListFoldersResponseFolder>;
|
|
1057
1060
|
approval_workflow: boolean;
|
|
1058
|
-
guests: Array<
|
|
1061
|
+
guests: Array<DataRoomGuestDetail>;
|
|
1059
1062
|
pending_access_requests: number;
|
|
1060
1063
|
documents: Array<CreateDataRoomResponseDocument>;
|
|
1061
1064
|
expires_at: string | null;
|
|
@@ -1653,13 +1656,20 @@ export interface SendWebhookTestEventResponse {
|
|
|
1653
1656
|
export interface ListWebhookDeliveriesQuery {
|
|
1654
1657
|
/** Only this status. */
|
|
1655
1658
|
status?: "pending" | "delivered" | "failed";
|
|
1656
|
-
/** 1–100 (default 100). */
|
|
1659
|
+
/** Items per page, 1–100 (default 100). */
|
|
1657
1660
|
limit?: number;
|
|
1661
|
+
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
1662
|
+
page?: number;
|
|
1658
1663
|
}
|
|
1659
1664
|
export interface ListWebhookDeliveriesResponse {
|
|
1660
1665
|
webhook_endpoint_id: number;
|
|
1661
1666
|
retention_days: number;
|
|
1662
1667
|
deliveries: Array<WebhookDelivery>;
|
|
1668
|
+
page: number;
|
|
1669
|
+
limit: number;
|
|
1670
|
+
/** Deliveries matching the filter. */
|
|
1671
|
+
total: number;
|
|
1672
|
+
next_page: number | null;
|
|
1663
1673
|
/** false for test-mode (hr_test_) keys, true for live keys. */
|
|
1664
1674
|
livemode?: boolean;
|
|
1665
1675
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** SDK version – keep equal to package.json "version" (a test checks it). */
|
|
2
|
-
export declare const VERSION = "0.1.
|
|
2
|
+
export declare const VERSION = "0.1.1";
|
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helprange",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Official HelpRange API client for Node.js and TypeScript: upload documents, create tracked share links, run data rooms, e-signature, offers and analytics.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "HelpRange <hello@helprange.com> (https://www.helprange.com)",
|
|
@@ -38,7 +38,7 @@ export class DataRoomsGuests {
|
|
|
38
38
|
/**
|
|
39
39
|
* Remove a guest.
|
|
40
40
|
*
|
|
41
|
-
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen.
|
|
41
|
+
* Takes a guest out of this room (by email or guest_id); they keep access to other rooms they are in. 409 when the room is frozen. Send email or guest_id – an empty body is a 400.
|
|
42
42
|
*
|
|
43
43
|
* `POST /api/v2/data-rooms/{data_room_id}/guests/remove` – scope `rooms:write`
|
|
44
44
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
|
@@ -256,7 +256,7 @@ export class DataRoomsDocuments {
|
|
|
256
256
|
/**
|
|
257
257
|
* Remove documents from a data room.
|
|
258
258
|
*
|
|
259
|
-
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen.
|
|
259
|
+
* Like "Remove" on the room page: the documents leave the room (guests no longer see them); the files stay in their folders. Ids not in the room are listed in not_in_room. 409 when the room is frozen. Send document_ids and / or room_link_ids – an empty body is a 400.
|
|
260
260
|
*
|
|
261
261
|
* `POST /api/v2/data-rooms/{data_room_id}/documents/remove` – scope `rooms:write`
|
|
262
262
|
* Sent with an Idempotency-Key, so retries are safe (set your own with `options.idempotencyKey`).
|
package/src/generated/types.ts
CHANGED
|
@@ -340,6 +340,18 @@ export interface RoomGuest {
|
|
|
340
340
|
link: string;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
/** A guest of the room with views, last visit and NDA status (nda and nda_signed_at only when the room asks for an NDA). */
|
|
344
|
+
export interface DataRoomGuestDetail {
|
|
345
|
+
id: number;
|
|
346
|
+
email: string;
|
|
347
|
+
/** The guest's own invitation link (what the invitation e-mail carries). */
|
|
348
|
+
link: string;
|
|
349
|
+
views: number;
|
|
350
|
+
last_view_at: string | null;
|
|
351
|
+
nda?: "signed" | "signed an older version" | "not signed";
|
|
352
|
+
nda_signed_at?: string | null;
|
|
353
|
+
}
|
|
354
|
+
|
|
343
355
|
export interface WebhookEndpoint {
|
|
344
356
|
id: number;
|
|
345
357
|
url: string;
|
|
@@ -701,14 +713,16 @@ export interface ListLinksQuery {
|
|
|
701
713
|
document_id?: number;
|
|
702
714
|
/** Only links of documents in this folder. */
|
|
703
715
|
folder_id?: number;
|
|
704
|
-
/** Only links of this data room
|
|
716
|
+
/** Only links of this data room. */
|
|
717
|
+
data_room_id?: number;
|
|
718
|
+
/** Deprecated alias of data_room_id (still accepted; data_room_id wins when both are sent). */
|
|
705
719
|
room_id?: number;
|
|
706
720
|
/** Label contains this text (case-insensitive); "default" = the documents' default links. */
|
|
707
721
|
label?: string;
|
|
708
722
|
/** Created on or after: YYYY-MM-DD (UTC) or an ISO 8601 date-time. */
|
|
709
|
-
created_after?:
|
|
723
|
+
created_after?: unknown | unknown;
|
|
710
724
|
/** Created on or before: YYYY-MM-DD (the whole day, UTC) or an ISO 8601 date-time. */
|
|
711
|
-
created_before?:
|
|
725
|
+
created_before?: unknown | unknown;
|
|
712
726
|
/** active, expired (past its expiry date or views limit used up) or disabled (turned off in the panel). Missing or all: every link. */
|
|
713
727
|
status?: "active" | "expired" | "disabled" | "all";
|
|
714
728
|
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
@@ -1097,17 +1111,6 @@ export interface CreateDataRoomBody {
|
|
|
1097
1111
|
settings?: CreateDataRoomBodySettings;
|
|
1098
1112
|
}
|
|
1099
1113
|
|
|
1100
|
-
export interface CreateDataRoomResponseGuest {
|
|
1101
|
-
id: number;
|
|
1102
|
-
email: string;
|
|
1103
|
-
/** The guest's own invitation link. */
|
|
1104
|
-
link: string;
|
|
1105
|
-
views: number;
|
|
1106
|
-
last_view_at: string | null;
|
|
1107
|
-
nda?: "signed" | "signed an older version" | "not signed";
|
|
1108
|
-
nda_signed_at?: string | null;
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
1114
|
export interface CreateDataRoomResponseDocument {
|
|
1112
1115
|
id: number;
|
|
1113
1116
|
name: string;
|
|
@@ -1159,7 +1162,7 @@ export interface CreateDataRoomResponse {
|
|
|
1159
1162
|
/** The room's folders in order (empty while folders are off). */
|
|
1160
1163
|
folders: Array<ListFoldersResponseFolder>;
|
|
1161
1164
|
approval_workflow: boolean;
|
|
1162
|
-
guests: Array<
|
|
1165
|
+
guests: Array<DataRoomGuestDetail>;
|
|
1163
1166
|
pending_access_requests: number;
|
|
1164
1167
|
documents: Array<CreateDataRoomResponseDocument>;
|
|
1165
1168
|
expires_at: string | null;
|
|
@@ -1827,14 +1830,21 @@ export interface SendWebhookTestEventResponse {
|
|
|
1827
1830
|
export interface ListWebhookDeliveriesQuery {
|
|
1828
1831
|
/** Only this status. */
|
|
1829
1832
|
status?: "pending" | "delivered" | "failed";
|
|
1830
|
-
/** 1–100 (default 100). */
|
|
1833
|
+
/** Items per page, 1–100 (default 100). */
|
|
1831
1834
|
limit?: number;
|
|
1835
|
+
/** Page number, 1 or more (default 1). next_page in the response is the next one, or null. */
|
|
1836
|
+
page?: number;
|
|
1832
1837
|
}
|
|
1833
1838
|
|
|
1834
1839
|
export interface ListWebhookDeliveriesResponse {
|
|
1835
1840
|
webhook_endpoint_id: number;
|
|
1836
1841
|
retention_days: number;
|
|
1837
1842
|
deliveries: Array<WebhookDelivery>;
|
|
1843
|
+
page: number;
|
|
1844
|
+
limit: number;
|
|
1845
|
+
/** Deliveries matching the filter. */
|
|
1846
|
+
total: number;
|
|
1847
|
+
next_page: number | null;
|
|
1838
1848
|
/** false for test-mode (hr_test_) keys, true for live keys. */
|
|
1839
1849
|
livemode?: boolean;
|
|
1840
1850
|
}
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** SDK version – keep equal to package.json "version" (a test checks it). */
|
|
2
|
-
export const VERSION = '0.1.
|
|
2
|
+
export const VERSION = '0.1.1';
|