neurograph-core 1.202508112256__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 +38 -20
- neurograph/v1/api/__init__.py +1 -1
- neurograph/v1/api/authentication_api.py +36 -8
- neurograph/v1/api/client_api.py +62 -56
- neurograph/v1/api/client_metadata_api.py +305 -19
- neurograph/v1/api/dagster_api.py +306 -0
- neurograph/v1/api/lookup_api.py +2 -0
- neurograph/v1/api/organization_api.py +257 -252
- neurograph/v1/api/organization_metadata_api.py +22 -19
- neurograph/v1/api/persona_api.py +1249 -135
- neurograph/v1/api/tasks_api.py +1 -0
- neurograph/v1/api/workbench_api.py +6 -3
- neurograph/v1/models/__init__.py +18 -9
- neurograph/v1/models/auth_test_service_token_request.py +87 -0
- 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 +2 -8
- neurograph/v1/models/organizations_organization_set_workbench_request.py +10 -10
- neurograph/v1/models/organizations_organization_set_workbench_response.py +13 -11
- neurograph/v1/models/organizations_organization_update_request.py +4 -4
- neurograph/v1/models/organizations_workbench_config.py +13 -11
- neurograph/v1/models/personas_delete_many_persona_instances_request.py +87 -0
- neurograph/v1/models/personas_kpi.py +93 -0
- 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 +171 -0
- neurograph/v1/models/personas_persona_factor.py +2 -4
- neurograph/v1/models/personas_persona_factor_create_response.py +3 -3
- neurograph/v1/models/personas_persona_factor_resp.py +101 -0
- neurograph/v1/models/personas_persona_insight.py +93 -0
- 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 +89 -0
- neurograph/v1/models/personas_persona_instances_response.py +103 -0
- 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 +93 -0
- 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_seed_get_many_response.py +105 -0
- neurograph/v1/models/personas_persona_seeds_delete_request.py +87 -0
- neurograph/v1/models/personas_persona_seeds_delete_response.py +89 -0
- 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.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/METADATA +2 -2
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/RECORD +73 -54
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202508112256.dist-info → neurograph_core-1.202508201827.dist-info}/top_level.txt +0 -0
neurograph/v1/api/tasks_api.py
CHANGED
|
@@ -286,6 +286,7 @@ class WorkbenchApi:
|
|
|
286
286
|
|
|
287
287
|
# authentication setting
|
|
288
288
|
_auth_settings: List[str] = [
|
|
289
|
+
'TokenAuth',
|
|
289
290
|
'ApiKeyAuth'
|
|
290
291
|
]
|
|
291
292
|
|
|
@@ -569,6 +570,7 @@ class WorkbenchApi:
|
|
|
569
570
|
|
|
570
571
|
# authentication setting
|
|
571
572
|
_auth_settings: List[str] = [
|
|
573
|
+
'TokenAuth',
|
|
572
574
|
'ApiKeyAuth'
|
|
573
575
|
]
|
|
574
576
|
|
|
@@ -607,7 +609,7 @@ class WorkbenchApi:
|
|
|
607
609
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
608
610
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
609
611
|
) -> WorkbenchWorkbenchVersionResponse:
|
|
610
|
-
"""
|
|
612
|
+
"""Upsert a Workbench Version
|
|
611
613
|
|
|
612
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.
|
|
613
615
|
|
|
@@ -676,7 +678,7 @@ class WorkbenchApi:
|
|
|
676
678
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
677
679
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
678
680
|
) -> ApiResponse[WorkbenchWorkbenchVersionResponse]:
|
|
679
|
-
"""
|
|
681
|
+
"""Upsert a Workbench Version
|
|
680
682
|
|
|
681
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.
|
|
682
684
|
|
|
@@ -745,7 +747,7 @@ class WorkbenchApi:
|
|
|
745
747
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
746
748
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
747
749
|
) -> RESTResponseType:
|
|
748
|
-
"""
|
|
750
|
+
"""Upsert a Workbench Version
|
|
749
751
|
|
|
750
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.
|
|
751
753
|
|
|
@@ -836,6 +838,7 @@ class WorkbenchApi:
|
|
|
836
838
|
|
|
837
839
|
# authentication setting
|
|
838
840
|
_auth_settings: List[str] = [
|
|
841
|
+
'TokenAuth',
|
|
839
842
|
'ApiKeyAuth'
|
|
840
843
|
]
|
|
841
844
|
|
neurograph/v1/models/__init__.py
CHANGED
|
@@ -14,21 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
# import models into model package
|
|
17
|
-
from neurograph.v1.models.atlas_atlas_version import AtlasAtlasVersion
|
|
18
|
-
from neurograph.v1.models.atlas_atlas_version_many_response import AtlasAtlasVersionManyResponse
|
|
19
|
-
from neurograph.v1.models.atlas_atlas_version_response import AtlasAtlasVersionResponse
|
|
20
|
-
from neurograph.v1.models.atlas_atlas_version_upsert_request import AtlasAtlasVersionUpsertRequest
|
|
21
17
|
from neurograph.v1.models.auth_service_token_request import AuthServiceTokenRequest
|
|
18
|
+
from neurograph.v1.models.auth_test_service_token_request import AuthTestServiceTokenRequest
|
|
22
19
|
from neurograph.v1.models.auth_test_service_token_response import AuthTestServiceTokenResponse
|
|
23
20
|
from neurograph.v1.models.auth_test_token_response import AuthTestTokenResponse
|
|
24
21
|
from neurograph.v1.models.client_client import ClientClient
|
|
25
|
-
from neurograph.v1.models.client_client_creat_response import ClientClientCreatResponse
|
|
26
|
-
from neurograph.v1.models.client_client_create_request import ClientClientCreateRequest
|
|
27
22
|
from neurograph.v1.models.client_client_get_detail_response import ClientClientGetDetailResponse
|
|
28
23
|
from neurograph.v1.models.client_client_get_many_response import ClientClientGetManyResponse
|
|
29
24
|
from neurograph.v1.models.client_client_metadata_request import ClientClientMetadataRequest
|
|
30
25
|
from neurograph.v1.models.client_client_metadata_response import ClientClientMetadataResponse
|
|
31
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
|
|
32
29
|
from neurograph.v1.models.client_client_url_upsert_request import ClientClientUrlUpsertRequest
|
|
33
30
|
from neurograph.v1.models.client_client_url_upsert_response import ClientClientUrlUpsertResponse
|
|
34
31
|
from neurograph.v1.models.client_client_urls_response import ClientClientUrlsResponse
|
|
@@ -40,6 +37,8 @@ from neurograph.v1.models.client_persona_factor import ClientPersonaFactor
|
|
|
40
37
|
from neurograph.v1.models.client_persona_insight import ClientPersonaInsight
|
|
41
38
|
from neurograph.v1.models.client_persona_personality_trait import ClientPersonaPersonalityTrait
|
|
42
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
|
|
43
42
|
from neurograph.v1.models.db_client_url import DbClientUrl
|
|
44
43
|
from neurograph.v1.models.db_persona_factor_create_params import DbPersonaFactorCreateParams
|
|
45
44
|
from neurograph.v1.models.lookup_language import LookupLanguage
|
|
@@ -47,7 +46,6 @@ from neurograph.v1.models.lookup_lookup_language_response import LookupLookupLan
|
|
|
47
46
|
from neurograph.v1.models.lookup_lookup_state_response import LookupLookupStateResponse
|
|
48
47
|
from neurograph.v1.models.lookup_state import LookupState
|
|
49
48
|
from neurograph.v1.models.lookup_state_response import LookupStateResponse
|
|
50
|
-
from neurograph.v1.models.organizations_atlas_config import OrganizationsAtlasConfig
|
|
51
49
|
from neurograph.v1.models.organizations_brand_detail_response import OrganizationsBrandDetailResponse
|
|
52
50
|
from neurograph.v1.models.organizations_brand_upsert_request import OrganizationsBrandUpsertRequest
|
|
53
51
|
from neurograph.v1.models.organizations_delete_metadata_request import OrganizationsDeleteMetadataRequest
|
|
@@ -60,33 +58,44 @@ from neurograph.v1.models.organizations_organization_detail_response import Orga
|
|
|
60
58
|
from neurograph.v1.models.organizations_organization_get_many_response import OrganizationsOrganizationGetManyResponse
|
|
61
59
|
from neurograph.v1.models.organizations_organization_metadata_request import OrganizationsOrganizationMetadataRequest
|
|
62
60
|
from neurograph.v1.models.organizations_organization_metadata_response import OrganizationsOrganizationMetadataResponse
|
|
63
|
-
from neurograph.v1.models.organizations_organization_set_atlas_request import OrganizationsOrganizationSetAtlasRequest
|
|
64
|
-
from neurograph.v1.models.organizations_organization_set_atlas_response import OrganizationsOrganizationSetAtlasResponse
|
|
65
61
|
from neurograph.v1.models.organizations_organization_set_workbench_request import OrganizationsOrganizationSetWorkbenchRequest
|
|
66
62
|
from neurograph.v1.models.organizations_organization_set_workbench_response import OrganizationsOrganizationSetWorkbenchResponse
|
|
67
63
|
from neurograph.v1.models.organizations_organization_update_request import OrganizationsOrganizationUpdateRequest
|
|
68
64
|
from neurograph.v1.models.organizations_workbench_config import OrganizationsWorkbenchConfig
|
|
65
|
+
from neurograph.v1.models.personas_delete_many_persona_instances_request import PersonasDeleteManyPersonaInstancesRequest
|
|
66
|
+
from neurograph.v1.models.personas_kpi import PersonasKpi
|
|
69
67
|
from neurograph.v1.models.personas_match_criteria_row import PersonasMatchCriteriaRow
|
|
70
68
|
from neurograph.v1.models.personas_match_criteria_row_in import PersonasMatchCriteriaRowIn
|
|
69
|
+
from neurograph.v1.models.personas_persona import PersonasPersona
|
|
71
70
|
from neurograph.v1.models.personas_persona_factor import PersonasPersonaFactor
|
|
72
71
|
from neurograph.v1.models.personas_persona_factor_create_request import PersonasPersonaFactorCreateRequest
|
|
73
72
|
from neurograph.v1.models.personas_persona_factor_create_response import PersonasPersonaFactorCreateResponse
|
|
73
|
+
from neurograph.v1.models.personas_persona_factor_resp import PersonasPersonaFactorResp
|
|
74
|
+
from neurograph.v1.models.personas_persona_insight import PersonasPersonaInsight
|
|
74
75
|
from neurograph.v1.models.personas_persona_insight_create_request import PersonasPersonaInsightCreateRequest
|
|
75
76
|
from neurograph.v1.models.personas_persona_insight_create_response import PersonasPersonaInsightCreateResponse
|
|
76
77
|
from neurograph.v1.models.personas_persona_instance_create_request import PersonasPersonaInstanceCreateRequest
|
|
77
78
|
from neurograph.v1.models.personas_persona_instance_create_response import PersonasPersonaInstanceCreateResponse
|
|
79
|
+
from neurograph.v1.models.personas_persona_instances_delete_response import PersonasPersonaInstancesDeleteResponse
|
|
80
|
+
from neurograph.v1.models.personas_persona_instances_response import PersonasPersonaInstancesResponse
|
|
78
81
|
from neurograph.v1.models.personas_persona_kpi_create_request import PersonasPersonaKpiCreateRequest
|
|
79
82
|
from neurograph.v1.models.personas_persona_kpi_create_response import PersonasPersonaKpiCreateResponse
|
|
80
83
|
from neurograph.v1.models.personas_persona_kpi_req import PersonasPersonaKpiReq
|
|
81
84
|
from neurograph.v1.models.personas_persona_kpi_resp import PersonasPersonaKpiResp
|
|
82
85
|
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest
|
|
83
86
|
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse
|
|
87
|
+
from neurograph.v1.models.personas_persona_personality_trait import PersonasPersonaPersonalityTrait
|
|
84
88
|
from neurograph.v1.models.personas_persona_seed_create_request import PersonasPersonaSeedCreateRequest
|
|
85
89
|
from neurograph.v1.models.personas_persona_seed_create_response import PersonasPersonaSeedCreateResponse
|
|
90
|
+
from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse
|
|
91
|
+
from neurograph.v1.models.personas_persona_seeds_delete_request import PersonasPersonaSeedsDeleteRequest
|
|
92
|
+
from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse
|
|
86
93
|
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest
|
|
87
94
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
|
|
88
95
|
from neurograph.v1.models.personas_personality_trait_in import PersonasPersonalityTraitIn
|
|
89
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
|
|
90
99
|
from neurograph.v1.models.tasks_sync_from_firebase_result import TasksSyncFromFirebaseResult
|
|
91
100
|
from neurograph.v1.models.workbench_workbench_url_check_request import WorkbenchWorkbenchUrlCheckRequest
|
|
92
101
|
from neurograph.v1.models.workbench_workbench_url_check_response import WorkbenchWorkbenchUrlCheckResponse
|
|
@@ -0,0 +1,87 @@
|
|
|
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, 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 AuthTestServiceTokenRequest(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AuthTestServiceTokenRequest
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
token: Optional[StrictStr] = None
|
|
30
|
+
__properties: ClassVar[List[str]] = ["token"]
|
|
31
|
+
|
|
32
|
+
model_config = ConfigDict(
|
|
33
|
+
populate_by_name=True,
|
|
34
|
+
validate_assignment=True,
|
|
35
|
+
protected_namespaces=(),
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def to_str(self) -> str:
|
|
40
|
+
"""Returns the string representation of the model using alias"""
|
|
41
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
+
|
|
43
|
+
def to_json(self) -> str:
|
|
44
|
+
"""Returns the JSON representation of the model using alias"""
|
|
45
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
+
return json.dumps(self.to_dict())
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
+
"""Create an instance of AuthTestServiceTokenRequest from a JSON string"""
|
|
51
|
+
return cls.from_dict(json.loads(json_str))
|
|
52
|
+
|
|
53
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
+
"""Return the dictionary representation of the model using alias.
|
|
55
|
+
|
|
56
|
+
This has the following differences from calling pydantic's
|
|
57
|
+
`self.model_dump(by_alias=True)`:
|
|
58
|
+
|
|
59
|
+
* `None` is only added to the output dict for nullable fields that
|
|
60
|
+
were set at model initialization. Other fields with value `None`
|
|
61
|
+
are ignored.
|
|
62
|
+
"""
|
|
63
|
+
excluded_fields: Set[str] = set([
|
|
64
|
+
])
|
|
65
|
+
|
|
66
|
+
_dict = self.model_dump(
|
|
67
|
+
by_alias=True,
|
|
68
|
+
exclude=excluded_fields,
|
|
69
|
+
exclude_none=True,
|
|
70
|
+
)
|
|
71
|
+
return _dict
|
|
72
|
+
|
|
73
|
+
@classmethod
|
|
74
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
+
"""Create an instance of AuthTestServiceTokenRequest from a dict"""
|
|
76
|
+
if obj is None:
|
|
77
|
+
return None
|
|
78
|
+
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
return cls.model_validate(obj)
|
|
81
|
+
|
|
82
|
+
_obj = cls.model_validate({
|
|
83
|
+
"token": obj.get("token")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -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
|
|