neurograph-core 1.202508152055__py3-none-any.whl → 1.202508201827__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.
- neurograph/v1/__init__.py +14 -4
- neurograph/v1/api/__init__.py +1 -0
- neurograph/v1/api/client_api.py +53 -53
- neurograph/v1/api/client_metadata_api.py +19 -19
- neurograph/v1/api/dagster_api.py +306 -0
- neurograph/v1/api/organization_api.py +281 -13
- neurograph/v1/api/organization_metadata_api.py +19 -19
- neurograph/v1/api/workbench_api.py +3 -3
- neurograph/v1/models/__init__.py +6 -2
- neurograph/v1/models/client_client.py +4 -4
- neurograph/v1/models/client_client_upsert_request.py +95 -0
- neurograph/v1/models/client_client_upsert_response.py +111 -0
- neurograph/v1/models/client_client_url_upsert_request.py +4 -4
- neurograph/v1/models/client_client_url_upsert_response.py +14 -7
- neurograph/v1/models/client_client_urls_response.py +1 -1
- neurograph/v1/models/client_kpi.py +1 -1
- neurograph/v1/models/client_metadata.py +3 -3
- neurograph/v1/models/client_persona.py +4 -4
- neurograph/v1/models/client_persona_factor.py +1 -1
- neurograph/v1/models/client_persona_personality_trait.py +1 -1
- neurograph/v1/models/client_query.py +1 -1
- neurograph/v1/models/dagster_dagster_log_create_request.py +93 -0
- neurograph/v1/models/dagster_dagster_log_create_response.py +91 -0
- neurograph/v1/models/db_client_url.py +14 -7
- neurograph/v1/models/db_persona_factor_create_params.py +1 -1
- neurograph/v1/models/organizations_brand_detail_response.py +2 -2
- neurograph/v1/models/organizations_brand_upsert_request.py +2 -2
- neurograph/v1/models/organizations_metadata.py +3 -3
- neurograph/v1/models/organizations_organization.py +1 -1
- neurograph/v1/models/organizations_organization_detail_response.py +1 -1
- neurograph/v1/models/organizations_organization_set_workbench_request.py +2 -2
- neurograph/v1/models/organizations_organization_set_workbench_response.py +2 -2
- neurograph/v1/models/organizations_organization_update_request.py +4 -4
- neurograph/v1/models/organizations_workbench_config.py +2 -2
- neurograph/v1/models/personas_delete_many_persona_instances_request.py +2 -2
- neurograph/v1/models/personas_kpi.py +1 -1
- neurograph/v1/models/personas_match_criteria_row.py +1 -1
- neurograph/v1/models/personas_match_criteria_row_in.py +2 -2
- neurograph/v1/models/personas_persona.py +4 -4
- neurograph/v1/models/personas_persona_factor.py +1 -1
- neurograph/v1/models/personas_persona_factor_resp.py +1 -1
- neurograph/v1/models/personas_persona_insight_create_request.py +2 -2
- neurograph/v1/models/personas_persona_insight_create_response.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_request.py +1 -1
- neurograph/v1/models/personas_persona_instance_create_response.py +2 -2
- neurograph/v1/models/personas_persona_instances_delete_response.py +2 -2
- neurograph/v1/models/personas_persona_kpi_req.py +2 -2
- neurograph/v1/models/personas_persona_kpi_resp.py +1 -1
- neurograph/v1/models/personas_persona_personality_trait.py +1 -1
- neurograph/v1/models/personas_persona_seed_create_request.py +2 -2
- neurograph/v1/models/personas_persona_seed_create_response.py +3 -3
- neurograph/v1/models/personas_persona_seeds_delete_request.py +2 -2
- neurograph/v1/models/personas_persona_seeds_delete_response.py +2 -2
- neurograph/v1/models/personas_personality_trait_in.py +2 -2
- neurograph/v1/models/personas_personality_trait_out.py +1 -1
- neurograph/v1/models/pgtype_infinity_modifier.py +38 -0
- neurograph/v1/models/pgtype_timestamp.py +92 -0
- neurograph/v1/models/workbench_workbench_version.py +3 -3
- neurograph/v1/models/workbench_workbench_version_response.py +3 -3
- neurograph/v1/models/workbench_workbench_version_upsert_request.py +2 -2
- {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +1 -1
- {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +64 -57
- {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508152055.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field,
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
21
|
from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest
|
|
22
22
|
from neurograph.v1.models.organizations_delete_metadata_response import OrganizationsDeleteMetadataResponse
|
|
@@ -44,7 +44,7 @@ class OrganizationMetadataApi:
|
|
|
44
44
|
@validate_call
|
|
45
45
|
def api_v1_organization_metadata_org_id_delete(
|
|
46
46
|
self,
|
|
47
|
-
org_id: Annotated[
|
|
47
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
48
48
|
request: Annotated[OrganizationsDeleteMetadataRequest, Field(description="Body")],
|
|
49
49
|
_request_timeout: Union[
|
|
50
50
|
None,
|
|
@@ -64,7 +64,7 @@ class OrganizationMetadataApi:
|
|
|
64
64
|
Delete's the given row and returns the remaining metadata
|
|
65
65
|
|
|
66
66
|
:param org_id: Organization ID (required)
|
|
67
|
-
:type org_id:
|
|
67
|
+
:type org_id: str
|
|
68
68
|
:param request: Body (required)
|
|
69
69
|
:type request: OrganizationsDeleteMetadataRequest
|
|
70
70
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -117,7 +117,7 @@ class OrganizationMetadataApi:
|
|
|
117
117
|
@validate_call
|
|
118
118
|
def api_v1_organization_metadata_org_id_delete_with_http_info(
|
|
119
119
|
self,
|
|
120
|
-
org_id: Annotated[
|
|
120
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
121
121
|
request: Annotated[OrganizationsDeleteMetadataRequest, Field(description="Body")],
|
|
122
122
|
_request_timeout: Union[
|
|
123
123
|
None,
|
|
@@ -137,7 +137,7 @@ class OrganizationMetadataApi:
|
|
|
137
137
|
Delete's the given row and returns the remaining metadata
|
|
138
138
|
|
|
139
139
|
:param org_id: Organization ID (required)
|
|
140
|
-
:type org_id:
|
|
140
|
+
:type org_id: str
|
|
141
141
|
:param request: Body (required)
|
|
142
142
|
:type request: OrganizationsDeleteMetadataRequest
|
|
143
143
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -190,7 +190,7 @@ class OrganizationMetadataApi:
|
|
|
190
190
|
@validate_call
|
|
191
191
|
def api_v1_organization_metadata_org_id_delete_without_preload_content(
|
|
192
192
|
self,
|
|
193
|
-
org_id: Annotated[
|
|
193
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
194
194
|
request: Annotated[OrganizationsDeleteMetadataRequest, Field(description="Body")],
|
|
195
195
|
_request_timeout: Union[
|
|
196
196
|
None,
|
|
@@ -210,7 +210,7 @@ class OrganizationMetadataApi:
|
|
|
210
210
|
Delete's the given row and returns the remaining metadata
|
|
211
211
|
|
|
212
212
|
:param org_id: Organization ID (required)
|
|
213
|
-
:type org_id:
|
|
213
|
+
:type org_id: str
|
|
214
214
|
:param request: Body (required)
|
|
215
215
|
:type request: OrganizationsDeleteMetadataRequest
|
|
216
216
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -327,7 +327,7 @@ class OrganizationMetadataApi:
|
|
|
327
327
|
@validate_call
|
|
328
328
|
def api_v1_organization_metadata_org_id_get(
|
|
329
329
|
self,
|
|
330
|
-
org_id: Annotated[
|
|
330
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
331
331
|
_request_timeout: Union[
|
|
332
332
|
None,
|
|
333
333
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -346,7 +346,7 @@ class OrganizationMetadataApi:
|
|
|
346
346
|
Returns all metadata for a given org id
|
|
347
347
|
|
|
348
348
|
:param org_id: Organization ID (required)
|
|
349
|
-
:type org_id:
|
|
349
|
+
:type org_id: str
|
|
350
350
|
:param _request_timeout: timeout setting for this request. If one
|
|
351
351
|
number provided, it will be total request
|
|
352
352
|
timeout. It can also be a pair (tuple) of
|
|
@@ -396,7 +396,7 @@ class OrganizationMetadataApi:
|
|
|
396
396
|
@validate_call
|
|
397
397
|
def api_v1_organization_metadata_org_id_get_with_http_info(
|
|
398
398
|
self,
|
|
399
|
-
org_id: Annotated[
|
|
399
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
400
400
|
_request_timeout: Union[
|
|
401
401
|
None,
|
|
402
402
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -415,7 +415,7 @@ class OrganizationMetadataApi:
|
|
|
415
415
|
Returns all metadata for a given org id
|
|
416
416
|
|
|
417
417
|
:param org_id: Organization ID (required)
|
|
418
|
-
:type org_id:
|
|
418
|
+
:type org_id: str
|
|
419
419
|
:param _request_timeout: timeout setting for this request. If one
|
|
420
420
|
number provided, it will be total request
|
|
421
421
|
timeout. It can also be a pair (tuple) of
|
|
@@ -465,7 +465,7 @@ class OrganizationMetadataApi:
|
|
|
465
465
|
@validate_call
|
|
466
466
|
def api_v1_organization_metadata_org_id_get_without_preload_content(
|
|
467
467
|
self,
|
|
468
|
-
org_id: Annotated[
|
|
468
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
469
469
|
_request_timeout: Union[
|
|
470
470
|
None,
|
|
471
471
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -484,7 +484,7 @@ class OrganizationMetadataApi:
|
|
|
484
484
|
Returns all metadata for a given org id
|
|
485
485
|
|
|
486
486
|
:param org_id: Organization ID (required)
|
|
487
|
-
:type org_id:
|
|
487
|
+
:type org_id: str
|
|
488
488
|
:param _request_timeout: timeout setting for this request. If one
|
|
489
489
|
number provided, it will be total request
|
|
490
490
|
timeout. It can also be a pair (tuple) of
|
|
@@ -595,7 +595,7 @@ class OrganizationMetadataApi:
|
|
|
595
595
|
@validate_call
|
|
596
596
|
def api_v1_organization_metadata_org_id_post(
|
|
597
597
|
self,
|
|
598
|
-
org_id: Annotated[
|
|
598
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
599
599
|
request: Annotated[OrganizationsOrganizationMetadataRequest, Field(description="Body")],
|
|
600
600
|
_request_timeout: Union[
|
|
601
601
|
None,
|
|
@@ -615,7 +615,7 @@ class OrganizationMetadataApi:
|
|
|
615
615
|
Create a metadata for the given organization id
|
|
616
616
|
|
|
617
617
|
:param org_id: Organization ID (required)
|
|
618
|
-
:type org_id:
|
|
618
|
+
:type org_id: str
|
|
619
619
|
:param request: Body (required)
|
|
620
620
|
:type request: OrganizationsOrganizationMetadataRequest
|
|
621
621
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -668,7 +668,7 @@ class OrganizationMetadataApi:
|
|
|
668
668
|
@validate_call
|
|
669
669
|
def api_v1_organization_metadata_org_id_post_with_http_info(
|
|
670
670
|
self,
|
|
671
|
-
org_id: Annotated[
|
|
671
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
672
672
|
request: Annotated[OrganizationsOrganizationMetadataRequest, Field(description="Body")],
|
|
673
673
|
_request_timeout: Union[
|
|
674
674
|
None,
|
|
@@ -688,7 +688,7 @@ class OrganizationMetadataApi:
|
|
|
688
688
|
Create a metadata for the given organization id
|
|
689
689
|
|
|
690
690
|
:param org_id: Organization ID (required)
|
|
691
|
-
:type org_id:
|
|
691
|
+
:type org_id: str
|
|
692
692
|
:param request: Body (required)
|
|
693
693
|
:type request: OrganizationsOrganizationMetadataRequest
|
|
694
694
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -741,7 +741,7 @@ class OrganizationMetadataApi:
|
|
|
741
741
|
@validate_call
|
|
742
742
|
def api_v1_organization_metadata_org_id_post_without_preload_content(
|
|
743
743
|
self,
|
|
744
|
-
org_id: Annotated[
|
|
744
|
+
org_id: Annotated[StrictStr, Field(description="Organization ID")],
|
|
745
745
|
request: Annotated[OrganizationsOrganizationMetadataRequest, Field(description="Body")],
|
|
746
746
|
_request_timeout: Union[
|
|
747
747
|
None,
|
|
@@ -761,7 +761,7 @@ class OrganizationMetadataApi:
|
|
|
761
761
|
Create a metadata for the given organization id
|
|
762
762
|
|
|
763
763
|
:param org_id: Organization ID (required)
|
|
764
|
-
:type org_id:
|
|
764
|
+
:type org_id: str
|
|
765
765
|
:param request: Body (required)
|
|
766
766
|
:type request: OrganizationsOrganizationMetadataRequest
|
|
767
767
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -609,7 +609,7 @@ class WorkbenchApi:
|
|
|
609
609
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
610
610
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
611
611
|
) -> WorkbenchWorkbenchVersionResponse:
|
|
612
|
-
"""
|
|
612
|
+
"""Upsert a Workbench Version
|
|
613
613
|
|
|
614
614
|
Inserts a Workbench Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
615
615
|
|
|
@@ -678,7 +678,7 @@ class WorkbenchApi:
|
|
|
678
678
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
679
679
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
680
680
|
) -> ApiResponse[WorkbenchWorkbenchVersionResponse]:
|
|
681
|
-
"""
|
|
681
|
+
"""Upsert a Workbench Version
|
|
682
682
|
|
|
683
683
|
Inserts a Workbench Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
684
684
|
|
|
@@ -747,7 +747,7 @@ class WorkbenchApi:
|
|
|
747
747
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
748
748
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
749
749
|
) -> RESTResponseType:
|
|
750
|
-
"""
|
|
750
|
+
"""Upsert a Workbench Version
|
|
751
751
|
|
|
752
752
|
Inserts a Workbench Version into the db when the `id` is `0`. Updates when the `id` is `1` or greater. Config is intended to be a JSON object, or null.
|
|
753
753
|
|
neurograph/v1/models/__init__.py
CHANGED
|
@@ -19,13 +19,13 @@ from neurograph.v1.models.auth_test_service_token_request import AuthTestService
|
|
|
19
19
|
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
|
|
20
20
|
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
|
|
21
21
|
from neurograph.v1.models.client_client import ClientClient
|
|
22
|
-
from neurograph.v1.models.client_client_creat_response import ClientClientCreatResponse
|
|
23
|
-
from neurograph.v1.models.client_client_create_request import ClientClientCreateRequest
|
|
24
22
|
from neurograph.v1.models.client_client_get_detail_response import ClientClientGetDetailResponse
|
|
25
23
|
from neurograph.v1.models.client_client_get_many_response import ClientClientGetManyResponse
|
|
26
24
|
from neurograph.v1.models.client_client_metadata_request import ClientClientMetadataRequest
|
|
27
25
|
from neurograph.v1.models.client_client_metadata_response import ClientClientMetadataResponse
|
|
28
26
|
from neurograph.v1.models.client_client_personas_response import ClientClientPersonasResponse
|
|
27
|
+
from neurograph.v1.models.client_client_upsert_request import ClientClientUpsertRequest
|
|
28
|
+
from neurograph.v1.models.client_client_upsert_response import ClientClientUpsertResponse
|
|
29
29
|
from neurograph.v1.models.client_client_url_upsert_request import ClientClientUrlUpsertRequest
|
|
30
30
|
from neurograph.v1.models.client_client_url_upsert_response import ClientClientUrlUpsertResponse
|
|
31
31
|
from neurograph.v1.models.client_client_urls_response import ClientClientUrlsResponse
|
|
@@ -37,6 +37,8 @@ from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
|
|
|
37
37
|
from neurograph.v1.models.client_persona_insight import ClientPersonaInsight
|
|
38
38
|
from neurograph.v1.models.client_persona_personality_trait import ClientPersonaPersonalityTrait
|
|
39
39
|
from neurograph.v1.models.client_query import ClientQuery
|
|
40
|
+
from neurograph.v1.models.dagster_dagster_log_create_request import DagsterDagsterLogCreateRequest
|
|
41
|
+
from neurograph.v1.models.dagster_dagster_log_create_response import DagsterDagsterLogCreateResponse
|
|
40
42
|
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
41
43
|
from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
|
|
42
44
|
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
@@ -92,6 +94,8 @@ from neurograph.v1.models.personas_persona_trait_create_request import PersonasP
|
|
|
92
94
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
|
|
93
95
|
from neurograph.v1.models.personas_personality_trait_in import PersonasPersonalityTraitIn
|
|
94
96
|
from neurograph.v1.models.personas_personality_trait_out import PersonasPersonalityTraitOut
|
|
97
|
+
from neurograph.v1.models.pgtype_infinity_modifier import PgtypeInfinityModifier
|
|
98
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
95
99
|
from neurograph.v1.models.tasks_sync_from_firebase_result import TasksSyncFromFirebaseResult
|
|
96
100
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
97
101
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
@@ -27,12 +27,12 @@ class ClientClient(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
ClientClient
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
id: Optional[
|
|
30
|
+
id: Optional[StrictStr] = None
|
|
31
31
|
is_active: Optional[StrictBool] = None
|
|
32
32
|
name: Optional[StrictStr] = None
|
|
33
|
-
org_id: Optional[
|
|
34
|
-
ts_created: Optional[
|
|
35
|
-
ts_updated: Optional[
|
|
33
|
+
org_id: Optional[StrictStr] = None
|
|
34
|
+
ts_created: Optional[StrictInt] = None
|
|
35
|
+
ts_updated: Optional[StrictInt] = None
|
|
36
36
|
uid: Optional[StrictStr] = None
|
|
37
37
|
urls: Optional[List[DbClientUrl]] = None
|
|
38
38
|
__properties: ClassVar[List[str]] = ["id", "is_active", "name", "org_id", "ts_created", "ts_updated", "uid", "urls"]
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class ClientClientUpsertRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
ClientClientUpsertRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: Optional[StrictStr] = None
|
|
30
|
+
is_active: Optional[StrictBool] = None
|
|
31
|
+
name: Optional[StrictStr] = None
|
|
32
|
+
org_id: Optional[StrictStr] = None
|
|
33
|
+
uid: Optional[StrictStr] = None
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "is_active", "name", "org_id", "uid"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of ClientClientUpsertRequest from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of ClientClientUpsertRequest from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"id": obj.get("id"),
|
|
88
|
+
"is_active": obj.get("is_active"),
|
|
89
|
+
"name": obj.get("name"),
|
|
90
|
+
"org_id": obj.get("org_id"),
|
|
91
|
+
"uid": obj.get("uid")
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
95
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Neurograph Core
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class ClientClientUpsertResponse(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
ClientClientUpsertResponse
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
error: Optional[StrictStr] = None
|
|
31
|
+
id: Optional[StrictStr] = None
|
|
32
|
+
is_active: Optional[StrictBool] = None
|
|
33
|
+
name: Optional[StrictStr] = None
|
|
34
|
+
org_id: Optional[StrictStr] = None
|
|
35
|
+
ts_created: Optional[StrictInt] = None
|
|
36
|
+
ts_updated: Optional[StrictInt] = None
|
|
37
|
+
uid: Optional[StrictStr] = None
|
|
38
|
+
urls: Optional[List[DbClientUrl]] = None
|
|
39
|
+
__properties: ClassVar[List[str]] = ["error", "id", "is_active", "name", "org_id", "ts_created", "ts_updated", "uid", "urls"]
|
|
40
|
+
|
|
41
|
+
model_config = ConfigDict(
|
|
42
|
+
populate_by_name=True,
|
|
43
|
+
validate_assignment=True,
|
|
44
|
+
protected_namespaces=(),
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def to_str(self) -> str:
|
|
49
|
+
"""Returns the string representation of the model using alias"""
|
|
50
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
51
|
+
|
|
52
|
+
def to_json(self) -> str:
|
|
53
|
+
"""Returns the JSON representation of the model using alias"""
|
|
54
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
55
|
+
return json.dumps(self.to_dict())
|
|
56
|
+
|
|
57
|
+
@classmethod
|
|
58
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
59
|
+
"""Create an instance of ClientClientUpsertResponse from a JSON string"""
|
|
60
|
+
return cls.from_dict(json.loads(json_str))
|
|
61
|
+
|
|
62
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
63
|
+
"""Return the dictionary representation of the model using alias.
|
|
64
|
+
|
|
65
|
+
This has the following differences from calling pydantic's
|
|
66
|
+
`self.model_dump(by_alias=True)`:
|
|
67
|
+
|
|
68
|
+
* `None` is only added to the output dict for nullable fields that
|
|
69
|
+
were set at model initialization. Other fields with value `None`
|
|
70
|
+
are ignored.
|
|
71
|
+
"""
|
|
72
|
+
excluded_fields: Set[str] = set([
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each item in urls (list)
|
|
81
|
+
_items = []
|
|
82
|
+
if self.urls:
|
|
83
|
+
for _item_urls in self.urls:
|
|
84
|
+
if _item_urls:
|
|
85
|
+
_items.append(_item_urls.to_dict())
|
|
86
|
+
_dict['urls'] = _items
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of ClientClientUpsertResponse from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"error": obj.get("error"),
|
|
100
|
+
"id": obj.get("id"),
|
|
101
|
+
"is_active": obj.get("is_active"),
|
|
102
|
+
"name": obj.get("name"),
|
|
103
|
+
"org_id": obj.get("org_id"),
|
|
104
|
+
"ts_created": obj.get("ts_created"),
|
|
105
|
+
"ts_updated": obj.get("ts_updated"),
|
|
106
|
+
"uid": obj.get("uid"),
|
|
107
|
+
"urls": [DbClientUrl.from_dict(_item) for _item in obj["urls"]] if obj.get("urls") is not None else None
|
|
108
|
+
})
|
|
109
|
+
return _obj
|
|
110
|
+
|
|
111
|
+
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictBool,
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -26,12 +26,12 @@ class ClientClientUrlUpsertRequest(BaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
ClientClientUrlUpsertRequest
|
|
28
28
|
""" # noqa: E501
|
|
29
|
-
client_id: Optional[
|
|
29
|
+
client_id: Optional[StrictStr] = None
|
|
30
30
|
environment: Optional[StrictStr] = None
|
|
31
|
-
id: Optional[
|
|
31
|
+
id: Optional[StrictStr] = None
|
|
32
32
|
is_active: Optional[StrictBool] = None
|
|
33
33
|
is_silent: Optional[StrictBool] = None
|
|
34
|
-
pixel_version_id: Optional[
|
|
34
|
+
pixel_version_id: Optional[StrictStr] = None
|
|
35
35
|
url: Optional[StrictStr] = None
|
|
36
36
|
__properties: ClassVar[List[str]] = ["client_id", "environment", "id", "is_active", "is_silent", "pixel_version_id", "url"]
|
|
37
37
|
|
|
@@ -17,8 +17,9 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictBool,
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from neurograph.v1.models.pgtype_timestamp import PgtypeTimestamp
|
|
22
23
|
from typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
24
25
|
|
|
@@ -26,13 +27,13 @@ class ClientClientUrlUpsertResponse(BaseModel):
|
|
|
26
27
|
"""
|
|
27
28
|
ClientClientUrlUpsertResponse
|
|
28
29
|
""" # noqa: E501
|
|
29
|
-
client_id: Optional[
|
|
30
|
+
client_id: Optional[StrictStr] = None
|
|
30
31
|
environment: Optional[StrictStr] = None
|
|
31
32
|
error: Optional[StrictStr] = None
|
|
32
|
-
id: Optional[
|
|
33
|
+
id: Optional[StrictStr] = None
|
|
33
34
|
is_active: Optional[StrictBool] = None
|
|
34
|
-
ts_created: Optional[
|
|
35
|
-
ts_updated: Optional[
|
|
35
|
+
ts_created: Optional[PgtypeTimestamp] = None
|
|
36
|
+
ts_updated: Optional[PgtypeTimestamp] = None
|
|
36
37
|
url: Optional[StrictStr] = None
|
|
37
38
|
__properties: ClassVar[List[str]] = ["client_id", "environment", "error", "id", "is_active", "ts_created", "ts_updated", "url"]
|
|
38
39
|
|
|
@@ -75,6 +76,12 @@ class ClientClientUrlUpsertResponse(BaseModel):
|
|
|
75
76
|
exclude=excluded_fields,
|
|
76
77
|
exclude_none=True,
|
|
77
78
|
)
|
|
79
|
+
# override the default output from pydantic by calling `to_dict()` of ts_created
|
|
80
|
+
if self.ts_created:
|
|
81
|
+
_dict['ts_created'] = self.ts_created.to_dict()
|
|
82
|
+
# override the default output from pydantic by calling `to_dict()` of ts_updated
|
|
83
|
+
if self.ts_updated:
|
|
84
|
+
_dict['ts_updated'] = self.ts_updated.to_dict()
|
|
78
85
|
return _dict
|
|
79
86
|
|
|
80
87
|
@classmethod
|
|
@@ -92,8 +99,8 @@ class ClientClientUrlUpsertResponse(BaseModel):
|
|
|
92
99
|
"error": obj.get("error"),
|
|
93
100
|
"id": obj.get("id"),
|
|
94
101
|
"is_active": obj.get("is_active"),
|
|
95
|
-
"ts_created": obj.get("ts_created"),
|
|
96
|
-
"ts_updated": obj.get("ts_updated"),
|
|
102
|
+
"ts_created": PgtypeTimestamp.from_dict(obj["ts_created"]) if obj.get("ts_created") is not None else None,
|
|
103
|
+
"ts_updated": PgtypeTimestamp.from_dict(obj["ts_updated"]) if obj.get("ts_updated") is not None else None,
|
|
97
104
|
"url": obj.get("url")
|
|
98
105
|
})
|
|
99
106
|
return _obj
|
|
@@ -29,7 +29,7 @@ class ClientClientUrlsResponse(BaseModel):
|
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
data: Optional[List[DbClientUrl]] = None
|
|
31
31
|
error: Optional[StrictStr] = None
|
|
32
|
-
query_client_id: Optional[
|
|
32
|
+
query_client_id: Optional[StrictStr] = None
|
|
33
33
|
total_rows: Optional[StrictInt] = None
|
|
34
34
|
__properties: ClassVar[List[str]] = ["data", "error", "query_client_id", "total_rows"]
|
|
35
35
|
|
|
@@ -28,7 +28,7 @@ class ClientKpi(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictInt] = None
|
|
30
30
|
name: Optional[StrictStr] = None
|
|
31
|
-
persona_instance_id: Optional[
|
|
31
|
+
persona_instance_id: Optional[StrictStr] = None
|
|
32
32
|
value: Optional[StrictStr] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["id", "name", "persona_instance_id", "value"]
|
|
34
34
|
|
|
@@ -17,7 +17,7 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
@@ -27,8 +27,8 @@ class ClientMetadata(BaseModel):
|
|
|
27
27
|
ClientMetadata
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
key: Optional[StrictStr] = None
|
|
30
|
-
ts_created: Optional[
|
|
31
|
-
ts_updated: Optional[
|
|
30
|
+
ts_created: Optional[StrictInt] = None
|
|
31
|
+
ts_updated: Optional[StrictInt] = None
|
|
32
32
|
value: Optional[StrictStr] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["key", "ts_created", "ts_updated", "value"]
|
|
34
34
|
|
|
@@ -34,14 +34,14 @@ class ClientPersona(BaseModel):
|
|
|
34
34
|
description: Optional[StrictStr] = None
|
|
35
35
|
factors: Optional[List[ClientPersonaFactor]] = None
|
|
36
36
|
female: Optional[Union[StrictFloat, StrictInt]] = None
|
|
37
|
-
id: Optional[
|
|
37
|
+
id: Optional[StrictStr] = None
|
|
38
38
|
income: Optional[StrictStr] = None
|
|
39
39
|
insights: Optional[List[ClientPersonaInsight]] = None
|
|
40
40
|
kpis: Optional[List[ClientKpi]] = None
|
|
41
41
|
male: Optional[Union[StrictFloat, StrictInt]] = None
|
|
42
42
|
metadata: Optional[StrictStr] = None
|
|
43
43
|
name: Optional[StrictStr] = None
|
|
44
|
-
persona_seed_id: Optional[
|
|
44
|
+
persona_seed_id: Optional[StrictStr] = None
|
|
45
45
|
personality_background: Optional[StrictStr] = None
|
|
46
46
|
personality_first_name: Optional[StrictStr] = None
|
|
47
47
|
personality_img_url: Optional[StrictStr] = None
|
|
@@ -54,8 +54,8 @@ class ClientPersona(BaseModel):
|
|
|
54
54
|
summary_detail: Optional[StrictStr] = None
|
|
55
55
|
summary_headline: Optional[StrictStr] = None
|
|
56
56
|
tag: Optional[StrictStr] = None
|
|
57
|
-
ts_created: Optional[
|
|
58
|
-
ts_updated: Optional[
|
|
57
|
+
ts_created: Optional[StrictInt] = None
|
|
58
|
+
ts_updated: Optional[StrictInt] = None
|
|
59
59
|
value: Optional[StrictStr] = None
|
|
60
60
|
__properties: ClassVar[List[str]] = ["age", "description", "factors", "female", "id", "income", "insights", "kpis", "male", "metadata", "name", "persona_seed_id", "personality_background", "personality_first_name", "personality_img_url", "personality_last_name", "personality_quote", "personality_traits", "personality_video_url", "positioning_statement", "seed_uid", "summary_detail", "summary_headline", "tag", "ts_created", "ts_updated", "value"]
|
|
61
61
|
|
|
@@ -30,7 +30,7 @@ class ClientPersonaFactor(BaseModel):
|
|
|
30
30
|
display: Optional[StrictStr] = None
|
|
31
31
|
id: Optional[StrictInt] = None
|
|
32
32
|
name: Optional[StrictStr] = None
|
|
33
|
-
persona_instance_id: Optional[
|
|
33
|
+
persona_instance_id: Optional[StrictStr] = None
|
|
34
34
|
summary: Optional[StrictStr] = None
|
|
35
35
|
value: Optional[StrictInt] = None
|
|
36
36
|
__properties: ClassVar[List[str]] = ["detail", "display", "id", "name", "persona_instance_id", "summary", "value"]
|
|
@@ -28,7 +28,7 @@ class ClientPersonaPersonalityTrait(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
id: Optional[StrictInt] = None
|
|
30
30
|
name: Optional[StrictStr] = None
|
|
31
|
-
persona_instance_id: Optional[
|
|
31
|
+
persona_instance_id: Optional[StrictStr] = None
|
|
32
32
|
traits: Optional[List[StrictStr]] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["id", "name", "persona_instance_id", "traits"]
|
|
34
34
|
|
|
@@ -28,7 +28,7 @@ class ClientQuery(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
limit: Optional[StrictInt] = None
|
|
30
30
|
offset: Optional[StrictInt] = None
|
|
31
|
-
org_id: Optional[
|
|
31
|
+
org_id: Optional[StrictStr] = None
|
|
32
32
|
uid: Optional[StrictStr] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["limit", "offset", "org_id", "uid"]
|
|
34
34
|
|