neurograph-core 1.202509191907__py3-none-any.whl → 1.202509220142__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 +9 -6
- neurograph/v1/api/lookup_api.py +268 -0
- neurograph/v1/api/persona_api.py +132 -136
- neurograph/v1/models/__init__.py +6 -4
- neurograph/v1/models/knowledge_entity.py +3 -1
- neurograph/v1/models/knowledge_entity_in_db.py +5 -1
- neurograph/v1/models/lookup_uid.py +101 -0
- neurograph/v1/models/{personas_persona_seeds_delete_request.py → lookup_uids_response.py} +17 -7
- neurograph/v1/models/{personas_persona_seed_create_request.py → personas_persona_seed_update_request.py} +4 -4
- neurograph/v1/models/personas_persona_seeds_delete_response.py +5 -5
- {neurograph_core-1.202509191907.dist-info → neurograph_core-1.202509220142.dist-info}/METADATA +1 -1
- {neurograph_core-1.202509191907.dist-info → neurograph_core-1.202509220142.dist-info}/RECORD +14 -13
- {neurograph_core-1.202509191907.dist-info → neurograph_core-1.202509220142.dist-info}/WHEEL +0 -0
- {neurograph_core-1.202509191907.dist-info → neurograph_core-1.202509220142.dist-info}/top_level.txt +0 -0
neurograph/v1/api/persona_api.py
CHANGED
|
@@ -33,9 +33,8 @@ from neurograph.v1.models.personas_persona_kpi_create_response import PersonasPe
|
|
|
33
33
|
from neurograph.v1.models.personas_persona_match_criteria_request import PersonasPersonaMatchCriteriaRequest
|
|
34
34
|
from neurograph.v1.models.personas_persona_match_criteria_response import PersonasPersonaMatchCriteriaResponse
|
|
35
35
|
from neurograph.v1.models.personas_persona_seed import PersonasPersonaSeed
|
|
36
|
-
from neurograph.v1.models.personas_persona_seed_create_request import PersonasPersonaSeedCreateRequest
|
|
37
36
|
from neurograph.v1.models.personas_persona_seed_get_many_response import PersonasPersonaSeedGetManyResponse
|
|
38
|
-
from neurograph.v1.models.
|
|
37
|
+
from neurograph.v1.models.personas_persona_seed_update_request import PersonasPersonaSeedUpdateRequest
|
|
39
38
|
from neurograph.v1.models.personas_persona_seeds_delete_response import PersonasPersonaSeedsDeleteResponse
|
|
40
39
|
from neurograph.v1.models.personas_persona_trait_create_request import PersonasPersonaTraitCreateRequest
|
|
41
40
|
from neurograph.v1.models.personas_persona_trait_create_response import PersonasPersonaTraitCreateResponse
|
|
@@ -2215,9 +2214,10 @@ class PersonaApi:
|
|
|
2215
2214
|
|
|
2216
2215
|
|
|
2217
2216
|
@validate_call
|
|
2218
|
-
def
|
|
2217
|
+
def api_v1_persona_seed_get(
|
|
2219
2218
|
self,
|
|
2220
|
-
|
|
2219
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2220
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2221
2221
|
_request_timeout: Union[
|
|
2222
2222
|
None,
|
|
2223
2223
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2230,13 +2230,15 @@ class PersonaApi:
|
|
|
2230
2230
|
_content_type: Optional[StrictStr] = None,
|
|
2231
2231
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2232
2232
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2233
|
-
) ->
|
|
2234
|
-
"""
|
|
2233
|
+
) -> PersonasPersonaSeedGetManyResponse:
|
|
2234
|
+
"""Get one or more Persona Seeds
|
|
2235
2235
|
|
|
2236
2236
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2237
2237
|
|
|
2238
|
-
:param
|
|
2239
|
-
:type
|
|
2238
|
+
:param limit: Maximum number of records
|
|
2239
|
+
:type limit: int
|
|
2240
|
+
:param offset: Record offset
|
|
2241
|
+
:type offset: int
|
|
2240
2242
|
:param _request_timeout: timeout setting for this request. If one
|
|
2241
2243
|
number provided, it will be total request
|
|
2242
2244
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2259,8 +2261,9 @@ class PersonaApi:
|
|
|
2259
2261
|
:return: Returns the result object.
|
|
2260
2262
|
""" # noqa: E501
|
|
2261
2263
|
|
|
2262
|
-
_param = self.
|
|
2263
|
-
|
|
2264
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2265
|
+
limit=limit,
|
|
2266
|
+
offset=offset,
|
|
2264
2267
|
_request_auth=_request_auth,
|
|
2265
2268
|
_content_type=_content_type,
|
|
2266
2269
|
_headers=_headers,
|
|
@@ -2268,9 +2271,9 @@ class PersonaApi:
|
|
|
2268
2271
|
)
|
|
2269
2272
|
|
|
2270
2273
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2271
|
-
'200': "
|
|
2272
|
-
'400': "
|
|
2273
|
-
'503': "
|
|
2274
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2275
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2276
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
2274
2277
|
}
|
|
2275
2278
|
response_data = self.api_client.call_api(
|
|
2276
2279
|
*_param,
|
|
@@ -2284,9 +2287,10 @@ class PersonaApi:
|
|
|
2284
2287
|
|
|
2285
2288
|
|
|
2286
2289
|
@validate_call
|
|
2287
|
-
def
|
|
2290
|
+
def api_v1_persona_seed_get_with_http_info(
|
|
2288
2291
|
self,
|
|
2289
|
-
|
|
2292
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2293
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2290
2294
|
_request_timeout: Union[
|
|
2291
2295
|
None,
|
|
2292
2296
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2299,13 +2303,15 @@ class PersonaApi:
|
|
|
2299
2303
|
_content_type: Optional[StrictStr] = None,
|
|
2300
2304
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2301
2305
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2302
|
-
) -> ApiResponse[
|
|
2303
|
-
"""
|
|
2306
|
+
) -> ApiResponse[PersonasPersonaSeedGetManyResponse]:
|
|
2307
|
+
"""Get one or more Persona Seeds
|
|
2304
2308
|
|
|
2305
2309
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2306
2310
|
|
|
2307
|
-
:param
|
|
2308
|
-
:type
|
|
2311
|
+
:param limit: Maximum number of records
|
|
2312
|
+
:type limit: int
|
|
2313
|
+
:param offset: Record offset
|
|
2314
|
+
:type offset: int
|
|
2309
2315
|
:param _request_timeout: timeout setting for this request. If one
|
|
2310
2316
|
number provided, it will be total request
|
|
2311
2317
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2328,8 +2334,9 @@ class PersonaApi:
|
|
|
2328
2334
|
:return: Returns the result object.
|
|
2329
2335
|
""" # noqa: E501
|
|
2330
2336
|
|
|
2331
|
-
_param = self.
|
|
2332
|
-
|
|
2337
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2338
|
+
limit=limit,
|
|
2339
|
+
offset=offset,
|
|
2333
2340
|
_request_auth=_request_auth,
|
|
2334
2341
|
_content_type=_content_type,
|
|
2335
2342
|
_headers=_headers,
|
|
@@ -2337,9 +2344,9 @@ class PersonaApi:
|
|
|
2337
2344
|
)
|
|
2338
2345
|
|
|
2339
2346
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2340
|
-
'200': "
|
|
2341
|
-
'400': "
|
|
2342
|
-
'503': "
|
|
2347
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2348
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2349
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
2343
2350
|
}
|
|
2344
2351
|
response_data = self.api_client.call_api(
|
|
2345
2352
|
*_param,
|
|
@@ -2353,9 +2360,10 @@ class PersonaApi:
|
|
|
2353
2360
|
|
|
2354
2361
|
|
|
2355
2362
|
@validate_call
|
|
2356
|
-
def
|
|
2363
|
+
def api_v1_persona_seed_get_without_preload_content(
|
|
2357
2364
|
self,
|
|
2358
|
-
|
|
2365
|
+
limit: Annotated[Optional[StrictInt], Field(description="Maximum number of records")] = None,
|
|
2366
|
+
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2359
2367
|
_request_timeout: Union[
|
|
2360
2368
|
None,
|
|
2361
2369
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2369,12 +2377,14 @@ class PersonaApi:
|
|
|
2369
2377
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2370
2378
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2371
2379
|
) -> RESTResponseType:
|
|
2372
|
-
"""
|
|
2380
|
+
"""Get one or more Persona Seeds
|
|
2373
2381
|
|
|
2374
2382
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2375
2383
|
|
|
2376
|
-
:param
|
|
2377
|
-
:type
|
|
2384
|
+
:param limit: Maximum number of records
|
|
2385
|
+
:type limit: int
|
|
2386
|
+
:param offset: Record offset
|
|
2387
|
+
:type offset: int
|
|
2378
2388
|
:param _request_timeout: timeout setting for this request. If one
|
|
2379
2389
|
number provided, it will be total request
|
|
2380
2390
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2397,8 +2407,9 @@ class PersonaApi:
|
|
|
2397
2407
|
:return: Returns the result object.
|
|
2398
2408
|
""" # noqa: E501
|
|
2399
2409
|
|
|
2400
|
-
_param = self.
|
|
2401
|
-
|
|
2410
|
+
_param = self._api_v1_persona_seed_get_serialize(
|
|
2411
|
+
limit=limit,
|
|
2412
|
+
offset=offset,
|
|
2402
2413
|
_request_auth=_request_auth,
|
|
2403
2414
|
_content_type=_content_type,
|
|
2404
2415
|
_headers=_headers,
|
|
@@ -2406,9 +2417,9 @@ class PersonaApi:
|
|
|
2406
2417
|
)
|
|
2407
2418
|
|
|
2408
2419
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2409
|
-
'200': "
|
|
2410
|
-
'400': "
|
|
2411
|
-
'503': "
|
|
2420
|
+
'200': "PersonasPersonaSeedGetManyResponse",
|
|
2421
|
+
'400': "PersonasPersonaSeedGetManyResponse",
|
|
2422
|
+
'503': "PersonasPersonaSeedGetManyResponse",
|
|
2412
2423
|
}
|
|
2413
2424
|
response_data = self.api_client.call_api(
|
|
2414
2425
|
*_param,
|
|
@@ -2417,9 +2428,10 @@ class PersonaApi:
|
|
|
2417
2428
|
return response_data.response
|
|
2418
2429
|
|
|
2419
2430
|
|
|
2420
|
-
def
|
|
2431
|
+
def _api_v1_persona_seed_get_serialize(
|
|
2421
2432
|
self,
|
|
2422
|
-
|
|
2433
|
+
limit,
|
|
2434
|
+
offset,
|
|
2423
2435
|
_request_auth,
|
|
2424
2436
|
_content_type,
|
|
2425
2437
|
_headers,
|
|
@@ -2442,11 +2454,17 @@ class PersonaApi:
|
|
|
2442
2454
|
|
|
2443
2455
|
# process the path parameters
|
|
2444
2456
|
# process the query parameters
|
|
2457
|
+
if limit is not None:
|
|
2458
|
+
|
|
2459
|
+
_query_params.append(('limit', limit))
|
|
2460
|
+
|
|
2461
|
+
if offset is not None:
|
|
2462
|
+
|
|
2463
|
+
_query_params.append(('offset', offset))
|
|
2464
|
+
|
|
2445
2465
|
# process the header parameters
|
|
2446
2466
|
# process the form parameters
|
|
2447
2467
|
# process the body parameter
|
|
2448
|
-
if request is not None:
|
|
2449
|
-
_body_params = request
|
|
2450
2468
|
|
|
2451
2469
|
|
|
2452
2470
|
# set the HTTP header `Accept`
|
|
@@ -2460,11 +2478,12 @@ class PersonaApi:
|
|
|
2460
2478
|
|
|
2461
2479
|
# authentication setting
|
|
2462
2480
|
_auth_settings: List[str] = [
|
|
2463
|
-
'TokenAuth'
|
|
2481
|
+
'TokenAuth',
|
|
2482
|
+
'ApiKeyAuth'
|
|
2464
2483
|
]
|
|
2465
2484
|
|
|
2466
2485
|
return self.api_client.param_serialize(
|
|
2467
|
-
method='
|
|
2486
|
+
method='GET',
|
|
2468
2487
|
resource_path='/api/v1/persona/seed',
|
|
2469
2488
|
path_params=_path_params,
|
|
2470
2489
|
query_params=_query_params,
|
|
@@ -2482,10 +2501,9 @@ class PersonaApi:
|
|
|
2482
2501
|
|
|
2483
2502
|
|
|
2484
2503
|
@validate_call
|
|
2485
|
-
def
|
|
2504
|
+
def api_v1_persona_seed_post(
|
|
2486
2505
|
self,
|
|
2487
|
-
|
|
2488
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2506
|
+
request: Annotated[PersonasPersonaSeedUpdateRequest, Field(description="Body")],
|
|
2489
2507
|
_request_timeout: Union[
|
|
2490
2508
|
None,
|
|
2491
2509
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2498,15 +2516,13 @@ class PersonaApi:
|
|
|
2498
2516
|
_content_type: Optional[StrictStr] = None,
|
|
2499
2517
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2500
2518
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2501
|
-
) ->
|
|
2502
|
-
"""
|
|
2519
|
+
) -> PersonasPersonaSeed:
|
|
2520
|
+
"""Upsert a Persona Seed
|
|
2503
2521
|
|
|
2504
2522
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2505
2523
|
|
|
2506
|
-
:param
|
|
2507
|
-
:type
|
|
2508
|
-
:param offset: Record offset
|
|
2509
|
-
:type offset: int
|
|
2524
|
+
:param request: Body (required)
|
|
2525
|
+
:type request: PersonasPersonaSeedUpdateRequest
|
|
2510
2526
|
:param _request_timeout: timeout setting for this request. If one
|
|
2511
2527
|
number provided, it will be total request
|
|
2512
2528
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2529,9 +2545,8 @@ class PersonaApi:
|
|
|
2529
2545
|
:return: Returns the result object.
|
|
2530
2546
|
""" # noqa: E501
|
|
2531
2547
|
|
|
2532
|
-
_param = self.
|
|
2533
|
-
|
|
2534
|
-
offset=offset,
|
|
2548
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
2549
|
+
request=request,
|
|
2535
2550
|
_request_auth=_request_auth,
|
|
2536
2551
|
_content_type=_content_type,
|
|
2537
2552
|
_headers=_headers,
|
|
@@ -2539,9 +2554,9 @@ class PersonaApi:
|
|
|
2539
2554
|
)
|
|
2540
2555
|
|
|
2541
2556
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2542
|
-
'200': "
|
|
2543
|
-
'400': "
|
|
2544
|
-
'503': "
|
|
2557
|
+
'200': "PersonasPersonaSeed",
|
|
2558
|
+
'400': "PersonasPersonaSeed",
|
|
2559
|
+
'503': "PersonasPersonaSeed",
|
|
2545
2560
|
}
|
|
2546
2561
|
response_data = self.api_client.call_api(
|
|
2547
2562
|
*_param,
|
|
@@ -2555,10 +2570,9 @@ class PersonaApi:
|
|
|
2555
2570
|
|
|
2556
2571
|
|
|
2557
2572
|
@validate_call
|
|
2558
|
-
def
|
|
2573
|
+
def api_v1_persona_seed_post_with_http_info(
|
|
2559
2574
|
self,
|
|
2560
|
-
|
|
2561
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2575
|
+
request: Annotated[PersonasPersonaSeedUpdateRequest, Field(description="Body")],
|
|
2562
2576
|
_request_timeout: Union[
|
|
2563
2577
|
None,
|
|
2564
2578
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2571,15 +2585,13 @@ class PersonaApi:
|
|
|
2571
2585
|
_content_type: Optional[StrictStr] = None,
|
|
2572
2586
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2573
2587
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2574
|
-
) -> ApiResponse[
|
|
2575
|
-
"""
|
|
2588
|
+
) -> ApiResponse[PersonasPersonaSeed]:
|
|
2589
|
+
"""Upsert a Persona Seed
|
|
2576
2590
|
|
|
2577
2591
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2578
2592
|
|
|
2579
|
-
:param
|
|
2580
|
-
:type
|
|
2581
|
-
:param offset: Record offset
|
|
2582
|
-
:type offset: int
|
|
2593
|
+
:param request: Body (required)
|
|
2594
|
+
:type request: PersonasPersonaSeedUpdateRequest
|
|
2583
2595
|
:param _request_timeout: timeout setting for this request. If one
|
|
2584
2596
|
number provided, it will be total request
|
|
2585
2597
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2602,9 +2614,8 @@ class PersonaApi:
|
|
|
2602
2614
|
:return: Returns the result object.
|
|
2603
2615
|
""" # noqa: E501
|
|
2604
2616
|
|
|
2605
|
-
_param = self.
|
|
2606
|
-
|
|
2607
|
-
offset=offset,
|
|
2617
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
2618
|
+
request=request,
|
|
2608
2619
|
_request_auth=_request_auth,
|
|
2609
2620
|
_content_type=_content_type,
|
|
2610
2621
|
_headers=_headers,
|
|
@@ -2612,9 +2623,9 @@ class PersonaApi:
|
|
|
2612
2623
|
)
|
|
2613
2624
|
|
|
2614
2625
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2615
|
-
'200': "
|
|
2616
|
-
'400': "
|
|
2617
|
-
'503': "
|
|
2626
|
+
'200': "PersonasPersonaSeed",
|
|
2627
|
+
'400': "PersonasPersonaSeed",
|
|
2628
|
+
'503': "PersonasPersonaSeed",
|
|
2618
2629
|
}
|
|
2619
2630
|
response_data = self.api_client.call_api(
|
|
2620
2631
|
*_param,
|
|
@@ -2628,10 +2639,9 @@ class PersonaApi:
|
|
|
2628
2639
|
|
|
2629
2640
|
|
|
2630
2641
|
@validate_call
|
|
2631
|
-
def
|
|
2642
|
+
def api_v1_persona_seed_post_without_preload_content(
|
|
2632
2643
|
self,
|
|
2633
|
-
|
|
2634
|
-
offset: Annotated[Optional[StrictInt], Field(description="Record offset")] = None,
|
|
2644
|
+
request: Annotated[PersonasPersonaSeedUpdateRequest, Field(description="Body")],
|
|
2635
2645
|
_request_timeout: Union[
|
|
2636
2646
|
None,
|
|
2637
2647
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2645,14 +2655,12 @@ class PersonaApi:
|
|
|
2645
2655
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2646
2656
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2647
2657
|
) -> RESTResponseType:
|
|
2648
|
-
"""
|
|
2658
|
+
"""Upsert a Persona Seed
|
|
2649
2659
|
|
|
2650
2660
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2651
2661
|
|
|
2652
|
-
:param
|
|
2653
|
-
:type
|
|
2654
|
-
:param offset: Record offset
|
|
2655
|
-
:type offset: int
|
|
2662
|
+
:param request: Body (required)
|
|
2663
|
+
:type request: PersonasPersonaSeedUpdateRequest
|
|
2656
2664
|
:param _request_timeout: timeout setting for this request. If one
|
|
2657
2665
|
number provided, it will be total request
|
|
2658
2666
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2675,9 +2683,8 @@ class PersonaApi:
|
|
|
2675
2683
|
:return: Returns the result object.
|
|
2676
2684
|
""" # noqa: E501
|
|
2677
2685
|
|
|
2678
|
-
_param = self.
|
|
2679
|
-
|
|
2680
|
-
offset=offset,
|
|
2686
|
+
_param = self._api_v1_persona_seed_post_serialize(
|
|
2687
|
+
request=request,
|
|
2681
2688
|
_request_auth=_request_auth,
|
|
2682
2689
|
_content_type=_content_type,
|
|
2683
2690
|
_headers=_headers,
|
|
@@ -2685,9 +2692,9 @@ class PersonaApi:
|
|
|
2685
2692
|
)
|
|
2686
2693
|
|
|
2687
2694
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2688
|
-
'200': "
|
|
2689
|
-
'400': "
|
|
2690
|
-
'503': "
|
|
2695
|
+
'200': "PersonasPersonaSeed",
|
|
2696
|
+
'400': "PersonasPersonaSeed",
|
|
2697
|
+
'503': "PersonasPersonaSeed",
|
|
2691
2698
|
}
|
|
2692
2699
|
response_data = self.api_client.call_api(
|
|
2693
2700
|
*_param,
|
|
@@ -2696,10 +2703,9 @@ class PersonaApi:
|
|
|
2696
2703
|
return response_data.response
|
|
2697
2704
|
|
|
2698
2705
|
|
|
2699
|
-
def
|
|
2706
|
+
def _api_v1_persona_seed_post_serialize(
|
|
2700
2707
|
self,
|
|
2701
|
-
|
|
2702
|
-
offset,
|
|
2708
|
+
request,
|
|
2703
2709
|
_request_auth,
|
|
2704
2710
|
_content_type,
|
|
2705
2711
|
_headers,
|
|
@@ -2722,17 +2728,11 @@ class PersonaApi:
|
|
|
2722
2728
|
|
|
2723
2729
|
# process the path parameters
|
|
2724
2730
|
# process the query parameters
|
|
2725
|
-
if limit is not None:
|
|
2726
|
-
|
|
2727
|
-
_query_params.append(('limit', limit))
|
|
2728
|
-
|
|
2729
|
-
if offset is not None:
|
|
2730
|
-
|
|
2731
|
-
_query_params.append(('offset', offset))
|
|
2732
|
-
|
|
2733
2731
|
# process the header parameters
|
|
2734
2732
|
# process the form parameters
|
|
2735
2733
|
# process the body parameter
|
|
2734
|
+
if request is not None:
|
|
2735
|
+
_body_params = request
|
|
2736
2736
|
|
|
2737
2737
|
|
|
2738
2738
|
# set the HTTP header `Accept`
|
|
@@ -2746,12 +2746,11 @@ class PersonaApi:
|
|
|
2746
2746
|
|
|
2747
2747
|
# authentication setting
|
|
2748
2748
|
_auth_settings: List[str] = [
|
|
2749
|
-
'TokenAuth'
|
|
2750
|
-
'ApiKeyAuth'
|
|
2749
|
+
'TokenAuth'
|
|
2751
2750
|
]
|
|
2752
2751
|
|
|
2753
2752
|
return self.api_client.param_serialize(
|
|
2754
|
-
method='
|
|
2753
|
+
method='POST',
|
|
2755
2754
|
resource_path='/api/v1/persona/seed',
|
|
2756
2755
|
path_params=_path_params,
|
|
2757
2756
|
query_params=_query_params,
|
|
@@ -2769,9 +2768,9 @@ class PersonaApi:
|
|
|
2769
2768
|
|
|
2770
2769
|
|
|
2771
2770
|
@validate_call
|
|
2772
|
-
def
|
|
2771
|
+
def api_v1_persona_seed_seed_id_delete(
|
|
2773
2772
|
self,
|
|
2774
|
-
|
|
2773
|
+
seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
|
|
2775
2774
|
_request_timeout: Union[
|
|
2776
2775
|
None,
|
|
2777
2776
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2784,13 +2783,13 @@ class PersonaApi:
|
|
|
2784
2783
|
_content_type: Optional[StrictStr] = None,
|
|
2785
2784
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2786
2785
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2787
|
-
) ->
|
|
2788
|
-
"""
|
|
2786
|
+
) -> PersonasPersonaSeedsDeleteResponse:
|
|
2787
|
+
"""Delete a persona seed
|
|
2789
2788
|
|
|
2790
2789
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2791
2790
|
|
|
2792
|
-
:param
|
|
2793
|
-
:type
|
|
2791
|
+
:param seed_id: Persona Seed Id (required)
|
|
2792
|
+
:type seed_id: str
|
|
2794
2793
|
:param _request_timeout: timeout setting for this request. If one
|
|
2795
2794
|
number provided, it will be total request
|
|
2796
2795
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2813,8 +2812,8 @@ class PersonaApi:
|
|
|
2813
2812
|
:return: Returns the result object.
|
|
2814
2813
|
""" # noqa: E501
|
|
2815
2814
|
|
|
2816
|
-
_param = self.
|
|
2817
|
-
|
|
2815
|
+
_param = self._api_v1_persona_seed_seed_id_delete_serialize(
|
|
2816
|
+
seed_id=seed_id,
|
|
2818
2817
|
_request_auth=_request_auth,
|
|
2819
2818
|
_content_type=_content_type,
|
|
2820
2819
|
_headers=_headers,
|
|
@@ -2822,9 +2821,8 @@ class PersonaApi:
|
|
|
2822
2821
|
)
|
|
2823
2822
|
|
|
2824
2823
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2825
|
-
'200': "
|
|
2826
|
-
'400': "
|
|
2827
|
-
'503': "PersonasPersonaSeed",
|
|
2824
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2825
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2828
2826
|
}
|
|
2829
2827
|
response_data = self.api_client.call_api(
|
|
2830
2828
|
*_param,
|
|
@@ -2838,9 +2836,9 @@ class PersonaApi:
|
|
|
2838
2836
|
|
|
2839
2837
|
|
|
2840
2838
|
@validate_call
|
|
2841
|
-
def
|
|
2839
|
+
def api_v1_persona_seed_seed_id_delete_with_http_info(
|
|
2842
2840
|
self,
|
|
2843
|
-
|
|
2841
|
+
seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
|
|
2844
2842
|
_request_timeout: Union[
|
|
2845
2843
|
None,
|
|
2846
2844
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2853,13 +2851,13 @@ class PersonaApi:
|
|
|
2853
2851
|
_content_type: Optional[StrictStr] = None,
|
|
2854
2852
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2855
2853
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2856
|
-
) -> ApiResponse[
|
|
2857
|
-
"""
|
|
2854
|
+
) -> ApiResponse[PersonasPersonaSeedsDeleteResponse]:
|
|
2855
|
+
"""Delete a persona seed
|
|
2858
2856
|
|
|
2859
2857
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2860
2858
|
|
|
2861
|
-
:param
|
|
2862
|
-
:type
|
|
2859
|
+
:param seed_id: Persona Seed Id (required)
|
|
2860
|
+
:type seed_id: str
|
|
2863
2861
|
:param _request_timeout: timeout setting for this request. If one
|
|
2864
2862
|
number provided, it will be total request
|
|
2865
2863
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2882,8 +2880,8 @@ class PersonaApi:
|
|
|
2882
2880
|
:return: Returns the result object.
|
|
2883
2881
|
""" # noqa: E501
|
|
2884
2882
|
|
|
2885
|
-
_param = self.
|
|
2886
|
-
|
|
2883
|
+
_param = self._api_v1_persona_seed_seed_id_delete_serialize(
|
|
2884
|
+
seed_id=seed_id,
|
|
2887
2885
|
_request_auth=_request_auth,
|
|
2888
2886
|
_content_type=_content_type,
|
|
2889
2887
|
_headers=_headers,
|
|
@@ -2891,9 +2889,8 @@ class PersonaApi:
|
|
|
2891
2889
|
)
|
|
2892
2890
|
|
|
2893
2891
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2894
|
-
'200': "
|
|
2895
|
-
'400': "
|
|
2896
|
-
'503': "PersonasPersonaSeed",
|
|
2892
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2893
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2897
2894
|
}
|
|
2898
2895
|
response_data = self.api_client.call_api(
|
|
2899
2896
|
*_param,
|
|
@@ -2907,9 +2904,9 @@ class PersonaApi:
|
|
|
2907
2904
|
|
|
2908
2905
|
|
|
2909
2906
|
@validate_call
|
|
2910
|
-
def
|
|
2907
|
+
def api_v1_persona_seed_seed_id_delete_without_preload_content(
|
|
2911
2908
|
self,
|
|
2912
|
-
|
|
2909
|
+
seed_id: Annotated[StrictStr, Field(description="Persona Seed Id")],
|
|
2913
2910
|
_request_timeout: Union[
|
|
2914
2911
|
None,
|
|
2915
2912
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2923,12 +2920,12 @@ class PersonaApi:
|
|
|
2923
2920
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2924
2921
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2925
2922
|
) -> RESTResponseType:
|
|
2926
|
-
"""
|
|
2923
|
+
"""Delete a persona seed
|
|
2927
2924
|
|
|
2928
2925
|
A Persona Seed is the top level concept of a Persona. Each seed may have multiple persona instances, or copies, that reflect that person at some point in time.
|
|
2929
2926
|
|
|
2930
|
-
:param
|
|
2931
|
-
:type
|
|
2927
|
+
:param seed_id: Persona Seed Id (required)
|
|
2928
|
+
:type seed_id: str
|
|
2932
2929
|
:param _request_timeout: timeout setting for this request. If one
|
|
2933
2930
|
number provided, it will be total request
|
|
2934
2931
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2951,8 +2948,8 @@ class PersonaApi:
|
|
|
2951
2948
|
:return: Returns the result object.
|
|
2952
2949
|
""" # noqa: E501
|
|
2953
2950
|
|
|
2954
|
-
_param = self.
|
|
2955
|
-
|
|
2951
|
+
_param = self._api_v1_persona_seed_seed_id_delete_serialize(
|
|
2952
|
+
seed_id=seed_id,
|
|
2956
2953
|
_request_auth=_request_auth,
|
|
2957
2954
|
_content_type=_content_type,
|
|
2958
2955
|
_headers=_headers,
|
|
@@ -2960,9 +2957,8 @@ class PersonaApi:
|
|
|
2960
2957
|
)
|
|
2961
2958
|
|
|
2962
2959
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2963
|
-
'200': "
|
|
2964
|
-
'400': "
|
|
2965
|
-
'503': "PersonasPersonaSeed",
|
|
2960
|
+
'200': "PersonasPersonaSeedsDeleteResponse",
|
|
2961
|
+
'400': "PersonasPersonaSeedsDeleteResponse",
|
|
2966
2962
|
}
|
|
2967
2963
|
response_data = self.api_client.call_api(
|
|
2968
2964
|
*_param,
|
|
@@ -2971,9 +2967,9 @@ class PersonaApi:
|
|
|
2971
2967
|
return response_data.response
|
|
2972
2968
|
|
|
2973
2969
|
|
|
2974
|
-
def
|
|
2970
|
+
def _api_v1_persona_seed_seed_id_delete_serialize(
|
|
2975
2971
|
self,
|
|
2976
|
-
|
|
2972
|
+
seed_id,
|
|
2977
2973
|
_request_auth,
|
|
2978
2974
|
_content_type,
|
|
2979
2975
|
_headers,
|
|
@@ -2995,12 +2991,12 @@ class PersonaApi:
|
|
|
2995
2991
|
_body_params: Optional[bytes] = None
|
|
2996
2992
|
|
|
2997
2993
|
# process the path parameters
|
|
2994
|
+
if seed_id is not None:
|
|
2995
|
+
_path_params['seed_id'] = seed_id
|
|
2998
2996
|
# process the query parameters
|
|
2999
2997
|
# process the header parameters
|
|
3000
2998
|
# process the form parameters
|
|
3001
2999
|
# process the body parameter
|
|
3002
|
-
if request is not None:
|
|
3003
|
-
_body_params = request
|
|
3004
3000
|
|
|
3005
3001
|
|
|
3006
3002
|
# set the HTTP header `Accept`
|
|
@@ -3018,8 +3014,8 @@ class PersonaApi:
|
|
|
3018
3014
|
]
|
|
3019
3015
|
|
|
3020
3016
|
return self.api_client.param_serialize(
|
|
3021
|
-
method='
|
|
3022
|
-
resource_path='/api/v1/persona/seed',
|
|
3017
|
+
method='DELETE',
|
|
3018
|
+
resource_path='/api/v1/persona/seed/{seed_id}',
|
|
3023
3019
|
path_params=_path_params,
|
|
3024
3020
|
query_params=_query_params,
|
|
3025
3021
|
header_params=_header_params,
|