box-node-sdk 3.6.0 → 3.7.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/CHANGELOG.md +7 -0
- package/lib/box-client.d.ts +2 -0
- package/lib/box-client.js +2 -0
- package/lib/box-client.js.map +1 -1
- package/lib/managers/ai.generated.d.ts +32 -0
- package/lib/managers/ai.generated.js +61 -0
- package/lib/managers/ai.generated.js.map +1 -0
- package/lib/managers/sign-requests.generated.d.ts +16 -16
- package/lib/managers/sign-requests.generated.js +13 -13
- package/lib/schemas/ai-ask.generated.d.ts +29 -0
- package/lib/schemas/ai-ask.generated.js +3 -0
- package/lib/schemas/ai-ask.generated.js.map +1 -0
- package/lib/schemas/ai-response.generated.d.ts +22 -0
- package/lib/schemas/ai-response.generated.js +3 -0
- package/lib/schemas/ai-response.generated.js.map +1 -0
- package/lib/schemas/ai-text-gen.generated.d.ts +32 -0
- package/lib/schemas/ai-text-gen.generated.js +3 -0
- package/lib/schemas/ai-text-gen.generated.js.map +1 -0
- package/lib/schemas/index.generated.d.ts +3 -0
- package/lib/schemas/index.generated.js +3 -0
- package/lib/schemas/index.generated.js.map +1 -1
- package/lib/schemas/sign-request-base.generated.d.ts +11 -12
- package/lib/schemas/sign-request-create-request.generated.d.ts +21 -3
- package/lib/schemas/sign-request-create-signer.generated.d.ts +22 -11
- package/lib/schemas/sign-request-prefill-tag.generated.d.ts +2 -2
- package/lib/schemas/sign-request-signer-input.generated.d.ts +5 -0
- package/lib/schemas/sign-request-signer.generated.d.ts +5 -4
- package/lib/schemas/sign-request.generated.d.ts +21 -8
- package/lib/schemas/sign-requests.generated.d.ts +2 -2
- package/lib/schemas/sign-template.generated.d.ts +6 -0
- package/lib/schemas/template-signer-input.generated.d.ts +5 -0
- package/lib/schemas/template-signer.generated.d.ts +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.7.0](https://github.com/box/box-node-sdk/compare/v3.6.0...v3.7.0) (2024-07-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### New Features and Enhancements
|
|
9
|
+
|
|
10
|
+
* Support AI APIs ([#883](https://github.com/box/box-node-sdk/issues/883)) ([bb81e07](https://github.com/box/box-node-sdk/commit/bb81e074eb1017bd742c90159e6cf4e6ce9d9776))
|
|
11
|
+
|
|
5
12
|
## [3.6.0](https://github.com/box/box-node-sdk/compare/v3.5.1...v3.6.0) (2024-05-20)
|
|
6
13
|
|
|
7
14
|
|
package/lib/box-client.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Box API Client
|
|
3
3
|
*/
|
|
4
|
+
import AI from './managers/ai.generated';
|
|
4
5
|
import Collaborations from './managers/collaborations';
|
|
5
6
|
import Events from './managers/events';
|
|
6
7
|
import Files from './managers/files';
|
|
@@ -42,6 +43,7 @@ declare class BoxClient {
|
|
|
42
43
|
_useIterators: any;
|
|
43
44
|
_analyticsClient: any;
|
|
44
45
|
_tokenOptions: any;
|
|
46
|
+
ai: AI;
|
|
45
47
|
users: any;
|
|
46
48
|
files: Files;
|
|
47
49
|
fileRequests: FileRequestsManager;
|
package/lib/box-client.js
CHANGED
|
@@ -9,6 +9,7 @@ var bluebird_1 = require("bluebird");
|
|
|
9
9
|
// ------------------------------------------------------------------------------
|
|
10
10
|
// API Resource Managers
|
|
11
11
|
// ------------------------------------------------------------------------------
|
|
12
|
+
var ai_generated_1 = __importDefault(require("./managers/ai.generated"));
|
|
12
13
|
var collaboration_allowlist_1 = __importDefault(require("./managers/collaboration-allowlist"));
|
|
13
14
|
var collaborations_1 = __importDefault(require("./managers/collaborations"));
|
|
14
15
|
var collections_1 = __importDefault(require("./managers/collections"));
|
|
@@ -146,6 +147,7 @@ var BoxClient = /** @class */ (function () {
|
|
|
146
147
|
this._useIterators = config.iterators;
|
|
147
148
|
this._analyticsClient = config.analyticsClient;
|
|
148
149
|
// Attach API Resource Managers
|
|
150
|
+
this.ai = new ai_generated_1.default(this);
|
|
149
151
|
this.users = new users_1.default(this);
|
|
150
152
|
this.files = new files_1.default(this);
|
|
151
153
|
this.fileRequests = new file_requests_manager_1.default(this);
|
package/lib/box-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box-client.js","sourceRoot":"","sources":["../src/box-client.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;AAEH,qCAAmC;AACnC,iFAAiF;AACjF,wBAAwB;AACxB,iFAAiF;AACjF,+FAAwE;AACxE,6EAAuD;AACvD,uEAAiD;AACjD,iEAA2C;AAC3C,uEAAgD;AAChD,qEAA+C;AAC/C,6DAAuC;AACvC,2DAAqC;AACrC,+DAAyC;AACzC,6DAAuC;AACvC,uFAA+D;AAC/D,iEAA2C;AAC3C,yEAAkD;AAClD,qFAA8D;AAC9D,6DAAuC;AACvC,yEAAkD;AAClD,+FAA8D;AAC9D,iGAAgE;AAChE,iFAA0D;AAC1D,2DAAqC;AACrC,iFAAyD;AACzD,2DAAqC;AACrC,2DAAqC;AACrC,mEAA4C;AAC5C,iEAA2C;AAC3C,2FAAmE;AACnE,2HAAyF;AACzF,2IAAwG;AACxG,yJAAqH;AACrH,mKAA+H;AAC/H,yIAAsG;AACtG,yFAAkE;AA2BlE,iFAAiF;AACjF,eAAe;AACf,iFAAiF;AACjF,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,EACzB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,EAC3B,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,EACjC,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,EACxC,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAC1B,KAAK,GAAG,OAAO,CAAC,eAAe,CAAC,EAChC,cAA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E,MAAM,EAAE;IACxB,aAAa,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE;IAC1C,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE;IAC9B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,sBAAsB;AACtB,SAAS,CAAC,SAAS,CAAC,eAAe,GAAG,eAAK,CAAC,SAAS,CAAC,eAAe,CAAC;AAUtE,iBAAS,SAAS,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import BoxClient from '../box-client';
|
|
2
|
+
import * as schemas from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
*/
|
|
5
|
+
declare class AIManager {
|
|
6
|
+
client: BoxClient;
|
|
7
|
+
/**
|
|
8
|
+
* @param {BoxClient} client The Box API Client that is responsible for making calls to the API
|
|
9
|
+
*/
|
|
10
|
+
constructor(client: BoxClient);
|
|
11
|
+
/**
|
|
12
|
+
* Send AI question request
|
|
13
|
+
*
|
|
14
|
+
* Sends an AI request to supported LLMs and returns an answer specifically focused on the user's question given the provided context.
|
|
15
|
+
* @param {schemas.AiAsk} body
|
|
16
|
+
* @param {object} [options] Options for the request
|
|
17
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
18
|
+
* @returns {Promise<schemas.AiResponse>} A promise resolving to the result or rejecting with an error
|
|
19
|
+
*/
|
|
20
|
+
ask(body: schemas.AiAsk, options?: {}, callback?: Function): Promise<schemas.AiResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Send AI request to generate text
|
|
23
|
+
*
|
|
24
|
+
* Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
|
|
25
|
+
* @param {schemas.AiTextGen} body
|
|
26
|
+
* @param {object} [options] Options for the request
|
|
27
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
28
|
+
* @returns {Promise<schemas.AiResponse>} A promise resolving to the result or rejecting with an error
|
|
29
|
+
*/
|
|
30
|
+
textGen(body: schemas.AiTextGen, options?: {}, callback?: Function): Promise<schemas.AiResponse>;
|
|
31
|
+
}
|
|
32
|
+
export = AIManager;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
var url_path_1 = __importDefault(require("../util/url-path"));
|
|
17
|
+
/**
|
|
18
|
+
*/
|
|
19
|
+
var AIManager = /** @class */ (function () {
|
|
20
|
+
/**
|
|
21
|
+
* @param {BoxClient} client The Box API Client that is responsible for making calls to the API
|
|
22
|
+
*/
|
|
23
|
+
function AIManager(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Send AI question request
|
|
28
|
+
*
|
|
29
|
+
* Sends an AI request to supported LLMs and returns an answer specifically focused on the user's question given the provided context.
|
|
30
|
+
* @param {schemas.AiAsk} body
|
|
31
|
+
* @param {object} [options] Options for the request
|
|
32
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
33
|
+
* @returns {Promise<schemas.AiResponse>} A promise resolving to the result or rejecting with an error
|
|
34
|
+
*/
|
|
35
|
+
AIManager.prototype.ask = function (body, options, callback) {
|
|
36
|
+
var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('ai', 'ask'), params = {
|
|
37
|
+
qs: queryParams,
|
|
38
|
+
body: body,
|
|
39
|
+
};
|
|
40
|
+
return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Send AI request to generate text
|
|
44
|
+
*
|
|
45
|
+
* Sends an AI request to supported LLMs and returns an answer specifically focused on the creation of new text.
|
|
46
|
+
* @param {schemas.AiTextGen} body
|
|
47
|
+
* @param {object} [options] Options for the request
|
|
48
|
+
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
49
|
+
* @returns {Promise<schemas.AiResponse>} A promise resolving to the result or rejecting with an error
|
|
50
|
+
*/
|
|
51
|
+
AIManager.prototype.textGen = function (body, options, callback) {
|
|
52
|
+
var queryParams = __rest(options, []), apiPath = (0, url_path_1.default)('ai', 'text_gen'), params = {
|
|
53
|
+
qs: queryParams,
|
|
54
|
+
body: body,
|
|
55
|
+
};
|
|
56
|
+
return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
|
|
57
|
+
};
|
|
58
|
+
return AIManager;
|
|
59
|
+
}());
|
|
60
|
+
module.exports = AIManager;
|
|
61
|
+
//# sourceMappingURL=ai.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.generated.js","sourceRoot":"","sources":["../../src/managers/ai.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,8DAAuC;AAEvC;GACG;AACH;IAEC;;OAEG;IACH,mBAAY,MAAiB;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC;IACD;;;;;;;;OAQG;IACH,uBAAG,GAAH,UACC,IAAmB,EACnB,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,IAAI,EAAE,KAAK,CAAC,EAC9B,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,IAAI;SACV,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACD;;;;;;;;OAQG;IACH,2BAAO,GAAP,UACC,IAAuB,EACvB,OAAY,EACZ,QAAmB;QAEnB,IAAW,WAAW,UAAK,OAAO,EAA5B,EAAkB,CAAF,EACrB,OAAO,GAAG,IAAA,kBAAO,EAAC,IAAI,EAAE,UAAU,CAAC,EACnC,MAAM,GAAG;YACR,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,IAAI;SACV,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAC1D,OAAO,EACP,MAAM,EACN,QAAQ,CACR,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AA5DD,IA4DC;AACD,iBAAS,SAAS,CAAC"}
|
|
@@ -10,25 +10,25 @@ declare class SignRequestsManager {
|
|
|
10
10
|
*/
|
|
11
11
|
constructor(client: BoxClient);
|
|
12
12
|
/**
|
|
13
|
-
* Get
|
|
13
|
+
* Get Box Sign request by ID
|
|
14
14
|
*
|
|
15
15
|
* Gets a sign request by ID.
|
|
16
16
|
* @param {object} options Options for the request
|
|
17
|
-
* @param {string} options.sign_request_id The ID of the
|
|
17
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
18
18
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
19
19
|
* @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
|
|
20
20
|
*/
|
|
21
21
|
getById(options: {
|
|
22
22
|
/**
|
|
23
|
-
* The ID of the
|
|
23
|
+
* The ID of the signature request
|
|
24
24
|
*/
|
|
25
25
|
readonly sign_request_id: string;
|
|
26
26
|
}, callback?: Function): Promise<schemas.SignRequest>;
|
|
27
27
|
/**
|
|
28
|
-
* List
|
|
28
|
+
* List Box Sign requests
|
|
29
29
|
*
|
|
30
|
-
* Gets
|
|
31
|
-
* `parent_folder` are deleted, the
|
|
30
|
+
* Gets signature requests created by a user. If the `sign_files` and/or
|
|
31
|
+
* `parent_folder` are deleted, the signature request will not return in the list.
|
|
32
32
|
* @param {object} [options] Options for the request
|
|
33
33
|
* @param {string} [options.marker] Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires `usemarker` to be set to `true`.
|
|
34
34
|
* @param {number} [options.limit] The maximum number of items to return per page.
|
|
@@ -49,10 +49,10 @@ declare class SignRequestsManager {
|
|
|
49
49
|
readonly limit?: number;
|
|
50
50
|
}, callback?: Function): Promise<schemas.SignRequests>;
|
|
51
51
|
/**
|
|
52
|
-
* Create
|
|
52
|
+
* Create Box Sign request
|
|
53
53
|
*
|
|
54
|
-
* Creates a
|
|
55
|
-
* sending the
|
|
54
|
+
* Creates a signature request. This involves preparing a document for signing and
|
|
55
|
+
* sending the signature request to signers.
|
|
56
56
|
* @param {schemas.SignRequestCreateRequest} body
|
|
57
57
|
* @param {object} [options] Options for the request
|
|
58
58
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
@@ -60,32 +60,32 @@ declare class SignRequestsManager {
|
|
|
60
60
|
*/
|
|
61
61
|
create(body: schemas.SignRequestCreateRequest, options?: {}, callback?: Function): Promise<schemas.SignRequest>;
|
|
62
62
|
/**
|
|
63
|
-
* Cancel
|
|
63
|
+
* Cancel Box Sign request
|
|
64
64
|
*
|
|
65
65
|
* Cancels a sign request.
|
|
66
66
|
* @param {object} options Options for the request
|
|
67
|
-
* @param {string} options.sign_request_id The ID of the
|
|
67
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
68
68
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
69
69
|
* @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
|
|
70
70
|
*/
|
|
71
71
|
cancelById(options: {
|
|
72
72
|
/**
|
|
73
|
-
* The ID of the
|
|
73
|
+
* The ID of the signature request
|
|
74
74
|
*/
|
|
75
75
|
readonly sign_request_id: string;
|
|
76
76
|
}, callback?: Function): Promise<schemas.SignRequest>;
|
|
77
77
|
/**
|
|
78
|
-
* Resend
|
|
78
|
+
* Resend Box Sign request
|
|
79
79
|
*
|
|
80
|
-
* Resends a
|
|
80
|
+
* Resends a signature request email to all outstanding signers.
|
|
81
81
|
* @param {object} options Options for the request
|
|
82
|
-
* @param {string} options.sign_request_id The ID of the
|
|
82
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
83
83
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
84
84
|
* @returns {Promise<void>} A promise resolving to the result or rejecting with an error
|
|
85
85
|
*/
|
|
86
86
|
resendById(options: {
|
|
87
87
|
/**
|
|
88
|
-
* The ID of the
|
|
88
|
+
* The ID of the signature request
|
|
89
89
|
*/
|
|
90
90
|
readonly sign_request_id: string;
|
|
91
91
|
}, callback?: Function): Promise<void>;
|
|
@@ -25,11 +25,11 @@ var SignRequestsManager = /** @class */ (function () {
|
|
|
25
25
|
this.client = client;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Get
|
|
28
|
+
* Get Box Sign request by ID
|
|
29
29
|
*
|
|
30
30
|
* Gets a sign request by ID.
|
|
31
31
|
* @param {object} options Options for the request
|
|
32
|
-
* @param {string} options.sign_request_id The ID of the
|
|
32
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
33
33
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
34
34
|
* @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
|
|
35
35
|
*/
|
|
@@ -40,10 +40,10 @@ var SignRequestsManager = /** @class */ (function () {
|
|
|
40
40
|
return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* List
|
|
43
|
+
* List Box Sign requests
|
|
44
44
|
*
|
|
45
|
-
* Gets
|
|
46
|
-
* `parent_folder` are deleted, the
|
|
45
|
+
* Gets signature requests created by a user. If the `sign_files` and/or
|
|
46
|
+
* `parent_folder` are deleted, the signature request will not return in the list.
|
|
47
47
|
* @param {object} [options] Options for the request
|
|
48
48
|
* @param {string} [options.marker] Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination. This requires `usemarker` to be set to `true`.
|
|
49
49
|
* @param {number} [options.limit] The maximum number of items to return per page.
|
|
@@ -57,10 +57,10 @@ var SignRequestsManager = /** @class */ (function () {
|
|
|
57
57
|
return this.client.wrapWithDefaultHandler(this.client.get)(apiPath, params, callback);
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
|
-
* Create
|
|
60
|
+
* Create Box Sign request
|
|
61
61
|
*
|
|
62
|
-
* Creates a
|
|
63
|
-
* sending the
|
|
62
|
+
* Creates a signature request. This involves preparing a document for signing and
|
|
63
|
+
* sending the signature request to signers.
|
|
64
64
|
* @param {schemas.SignRequestCreateRequest} body
|
|
65
65
|
* @param {object} [options] Options for the request
|
|
66
66
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
@@ -74,11 +74,11 @@ var SignRequestsManager = /** @class */ (function () {
|
|
|
74
74
|
return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
* Cancel
|
|
77
|
+
* Cancel Box Sign request
|
|
78
78
|
*
|
|
79
79
|
* Cancels a sign request.
|
|
80
80
|
* @param {object} options Options for the request
|
|
81
|
-
* @param {string} options.sign_request_id The ID of the
|
|
81
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
82
82
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
83
83
|
* @returns {Promise<schemas.SignRequest>} A promise resolving to the result or rejecting with an error
|
|
84
84
|
*/
|
|
@@ -89,11 +89,11 @@ var SignRequestsManager = /** @class */ (function () {
|
|
|
89
89
|
return this.client.wrapWithDefaultHandler(this.client.post)(apiPath, params, callback);
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
|
-
* Resend
|
|
92
|
+
* Resend Box Sign request
|
|
93
93
|
*
|
|
94
|
-
* Resends a
|
|
94
|
+
* Resends a signature request email to all outstanding signers.
|
|
95
95
|
* @param {object} options Options for the request
|
|
96
|
-
* @param {string} options.sign_request_id The ID of the
|
|
96
|
+
* @param {string} options.sign_request_id The ID of the signature request
|
|
97
97
|
* @param {Function} [callback] Passed the result if successful, error otherwise
|
|
98
98
|
* @returns {Promise<void>} A promise resolving to the result or rejecting with an error
|
|
99
99
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Ask Request
|
|
3
|
+
*
|
|
4
|
+
* AI Ask request object
|
|
5
|
+
*/
|
|
6
|
+
export interface AiAsk {
|
|
7
|
+
/**
|
|
8
|
+
* The mode specifies if this request is for a single or multiple items. If you select `single_item_qa` the `items` array can have one element only. Selecting `multiple_item_qa` allows you to provide up to 25 items.
|
|
9
|
+
* Example: multiple_item_qa
|
|
10
|
+
*/
|
|
11
|
+
mode: 'multiple_item_qa' | 'single_item_qa';
|
|
12
|
+
/**
|
|
13
|
+
* The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters.
|
|
14
|
+
* Example: What is the value provided by public APIs based on this document?
|
|
15
|
+
*/
|
|
16
|
+
prompt: string;
|
|
17
|
+
/**
|
|
18
|
+
* The items to be processed by the LLM, often files.
|
|
19
|
+
*
|
|
20
|
+
* **Note**: Box AI handles documents with text representations up to 1MB in size, or a maximum of 25 files, whichever comes first.
|
|
21
|
+
* If the file size exceeds 1MB, the first 1MB of text representation will be processed.
|
|
22
|
+
* If you set `mode` parameter to `single_item_qa`, the `items` array can have one element only.
|
|
23
|
+
*/
|
|
24
|
+
items: {
|
|
25
|
+
id?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
content?: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-ask.generated.js","sourceRoot":"","sources":["../../src/schemas/ai-ask.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Response
|
|
3
|
+
*
|
|
4
|
+
* AI response
|
|
5
|
+
*/
|
|
6
|
+
export interface AiResponse {
|
|
7
|
+
/**
|
|
8
|
+
* The answer provided by the LLM.
|
|
9
|
+
* Example: Public APIs are important because of key and important reasons.
|
|
10
|
+
*/
|
|
11
|
+
answer: string;
|
|
12
|
+
/**
|
|
13
|
+
* The ISO date formatted timestamp of when the answer to the prompt was created.
|
|
14
|
+
* Example: 2012-12-12T10:53:43-08:00
|
|
15
|
+
*/
|
|
16
|
+
created_at: string;
|
|
17
|
+
/**
|
|
18
|
+
* The reason the response finishes.
|
|
19
|
+
* Example: done
|
|
20
|
+
*/
|
|
21
|
+
completion_reason?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-response.generated.js","sourceRoot":"","sources":["../../src/schemas/ai-response.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI Text Gen Request
|
|
3
|
+
*
|
|
4
|
+
* AI Text Gen Request object
|
|
5
|
+
*/
|
|
6
|
+
export interface AiTextGen {
|
|
7
|
+
/**
|
|
8
|
+
* The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters.
|
|
9
|
+
* Example: Write an email to a client about the importance of public APIs.
|
|
10
|
+
*/
|
|
11
|
+
prompt: string;
|
|
12
|
+
/**
|
|
13
|
+
* The items to be processed by the LLM, often files.
|
|
14
|
+
* The array can include **exactly one** element.
|
|
15
|
+
*
|
|
16
|
+
* **Note**: Box AI handles documents with text representations up to 1MB in size.
|
|
17
|
+
* If the file size exceeds 1MB, the first 1MB of text representation will be processed.
|
|
18
|
+
*/
|
|
19
|
+
items: {
|
|
20
|
+
id?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
content?: string;
|
|
23
|
+
}[];
|
|
24
|
+
/**
|
|
25
|
+
* The history of prompts and answers previously passed to the LLM. This provides additional context to the LLM in generating the response.
|
|
26
|
+
*/
|
|
27
|
+
dialogue_history?: {
|
|
28
|
+
answer?: string;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
prompt?: string;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-text-gen.generated.js","sourceRoot":"","sources":["../../src/schemas/ai-text-gen.generated.ts"],"names":[],"mappings":""}
|
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai-ask.generated"), exports);
|
|
18
|
+
__exportStar(require("./ai-response.generated"), exports);
|
|
19
|
+
__exportStar(require("./ai-text-gen.generated"), exports);
|
|
17
20
|
__exportStar(require("./enterprise-base.generated"), exports);
|
|
18
21
|
__exportStar(require("./file-base.generated"), exports);
|
|
19
22
|
__exportStar(require("./file-mini.generated"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../src/schemas/index.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,8EAA4D;AAC5D,mFAAiE;AACjE,qFAAmE;AACnE,wFAAsE;AACtE,gFAA8D;AAC9D,iFAA+D;AAC/D,6FAA2E;AAC3E,6FAA2E;AAC3E,wFAAsE;AACtE,yFAAuE;AACvE,kGAAgF;AAChF,kGAAgF;AAChF,6FAA2E;AAC3E,8FAA4E;AAC5E,iFAA+D;AAC/D,kFAAgE;AAChE,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,wEAAsD;AACtD,kEAAgD;AAChD,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.generated.js","sourceRoot":"","sources":["../../src/schemas/index.generated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,0DAAwC;AACxC,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,wDAAsC;AACtC,gEAA8C;AAC9C,gEAA8C;AAC9C,0DAAwC;AACxC,0DAAwC;AACxC,8EAA4D;AAC5D,mFAAiE;AACjE,qFAAmE;AACnE,wFAAsE;AACtE,gFAA8D;AAC9D,iFAA+D;AAC/D,6FAA2E;AAC3E,6FAA2E;AAC3E,wFAAsE;AACtE,yFAAuE;AACvE,kGAAgF;AAChF,kGAAgF;AAChF,6FAA2E;AAC3E,8FAA4E;AAC5E,iFAA+D;AAC/D,kFAAgE;AAChE,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,wEAAsD;AACtD,kEAAgD;AAChD,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,oEAAkD;AAClD,8DAA4C;AAC5C,wDAAsC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
* Sign
|
|
3
|
+
* Box Sign request (Base)
|
|
4
4
|
*
|
|
5
|
-
* A
|
|
5
|
+
* A standard representation of a signature request object.
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRequestBase {
|
|
8
8
|
/**
|
|
9
|
-
* Indicates if the sender should receive a `prepare_url` in the response to complete document preparation
|
|
9
|
+
* Indicates if the sender should receive a `prepare_url` in the response to complete document preparation using the UI.
|
|
10
10
|
* Example: true
|
|
11
11
|
*/
|
|
12
12
|
is_document_preparation_needed?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* When specified, signature request will be redirected to this url when a document is signed.
|
|
14
|
+
* When specified, the signature request will be redirected to this url when a document is signed.
|
|
15
15
|
* Example: https://www.example.com
|
|
16
16
|
*/
|
|
17
17
|
redirect_url?: string;
|
|
@@ -42,18 +42,12 @@ export interface SignRequestBase {
|
|
|
42
42
|
*/
|
|
43
43
|
are_reminders_enabled?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
46
|
-
* log. Only `ID` and `type` fields are required. The root folder,
|
|
47
|
-
* folder ID `0`, cannot be used.
|
|
48
|
-
*/
|
|
49
|
-
parent_folder: schemas.FolderMini;
|
|
50
|
-
/**
|
|
51
|
-
* Name of the sign request.
|
|
45
|
+
* Name of the signature request.
|
|
52
46
|
* Example: name
|
|
53
47
|
*/
|
|
54
48
|
name?: string;
|
|
55
49
|
/**
|
|
56
|
-
* When a document contains sign
|
|
50
|
+
* When a document contains sign-related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag.
|
|
57
51
|
*/
|
|
58
52
|
prefill_tags?: schemas.SignRequestPrefillTag[];
|
|
59
53
|
/**
|
|
@@ -76,4 +70,9 @@ export interface SignRequestBase {
|
|
|
76
70
|
* Example: 123075213-af2c8822-3ef2-4952-8557-52d69c2fe9cb
|
|
77
71
|
*/
|
|
78
72
|
template_id?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`.
|
|
75
|
+
* Example: Box
|
|
76
|
+
*/
|
|
77
|
+
external_system_name?: string;
|
|
79
78
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
* Create a
|
|
3
|
+
* Create a Box Sign request
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Creates a Box Sign request object.
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRequestCreateRequest extends schemas.SignRequestBase {
|
|
8
8
|
/**
|
|
@@ -15,7 +15,25 @@ export interface SignRequestCreateRequest extends schemas.SignRequestBase {
|
|
|
15
15
|
*/
|
|
16
16
|
signature_color?: 'blue' | 'black' | 'red';
|
|
17
17
|
/**
|
|
18
|
-
* Array of signers for the
|
|
18
|
+
* Array of signers for the signature request. 35 is the
|
|
19
|
+
* max number of signers permitted.
|
|
20
|
+
*
|
|
21
|
+
* **Note**: It may happen that some signers belong to conflicting [segments](r://shield-information-barrier-segment-member) (user groups).
|
|
22
|
+
* This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts.
|
|
23
|
+
* In such a case, an attempt to send the sign request will result in an error.
|
|
24
|
+
*
|
|
25
|
+
* Read more about [segments and ethical walls](https://support.box.com/hc/en-us/articles/9920431507603-Understanding-Information-Barriers#h_01GFVJEHQA06N7XEZ4GCZ9GFAQ).
|
|
19
26
|
*/
|
|
20
27
|
signers: schemas.SignRequestCreateSigner[];
|
|
28
|
+
/**
|
|
29
|
+
* The destination folder to place final, signed document and signing
|
|
30
|
+
* log. Only `ID` and `type` fields are required. The root folder,
|
|
31
|
+
* folder ID `0`, cannot be used and can also not be null.
|
|
32
|
+
*
|
|
33
|
+
* When this value is not passed in when the signature request, then
|
|
34
|
+
* we will use a default folder which is either the parent folder of
|
|
35
|
+
* the first source file in the payload if we have the permission to
|
|
36
|
+
* upload to that folder or a folder called "My Sign Requests".
|
|
37
|
+
*/
|
|
38
|
+
parent_folder?: schemas.FolderMini;
|
|
21
39
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Signer fields
|
|
2
|
+
* Signer fields used to create a Box Sign request object.
|
|
3
3
|
*
|
|
4
|
-
* The schema for a Signer
|
|
4
|
+
* The schema for a Signer object used in
|
|
5
|
+
* for creating a Box Sign request object.
|
|
5
6
|
*/
|
|
6
7
|
export interface SignRequestCreateSigner {
|
|
7
8
|
/**
|
|
@@ -11,7 +12,7 @@ export interface SignRequestCreateSigner {
|
|
|
11
12
|
*/
|
|
12
13
|
email?: string;
|
|
13
14
|
/**
|
|
14
|
-
* Defines the role of the signer in the
|
|
15
|
+
* Defines the role of the signer in the signature request. A `signer`
|
|
15
16
|
* must sign the document and an `approver` must approve the document. A
|
|
16
17
|
* `final_copy_reader` only receives the final signed document and signing
|
|
17
18
|
* log.
|
|
@@ -55,16 +56,18 @@ export interface SignRequestCreateSigner {
|
|
|
55
56
|
*/
|
|
56
57
|
declined_redirect_url?: string;
|
|
57
58
|
/**
|
|
58
|
-
* If set to true, signer will need to
|
|
59
|
+
* If set to true, the signer will need to log in to a Box account
|
|
59
60
|
* before signing the request. If the signer does not have
|
|
60
|
-
* an existing account, they will have
|
|
61
|
-
* a free Box account.
|
|
61
|
+
* an existing account, they will have the option to create
|
|
62
|
+
* a free Box account. Cannot be selected in combination with
|
|
63
|
+
* `verification_phone_number`.
|
|
62
64
|
* Example: true
|
|
63
65
|
*/
|
|
64
66
|
login_required?: boolean;
|
|
65
67
|
/**
|
|
66
|
-
* If set, this phone number
|
|
67
|
-
* via two
|
|
68
|
+
* If set, this phone number will be used to verify the signer
|
|
69
|
+
* via two-factor authentication before they are able to sign the document.
|
|
70
|
+
* Cannot be selected in combination with `login_required`.
|
|
68
71
|
* Example: 6314578901
|
|
69
72
|
*/
|
|
70
73
|
verification_phone_number?: string;
|
|
@@ -75,10 +78,18 @@ export interface SignRequestCreateSigner {
|
|
|
75
78
|
*/
|
|
76
79
|
password?: string;
|
|
77
80
|
/**
|
|
78
|
-
* If set, signers who have the same
|
|
79
|
-
* A signer group is
|
|
80
|
-
*
|
|
81
|
+
* If set, signers who have the same value will be assigned to the same input and to the same signer group.
|
|
82
|
+
* A signer group is not a Box Group. It is an entity that belongs to a Sign Request and can only be
|
|
83
|
+
* used/accessed within this Sign Request. A signer group is expected to have more than one signer.
|
|
84
|
+
* If the provided value is only used for one signer, this value will be ignored and request will be handled
|
|
85
|
+
* as it was intended for an individual signer. The value provided can be any string and only used to
|
|
86
|
+
* determine which signers belongs to same group. A successful response will provide a generated UUID value
|
|
87
|
+
* instead for signers in the same signer group.
|
|
81
88
|
* Example: cd4ff89-8fc1-42cf-8b29-1890dedd26d7
|
|
82
89
|
*/
|
|
83
90
|
signer_group_id?: string;
|
|
91
|
+
/**
|
|
92
|
+
* If true, no emails about the sign request will be sent
|
|
93
|
+
*/
|
|
94
|
+
suppress_notifications?: boolean;
|
|
84
95
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Sign
|
|
2
|
+
* Sign request prefill tag
|
|
3
3
|
*
|
|
4
4
|
* Prefill tags are used to prefill placeholders with signer input data. Only
|
|
5
5
|
* one value field can be included.
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRequestPrefillTag {
|
|
8
8
|
/**
|
|
9
|
-
* This references the ID of a specific tag contained in a file of the
|
|
9
|
+
* This references the ID of a specific tag contained in a file of the signature request.
|
|
10
10
|
* Example: 1234
|
|
11
11
|
*/
|
|
12
12
|
document_tag_id?: string;
|
|
@@ -20,4 +20,9 @@ export interface SignRequestSignerInput extends schemas.SignRequestPrefillTag {
|
|
|
20
20
|
* Example: 4
|
|
21
21
|
*/
|
|
22
22
|
page_index: number;
|
|
23
|
+
/**
|
|
24
|
+
* Whether this input was defined as read-only(immutable by signers) or not
|
|
25
|
+
* Example: true
|
|
26
|
+
*/
|
|
27
|
+
read_only?: boolean;
|
|
23
28
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
* Signer fields for
|
|
3
|
+
* Signer fields for Box Sign request response
|
|
4
4
|
*
|
|
5
|
-
* The schema for a Signer
|
|
5
|
+
* The schema for a Signer object used
|
|
6
|
+
* on the body of a Box Sign request object.
|
|
6
7
|
*/
|
|
7
8
|
export interface SignRequestSigner extends schemas.SignRequestCreateSigner {
|
|
8
9
|
/**
|
|
@@ -11,7 +12,7 @@ export interface SignRequestSigner extends schemas.SignRequestCreateSigner {
|
|
|
11
12
|
*/
|
|
12
13
|
has_viewed_document?: boolean;
|
|
13
14
|
/**
|
|
14
|
-
* Final decision made by the signer
|
|
15
|
+
* Final decision made by the signer.
|
|
15
16
|
*/
|
|
16
17
|
signer_decision?: object;
|
|
17
18
|
inputs?: schemas.SignRequestSignerInput[];
|
|
@@ -26,7 +27,7 @@ export interface SignRequestSigner extends schemas.SignRequestCreateSigner {
|
|
|
26
27
|
* It will be returned in the response
|
|
27
28
|
* only if the `embed_url_external_user_id`
|
|
28
29
|
* parameter was passed in the
|
|
29
|
-
* `create
|
|
30
|
+
* `create Box Sign request` call.
|
|
30
31
|
* Example: https://app.box.com/embed/sign/document/gfhr4222-a331-494b-808b-79bc7f3992a3/f14d7098-a331-494b-808b-79bc7f3992a4
|
|
31
32
|
*/
|
|
32
33
|
iframeable_embed_url?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
* Sign
|
|
3
|
+
* Box Sign request
|
|
4
4
|
*
|
|
5
|
-
* A Sign
|
|
5
|
+
* A Box Sign request object.
|
|
6
6
|
*/
|
|
7
7
|
export interface SignRequest extends schemas.SignRequestBase {
|
|
8
8
|
/**
|
|
@@ -15,7 +15,7 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
15
15
|
*/
|
|
16
16
|
source_files?: schemas.FileBase[];
|
|
17
17
|
/**
|
|
18
|
-
* Array of signers for the
|
|
18
|
+
* Array of signers for the signature request.
|
|
19
19
|
*/
|
|
20
20
|
signers?: schemas.SignRequestSigner[];
|
|
21
21
|
/**
|
|
@@ -24,24 +24,27 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
24
24
|
*/
|
|
25
25
|
signature_color?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Sign request ID
|
|
27
|
+
* Box Sign request ID.
|
|
28
28
|
* Example: 12345
|
|
29
29
|
*/
|
|
30
30
|
id?: string;
|
|
31
31
|
/**
|
|
32
32
|
* This URL is returned if `is_document_preparation_needed` is
|
|
33
|
-
* set to `true` in the request.
|
|
34
|
-
*
|
|
33
|
+
* set to `true` in the request. The parameter is used to prepare
|
|
34
|
+
* the signature request
|
|
35
|
+
* using the UI. The signature request is not
|
|
36
|
+
* sent until the preparation
|
|
37
|
+
* phase is complete.
|
|
35
38
|
* Example: https://prepareurl.com
|
|
36
39
|
*/
|
|
37
40
|
prepare_url?: string;
|
|
38
41
|
/**
|
|
39
42
|
* Reference to a file that holds a log of all signer activity for
|
|
40
|
-
* the request
|
|
43
|
+
* the request.
|
|
41
44
|
*/
|
|
42
45
|
signing_log?: schemas.FileMini;
|
|
43
46
|
/**
|
|
44
|
-
* Describes the status of the
|
|
47
|
+
* Describes the status of the signature request.
|
|
45
48
|
* Example: converting
|
|
46
49
|
*/
|
|
47
50
|
status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired' | 'finalizing' | 'error_finalizing';
|
|
@@ -56,4 +59,14 @@ export interface SignRequest extends schemas.SignRequestBase {
|
|
|
56
59
|
* Example: 2021-04-26T08:12:13.982Z
|
|
57
60
|
*/
|
|
58
61
|
auto_expire_at?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The destination folder to place final, signed document and signing
|
|
64
|
+
* log.
|
|
65
|
+
*
|
|
66
|
+
* When this value was not passed in when the signature request was
|
|
67
|
+
* created, then we will use a default folder which is either the parent
|
|
68
|
+
* folder of the first source file in the payload if we have the permission
|
|
69
|
+
* to upload to that folder or a folder called "My Sign Requests".
|
|
70
|
+
*/
|
|
71
|
+
parent_folder?: schemas.FolderMini;
|
|
59
72
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as schemas from '.';
|
|
2
2
|
/**
|
|
3
|
-
* Box Sign
|
|
3
|
+
* Box Sign requests
|
|
4
4
|
*
|
|
5
5
|
* The part of an API response that describes marker
|
|
6
6
|
* based pagination
|
|
@@ -19,7 +19,7 @@ export interface SignRequests {
|
|
|
19
19
|
*/
|
|
20
20
|
next_marker?: string;
|
|
21
21
|
/**
|
|
22
|
-
* A list of
|
|
22
|
+
* A list of Box Sign requests.
|
|
23
23
|
*/
|
|
24
24
|
entries?: schemas.SignRequest[];
|
|
25
25
|
}
|
|
@@ -70,6 +70,12 @@ export interface SignTemplate {
|
|
|
70
70
|
are_files_locked?: boolean;
|
|
71
71
|
/**
|
|
72
72
|
* Array of signers for the template.
|
|
73
|
+
*
|
|
74
|
+
* **Note**: It may happen that some signers specified in the template belong to conflicting [segments](r://shield-information-barrier-segment-member) (user groups).
|
|
75
|
+
* This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts.
|
|
76
|
+
* In such a case, an attempt to send a sign request based on a template that lists signers in conflicting segments will result in an error.
|
|
77
|
+
*
|
|
78
|
+
* Read more about [segments and ethical walls](https://support.box.com/hc/en-us/articles/9920431507603-Understanding-Information-Barriers#h_01GFVJEHQA06N7XEZ4GCZ9GFAQ).
|
|
73
79
|
*/
|
|
74
80
|
signers?: schemas.TemplateSigner[];
|
|
75
81
|
/**
|
|
@@ -53,4 +53,9 @@ export interface TemplateSignerInput extends schemas.SignRequestPrefillTag {
|
|
|
53
53
|
* Example: Legal name
|
|
54
54
|
*/
|
|
55
55
|
label?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether this input was defined as read-only(immutable by signers) or not
|
|
58
|
+
* Example: true
|
|
59
|
+
*/
|
|
60
|
+
read_only?: boolean;
|
|
56
61
|
}
|
|
@@ -34,9 +34,9 @@ export interface TemplateSigner {
|
|
|
34
34
|
*/
|
|
35
35
|
order?: number;
|
|
36
36
|
/**
|
|
37
|
-
* If
|
|
38
|
-
* A signer group is
|
|
39
|
-
*
|
|
37
|
+
* If provided, this value points signers that are assigned the same inputs and belongs to same signer group.
|
|
38
|
+
* A signer group is not a Box Group. It is an entity that belongs to the template itself and can only be used
|
|
39
|
+
* within Box Sign requests created from it.
|
|
40
40
|
* Example: cd4ff89-8fc1-42cf-8b29-1890dedd26d7
|
|
41
41
|
*/
|
|
42
42
|
signer_group_id?: string;
|