wordlift-client 1.112.0__py3-none-any.whl → 1.113.0__py3-none-any.whl

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.
@@ -20,21 +20,24 @@ import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
- from wordlift_client.models.event import Event
23
+ from wordlift_client.models.annotation import Annotation
24
+ from wordlift_client.models.entity1 import Entity1
25
+ from wordlift_client.models.image import Image
26
+ from wordlift_client.models.topic import Topic
24
27
  from typing import Optional, Set
25
28
  from typing_extensions import Self
26
29
 
27
30
  class Response2(BaseModel):
28
31
  """
29
- Response2
32
+ Response
30
33
  """ # noqa: E501
31
- items: Optional[List[Event]] = None
32
- var_self: Optional[StrictStr] = Field(default=None, alias="self")
33
- next: Optional[StrictStr] = None
34
- prev: Optional[StrictStr] = None
35
- last: Optional[StrictStr] = None
36
- first: Optional[StrictStr] = None
37
- __properties: ClassVar[List[str]] = ["items", "self", "next", "prev", "last", "first"]
34
+ entities: Optional[Dict[str, Entity1]] = Field(default=None, description="A map of entity URI to the respective entity.")
35
+ annotations: Optional[Dict[str, Annotation]] = Field(default=None, description="A map of annotation id to the respective annotation.")
36
+ images: Optional[List[Image]] = Field(default=None, description="A list of images.")
37
+ languages: Optional[List[StrictStr]] = Field(default=None, description="A list of languages.")
38
+ topics: Optional[List[Topic]] = Field(default=None, description="A list of topics.")
39
+ content: Optional[StrictStr] = Field(default=None, description="The text supplied for analysis.")
40
+ __properties: ClassVar[List[str]] = ["entities", "annotations", "images", "languages", "topics", "content"]
38
41
 
39
42
  model_config = ConfigDict(
40
43
  populate_by_name=True,
@@ -75,13 +78,34 @@ class Response2(BaseModel):
75
78
  exclude=excluded_fields,
76
79
  exclude_none=True,
77
80
  )
78
- # override the default output from pydantic by calling `to_dict()` of each item in items (list)
81
+ # override the default output from pydantic by calling `to_dict()` of each value in entities (dict)
82
+ _field_dict = {}
83
+ if self.entities:
84
+ for _key in self.entities:
85
+ if self.entities[_key]:
86
+ _field_dict[_key] = self.entities[_key].to_dict()
87
+ _dict['entities'] = _field_dict
88
+ # override the default output from pydantic by calling `to_dict()` of each value in annotations (dict)
89
+ _field_dict = {}
90
+ if self.annotations:
91
+ for _key in self.annotations:
92
+ if self.annotations[_key]:
93
+ _field_dict[_key] = self.annotations[_key].to_dict()
94
+ _dict['annotations'] = _field_dict
95
+ # override the default output from pydantic by calling `to_dict()` of each item in images (list)
79
96
  _items = []
80
- if self.items:
81
- for _item in self.items:
97
+ if self.images:
98
+ for _item in self.images:
82
99
  if _item:
83
100
  _items.append(_item.to_dict())
84
- _dict['items'] = _items
101
+ _dict['images'] = _items
102
+ # override the default output from pydantic by calling `to_dict()` of each item in topics (list)
103
+ _items = []
104
+ if self.topics:
105
+ for _item in self.topics:
106
+ if _item:
107
+ _items.append(_item.to_dict())
108
+ _dict['topics'] = _items
85
109
  return _dict
86
110
 
87
111
  @classmethod
@@ -94,12 +118,22 @@ class Response2(BaseModel):
94
118
  return cls.model_validate(obj)
95
119
 
