Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "3799ab4", "specHash": "c9d7bb5", "version": "1.9.0" }
{ "engineHash": "264bdc9", "specHash": "6886603", "version": "1.9.0" }
80 changes: 40 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions src/schemas/event.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ export type EventEventTypeField =
| 'DOWNLOAD'
| 'EDIT'
| 'EDIT_USER'
| 'EDR_CROWDSTRIKE_DEVICE_DETECTED'
| 'EDR_CROWDSTRIKE_NO_BOX_TOOLS'
| 'EDR_CROWDSTRIKE_BOX_TOOLS_OUTDATED'
| 'EDR_CROWDSTRIKE_DRIVE_OUTDATED'
| 'EDR_CROWDSTRIKE_ACCESS_ALLOWED_NO_CROWDSTRIKE_DEVICE'
| 'EDR_CROWDSTRIKE_ACCESS_REVOKED'
| 'EMAIL_ALIAS_CONFIRM'
| 'EMAIL_ALIAS_REMOVE'
| 'ENABLE_TWO_FACTOR_AUTH'
Expand Down Expand Up @@ -304,6 +310,24 @@ export function deserializeEventEventTypeField(
if (val == 'EDIT_USER') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_DEVICE_DETECTED') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_NO_BOX_TOOLS') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_BOX_TOOLS_OUTDATED') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_DRIVE_OUTDATED') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_ACCESS_ALLOWED_NO_CROWDSTRIKE_DEVICE') {
return val;
}
if (val == 'EDR_CROWDSTRIKE_ACCESS_REVOKED') {
return val;
}
if (val == 'EMAIL_ALIAS_CONFIRM') {
return val;
}
Expand Down
14 changes: 0 additions & 14 deletions src/schemas/signRequest.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,19 +431,6 @@ export function deserializeSignRequest(val: SerializedData): SignRequest {
}
const externalId: undefined | string =
val.external_id == void 0 ? void 0 : val.external_id;
if (
!(val.is_phone_verification_required_to_view == void 0) &&
!sdIsBoolean(val.is_phone_verification_required_to_view)
) {
throw new BoxSdkError({
message:
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequest"',
});
}
const isPhoneVerificationRequiredToView: undefined | boolean =
val.is_phone_verification_required_to_view == void 0
? void 0
: val.is_phone_verification_required_to_view;
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
throw new BoxSdkError({
message: 'Expecting string for "template_id" of type "SignRequest"',
Expand Down Expand Up @@ -485,7 +472,6 @@ export function deserializeSignRequest(val: SerializedData): SignRequest {
prefillTags: prefillTags,
daysValid: daysValid,
externalId: externalId,
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
templateId: templateId,
externalSystemName: externalSystemName,
} satisfies SignRequest;
Expand Down
19 changes: 0 additions & 19 deletions src/schemas/signRequestBase.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export interface SignRequestBase {
/**
* This can be used to reference an ID in an external system that the sign request is related to. */
readonly externalId?: string | null;
/**
* Forces signers to verify a text message prior to viewing the document. You must specify the phone number of signers to have this setting apply to them. */
readonly isPhoneVerificationRequiredToView?: boolean | null;
/**
* When a signature request is created from a template this field will indicate the id of that template. */
readonly templateId?: string | null;
Expand Down Expand Up @@ -74,8 +71,6 @@ export function serializeSignRequestBase(val: SignRequestBase): SerializedData {
}) as readonly any[]),
['days_valid']: val.daysValid,
['external_id']: val.externalId,
['is_phone_verification_required_to_view']:
val.isPhoneVerificationRequiredToView,
['template_id']: val.templateId,
['external_system_name']: val.externalSystemName,
};
Expand Down Expand Up @@ -190,19 +185,6 @@ export function deserializeSignRequestBase(
}
const externalId: undefined | string =
val.external_id == void 0 ? void 0 : val.external_id;
if (
!(val.is_phone_verification_required_to_view == void 0) &&
!sdIsBoolean(val.is_phone_verification_required_to_view)
) {
throw new BoxSdkError({
message:
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequestBase"',
});
}
const isPhoneVerificationRequiredToView: undefined | boolean =
val.is_phone_verification_required_to_view == void 0
? void 0
: val.is_phone_verification_required_to_view;
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
throw new BoxSdkError({
message: 'Expecting string for "template_id" of type "SignRequestBase"',
Expand Down Expand Up @@ -233,7 +215,6 @@ export function deserializeSignRequestBase(
prefillTags: prefillTags,
daysValid: daysValid,
externalId: externalId,
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
templateId: templateId,
externalSystemName: externalSystemName,
} satisfies SignRequestBase;
Expand Down
14 changes: 0 additions & 14 deletions src/schemas/signRequestCreateRequest.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,6 @@ export function deserializeSignRequestCreateRequest(
}
const externalId: undefined | string =
val.external_id == void 0 ? void 0 : val.external_id;
if (
!(val.is_phone_verification_required_to_view == void 0) &&
!sdIsBoolean(val.is_phone_verification_required_to_view)
) {
throw new BoxSdkError({
message:
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequestCreateRequest"',
});
}
const isPhoneVerificationRequiredToView: undefined | boolean =
val.is_phone_verification_required_to_view == void 0
? void 0
: val.is_phone_verification_required_to_view;
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
throw new BoxSdkError({
message:
Expand Down Expand Up @@ -310,7 +297,6 @@ export function deserializeSignRequestCreateRequest(
prefillTags: prefillTags,
daysValid: daysValid,
externalId: externalId,
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
templateId: templateId,
externalSystemName: externalSystemName,
} satisfies SignRequestCreateRequest;
Expand Down
23 changes: 1 addition & 22 deletions src/schemas/signRequestCreateSigner.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,8 @@ export interface SignRequestCreateSigner {
* If set to true, the signer will need to log in to a Box account
* before signing the request. If the signer does not have
* an existing account, they will have the option to create
* a free Box account. Cannot be selected in combination with
* `verification_phone_number`. */
* a free Box account. */
readonly loginRequired?: boolean | null;
/**
* If set, this phone number will be used to verify the signer
* via two-factor authentication before they are able to sign the document.
* Cannot be selected in combination with `login_required`. */
readonly verificationPhoneNumber?: string | null;
/**
* If set, the signer is required to enter the password before they are able
* to sign a document. This field is write only. */
Expand Down Expand Up @@ -112,7 +106,6 @@ export function serializeSignRequestCreateSigner(
['redirect_url']: val.redirectUrl,
['declined_redirect_url']: val.declinedRedirectUrl,
['login_required']: val.loginRequired,
['verification_phone_number']: val.verificationPhoneNumber,
['password']: val.password,
['signer_group_id']: val.signerGroupId,
['suppress_notifications']: val.suppressNotifications,
Expand Down Expand Up @@ -190,19 +183,6 @@ export function deserializeSignRequestCreateSigner(
}
const loginRequired: undefined | boolean =
val.login_required == void 0 ? void 0 : val.login_required;
if (
!(val.verification_phone_number == void 0) &&
!sdIsString(val.verification_phone_number)
) {
throw new BoxSdkError({
message:
'Expecting string for "verification_phone_number" of type "SignRequestCreateSigner"',
});
}
const verificationPhoneNumber: undefined | string =
val.verification_phone_number == void 0
? void 0
: val.verification_phone_number;
if (!(val.password == void 0) && !sdIsString(val.password)) {
throw new BoxSdkError({
message:
Expand Down Expand Up @@ -239,7 +219,6 @@ export function deserializeSignRequestCreateSigner(
redirectUrl: redirectUrl,
declinedRedirectUrl: declinedRedirectUrl,
loginRequired: loginRequired,
verificationPhoneNumber: verificationPhoneNumber,
password: password,
signerGroupId: signerGroupId,
suppressNotifications: suppressNotifications,
Expand Down
14 changes: 0 additions & 14 deletions src/schemas/signRequestSigner.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,19 +268,6 @@ export function deserializeSignRequestSigner(
}
const loginRequired: undefined | boolean =
val.login_required == void 0 ? void 0 : val.login_required;
if (
!(val.verification_phone_number == void 0) &&
!sdIsString(val.verification_phone_number)
) {
throw new BoxSdkError({
message:
'Expecting string for "verification_phone_number" of type "SignRequestSigner"',
});
}
const verificationPhoneNumber: undefined | string =
val.verification_phone_number == void 0
? void 0
: val.verification_phone_number;
if (!(val.password == void 0) && !sdIsString(val.password)) {
throw new BoxSdkError({
message: 'Expecting string for "password" of type "SignRequestSigner"',
Expand Down Expand Up @@ -321,7 +308,6 @@ export function deserializeSignRequestSigner(
redirectUrl: redirectUrl,
declinedRedirectUrl: declinedRedirectUrl,
loginRequired: loginRequired,
verificationPhoneNumber: verificationPhoneNumber,
password: password,
signerGroupId: signerGroupId,
suppressNotifications: suppressNotifications,
Expand Down
Loading
Loading