From 03ce7e1909da9ee91b13f97f271908160d658dcb Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Fri, 15 May 2026 07:49:08 -0700 Subject: [PATCH 1/2] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 36119e89..9dc44a8b 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "78a8dc0", "specHash": "576cd17", "version": "10.9.0" } +{ "engineHash": "4de40e1", "specHash": "576cd17", "version": "10.9.0" } From 443b63b7caa14a9712708cf3e46fe0530b9a49f8 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Tue, 19 May 2026 07:49:09 -0700 Subject: [PATCH 2/2] docs: add subfield types (box/box-openapi#598) --- .codegen.json | 2 +- .../v2025_r0/doc_gen_job_full_v2025_r0.py | 8 +++++++ .../schemas/v2025_r0/doc_gen_job_v2025_r0.py | 21 +++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 9dc44a8b..1d5a5126 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "4de40e1", "specHash": "576cd17", "version": "10.9.0" } +{ "engineHash": "4de40e1", "specHash": "e0ffc4a", "version": "10.9.0" } diff --git a/box_sdk_gen/schemas/v2025_r0/doc_gen_job_full_v2025_r0.py b/box_sdk_gen/schemas/v2025_r0/doc_gen_job_full_v2025_r0.py index 59647623..2e4eec56 100644 --- a/box_sdk_gen/schemas/v2025_r0/doc_gen_job_full_v2025_r0.py +++ b/box_sdk_gen/schemas/v2025_r0/doc_gen_job_full_v2025_r0.py @@ -20,6 +20,10 @@ DocGenJobV2025R0StatusField, ) +from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import ( + DocGenJobV2025R0FailuresField, +) + from box_sdk_gen.schemas.v2025_r0.doc_gen_job_v2025_r0 import DocGenJobV2025R0 from box_sdk_gen.schemas.v2025_r0.user_base_v2025_r0 import UserBaseV2025R0 @@ -49,6 +53,7 @@ def __init__( created_at: Optional[str] = None, output_file: Optional[FileReferenceV2025R0] = None, output_file_version: Optional[FileVersionBaseV2025R0] = None, + failures: Optional[DocGenJobV2025R0FailuresField] = None, type: DocGenJobBaseV2025R0TypeField = DocGenJobBaseV2025R0TypeField.DOCGEN_JOB, **kwargs ): @@ -63,6 +68,8 @@ def __init__( :type id: str :param created_at: Time of job creation., defaults to None :type created_at: Optional[str], optional + :param failures: Errors and warnings that occurred during document generation., defaults to None + :type failures: Optional[DocGenJobV2025R0FailuresField], optional :param type: The value will always be `docgen_job`., defaults to DocGenJobBaseV2025R0TypeField.DOCGEN_JOB :type type: DocGenJobBaseV2025R0TypeField, optional """ @@ -75,6 +82,7 @@ def __init__( id=id, output_file=output_file, output_file_version=output_file_version, + failures=failures, type=type, **kwargs ) diff --git a/box_sdk_gen/schemas/v2025_r0/doc_gen_job_v2025_r0.py b/box_sdk_gen/schemas/v2025_r0/doc_gen_job_v2025_r0.py index f1fbdadc..0ea76f6f 100644 --- a/box_sdk_gen/schemas/v2025_r0/doc_gen_job_v2025_r0.py +++ b/box_sdk_gen/schemas/v2025_r0/doc_gen_job_v2025_r0.py @@ -1,5 +1,9 @@ from enum import Enum +from typing import List + +from box_sdk_gen.internal.base_object import BaseObject + from typing import Optional from box_sdk_gen.schemas.v2025_r0.doc_gen_job_base_v2025_r0 import ( @@ -29,6 +33,19 @@ class DocGenJobV2025R0StatusField(str, Enum): PENDING = 'pending' +class DocGenJobV2025R0FailuresField(BaseObject): + def __init__(self, errors: List[str], warnings: List[str], **kwargs): + """ + :param errors: A list of errors that occurred during document generation. + :type errors: List[str] + :param warnings: A list of warnings that occurred during document generation. + :type warnings: List[str] + """ + super().__init__(**kwargs) + self.errors = errors + self.warnings = warnings + + class DocGenJobV2025R0(DocGenJobBaseV2025R0): _discriminator = 'type', {'docgen_job'} @@ -43,6 +60,7 @@ def __init__( *, output_file: Optional[FileReferenceV2025R0] = None, output_file_version: Optional[FileVersionBaseV2025R0] = None, + failures: Optional[DocGenJobV2025R0FailuresField] = None, type: DocGenJobBaseV2025R0TypeField = DocGenJobBaseV2025R0TypeField.DOCGEN_JOB, **kwargs ): @@ -53,6 +71,8 @@ def __init__( :type output_type: str :param id: The unique identifier that represent a Box Doc Gen job. :type id: str + :param failures: Errors and warnings that occurred during document generation., defaults to None + :type failures: Optional[DocGenJobV2025R0FailuresField], optional :param type: The value will always be `docgen_job`., defaults to DocGenJobBaseV2025R0TypeField.DOCGEN_JOB :type type: DocGenJobBaseV2025R0TypeField, optional """ @@ -64,3 +84,4 @@ def __init__( self.output_type = output_type self.output_file = output_file self.output_file_version = output_file_version + self.failures = failures