@@ -105,16 +105,16 @@ <h1 id="articles-api-schemas">Articles API Schemas</h1>
105105 id = fields.Int(required=True)
106106 type = fields.Str(allow_none=True)
107107 workspace_id = fields.Str(allow_none=True)
108- title = fields.Str()
108+ title = fields.Str(required=True )
109109 description = fields.Str(allow_none=True)
110- body = fields.Str()
111- author_id = fields.Int(allow_none =True)
110+ body = fields.Str(required=True )
111+ author_id = fields.Int(required =True)
112112 state = fields.Str(allow_none=True)
113113 created_at = fields.Int(allow_none=True)
114114 updated_at = fields.Int(allow_none=True)
115115 url = fields.Str(allow_none=True)
116116 default_locale = fields.Str(allow_none=True)
117- translated_content = fields.Dict(allow_none=True)
117+ translated_content = fields.Dict(values=fields.Str(), default='', allow_none=True)
118118 statistics = fields.Nested(ArticleStatisticsSchema, allow_none=True)
119119
120120 parent_id = fields.Int(allow_none=True)
@@ -125,6 +125,15 @@ <h1 id="articles-api-schemas">Articles API Schemas</h1>
125125 return a_models.Article(**data)
126126
127127
128+ class ArticlePagesSchema(SchemaBase):
129+ """ Paging information for a list of Articles on Intercom. """
130+ type = fields.Str(default='pages')
131+ page = fields.Int()
132+ next = fields.Url(allow_none=True)
133+ per_page = fields.Int(default=50)
134+ total_pages = fields.Int()
135+
136+
128137class ArticleListSchema(SchemaBase):
129138 """ This schema represents a list of Articles on Intercom.
130139
@@ -133,7 +142,7 @@ <h1 id="articles-api-schemas">Articles API Schemas</h1>
133142 total_count (int): The total number of Articles.
134143 data (list): The list of Articles.
135144 """
136- pages = fields.Dict( )
145+ pages = fields.Nested(ArticlePagesSchema )
137146 total_count = fields.Int()
138147 data = fields.Nested(ArticleSchema, many=True)
139148
@@ -178,7 +187,7 @@ <h2 id="attributes">Attributes</h2>
178187 total_count (int): The total number of Articles.
179188 data (list): The list of Articles.
180189 """
181- pages = fields.Dict( )
190+ pages = fields.Nested(ArticlePagesSchema )
182191 total_count = fields.Int()
183192 data = fields.Nested(ArticleSchema, many=True)
184193
@@ -226,6 +235,47 @@ <h3>Inherited members</h3>
226235</ li >
227236</ ul >
228237</ dd >
238+ < dt id ="intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema "> < code class ="flex name class ">
239+ < span > class < span class ="ident "> ArticlePagesSchema</ span > </ span >
240+ < span > (</ span > < span > *, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = (), dump_only: types.StrSequenceOrSet = (), partial: bool | types.StrSequenceOrSet | None = None, unknown: str | None = None)</ span >
241+ </ code > </ dt >
242+ < dd >
243+ < div class ="desc "> < p > Paging information for a list of Articles on Intercom.</ p > </ div >
244+ < details class ="source ">
245+ < summary >
246+ < span > Expand source code</ span >
247+ </ summary >
248+ < pre > < code class ="python "> class ArticlePagesSchema(SchemaBase):
249+ """ Paging information for a list of Articles on Intercom. """
250+ type = fields.Str(default='pages')
251+ page = fields.Int()
252+ next = fields.Url(allow_none=True)
253+ per_page = fields.Int(default=50)
254+ total_pages = fields.Int()</ code > </ pre >
255+ </ details >
256+ < h3 > Ancestors</ h3 >
257+ < ul class ="hlist ">
258+ < li > < a title ="intercom_python_sdk.core.schema_base.SchemaBase " href ="../../core/schema_base.html#intercom_python_sdk.core.schema_base.SchemaBase "> SchemaBase</ a > </ li >
259+ < li > marshmallow.schema.Schema</ li >
260+ < li > marshmallow.base.SchemaABC</ li >
261+ < li > abc.ABC</ li >
262+ </ ul >
263+ < h3 > Class variables</ h3 >
264+ < dl >
265+ < dt id ="intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema.opts "> < code class ="name "> var < span class ="ident "> opts</ span > </ code > </ dt >
266+ < dd >
267+ < div class ="desc "> </ div >
268+ </ dd >
269+ </ dl >
270+ < h3 > Inherited members</ h3 >
271+ < ul class ="hlist ">
272+ < li > < code > < b > < a title ="intercom_python_sdk.core.schema_base.SchemaBase " href ="../../core/schema_base.html#intercom_python_sdk.core.schema_base.SchemaBase "> SchemaBase</ a > </ b > </ code > :
273+ < ul class ="hlist ">
274+ < li > < code > < a title ="intercom_python_sdk.core.schema_base.SchemaBase.Meta " href ="../../core/schema_base.html#intercom_python_sdk.core.schema_base.SchemaBase.Meta "> Meta</ a > </ code > </ li >
275+ </ ul >
276+ </ li >
277+ </ ul >
278+ </ dd >
229279< dt id ="intercom_python_sdk.apis.articles.schemas.ArticleSchema "> < code class ="flex name class ">
230280< span > class < span class ="ident "> ArticleSchema</ span > </ span >
231281< span > (</ span > < span > *, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = (), dump_only: types.StrSequenceOrSet = (), partial: bool | types.StrSequenceOrSet | None = None, unknown: str | None = None)</ span >
@@ -297,16 +347,16 @@ <h2 id="attributes">Attributes</h2>
297347 id = fields.Int(required=True)
298348 type = fields.Str(allow_none=True)
299349 workspace_id = fields.Str(allow_none=True)
300- title = fields.Str()
350+ title = fields.Str(required=True )
301351 description = fields.Str(allow_none=True)
302- body = fields.Str()
303- author_id = fields.Int(allow_none =True)
352+ body = fields.Str(required=True )
353+ author_id = fields.Int(required =True)
304354 state = fields.Str(allow_none=True)
305355 created_at = fields.Int(allow_none=True)
306356 updated_at = fields.Int(allow_none=True)
307357 url = fields.Str(allow_none=True)
308358 default_locale = fields.Str(allow_none=True)
309- translated_content = fields.Dict(allow_none=True)
359+ translated_content = fields.Dict(values=fields.Str(), default='', allow_none=True)
310360 statistics = fields.Nested(ArticleStatisticsSchema, allow_none=True)
311361
312362 parent_id = fields.Int(allow_none=True)
@@ -449,6 +499,12 @@ <h4><code><a title="intercom_python_sdk.apis.articles.schemas.ArticleListSchema"
449499</ ul >
450500</ li >
451501< li >
502+ < h4 > < code > < a title ="intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema " href ="#intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema "> ArticlePagesSchema</ a > </ code > </ h4 >
503+ < ul class ="">
504+ < li > < code > < a title ="intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema.opts " href ="#intercom_python_sdk.apis.articles.schemas.ArticlePagesSchema.opts "> opts</ a > </ code > </ li >
505+ </ ul >
506+ </ li >
507+ < li >
452508< h4 > < code > < a title ="intercom_python_sdk.apis.articles.schemas.ArticleSchema " href ="#intercom_python_sdk.apis.articles.schemas.ArticleSchema "> ArticleSchema</ a > </ code > </ h4 >
453509< ul class ="">
454510< li > < code > < a title ="intercom_python_sdk.apis.articles.schemas.ArticleSchema.make_article " href ="#intercom_python_sdk.apis.articles.schemas.ArticleSchema.make_article "> make_article</ a > </ code > </ li >
0 commit comments