96
120
  _obj = cls.model_validate({
97
- "items": [Event.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
98
- "self": obj.get("self"),
99
- "next": obj.get("next"),
100
- "prev": obj.get("prev"),
101
- "last": obj.get("last"),
102
- "first": obj.get("first")
121
+ "entities": dict(
122
+ (_k, Entity1.from_dict(_v))
123
+ for _k, _v in obj["entities"].items()
124
+ )
125
+ if obj.get("entities") is not None
126
+ else None,
127
+ "annotations": dict(
128
+ (_k, Annotation.from_dict(_v))
129
+ for _k, _v in obj["annotations"].items()
130
+ )
131
+ if obj.get("annotations") is not None
132
+ else None,
133
+ "images": [Image.from_dict(_item) for _item in obj["images"]] if obj.get("images") is not None else None,
134
+ "languages": obj.get("languages"),
135
+ "topics": [Topic.from_dict(_item) for _item in obj["topics"]] if obj.get("topics") is not None else None,
136
+ "content": obj.get("content")
103
137
  })
104
138
  return _obj
105
139
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wordlift-client
3
- Version: 1.112.0
3
+ Version: 1.113.0
4
4
  Summary: WordLift API
5
5
  Home-page:
6
6
  Author: WordLift
@@ -1,7 +1,7 @@
1
- wordlift_client/__init__.py,sha256=kmdgiLdaaXTcR0CrT10Fh6YfEi_KOry8-baWE2b7OwY,18735
2
- wordlift_client/api_client.py,sha256=pxiz2T3M1VsoWnMVapi8cGfAafisbKZEws7XQnp7Xu0,26397
1
+ wordlift_client/__init__.py,sha256=fGRHx4TI8YhgFZWRGcuhYOReVeC3HV_6mtP-4_ykTaE,18735
2
+ wordlift_client/api_client.py,sha256=jUPOahMol7uIVxuAUeh19pkXa6cq3ab4g8-RvcBL5ac,26397
3
3
  wordlift_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- wordlift_client/configuration.py,sha256=tFDUxbPGX5DIa8xuUaualgsU6BI7X1yixYh_AO56_s8,15932
4
+ wordlift_client/configuration.py,sha256=d97lD9zQelF0ZwHkpLh3tV0EdITD7StAjXFbElCkqIM,15932
5
5
  wordlift_client/exceptions.py,sha256=KvTu-E964XhAzMXOSfVycfOL1Eeraob5bgD4CfElD7M,5912
6
6
  wordlift_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  wordlift_client/rest.py,sha256=3D4hicZkeSFLxmhmgnlH63K7P39ToGyPk_3aQlHGznI,6817
@@ -12,7 +12,7 @@ wordlift_client/api/account_stats_api.py,sha256=tQshIfkbME-WMY-sBMwUUZdSTDBeoaV0
12
12
  wordlift_client/api/accounts_api.py,sha256=Lk8vONdxCPROiRllJKmvbT_IrryDFDZ2bpSbrklUAZU,48479
13
13
  wordlift_client/api/add_ons_api.py,sha256=BshQhozQWz1r9VGRFXwfUQF46kqoXXhiQvngGwAuDu4,12439
14
14
  wordlift_client/api/agent_api.py,sha256=2UwVNrNKWTPWYWS5TJm2Cucn5i9n3DiaKvcIn5Ol7YI,11591
15
- wordlift_client/api/analyses_api.py,sha256=-apdKkNMHjeL43DcLVWJiCbl2vSNAaWrMQKZIEYduII,42549
15
+ wordlift_client/api/analyses_api.py,sha256=S4VB2WoTG5WuPdg4xdrLfAR47YrUQzNmoVmVSTdcdvk,42549
16
16
  wordlift_client/api/analytics_imports_api.py,sha256=3H2K6QLm7gFck67KCnIXLrKbxsKwjteNgTHD1utDE3s,11969
17
17
  wordlift_client/api/analytics_syncs_api.py,sha256=yblLuk2iz9zjqT8rRkmVb7C1rPPxmOcLFnuMpSqq3-Q,22587
18
18
  wordlift_client/api/authors_api.py,sha256=YlGTulVByNBPIAeeLc9nBL3V_INiaoRjXFshfIagNYk,11447
@@ -25,15 +25,15 @@ wordlift_client/api/content_generation_completion_api.py,sha256=GL_4rNcsMmJWPXb-
25
25
  wordlift_client/api/content_generation_fields_api.py,sha256=UXoNJOe2w6ZYY9Gq50idMet9pPQ-sTqtwjzB5qBsXSg,22795
26
26
  wordlift_client/api/content_generation_models_api.py,sha256=9iCesCG0ER4RvxLt8dbigp1sfOJiD-8STdiOJtnvX5M,11580
27
27
  wordlift_client/api/content_generation_presets_api.py,sha256=4joeSIw0rH8SD4v5eoFJfqOv8KcI1UwHWydN3DFRoQs,11610
28
- wordlift_client/api/content_generation_records_api.py,sha256=osWm9Sxmp8Gsd9FyF--8zi7Zgqflbgef3oHp2J4_uiE,69584
28
+ wordlift_client/api/content_generation_records_api.py,sha256=LtSPj52Fdj4OqPhPOnbrjEP4b4OGqkhbvmcaAFo_M4w,69584
29
29
  wordlift_client/api/content_generation_records_export_api.py,sha256=8MBJJQu6dMzNp9zF4Qq9_dG5EcV5LP8JNDFyF0LezPY,11042
30
30
  wordlift_client/api/content_generation_renders_api.py,sha256=fgAfCPrQEqH-lRcmHKXzHSUTih9taY4UGSRCFIdhGWQ,22482
31
- wordlift_client/api/content_generation_stats_api.py,sha256=GosCyzmSAVixt-nU2D8IXq7qndTpbGjosIHOyZbHBPQ,11276
32
- wordlift_client/api/content_generation_syncs_api.py,sha256=LpEScXGKphVK6NlqTP4mG6FSM95LtAGW3F7Cv1M_q6o,10903
31
+ wordlift_client/api/content_generation_stats_api.py,sha256=caf_h5GL1Hwf5c4tz5h6ZF_FcOc5PWowogAMPzh8DoU,11276
32
+ wordlift_client/api/content_generation_syncs_api.py,sha256=QMHjH-spkzX8tJEFFAWCAzDZXAFcwsyEYB6bR2QJkug,10896
33
33
  wordlift_client/api/content_generation_word_biases_api.py,sha256=CXG9nRJOZ1oid00-O95o-POVfx6L_wRWvj9m4hj4EAw,69338
34
34
  wordlift_client/api/content_generations_api.py,sha256=kGWaT5YqqQevaFP-RHvceewI1MhvZXp3k5W1FhKvzAE,64419
35
35
  wordlift_client/api/custom_domains_api.py,sha256=LuKLllZaBA9k7W3SBRP4gKDLoF3liCpgffnCdUjZvZ4,11736
36
- wordlift_client/api/data_uri_api.py,sha256=HZaFah-gdENyU79a89Sz3c5p1BlfOsSD2r-j8p7rC2o,10860
36
+ wordlift_client/api/data_uri_api.py,sha256=pLZRk1-LHBq65MYmWOjek7u3LOdlRAFoIXDm0V_zX-Q,10860
37
37
  wordlift_client/api/dataset_api.py,sha256=1HI7Ssmvx5mFLZa_Xldq944GdgLiTF7mY7pU6mbfjj8,42369
38
38
  wordlift_client/api/default_api.py,sha256=yxtYQghfU_e_UAB5crSS1YTqV725mtlsv2QSKz2VIg4,11335
39
39
  wordlift_client/api/embedding_api.py,sha256=Sigezg2srkeVYFXE7dP9gZXx5lZ1k9W0VbZFfxO5iOs,11667
@@ -50,19 +50,19 @@ wordlift_client/api/graph_ql_api.py,sha256=6yVvt7Wb1APb08ZH8ZoMctdtn_Y4KhRvFed8f
50
50
  wordlift_client/api/image_to_text_api.py,sha256=5rlEdcn48P6ZG18Xp6EBTIF_2eBmCRxpIHaPO6M8Ons,11974
51
51
  wordlift_client/api/include_excludes_api.py,sha256=VkAiiIPIHyIDRh77A2J6upXDuDYQYmU83RmAFduq4Wk,21592
52
52
  wordlift_client/api/include_excludes_word_press_plugin_api.py,sha256=rpJx3UQIH0ro6lmdo3N6Zs3kQyjBUIrx6cgaqRzzlWQ,22677
53
- wordlift_client/api/inspector_api.py,sha256=-ehhF-m4RAxRyU0YRycqGqdoF9F1CCm3QnFLvHeuRUs,13254
53
+ wordlift_client/api/inspector_api.py,sha256=WJlDSbsutomdTTWZxyS6hNMyCX_SOhya-YiM8eUXRAA,13261
54
54
  wordlift_client/api/internal_links_api.py,sha256=8_zUtLpdu9dlMuBfeDXeIDGkfib9qJBpXFwN0ofcGC8,22262
55
55
  wordlift_client/api/long_tails_api.py,sha256=IGAndSFSOzbbArcHt77kqByjYCQHCx8xG7dNNRplwNc,41132
56
- wordlift_client/api/merchant_syncs_api.py,sha256=DqWJ0cTCGhf9J_AuYqoKMStDmGDJy6cC46xkfL--FpM,33908
56
+ wordlift_client/api/merchant_syncs_api.py,sha256=JjxWk_Msl49bGUG0Ih7IytPpZKBuWRZ0h9n4PdrpEN8,33915
57
57
  wordlift_client/api/merchants_api.py,sha256=LmXtyqjDpD_adnSmJkILtYuLxtUrGv6hsTcIj6RfQvw,53325
58
58
  wordlift_client/api/microdata_api.py,sha256=4GGa3lGseAvplF_1f08XvHJTjdW3RSRRhQ9NQosM7Bo,11150
59
59
  wordlift_client/api/o_auth2_authorized_clients_api.py,sha256=tFMfXQyTHWLakkbsZaybIN2Vs7VbKzKCJ2nBf7elZn4,54309
60
- wordlift_client/api/platform_consumptions_api.py,sha256=yGNeqNtAm6iiaj2DSUIJ_NcIdIEjvgSHIzGHzcm2urA,23599
60
+ wordlift_client/api/platform_consumptions_api.py,sha256=VWxF-mDh1zDVSSKGzEk60V-yI8-tmy5A3IpWH5FZB04,33097
61
61
  wordlift_client/api/platform_limits_api.py,sha256=TpcTfw04rEYGctHe5rMNzdV0HRDN1JeNkh78WyjqEOI,55869
62
62
  wordlift_client/api/plugin_diagnostics_api.py,sha256=qB3JbZSYIKPIcwVOYWD8EsBflldHkaTGkXw9q72A59g,12536
63
- wordlift_client/api/plugin_events_api.py,sha256=9AcXcai78dpseWIcfSHDU6s5XQa2G27GsJEASTKvAqM,25896
63
+ wordlift_client/api/plugin_events_api.py,sha256=knq7Bab7ukTANLRZF-UCNm8Nftoueoc0oWZkEF8GqPo,25860
64
64
  wordlift_client/api/questions_and_answers_api.py,sha256=OME5ucn7_fwj5vHBJgbXC64US58uE-kNDK46pzz5Y8A,75218
65
- wordlift_client/api/redeem_codes_api.py,sha256=CFw8q6iQi7jrnf3RmR-RCoWseCeJZ9mJAuqCK1RxyHg,11429
65
+ wordlift_client/api/redeem_codes_api.py,sha256=zk1NH3qSZud9LB2edFwP5Ap6BPsZAV70rgsgzdbbw2o,11462
66
66
  wordlift_client/api/rules_api.py,sha256=6ESuYM5gHzdzIs1LO69CcnODUXRqnloiHLB6TaGio-M,68256
67
67
  wordlift_client/api/search_analytics_synchronizations_api.py,sha256=fFyx93ILvoHu0jBndT433HPrMmSTGFDxjHBqBgQkz2o,22719
68
68
  wordlift_client/api/seo_scores_api.py,sha256=UoFYPcpJOKxf0cLZuz-6YOkWRXy6bk9W_PXwUcGXSXY,11954
@@ -74,7 +74,7 @@ wordlift_client/api/tokens_api.py,sha256=4jMeBMhi8RMFuoeWQlTqXkNLCABvwfV5rzjt25e
74
74
  wordlift_client/api/vector_search_nodes_api.py,sha256=nMo4inpx6N2xn7_ZLlPVFH861zHjqVAgZ3xPX7L3Mow,11171
75
75
  wordlift_client/api/vector_search_queries_api.py,sha256=_KVcphjWH-dbI0YaJ4fizT0BbA3q2a0Ro3ts5425hb4,11817
76
76
  wordlift_client/api/vector_search_questions_api.py,sha256=XDvyi6y6mRv7nrKnse6XH6V6q7n3FBoX51qzUSDh4WQ,12050
77
- wordlift_client/api/web_asyncs_metadata_api.py,sha256=RElR5jll_Mb7gaAoyHN9JbIVJGMjFkZ7ZV6qowJJJcg,20004
77
+ wordlift_client/api/web_asyncs_metadata_api.py,sha256=cpDQmIGc6uHu5rFXwZAy1cVgcWOb9eTiDe9LUH5pjJA,19997
78
78
  wordlift_client/api/web_asyncs_responses_api.py,sha256=h91xI3iIgGoMUcZ7Oft5xiLy0rHh_2qzZDrFTRz3P8w,10889
79
79
  wordlift_client/api/web_pages_api.py,sha256=VKPLIaQRxxDn3daP0zvXRiHj2eegsZIjxUmHKzxZXoc,10839
80
80
  wordlift_client/api/web_pages_imports_api.py,sha256=yPhNLZ1jV2dEDnYuHb7OpiFH3K2ROrRYHG4ZrAf4VMU,11719
@@ -208,13 +208,13 @@ wordlift_client/models/question_and_answer_request.py,sha256=yPMv-dFIkCkyMD0mwfY
208
208
  wordlift_client/models/rank_entities.py,sha256=bxUpRZh9h2_9xA6uDGDy_27aqntjdzG-IDFp16F7pww,2970
209
209
  wordlift_client/models/record.py,sha256=2OG3oruT9T6tPb7SVf96PWLOm3Z4kO-p7TrOSKSJ42c,7299
210
210
  wordlift_client/models/render_request.py,sha256=wec9Td1ZTqrHG4F1y7eJvM2q2MDnHfHYNi5FbzEGaH4,2754
211
- wordlift_client/models/request.py,sha256=yMOmSi88nwpR05Go9MEat15rcA2wnPyd2Q5_Bh23uZw,2439
212
- wordlift_client/models/request1.py,sha256=_Iky7y3pcQ4C3x0X1GK_6bgiX9vbdzJfEu9Ud9Mj9Do,4644
213
- wordlift_client/models/request2.py,sha256=1KSnR4ThcfpCEHNF4Q14haIEY7atlrPPjepb9kVk6yM,2597
214
- wordlift_client/models/request3.py,sha256=RmmARH4BYbV3uSWD0UAfd0yy8ek905ZBoB4udnb3QHg,3032
215
- wordlift_client/models/response.py,sha256=AUBiSIKM7DAhypo9nhTN1eGzDkAgX4LqXqFWPc9v-iI,2411
216
- wordlift_client/models/response1.py,sha256=9Zt_eU0HITXo-m__BjMxPClcdx2eoiIThLh3K4X0AgA,5346
217
- wordlift_client/models/response2.py,sha256=xQQe2F-sWhkvn0_FY1ST0BxRE2CnH4q2WdJQRrU2mpk,3299
211
+ wordlift_client/models/request.py,sha256=PL7d59qE4VwxM2wLqhnWEBVk_DLJwwUSshwLVu0Foig,2594
212
+ wordlift_client/models/request1.py,sha256=iNQ9jcJ8SbhdxSCVxONprIChgKNkFBG0ausbYLUSlC0,3032
213
+ wordlift_client/models/request2.py,sha256=4ramkLTqM-uTTzSYcp_2mqTcI5fLQGgS9o_SG85Gm4U,2443
214
+ wordlift_client/models/request3.py,sha256=hx2ycjXnT98175_dz-neeWbUbLpr0SJN_lO7czXAixY,4644
215
+ wordlift_client/models/response.py,sha256=wCYFHFjegG9LEb4IeYWiv3FbDwHuujWqriILi_iY-pE,3295
216
+ wordlift_client/models/response1.py,sha256=ua6ENkrgFI_AFa7ABfAugTcvOp7Q5Ki2BrAdVAOHbgo,2415
217
+ wordlift_client/models/response2.py,sha256=8ZNs6RJIVuUtUMcH2Nvdrc8d4syJ5DkF9SRkbRqpnbY,5346
218
218
  wordlift_client/models/rule.py,sha256=23YiNYJrMuFG4FYjBtDHmlS1H_zLFIb190Y7wTY_WQU,5679
219
219
  wordlift_client/models/rule_request.py,sha256=LlSs39bL6JG00IFNrhX0NyVe7VsW5nE8p1Lvo0HZ_bI,5186
220
220
  wordlift_client/models/scope.py,sha256=VwGzE4WpI5IwFwjJ-E00a0VfUHQhfOFvAEB4KW73hmE,676
@@ -255,8 +255,8 @@ wordlift_client/models/with_limits.py,sha256=9I6-JNIb8pgUfVUegNqTc3YNx0micXUTpDo
255
255
  wordlift_client/models/word.py,sha256=FPCGb6ohwdfydE5_qG4PT-UrnMzaTktAWqEEnezwaso,3922
256
256
  wordlift_client/models/word_repetition_data.py,sha256=CQnxCnhakt12czl6a_AQIPgHlJtvR9YGBIjGV22rq14,2659
257
257
  wordlift_client/models/word_request.py,sha256=ZD13xNRYCZmF14jxEDrRRyEMAd-quDT-HsqkbUP_xWU,2627
258
- wordlift_client-1.112.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
259
- wordlift_client-1.112.0.dist-info/METADATA,sha256=HTD5hrvz42s347D08Pj6LMeTBwujwHuN9W4lrnixUZw,530
260
- wordlift_client-1.112.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
261
- wordlift_client-1.112.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
262
- wordlift_client-1.112.0.dist-info/RECORD,,
258
+ wordlift_client-1.113.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
259
+ wordlift_client-1.113.0.dist-info/METADATA,sha256=KxQPDGmP_-CiX-L8-zZHHk3tEyjI7btKOtlLnCKwDl8,530
260
+ wordlift_client-1.113.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
261
+ wordlift_client-1.113.0.dist-info/top_level.txt,sha256=p7KFYU869ksxkpP7ADvg8baPgWkTYCzcOpDl1qrJdHk,16
262
+ wordlift_client-1.113.0.dist-info/RECORD,,