@faiber/faiber-profile 0.3.0 → 0.5.0

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.
@@ -1,36 +1,107 @@
1
1
  import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
- /** Backend response type: response without a declared JSON model. */
3
+ /** Backend response type: handler-defined response. */
4
4
  export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
5
5
  }
6
6
  /** Backend request type: BulkAddressGet. */
7
7
  export interface OptionAddressGetPostInput extends JsonObject {
8
+ "user_ids": string[];
8
9
  }
9
10
  /** Backend response type: Value. */
10
11
  export interface OptionAddressGetPostResponse extends ApiEnvelope<JsonValue> {
11
12
  }
12
13
  /** Backend response type: SessionResponse. */
14
+ export interface SessionGetSelfGetResponseDataProfileRoles extends JsonObject {
15
+ "id": string;
16
+ "name": string;
17
+ }
18
+ export interface SessionGetSelfGetResponseDataProfileCredential extends JsonObject {
19
+ "handle_registration": number;
20
+ "handle_registration_with_installment": number;
21
+ "handle_await_installment": number;
22
+ "handle_overdue_installment": number;
23
+ "handle_freemium_sessions": number;
24
+ "handle_cancel": number;
25
+ "total": number;
26
+ }
27
+ export interface SessionGetSelfGetResponseDataProfileParent extends JsonObject {
28
+ "user_id": string;
29
+ "parent_type"?: string | null;
30
+ }
31
+ export interface SessionGetSelfGetResponseDataProfile extends JsonObject {
32
+ "id": string;
33
+ "user_id": string;
34
+ "email"?: string | null;
35
+ "phone"?: string | null;
36
+ "national_code"?: string | null;
37
+ "first_name"?: JsonValue | null;
38
+ "last_name"?: JsonValue | null;
39
+ "status": string;
40
+ "employee_type"?: string | null;
41
+ "freemium_session_limit"?: number | null;
42
+ "avatar"?: string | null;
43
+ "has_active_enrollment": boolean;
44
+ "roles": SessionGetSelfGetResponseDataProfileRoles[];
45
+ "credential"?: SessionGetSelfGetResponseDataProfileCredential | null;
46
+ "meta"?: JsonValue | null;
47
+ "app"?: JsonValue | null;
48
+ "assessment"?: JsonValue | null;
49
+ "properties"?: JsonValue | null;
50
+ "services"?: JsonValue | null;
51
+ "parent"?: SessionGetSelfGetResponseDataProfileParent[] | null;
52
+ }
13
53
  export interface SessionGetSelfGetResponseData extends JsonObject {
14
54
  "user_id": string;
15
55
  "roles": string[];
16
56
  "permissions": string[];
57
+ "profile": SessionGetSelfGetResponseDataProfile;
17
58
  }
18
59
  export interface SessionGetSelfGetResponse extends ApiEnvelope<SessionGetSelfGetResponseData> {
19
60
  }
61
+ /** Backend response type: Value. */
62
+ export interface CampaignIndexGetResponse extends ApiEnvelope<JsonValue> {
63
+ }
64
+ /** Backend response type: Value. */
65
+ export interface CampaignMyContributionsGetResponse extends ApiEnvelope<JsonValue> {
66
+ }
67
+ /** Backend response type: Value. */
68
+ export interface CampaignShowGetResponse extends ApiEnvelope<JsonValue> {
69
+ }
70
+ /** Backend request type: ContributionRequest. */
71
+ export interface CampaignContributePostInput extends JsonObject {
72
+ "method": string;
73
+ "amount": number;
74
+ "unit": string;
75
+ "idempotency_key": string;
76
+ }
77
+ /** Backend response type: Value. */
78
+ export interface CampaignContributePostResponse extends ApiEnvelope<JsonValue> {
79
+ }
20
80
  /** Backend query type: models::ListQuery. */
21
81
  export interface CityIndexGetQuery extends QueryParams {
22
- "page"?: string;
23
- "per_page"?: string;
24
- "filter[search]"?: string;
25
- "filter[status]"?: string;
26
- "filter[active]"?: string;
27
- "filter[name]"?: string;
28
- "filter[province_id]"?: string;
29
- "filter[trashed]"?: string;
82
+ "page"?: string | null;
83
+ "per_page"?: string | null;
84
+ "filter[search]"?: string | null;
85
+ "filter[status]"?: string | null;
86
+ "filter[active]"?: string | null;
87
+ "filter[name]"?: string | null;
88
+ "filter[province_id]"?: string | null;
89
+ "filter[trashed]"?: string | null;
30
90
  }
31
91
  /** Backend response type: models::ListData. */
92
+ export interface CityIndexGetResponseDataCities extends JsonObject {
93
+ "id": string;
94
+ "province_id": string;
95
+ "name": string;
96
+ "latitude"?: number | null;
97
+ "longitude"?: number | null;
98
+ "status": string;
99
+ "created_at": string;
100
+ "updated_at"?: string | null;
101
+ "deleted_at"?: string | null;
102
+ }
32
103
  export interface CityIndexGetResponseData extends JsonObject {
33
- "cities": JsonValue[];
104
+ "cities": CityIndexGetResponseDataCities[];
34
105
  }
35
106
  export interface CityIndexGetMetaData extends JsonObject {
36
107
  "current_page": number;
@@ -45,12 +116,23 @@ export interface CityIndexGetResponse extends ApiEnvelope<CityIndexGetResponseDa
45
116
  export interface CityStorePostInput extends JsonObject {
46
117
  "province_id": string;
47
118
  "name": string;
48
- "latitude"?: number;
49
- "longitude"?: number;
119
+ "latitude"?: number | null;
120
+ "longitude"?: number | null;
50
121
  }
51
122
  /** Backend response type: models::SingleData. */
123
+ export interface CityStorePostResponseDataCity extends JsonObject {
124
+ "id": string;
125
+ "province_id": string;
126
+ "name": string;
127
+ "latitude"?: number | null;
128
+ "longitude"?: number | null;
129
+ "status": string;
130
+ "created_at": string;
131
+ "updated_at"?: string | null;
132
+ "deleted_at"?: string | null;
133
+ }
52
134
  export interface CityStorePostResponseData extends JsonObject {
53
- "city": JsonValue;
135
+ "city": CityStorePostResponseDataCity;
54
136
  }
55
137
  export interface CityStorePostResponse extends ApiEnvelope<CityStorePostResponseData> {
56
138
  }
@@ -58,36 +140,69 @@ export interface CityStorePostResponse extends ApiEnvelope<CityStorePostResponse
58
140
  export interface CityDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
59
141
  }
60
142
  /** Backend response type: models::SingleData. */
143
+ export interface CityShowGetResponseDataCity extends JsonObject {
144
+ "id": string;
145
+ "province_id": string;
146
+ "name": string;
147
+ "latitude"?: number | null;
148
+ "longitude"?: number | null;
149
+ "status": string;
150
+ "created_at": string;
151
+ "updated_at"?: string | null;
152
+ "deleted_at"?: string | null;
153
+ }
61
154
  export interface CityShowGetResponseData extends JsonObject {
62
- "city": JsonValue;
155
+ "city": CityShowGetResponseDataCity;
63
156
  }
64
157
  export interface CityShowGetResponse extends ApiEnvelope<CityShowGetResponseData> {
65
158
  }
66
159
  /** Backend request type: models::Update. */
67
160
  export interface CityUpdatePatchInput extends JsonObject {
68
- "province_id"?: string;
69
- "name"?: string;
70
- "latitude"?: number;
71
- "longitude"?: number;
72
- "status"?: string;
161
+ "province_id"?: string | null;
162
+ "name"?: string | null;
163
+ "latitude"?: number | null;
164
+ "longitude"?: number | null;
165
+ "status"?: string | null;
73
166
  }
74
167
  /** Backend response type: models::SingleData. */
168
+ export interface CityUpdatePatchResponseDataCity extends JsonObject {
169
+ "id": string;
170
+ "province_id": string;
171
+ "name": string;
172
+ "latitude"?: number | null;
173
+ "longitude"?: number | null;
174
+ "status": string;
175
+ "created_at": string;
176
+ "updated_at"?: string | null;
177
+ "deleted_at"?: string | null;
178
+ }
75
179
  export interface CityUpdatePatchResponseData extends JsonObject {
76
- "city": JsonValue;
180
+ "city": CityUpdatePatchResponseDataCity;
77
181
  }
78
182
  export interface CityUpdatePatchResponse extends ApiEnvelope<CityUpdatePatchResponseData> {
79
183
  }
80
184
  /** Backend request type: models::Update. */
81
185
  export interface CityUpdatePutInput extends JsonObject {
82
- "province_id"?: string;
83
- "name"?: string;
84
- "latitude"?: number;
85
- "longitude"?: number;
86
- "status"?: string;
186
+ "province_id"?: string | null;
187
+ "name"?: string | null;
188
+ "latitude"?: number | null;
189
+ "longitude"?: number | null;
190
+ "status"?: string | null;
87
191
  }
88
192
  /** Backend response type: models::SingleData. */
193
+ export interface CityUpdatePutResponseDataCity extends JsonObject {
194
+ "id": string;
195
+ "province_id": string;
196
+ "name": string;
197
+ "latitude"?: number | null;
198
+ "longitude"?: number | null;
199
+ "status": string;
200
+ "created_at": string;
201
+ "updated_at"?: string | null;
202
+ "deleted_at"?: string | null;
203
+ }
89
204
  export interface CityUpdatePutResponseData extends JsonObject {
90
- "city": JsonValue;
205
+ "city": CityUpdatePutResponseDataCity;
91
206
  }
92
207
  export interface CityUpdatePutResponse extends ApiEnvelope<CityUpdatePutResponseData> {
93
208
  }
@@ -99,17 +214,27 @@ export interface CityRestoreGetResponse extends ApiEnvelope<JsonValue> {
99
214
  }
100
215
  /** Backend query type: models::ListQuery. */
101
216
  export interface CountryIndexGetQuery extends QueryParams {
102
- "page"?: string;
103
- "per_page"?: string;
104
- "filter[search]"?: string;
105
- "filter[status]"?: string;
106
- "filter[active]"?: string;
107
- "filter[name]"?: string;
108
- "filter[trashed]"?: string;
217
+ "page"?: string | null;
218
+ "per_page"?: string | null;
219
+ "filter[search]"?: string | null;
220
+ "filter[status]"?: string | null;
221
+ "filter[active]"?: string | null;
222
+ "filter[name]"?: string | null;
223
+ "filter[trashed]"?: string | null;
109
224
  }
110
225
  /** Backend response type: models::ListData. */
226
+ export interface CountryIndexGetResponseDataCountries extends JsonObject {
227
+ "id": string;
228
+ "name": string;
229
+ "latitude"?: number | null;
230
+ "longitude"?: number | null;
231
+ "status": string;
232
+ "created_at": string;
233
+ "updated_at"?: string | null;
234
+ "deleted_at"?: string | null;
235
+ }
111
236
  export interface CountryIndexGetResponseData extends JsonObject {
112
- "countries": JsonValue[];
237
+ "countries": CountryIndexGetResponseDataCountries[];
113
238
  }
114
239
  export interface CountryIndexGetMetaData extends JsonObject {
115
240
  "current_page": number;
@@ -123,12 +248,22 @@ export interface CountryIndexGetResponse extends ApiEnvelope<CountryIndexGetResp
123
248
  /** Backend request type: models::Create. */
124
249
  export interface CountryStorePostInput extends JsonObject {
125
250
  "name": string;
126
- "latitude"?: number;
127
- "longitude"?: number;
251
+ "latitude"?: number | null;
252
+ "longitude"?: number | null;
128
253
  }
129
254
  /** Backend response type: models::SingleData. */
255
+ export interface CountryStorePostResponseDataCountry extends JsonObject {
256
+ "id": string;
257
+ "name": string;
258
+ "latitude"?: number | null;
259
+ "longitude"?: number | null;
260
+ "status": string;
261
+ "created_at": string;
262
+ "updated_at"?: string | null;
263
+ "deleted_at"?: string | null;
264
+ }
130
265
  export interface CountryStorePostResponseData extends JsonObject {
131
- "country": JsonValue;
266
+ "country": CountryStorePostResponseDataCountry;
132
267
  }
133
268
  export interface CountryStorePostResponse extends ApiEnvelope<CountryStorePostResponseData> {
134
269
  }
@@ -136,34 +271,64 @@ export interface CountryStorePostResponse extends ApiEnvelope<CountryStorePostRe
136
271
  export interface CountryDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
137
272
  }
138
273
  /** Backend response type: models::SingleData. */
274
+ export interface CountryShowGetResponseDataCountry extends JsonObject {
275
+ "id": string;
276
+ "name": string;
277
+ "latitude"?: number | null;
278
+ "longitude"?: number | null;
279
+ "status": string;
280
+ "created_at": string;
281
+ "updated_at"?: string | null;
282
+ "deleted_at"?: string | null;
283
+ }
139
284
  export interface CountryShowGetResponseData extends JsonObject {
140
- "country": JsonValue;
285
+ "country": CountryShowGetResponseDataCountry;
141
286
  }
142
287
  export interface CountryShowGetResponse extends ApiEnvelope<CountryShowGetResponseData> {
143
288
  }
144
289
  /** Backend request type: models::Update. */
145
290
  export interface CountryUpdatePatchInput extends JsonObject {
146
- "name"?: string;
147
- "status"?: string;
148
- "latitude"?: number;
149
- "longitude"?: number;
291
+ "name"?: string | null;
292
+ "status"?: string | null;
293
+ "latitude"?: number | null;
294
+ "longitude"?: number | null;
150
295
  }
151
296
  /** Backend response type: models::SingleData. */
297
+ export interface CountryUpdatePatchResponseDataCountry extends JsonObject {
298
+ "id": string;
299
+ "name": string;
300
+ "latitude"?: number | null;
301
+ "longitude"?: number | null;
302
+ "status": string;
303
+ "created_at": string;
304
+ "updated_at"?: string | null;
305
+ "deleted_at"?: string | null;
306
+ }
152
307
  export interface CountryUpdatePatchResponseData extends JsonObject {
153
- "country": JsonValue;
308
+ "country": CountryUpdatePatchResponseDataCountry;
154
309
  }
155
310
  export interface CountryUpdatePatchResponse extends ApiEnvelope<CountryUpdatePatchResponseData> {
156
311
  }
157
312
  /** Backend request type: models::Update. */
158
313
  export interface CountryUpdatePutInput extends JsonObject {
159
- "name"?: string;
160
- "status"?: string;
161
- "latitude"?: number;
162
- "longitude"?: number;
314
+ "name"?: string | null;
315
+ "status"?: string | null;
316
+ "latitude"?: number | null;
317
+ "longitude"?: number | null;
163
318
  }
164
319
  /** Backend response type: models::SingleData. */
320
+ export interface CountryUpdatePutResponseDataCountry extends JsonObject {
321
+ "id": string;
322
+ "name": string;
323
+ "latitude"?: number | null;
324
+ "longitude"?: number | null;
325
+ "status": string;
326
+ "created_at": string;
327
+ "updated_at"?: string | null;
328
+ "deleted_at"?: string | null;
329
+ }
165
330
  export interface CountryUpdatePutResponseData extends JsonObject {
166
- "country": JsonValue;
331
+ "country": CountryUpdatePutResponseDataCountry;
167
332
  }
168
333
  export interface CountryUpdatePutResponse extends ApiEnvelope<CountryUpdatePutResponseData> {
169
334
  }
@@ -180,9 +345,34 @@ export interface OptionDependencyGetResponse extends ApiEnvelope<JsonValue> {
180
345
  export interface OptionIdentityGetResponse extends ApiEnvelope<JsonValue> {
181
346
  }
182
347
  /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
348
+ export interface IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields extends JsonObject {
349
+ "name": string;
350
+ "field_type": string;
351
+ "required": boolean;
352
+ "description": string;
353
+ }
354
+ export interface IntegrationIntegrationDocsShowGetResponseDataDirectEvents extends JsonObject {
355
+ "event_name": string;
356
+ "payload_fields": IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields[];
357
+ }
358
+ export interface IntegrationIntegrationDocsShowGetResponseDataDirect extends JsonObject {
359
+ "transport": string;
360
+ "queue"?: string | null;
361
+ "base_url"?: string | null;
362
+ "broker_url_hint"?: string | null;
363
+ "sample_profile_id"?: string | null;
364
+ "events": IntegrationIntegrationDocsShowGetResponseDataDirectEvents[];
365
+ }
366
+ export interface IntegrationIntegrationDocsShowGetResponseDataSdk extends JsonObject {
367
+ "event_name": string;
368
+ "method": string;
369
+ "language": string;
370
+ "cargo_dep": string;
371
+ "code": string;
372
+ }
183
373
  export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
184
- "direct": JsonValue;
185
- "sdk": JsonValue[];
374
+ "direct": IntegrationIntegrationDocsShowGetResponseDataDirect;
375
+ "sdk": IntegrationIntegrationDocsShowGetResponseDataSdk[];
186
376
  }
187
377
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
188
378
  }
@@ -191,18 +381,24 @@ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<J
191
381
  }
192
382
  /** Backend request type: LogActionCreate. */
193
383
  export interface LogActionStorePostInput extends JsonObject {
384
+ "action": string;
385
+ "meta"?: JsonValue | null;
194
386
  }
195
387
  /** Backend response type: Value. */
196
388
  export interface LogActionStorePostResponse extends ApiEnvelope<JsonValue> {
197
389
  }
198
390
  /** Backend request type: LogActionCreate. */
199
391
  export interface LogActionStoreSlugPostInput extends JsonObject {
392
+ "action": string;
393
+ "meta"?: JsonValue | null;
200
394
  }
201
395
  /** Backend response type: Value. */
202
396
  export interface LogActionStoreSlugPostResponse extends ApiEnvelope<JsonValue> {
203
397
  }
204
398
  /** Backend request type: LogActionCreate. */
205
399
  export interface LogActionStoreDirectPostInput extends JsonObject {
400
+ "action": string;
401
+ "meta"?: JsonValue | null;
206
402
  }
207
403
  /** Backend response type: Value. */
208
404
  export interface LogActionStoreDirectPostResponse extends ApiEnvelope<JsonValue> {
@@ -215,23 +411,63 @@ export interface LoggerShowGetResponse extends ApiEnvelope<JsonValue> {
215
411
  }
216
412
  /** Backend request type: BulkParentGet. */
217
413
  export interface OptionParentGetPostInput extends JsonObject {
414
+ "user_ids": string[];
218
415
  }
219
416
  /** Backend response type: Value. */
220
417
  export interface OptionParentGetPostResponse extends ApiEnvelope<JsonValue> {
221
418
  }
222
419
  /** Backend query type: models::ListQuery. */
223
420
  export interface ProfileIndexGetQuery extends QueryParams {
224
- "page"?: string;
225
- "per_page"?: string;
226
- "filter[search]"?: string;
227
- "filter[status]"?: string;
228
- "filter[active]"?: string;
229
- "filter[role]"?: string;
230
- "filter[trashed]"?: string;
421
+ "page"?: string | null;
422
+ "per_page"?: string | null;
423
+ "filter[search]"?: string | null;
424
+ "filter[status]"?: string | null;
425
+ "filter[active]"?: string | null;
426
+ "filter[role]"?: string | null;
427
+ "filter[trashed]"?: string | null;
231
428
  }
232
429
  /** Backend response type: models::ListData. */
430
+ export interface ProfileIndexGetResponseDataProfilesRoles extends JsonObject {
431
+ "id": string;
432
+ "name": string;
433
+ }
434
+ export interface ProfileIndexGetResponseDataProfilesCredential extends JsonObject {
435
+ "handle_registration": number;
436
+ "handle_registration_with_installment": number;
437
+ "handle_await_installment": number;
438
+ "handle_overdue_installment": number;
439
+ "handle_freemium_sessions": number;
440
+ "handle_cancel": number;
441
+ "total": number;
442
+ }
443
+ export interface ProfileIndexGetResponseDataProfilesParent extends JsonObject {
444
+ "user_id": string;
445
+ "parent_type"?: string | null;
446
+ }
447
+ export interface ProfileIndexGetResponseDataProfiles extends JsonObject {
448
+ "id": string;
449
+ "user_id": string;
450
+ "email"?: string | null;
451
+ "phone"?: string | null;
452
+ "national_code"?: string | null;
453
+ "first_name"?: JsonValue | null;
454
+ "last_name"?: JsonValue | null;
455
+ "status": string;
456
+ "employee_type"?: string | null;
457
+ "freemium_session_limit"?: number | null;
458
+ "avatar"?: string | null;
459
+ "has_active_enrollment": boolean;
460
+ "roles": ProfileIndexGetResponseDataProfilesRoles[];
461
+ "credential"?: ProfileIndexGetResponseDataProfilesCredential | null;
462
+ "meta"?: JsonValue | null;
463
+ "app"?: JsonValue | null;
464
+ "assessment"?: JsonValue | null;
465
+ "properties"?: JsonValue | null;
466
+ "services"?: JsonValue | null;
467
+ "parent"?: ProfileIndexGetResponseDataProfilesParent[] | null;
468
+ }
233
469
  export interface ProfileIndexGetResponseData extends JsonObject {
234
- "profiles": JsonValue[];
470
+ "profiles": ProfileIndexGetResponseDataProfiles[];
235
471
  }
236
472
  export interface ProfileIndexGetMetaData extends JsonObject {
237
473
  "current_page": number;
@@ -244,18 +480,35 @@ export interface ProfileIndexGetResponse extends ApiEnvelope<ProfileIndexGetResp
244
480
  }
245
481
  /** Backend query type: models::ListQuery. */
246
482
  export interface ProfilePropertyIndexGetQuery extends QueryParams {
247
- "page"?: string;
248
- "per_page"?: string;
249
- "filter[search]"?: string;
250
- "filter[status]"?: string;
251
- "filter[active]"?: string;
252
- "filter[key]"?: string;
253
- "filter[title]"?: string;
254
- "filter[trashed]"?: string;
483
+ "page"?: string | null;
484
+ "per_page"?: string | null;
485
+ "filter[search]"?: string | null;
486
+ "filter[status]"?: string | null;
487
+ "filter[active]"?: string | null;
488
+ "filter[key]"?: string | null;
489
+ "filter[title]"?: string | null;
490
+ "filter[trashed]"?: string | null;
255
491
  }
256
492
  /** Backend response type: models::ListData. */
493
+ export interface ProfilePropertyIndexGetResponseDataProfilePropertyDefinitions extends JsonObject {
494
+ "id": string;
495
+ "key": string;
496
+ "title": string;
497
+ "validator_type": string;
498
+ "validator_config"?: JsonValue | null;
499
+ "visible_in_list": boolean;
500
+ "visible_in_get": boolean;
501
+ "visible_in_full": boolean;
502
+ "filterable": boolean;
503
+ "index_value_kind"?: string | null;
504
+ "sort_order": number;
505
+ "status": string;
506
+ "created_at": string;
507
+ "updated_at"?: string | null;
508
+ "deleted_at"?: string | null;
509
+ }
257
510
  export interface ProfilePropertyIndexGetResponseData extends JsonObject {
258
- "profile_property_definitions": JsonValue[];
511
+ "profile_property_definitions": ProfilePropertyIndexGetResponseDataProfilePropertyDefinitions[];
259
512
  }
260
513
  export interface ProfilePropertyIndexGetMetaData extends JsonObject {
261
514
  "current_page": number;
@@ -271,17 +524,34 @@ export interface ProfilePropertyStorePostInput extends JsonObject {
271
524
  "key": string;
272
525
  "title": string;
273
526
  "validator_type": string;
274
- "validator_config"?: JsonValue;
275
- "visible_in_list"?: boolean;
276
- "visible_in_get"?: boolean;
277
- "visible_in_full"?: boolean;
278
- "filterable"?: boolean;
279
- "index_value_kind"?: string;
280
- "sort_order"?: number;
527
+ "validator_config"?: JsonValue | null;
528
+ "visible_in_list"?: boolean | null;
529
+ "visible_in_get"?: boolean | null;
530
+ "visible_in_full"?: boolean | null;
531
+ "filterable"?: boolean | null;
532
+ "index_value_kind"?: string | null;
533
+ "sort_order"?: number | null;
281
534
  }
282
535
  /** Backend response type: models::SingleData. */
536
+ export interface ProfilePropertyStorePostResponseDataProfilePropertyDefinition extends JsonObject {
537
+ "id": string;
538
+ "key": string;
539
+ "title": string;
540
+ "validator_type": string;
541
+ "validator_config"?: JsonValue | null;
542
+ "visible_in_list": boolean;
543
+ "visible_in_get": boolean;
544
+ "visible_in_full": boolean;
545
+ "filterable": boolean;
546
+ "index_value_kind"?: string | null;
547
+ "sort_order": number;
548
+ "status": string;
549
+ "created_at": string;
550
+ "updated_at"?: string | null;
551
+ "deleted_at"?: string | null;
552
+ }
283
553
  export interface ProfilePropertyStorePostResponseData extends JsonObject {
284
- "profile_property_definition": JsonValue;
554
+ "profile_property_definition": ProfilePropertyStorePostResponseDataProfilePropertyDefinition;
285
555
  }
286
556
  export interface ProfilePropertyStorePostResponse extends ApiEnvelope<ProfilePropertyStorePostResponseData> {
287
557
  }
@@ -289,48 +559,99 @@ export interface ProfilePropertyStorePostResponse extends ApiEnvelope<ProfilePro
289
559
  export interface ProfilePropertyDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
290
560
  }
291
561
  /** Backend response type: models::SingleData. */
562
+ export interface ProfilePropertyShowGetResponseDataProfilePropertyDefinition extends JsonObject {
563
+ "id": string;
564
+ "key": string;
565
+ "title": string;
566
+ "validator_type": string;
567
+ "validator_config"?: JsonValue | null;
568
+ "visible_in_list": boolean;
569
+ "visible_in_get": boolean;
570
+ "visible_in_full": boolean;
571
+ "filterable": boolean;
572
+ "index_value_kind"?: string | null;
573
+ "sort_order": number;
574
+ "status": string;
575
+ "created_at": string;
576
+ "updated_at"?: string | null;
577
+ "deleted_at"?: string | null;
578
+ }
292
579
  export interface ProfilePropertyShowGetResponseData extends JsonObject {
293
- "profile_property_definition": JsonValue;
580
+ "profile_property_definition": ProfilePropertyShowGetResponseDataProfilePropertyDefinition;
294
581
  }
295
582
  export interface ProfilePropertyShowGetResponse extends ApiEnvelope<ProfilePropertyShowGetResponseData> {
296
583
  }
297
584
  /** Backend request type: models::Update. */
298
585
  export interface ProfilePropertyUpdatePatchInput extends JsonObject {
299
- "key"?: string;
300
- "title"?: string;
301
- "validator_type"?: string;
302
- "validator_config"?: JsonValue;
303
- "visible_in_list"?: boolean;
304
- "visible_in_get"?: boolean;
305
- "visible_in_full"?: boolean;
306
- "filterable"?: boolean;
307
- "index_value_kind"?: string;
308
- "sort_order"?: number;
309
- "status"?: string;
586
+ "key"?: string | null;
587
+ "title"?: string | null;
588
+ "validator_type"?: string | null;
589
+ "validator_config"?: JsonValue | null;
590
+ "visible_in_list"?: boolean | null;
591
+ "visible_in_get"?: boolean | null;
592
+ "visible_in_full"?: boolean | null;
593
+ "filterable"?: boolean | null;
594
+ "index_value_kind"?: string | null;
595
+ "sort_order"?: number | null;
596
+ "status"?: string | null;
310
597
  }
311
598
  /** Backend response type: models::SingleData. */
599
+ export interface ProfilePropertyUpdatePatchResponseDataProfilePropertyDefinition extends JsonObject {
600
+ "id": string;
601
+ "key": string;
602
+ "title": string;
603
+ "validator_type": string;
604
+ "validator_config"?: JsonValue | null;
605
+ "visible_in_list": boolean;
606
+ "visible_in_get": boolean;
607
+ "visible_in_full": boolean;
608
+ "filterable": boolean;
609
+ "index_value_kind"?: string | null;
610
+ "sort_order": number;
611
+ "status": string;
612
+ "created_at": string;
613
+ "updated_at"?: string | null;
614
+ "deleted_at"?: string | null;
615
+ }
312
616
  export interface ProfilePropertyUpdatePatchResponseData extends JsonObject {
313
- "profile_property_definition": JsonValue;
617
+ "profile_property_definition": ProfilePropertyUpdatePatchResponseDataProfilePropertyDefinition;
314
618
  }
315
619
  export interface ProfilePropertyUpdatePatchResponse extends ApiEnvelope<ProfilePropertyUpdatePatchResponseData> {
316
620
  }
317
621
  /** Backend request type: models::Update. */
318
622
  export interface ProfilePropertyUpdatePutInput extends JsonObject {
319
- "key"?: string;
320
- "title"?: string;
321
- "validator_type"?: string;
322
- "validator_config"?: JsonValue;
323
- "visible_in_list"?: boolean;
324
- "visible_in_get"?: boolean;
325
- "visible_in_full"?: boolean;
326
- "filterable"?: boolean;
327
- "index_value_kind"?: string;
328
- "sort_order"?: number;
329
- "status"?: string;
623
+ "key"?: string | null;
624
+ "title"?: string | null;
625
+ "validator_type"?: string | null;
626
+ "validator_config"?: JsonValue | null;
627
+ "visible_in_list"?: boolean | null;
628
+ "visible_in_get"?: boolean | null;
629
+ "visible_in_full"?: boolean | null;
630
+ "filterable"?: boolean | null;
631
+ "index_value_kind"?: string | null;
632
+ "sort_order"?: number | null;
633
+ "status"?: string | null;
330
634
  }
331
635
  /** Backend response type: models::SingleData. */
636
+ export interface ProfilePropertyUpdatePutResponseDataProfilePropertyDefinition extends JsonObject {
637
+ "id": string;
638
+ "key": string;
639
+ "title": string;
640
+ "validator_type": string;
641
+ "validator_config"?: JsonValue | null;
642
+ "visible_in_list": boolean;
643
+ "visible_in_get": boolean;
644
+ "visible_in_full": boolean;
645
+ "filterable": boolean;
646
+ "index_value_kind"?: string | null;
647
+ "sort_order": number;
648
+ "status": string;
649
+ "created_at": string;
650
+ "updated_at"?: string | null;
651
+ "deleted_at"?: string | null;
652
+ }
332
653
  export interface ProfilePropertyUpdatePutResponseData extends JsonObject {
333
- "profile_property_definition": JsonValue;
654
+ "profile_property_definition": ProfilePropertyUpdatePutResponseDataProfilePropertyDefinition;
334
655
  }
335
656
  export interface ProfilePropertyUpdatePutResponse extends ApiEnvelope<ProfilePropertyUpdatePutResponseData> {
336
657
  }
@@ -347,8 +668,47 @@ export interface ProfileDeleteParentDeleteResponse extends ApiEnvelope<JsonValue
347
668
  export interface ProfileDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
348
669
  }
349
670
  /** Backend response type: models::SingleData. */
671
+ export interface ProfileShowGetResponseDataProfileRoles extends JsonObject {
672
+ "id": string;
673
+ "name": string;
674
+ }
675
+ export interface ProfileShowGetResponseDataProfileCredential extends JsonObject {
676
+ "handle_registration": number;
677
+ "handle_registration_with_installment": number;
678
+ "handle_await_installment": number;
679
+ "handle_overdue_installment": number;
680
+ "handle_freemium_sessions": number;
681
+ "handle_cancel": number;
682
+ "total": number;
683
+ }
684
+ export interface ProfileShowGetResponseDataProfileParent extends JsonObject {
685
+ "user_id": string;
686
+ "parent_type"?: string | null;
687
+ }
688
+ export interface ProfileShowGetResponseDataProfile extends JsonObject {
689
+ "id": string;
690
+ "user_id": string;
691
+ "email"?: string | null;
692
+ "phone"?: string | null;
693
+ "national_code"?: string | null;
694
+ "first_name"?: JsonValue | null;
695
+ "last_name"?: JsonValue | null;
696
+ "status": string;
697
+ "employee_type"?: string | null;
698
+ "freemium_session_limit"?: number | null;
699
+ "avatar"?: string | null;
700
+ "has_active_enrollment": boolean;
701
+ "roles": ProfileShowGetResponseDataProfileRoles[];
702
+ "credential"?: ProfileShowGetResponseDataProfileCredential | null;
703
+ "meta"?: JsonValue | null;
704
+ "app"?: JsonValue | null;
705
+ "assessment"?: JsonValue | null;
706
+ "properties"?: JsonValue | null;
707
+ "services"?: JsonValue | null;
708
+ "parent"?: ProfileShowGetResponseDataProfileParent[] | null;
709
+ }
350
710
  export interface ProfileShowGetResponseData extends JsonObject {
351
- "profile": JsonValue;
711
+ "profile": ProfileShowGetResponseDataProfile;
352
712
  }
353
713
  export interface ProfileShowGetResponse extends ApiEnvelope<ProfileShowGetResponseData> {
354
714
  }
@@ -358,8 +718,8 @@ export interface ProfileUpdatePatchInput extends JsonObject {
358
718
  "phone"?: string | null;
359
719
  "national_code"?: string | null;
360
720
  "national_number"?: string | null;
361
- "first_name"?: JsonValue;
362
- "last_name"?: JsonValue;
721
+ "first_name"?: JsonValue | null;
722
+ "last_name"?: JsonValue | null;
363
723
  "birthday"?: string | null;
364
724
  "nationality"?: string | null;
365
725
  "religion"?: string | null;
@@ -374,31 +734,115 @@ export interface ProfileUpdatePatchInput extends JsonObject {
374
734
  "country_id"?: string | null;
375
735
  "province_id"?: string | null;
376
736
  "city_id"?: string | null;
377
- "status"?: string;
737
+ "status"?: string | null;
378
738
  "employee_type"?: string | null;
379
739
  "freemium_session_limit"?: number | null;
380
- "meta"?: JsonValue;
381
- "app"?: JsonValue;
382
- "properties"?: Record<string, JsonValue>;
740
+ "meta"?: JsonValue | null;
741
+ "app"?: JsonValue | null;
742
+ "properties"?: Record<string, JsonValue> | null;
383
743
  }
384
744
  /** Backend response type: models::SingleData. */
745
+ export interface ProfileUpdatePatchResponseDataProfileRoles extends JsonObject {
746
+ "id": string;
747
+ "name": string;
748
+ }
749
+ export interface ProfileUpdatePatchResponseDataProfileCredential extends JsonObject {
750
+ "handle_registration": number;
751
+ "handle_registration_with_installment": number;
752
+ "handle_await_installment": number;
753
+ "handle_overdue_installment": number;
754
+ "handle_freemium_sessions": number;
755
+ "handle_cancel": number;
756
+ "total": number;
757
+ }
758
+ export interface ProfileUpdatePatchResponseDataProfileParent extends JsonObject {
759
+ "user_id": string;
760
+ "parent_type"?: string | null;
761
+ }
762
+ export interface ProfileUpdatePatchResponseDataProfile extends JsonObject {
763
+ "id": string;
764
+ "user_id": string;
765
+ "email"?: string | null;
766
+ "phone"?: string | null;
767
+ "national_code"?: string | null;
768
+ "first_name"?: JsonValue | null;
769
+ "last_name"?: JsonValue | null;
770
+ "status": string;
771
+ "employee_type"?: string | null;
772
+ "freemium_session_limit"?: number | null;
773
+ "avatar"?: string | null;
774
+ "has_active_enrollment": boolean;
775
+ "roles": ProfileUpdatePatchResponseDataProfileRoles[];
776
+ "credential"?: ProfileUpdatePatchResponseDataProfileCredential | null;
777
+ "meta"?: JsonValue | null;
778
+ "app"?: JsonValue | null;
779
+ "assessment"?: JsonValue | null;
780
+ "properties"?: JsonValue | null;
781
+ "services"?: JsonValue | null;
782
+ "parent"?: ProfileUpdatePatchResponseDataProfileParent[] | null;
783
+ }
385
784
  export interface ProfileUpdatePatchResponseData extends JsonObject {
386
- "profile": JsonValue;
785
+ "profile": ProfileUpdatePatchResponseDataProfile;
387
786
  }
388
787
  export interface ProfileUpdatePatchResponse extends ApiEnvelope<ProfileUpdatePatchResponseData> {
389
788
  }
390
789
  /** Backend response type: models::SingleData. */
790
+ export interface ProfileShowAdminGetResponseDataProfileRoles extends JsonObject {
791
+ "id": string;
792
+ "name": string;
793
+ }
794
+ export interface ProfileShowAdminGetResponseDataProfileCredential extends JsonObject {
795
+ "handle_registration": number;
796
+ "handle_registration_with_installment": number;
797
+ "handle_await_installment": number;
798
+ "handle_overdue_installment": number;
799
+ "handle_freemium_sessions": number;
800
+ "handle_cancel": number;
801
+ "total": number;
802
+ }
803
+ export interface ProfileShowAdminGetResponseDataProfileParent extends JsonObject {
804
+ "user_id": string;
805
+ "parent_type"?: string | null;
806
+ }
807
+ export interface ProfileShowAdminGetResponseDataProfile extends JsonObject {
808
+ "id": string;
809
+ "user_id": string;
810
+ "email"?: string | null;
811
+ "phone"?: string | null;
812
+ "national_code"?: string | null;
813
+ "first_name"?: JsonValue | null;
814
+ "last_name"?: JsonValue | null;
815
+ "status": string;
816
+ "employee_type"?: string | null;
817
+ "freemium_session_limit"?: number | null;
818
+ "avatar"?: string | null;
819
+ "has_active_enrollment": boolean;
820
+ "roles": ProfileShowAdminGetResponseDataProfileRoles[];
821
+ "credential"?: ProfileShowAdminGetResponseDataProfileCredential | null;
822
+ "meta"?: JsonValue | null;
823
+ "app"?: JsonValue | null;
824
+ "assessment"?: JsonValue | null;
825
+ "properties"?: JsonValue | null;
826
+ "services"?: JsonValue | null;
827
+ "parent"?: ProfileShowAdminGetResponseDataProfileParent[] | null;
828
+ }
391
829
  export interface ProfileShowAdminGetResponseData extends JsonObject {
392
- "profile": JsonValue;
830
+ "profile": ProfileShowAdminGetResponseDataProfile;
393
831
  }
394
832
  export interface ProfileShowAdminGetResponse extends ApiEnvelope<ProfileShowAdminGetResponseData> {
395
833
  }
396
834
  /** Backend response type: serde_json::Value. */
397
835
  export interface ProfileAvatarDeleteDeleteResponse extends ApiEnvelope<JsonValue> {
398
836
  }
399
- /** Backend request type: multipart/form-data. */
400
- export interface ProfileAvatarStorePostInput extends JsonObject {
837
+ /** Backend query type: MediaQuery. */
838
+ export interface ProfileAvatarShowGetQuery extends QueryParams {
839
+ "key": string;
840
+ }
841
+ /** Backend response type: handler-defined response. */
842
+ export interface ProfileAvatarShowGetResponse extends ApiEnvelope<JsonValue> {
401
843
  }
844
+ /** Backend request type: multipart/form-data. */
845
+ export type ProfileAvatarStorePostInput = FormData;
402
846
  /** Backend response type: serde_json::Value. */
403
847
  export interface ProfileAvatarStorePostResponse extends ApiEnvelope<JsonValue> {
404
848
  }
@@ -410,8 +854,47 @@ export interface ProfileUpdateEmployeeTypePatchInput extends JsonObject {
410
854
  "employee_type": string;
411
855
  }
412
856
  /** Backend response type: models::SingleData. */
857
+ export interface ProfileUpdateEmployeeTypePatchResponseDataProfileRoles extends JsonObject {
858
+ "id": string;
859
+ "name": string;
860
+ }
861
+ export interface ProfileUpdateEmployeeTypePatchResponseDataProfileCredential extends JsonObject {
862
+ "handle_registration": number;
863
+ "handle_registration_with_installment": number;
864
+ "handle_await_installment": number;
865
+ "handle_overdue_installment": number;
866
+ "handle_freemium_sessions": number;
867
+ "handle_cancel": number;
868
+ "total": number;
869
+ }
870
+ export interface ProfileUpdateEmployeeTypePatchResponseDataProfileParent extends JsonObject {
871
+ "user_id": string;
872
+ "parent_type"?: string | null;
873
+ }
874
+ export interface ProfileUpdateEmployeeTypePatchResponseDataProfile extends JsonObject {
875
+ "id": string;
876
+ "user_id": string;
877
+ "email"?: string | null;
878
+ "phone"?: string | null;
879
+ "national_code"?: string | null;
880
+ "first_name"?: JsonValue | null;
881
+ "last_name"?: JsonValue | null;
882
+ "status": string;
883
+ "employee_type"?: string | null;
884
+ "freemium_session_limit"?: number | null;
885
+ "avatar"?: string | null;
886
+ "has_active_enrollment": boolean;
887
+ "roles": ProfileUpdateEmployeeTypePatchResponseDataProfileRoles[];
888
+ "credential"?: ProfileUpdateEmployeeTypePatchResponseDataProfileCredential | null;
889
+ "meta"?: JsonValue | null;
890
+ "app"?: JsonValue | null;
891
+ "assessment"?: JsonValue | null;
892
+ "properties"?: JsonValue | null;
893
+ "services"?: JsonValue | null;
894
+ "parent"?: ProfileUpdateEmployeeTypePatchResponseDataProfileParent[] | null;
895
+ }
413
896
  export interface ProfileUpdateEmployeeTypePatchResponseData extends JsonObject {
414
- "profile": JsonValue;
897
+ "profile": ProfileUpdateEmployeeTypePatchResponseDataProfile;
415
898
  }
416
899
  export interface ProfileUpdateEmployeeTypePatchResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePatchResponseData> {
417
900
  }
@@ -420,8 +903,47 @@ export interface ProfileUpdateEmployeeTypePutInput extends JsonObject {
420
903
  "employee_type": string;
421
904
  }
422
905
  /** Backend response type: models::SingleData. */
906
+ export interface ProfileUpdateEmployeeTypePutResponseDataProfileRoles extends JsonObject {
907
+ "id": string;
908
+ "name": string;
909
+ }
910
+ export interface ProfileUpdateEmployeeTypePutResponseDataProfileCredential extends JsonObject {
911
+ "handle_registration": number;
912
+ "handle_registration_with_installment": number;
913
+ "handle_await_installment": number;
914
+ "handle_overdue_installment": number;
915
+ "handle_freemium_sessions": number;
916
+ "handle_cancel": number;
917
+ "total": number;
918
+ }
919
+ export interface ProfileUpdateEmployeeTypePutResponseDataProfileParent extends JsonObject {
920
+ "user_id": string;
921
+ "parent_type"?: string | null;
922
+ }
923
+ export interface ProfileUpdateEmployeeTypePutResponseDataProfile extends JsonObject {
924
+ "id": string;
925
+ "user_id": string;
926
+ "email"?: string | null;
927
+ "phone"?: string | null;
928
+ "national_code"?: string | null;
929
+ "first_name"?: JsonValue | null;
930
+ "last_name"?: JsonValue | null;
931
+ "status": string;
932
+ "employee_type"?: string | null;
933
+ "freemium_session_limit"?: number | null;
934
+ "avatar"?: string | null;
935
+ "has_active_enrollment": boolean;
936
+ "roles": ProfileUpdateEmployeeTypePutResponseDataProfileRoles[];
937
+ "credential"?: ProfileUpdateEmployeeTypePutResponseDataProfileCredential | null;
938
+ "meta"?: JsonValue | null;
939
+ "app"?: JsonValue | null;
940
+ "assessment"?: JsonValue | null;
941
+ "properties"?: JsonValue | null;
942
+ "services"?: JsonValue | null;
943
+ "parent"?: ProfileUpdateEmployeeTypePutResponseDataProfileParent[] | null;
944
+ }
423
945
  export interface ProfileUpdateEmployeeTypePutResponseData extends JsonObject {
424
- "profile": JsonValue;
946
+ "profile": ProfileUpdateEmployeeTypePutResponseDataProfile;
425
947
  }
426
948
  export interface ProfileUpdateEmployeeTypePutResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePutResponseData> {
427
949
  }
@@ -430,8 +952,47 @@ export interface ProfileUpdateFreemiumPatchInput extends JsonObject {
430
952
  "freemium_session_limit": number;
431
953
  }
432
954
  /** Backend response type: models::SingleData. */
955
+ export interface ProfileUpdateFreemiumPatchResponseDataProfileRoles extends JsonObject {
956
+ "id": string;
957
+ "name": string;
958
+ }
959
+ export interface ProfileUpdateFreemiumPatchResponseDataProfileCredential extends JsonObject {
960
+ "handle_registration": number;
961
+ "handle_registration_with_installment": number;
962
+ "handle_await_installment": number;
963
+ "handle_overdue_installment": number;
964
+ "handle_freemium_sessions": number;
965
+ "handle_cancel": number;
966
+ "total": number;
967
+ }
968
+ export interface ProfileUpdateFreemiumPatchResponseDataProfileParent extends JsonObject {
969
+ "user_id": string;
970
+ "parent_type"?: string | null;
971
+ }
972
+ export interface ProfileUpdateFreemiumPatchResponseDataProfile extends JsonObject {
973
+ "id": string;
974
+ "user_id": string;
975
+ "email"?: string | null;
976
+ "phone"?: string | null;
977
+ "national_code"?: string | null;
978
+ "first_name"?: JsonValue | null;
979
+ "last_name"?: JsonValue | null;
980
+ "status": string;
981
+ "employee_type"?: string | null;
982
+ "freemium_session_limit"?: number | null;
983
+ "avatar"?: string | null;
984
+ "has_active_enrollment": boolean;
985
+ "roles": ProfileUpdateFreemiumPatchResponseDataProfileRoles[];
986
+ "credential"?: ProfileUpdateFreemiumPatchResponseDataProfileCredential | null;
987
+ "meta"?: JsonValue | null;
988
+ "app"?: JsonValue | null;
989
+ "assessment"?: JsonValue | null;
990
+ "properties"?: JsonValue | null;
991
+ "services"?: JsonValue | null;
992
+ "parent"?: ProfileUpdateFreemiumPatchResponseDataProfileParent[] | null;
993
+ }
433
994
  export interface ProfileUpdateFreemiumPatchResponseData extends JsonObject {
434
- "profile": JsonValue;
995
+ "profile": ProfileUpdateFreemiumPatchResponseDataProfile;
435
996
  }
436
997
  export interface ProfileUpdateFreemiumPatchResponse extends ApiEnvelope<ProfileUpdateFreemiumPatchResponseData> {
437
998
  }
@@ -440,21 +1001,100 @@ export interface ProfileUpdateFreemiumPutInput extends JsonObject {
440
1001
  "freemium_session_limit": number;
441
1002
  }
442
1003
  /** Backend response type: models::SingleData. */
1004
+ export interface ProfileUpdateFreemiumPutResponseDataProfileRoles extends JsonObject {
1005
+ "id": string;
1006
+ "name": string;
1007
+ }
1008
+ export interface ProfileUpdateFreemiumPutResponseDataProfileCredential extends JsonObject {
1009
+ "handle_registration": number;
1010
+ "handle_registration_with_installment": number;
1011
+ "handle_await_installment": number;
1012
+ "handle_overdue_installment": number;
1013
+ "handle_freemium_sessions": number;
1014
+ "handle_cancel": number;
1015
+ "total": number;
1016
+ }
1017
+ export interface ProfileUpdateFreemiumPutResponseDataProfileParent extends JsonObject {
1018
+ "user_id": string;
1019
+ "parent_type"?: string | null;
1020
+ }
1021
+ export interface ProfileUpdateFreemiumPutResponseDataProfile extends JsonObject {
1022
+ "id": string;
1023
+ "user_id": string;
1024
+ "email"?: string | null;
1025
+ "phone"?: string | null;
1026
+ "national_code"?: string | null;
1027
+ "first_name"?: JsonValue | null;
1028
+ "last_name"?: JsonValue | null;
1029
+ "status": string;
1030
+ "employee_type"?: string | null;
1031
+ "freemium_session_limit"?: number | null;
1032
+ "avatar"?: string | null;
1033
+ "has_active_enrollment": boolean;
1034
+ "roles": ProfileUpdateFreemiumPutResponseDataProfileRoles[];
1035
+ "credential"?: ProfileUpdateFreemiumPutResponseDataProfileCredential | null;
1036
+ "meta"?: JsonValue | null;
1037
+ "app"?: JsonValue | null;
1038
+ "assessment"?: JsonValue | null;
1039
+ "properties"?: JsonValue | null;
1040
+ "services"?: JsonValue | null;
1041
+ "parent"?: ProfileUpdateFreemiumPutResponseDataProfileParent[] | null;
1042
+ }
443
1043
  export interface ProfileUpdateFreemiumPutResponseData extends JsonObject {
444
- "profile": JsonValue;
1044
+ "profile": ProfileUpdateFreemiumPutResponseDataProfile;
445
1045
  }
446
1046
  export interface ProfileUpdateFreemiumPutResponse extends ApiEnvelope<ProfileUpdateFreemiumPutResponseData> {
447
1047
  }
448
1048
  /** Backend response type: models::SingleData. */
1049
+ export interface ProfileShowFullGetResponseDataProfileRoles extends JsonObject {
1050
+ "id": string;
1051
+ "name": string;
1052
+ }
1053
+ export interface ProfileShowFullGetResponseDataProfileCredential extends JsonObject {
1054
+ "handle_registration": number;
1055
+ "handle_registration_with_installment": number;
1056
+ "handle_await_installment": number;
1057
+ "handle_overdue_installment": number;
1058
+ "handle_freemium_sessions": number;
1059
+ "handle_cancel": number;
1060
+ "total": number;
1061
+ }
1062
+ export interface ProfileShowFullGetResponseDataProfileParent extends JsonObject {
1063
+ "user_id": string;
1064
+ "parent_type"?: string | null;
1065
+ }
1066
+ export interface ProfileShowFullGetResponseDataProfile extends JsonObject {
1067
+ "id": string;
1068
+ "user_id": string;
1069
+ "email"?: string | null;
1070
+ "phone"?: string | null;
1071
+ "national_code"?: string | null;
1072
+ "first_name"?: JsonValue | null;
1073
+ "last_name"?: JsonValue | null;
1074
+ "status": string;
1075
+ "employee_type"?: string | null;
1076
+ "freemium_session_limit"?: number | null;
1077
+ "avatar"?: string | null;
1078
+ "has_active_enrollment": boolean;
1079
+ "roles": ProfileShowFullGetResponseDataProfileRoles[];
1080
+ "credential"?: ProfileShowFullGetResponseDataProfileCredential | null;
1081
+ "meta"?: JsonValue | null;
1082
+ "app"?: JsonValue | null;
1083
+ "assessment"?: JsonValue | null;
1084
+ "properties"?: JsonValue | null;
1085
+ "services"?: JsonValue | null;
1086
+ "parent"?: ProfileShowFullGetResponseDataProfileParent[] | null;
1087
+ }
449
1088
  export interface ProfileShowFullGetResponseData extends JsonObject {
450
- "profile": JsonValue;
1089
+ "profile": ProfileShowFullGetResponseDataProfile;
451
1090
  }
452
1091
  export interface ProfileShowFullGetResponse extends ApiEnvelope<ProfileShowFullGetResponseData> {
453
1092
  }
454
1093
  /** Backend query type: MediaQuery. */
455
1094
  export interface ProfileMediaShowGetQuery extends QueryParams {
1095
+ "key": string;
456
1096
  }
457
- /** Backend response type: response without a declared JSON model. */
1097
+ /** Backend response type: handler-defined response. */
458
1098
  export interface ProfileMediaShowGetResponse extends ApiEnvelope<JsonValue> {
459
1099
  }
460
1100
  /** Backend request type: property_models::PropertiesUpdate. */
@@ -476,8 +1116,47 @@ export interface ProfileUpdateStatusPatchInput extends JsonObject {
476
1116
  "status": string;
477
1117
  }
478
1118
  /** Backend response type: models::SingleData. */
1119
+ export interface ProfileUpdateStatusPatchResponseDataProfileRoles extends JsonObject {
1120
+ "id": string;
1121
+ "name": string;
1122
+ }
1123
+ export interface ProfileUpdateStatusPatchResponseDataProfileCredential extends JsonObject {
1124
+ "handle_registration": number;
1125
+ "handle_registration_with_installment": number;
1126
+ "handle_await_installment": number;
1127
+ "handle_overdue_installment": number;
1128
+ "handle_freemium_sessions": number;
1129
+ "handle_cancel": number;
1130
+ "total": number;
1131
+ }
1132
+ export interface ProfileUpdateStatusPatchResponseDataProfileParent extends JsonObject {
1133
+ "user_id": string;
1134
+ "parent_type"?: string | null;
1135
+ }
1136
+ export interface ProfileUpdateStatusPatchResponseDataProfile extends JsonObject {
1137
+ "id": string;
1138
+ "user_id": string;
1139
+ "email"?: string | null;
1140
+ "phone"?: string | null;
1141
+ "national_code"?: string | null;
1142
+ "first_name"?: JsonValue | null;
1143
+ "last_name"?: JsonValue | null;
1144
+ "status": string;
1145
+ "employee_type"?: string | null;
1146
+ "freemium_session_limit"?: number | null;
1147
+ "avatar"?: string | null;
1148
+ "has_active_enrollment": boolean;
1149
+ "roles": ProfileUpdateStatusPatchResponseDataProfileRoles[];
1150
+ "credential"?: ProfileUpdateStatusPatchResponseDataProfileCredential | null;
1151
+ "meta"?: JsonValue | null;
1152
+ "app"?: JsonValue | null;
1153
+ "assessment"?: JsonValue | null;
1154
+ "properties"?: JsonValue | null;
1155
+ "services"?: JsonValue | null;
1156
+ "parent"?: ProfileUpdateStatusPatchResponseDataProfileParent[] | null;
1157
+ }
479
1158
  export interface ProfileUpdateStatusPatchResponseData extends JsonObject {
480
- "profile": JsonValue;
1159
+ "profile": ProfileUpdateStatusPatchResponseDataProfile;
481
1160
  }
482
1161
  export interface ProfileUpdateStatusPatchResponse extends ApiEnvelope<ProfileUpdateStatusPatchResponseData> {
483
1162
  }
@@ -486,23 +1165,62 @@ export interface ProfileUpdateStatusPutInput extends JsonObject {
486
1165
  "status": string;
487
1166
  }
488
1167
  /** Backend response type: models::SingleData. */
1168
+ export interface ProfileUpdateStatusPutResponseDataProfileRoles extends JsonObject {
1169
+ "id": string;
1170
+ "name": string;
1171
+ }
1172
+ export interface ProfileUpdateStatusPutResponseDataProfileCredential extends JsonObject {
1173
+ "handle_registration": number;
1174
+ "handle_registration_with_installment": number;
1175
+ "handle_await_installment": number;
1176
+ "handle_overdue_installment": number;
1177
+ "handle_freemium_sessions": number;
1178
+ "handle_cancel": number;
1179
+ "total": number;
1180
+ }
1181
+ export interface ProfileUpdateStatusPutResponseDataProfileParent extends JsonObject {
1182
+ "user_id": string;
1183
+ "parent_type"?: string | null;
1184
+ }
1185
+ export interface ProfileUpdateStatusPutResponseDataProfile extends JsonObject {
1186
+ "id": string;
1187
+ "user_id": string;
1188
+ "email"?: string | null;
1189
+ "phone"?: string | null;
1190
+ "national_code"?: string | null;
1191
+ "first_name"?: JsonValue | null;
1192
+ "last_name"?: JsonValue | null;
1193
+ "status": string;
1194
+ "employee_type"?: string | null;
1195
+ "freemium_session_limit"?: number | null;
1196
+ "avatar"?: string | null;
1197
+ "has_active_enrollment": boolean;
1198
+ "roles": ProfileUpdateStatusPutResponseDataProfileRoles[];
1199
+ "credential"?: ProfileUpdateStatusPutResponseDataProfileCredential | null;
1200
+ "meta"?: JsonValue | null;
1201
+ "app"?: JsonValue | null;
1202
+ "assessment"?: JsonValue | null;
1203
+ "properties"?: JsonValue | null;
1204
+ "services"?: JsonValue | null;
1205
+ "parent"?: ProfileUpdateStatusPutResponseDataProfileParent[] | null;
1206
+ }
489
1207
  export interface ProfileUpdateStatusPutResponseData extends JsonObject {
490
- "profile": JsonValue;
1208
+ "profile": ProfileUpdateStatusPutResponseDataProfile;
491
1209
  }
492
1210
  export interface ProfileUpdateStatusPutResponse extends ApiEnvelope<ProfileUpdateStatusPutResponseData> {
493
1211
  }
494
- /** Backend response type: response without a declared JSON model. */
1212
+ /** Backend response type: handler-defined response. */
495
1213
  export interface ProfileAccountantIndexGetResponse extends ApiEnvelope<JsonValue> {
496
1214
  }
497
1215
  /** Backend request type: models::AddressRequest. */
498
1216
  export interface ProfileAddAddressPatchInput extends JsonObject {
499
1217
  "title": string;
500
- "country"?: string;
501
- "province"?: string;
502
- "city"?: string;
503
- "postal_code"?: string;
504
- "plate"?: string;
505
- "detail"?: string;
1218
+ "country"?: string | null;
1219
+ "province"?: string | null;
1220
+ "city"?: string | null;
1221
+ "postal_code"?: string | null;
1222
+ "plate"?: string | null;
1223
+ "detail"?: string | null;
506
1224
  }
507
1225
  /** Backend response type: serde_json::Value. */
508
1226
  export interface ProfileAddAddressPatchResponse extends ApiEnvelope<JsonValue> {
@@ -510,12 +1228,12 @@ export interface ProfileAddAddressPatchResponse extends ApiEnvelope<JsonValue> {
510
1228
  /** Backend request type: models::AddressRequest. */
511
1229
  export interface ProfileAddAddressPutInput extends JsonObject {
512
1230
  "title": string;
513
- "country"?: string;
514
- "province"?: string;
515
- "city"?: string;
516
- "postal_code"?: string;
517
- "plate"?: string;
518
- "detail"?: string;
1231
+ "country"?: string | null;
1232
+ "province"?: string | null;
1233
+ "city"?: string | null;
1234
+ "postal_code"?: string | null;
1235
+ "plate"?: string | null;
1236
+ "detail"?: string | null;
519
1237
  }
520
1238
  /** Backend response type: serde_json::Value. */
521
1239
  export interface ProfileAddAddressPutResponse extends ApiEnvelope<JsonValue> {
@@ -537,7 +1255,7 @@ export interface ProfileAddAppPutResponse extends ApiEnvelope<JsonValue> {
537
1255
  /** Backend request type: models::ParentLinkRequest. */
538
1256
  export interface ProfileAddParentPatchInput extends JsonObject {
539
1257
  "user_id": string;
540
- "parent_type"?: string;
1258
+ "parent_type"?: string | null;
541
1259
  }
542
1260
  /** Backend response type: serde_json::Value. */
543
1261
  export interface ProfileAddParentPatchResponse extends ApiEnvelope<JsonValue> {
@@ -545,7 +1263,7 @@ export interface ProfileAddParentPatchResponse extends ApiEnvelope<JsonValue> {
545
1263
  /** Backend request type: models::ParentLinkRequest. */
546
1264
  export interface ProfileAddParentPutInput extends JsonObject {
547
1265
  "user_id": string;
548
- "parent_type"?: string;
1266
+ "parent_type"?: string | null;
549
1267
  }
550
1268
  /** Backend response type: serde_json::Value. */
551
1269
  export interface ProfileAddParentPutResponse extends ApiEnvelope<JsonValue> {
@@ -553,25 +1271,103 @@ export interface ProfileAddParentPutResponse extends ApiEnvelope<JsonValue> {
553
1271
  /** Backend request type: models::GeoBulkGetRequest. */
554
1272
  export interface ProfileCityGetPostInput extends JsonObject {
555
1273
  "ids": string[];
556
- "user_ids"?: string[];
1274
+ "user_ids"?: string[] | null;
557
1275
  }
558
1276
  /** Backend response type: models::ListData. */
1277
+ export interface ProfileCityGetPostResponseDataProfilesRoles extends JsonObject {
1278
+ "id": string;
1279
+ "name": string;
1280
+ }
1281
+ export interface ProfileCityGetPostResponseDataProfilesCredential extends JsonObject {
1282
+ "handle_registration": number;
1283
+ "handle_registration_with_installment": number;
1284
+ "handle_await_installment": number;
1285
+ "handle_overdue_installment": number;
1286
+ "handle_freemium_sessions": number;
1287
+ "handle_cancel": number;
1288
+ "total": number;
1289
+ }
1290
+ export interface ProfileCityGetPostResponseDataProfilesParent extends JsonObject {
1291
+ "user_id": string;
1292
+ "parent_type"?: string | null;
1293
+ }
1294
+ export interface ProfileCityGetPostResponseDataProfiles extends JsonObject {
1295
+ "id": string;
1296
+ "user_id": string;
1297
+ "email"?: string | null;
1298
+ "phone"?: string | null;
1299
+ "national_code"?: string | null;
1300
+ "first_name"?: JsonValue | null;
1301
+ "last_name"?: JsonValue | null;
1302
+ "status": string;
1303
+ "employee_type"?: string | null;
1304
+ "freemium_session_limit"?: number | null;
1305
+ "avatar"?: string | null;
1306
+ "has_active_enrollment": boolean;
1307
+ "roles": ProfileCityGetPostResponseDataProfilesRoles[];
1308
+ "credential"?: ProfileCityGetPostResponseDataProfilesCredential | null;
1309
+ "meta"?: JsonValue | null;
1310
+ "app"?: JsonValue | null;
1311
+ "assessment"?: JsonValue | null;
1312
+ "properties"?: JsonValue | null;
1313
+ "services"?: JsonValue | null;
1314
+ "parent"?: ProfileCityGetPostResponseDataProfilesParent[] | null;
1315
+ }
559
1316
  export interface ProfileCityGetPostResponseData extends JsonObject {
560
- "profiles": JsonValue[];
1317
+ "profiles": ProfileCityGetPostResponseDataProfiles[];
561
1318
  }
562
1319
  export interface ProfileCityGetPostResponse extends ApiEnvelope<ProfileCityGetPostResponseData> {
563
1320
  }
564
- /** Backend response type: response without a declared JSON model. */
1321
+ /** Backend response type: handler-defined response. */
565
1322
  export interface ProfileConsultantIndexGetResponse extends ApiEnvelope<JsonValue> {
566
1323
  }
567
1324
  /** Backend request type: models::GeoBulkGetRequest. */
568
1325
  export interface ProfileCountryGetPostInput extends JsonObject {
569
1326
  "ids": string[];
570
- "user_ids"?: string[];
1327
+ "user_ids"?: string[] | null;
571
1328
  }
572
1329
  /** Backend response type: models::ListData. */
1330
+ export interface ProfileCountryGetPostResponseDataProfilesRoles extends JsonObject {
1331
+ "id": string;
1332
+ "name": string;
1333
+ }
1334
+ export interface ProfileCountryGetPostResponseDataProfilesCredential extends JsonObject {
1335
+ "handle_registration": number;
1336
+ "handle_registration_with_installment": number;
1337
+ "handle_await_installment": number;
1338
+ "handle_overdue_installment": number;
1339
+ "handle_freemium_sessions": number;
1340
+ "handle_cancel": number;
1341
+ "total": number;
1342
+ }
1343
+ export interface ProfileCountryGetPostResponseDataProfilesParent extends JsonObject {
1344
+ "user_id": string;
1345
+ "parent_type"?: string | null;
1346
+ }
1347
+ export interface ProfileCountryGetPostResponseDataProfiles extends JsonObject {
1348
+ "id": string;
1349
+ "user_id": string;
1350
+ "email"?: string | null;
1351
+ "phone"?: string | null;
1352
+ "national_code"?: string | null;
1353
+ "first_name"?: JsonValue | null;
1354
+ "last_name"?: JsonValue | null;
1355
+ "status": string;
1356
+ "employee_type"?: string | null;
1357
+ "freemium_session_limit"?: number | null;
1358
+ "avatar"?: string | null;
1359
+ "has_active_enrollment": boolean;
1360
+ "roles": ProfileCountryGetPostResponseDataProfilesRoles[];
1361
+ "credential"?: ProfileCountryGetPostResponseDataProfilesCredential | null;
1362
+ "meta"?: JsonValue | null;
1363
+ "app"?: JsonValue | null;
1364
+ "assessment"?: JsonValue | null;
1365
+ "properties"?: JsonValue | null;
1366
+ "services"?: JsonValue | null;
1367
+ "parent"?: ProfileCountryGetPostResponseDataProfilesParent[] | null;
1368
+ }
573
1369
  export interface ProfileCountryGetPostResponseData extends JsonObject {
574
- "profiles": JsonValue[];
1370
+ "profiles": ProfileCountryGetPostResponseDataProfiles[];
575
1371
  }
576
1372
  export interface ProfileCountryGetPostResponse extends ApiEnvelope<ProfileCountryGetPostResponseData> {
577
1373
  }
@@ -583,8 +1379,47 @@ export interface ProfileBulkGetPostInput extends JsonObject {
583
1379
  "user_ids": string[];
584
1380
  }
585
1381
  /** Backend response type: models::ListData. */
1382
+ export interface ProfileBulkGetPostResponseDataProfilesRoles extends JsonObject {
1383
+ "id": string;
1384
+ "name": string;
1385
+ }
1386
+ export interface ProfileBulkGetPostResponseDataProfilesCredential extends JsonObject {
1387
+ "handle_registration": number;
1388
+ "handle_registration_with_installment": number;
1389
+ "handle_await_installment": number;
1390
+ "handle_overdue_installment": number;
1391
+ "handle_freemium_sessions": number;
1392
+ "handle_cancel": number;
1393
+ "total": number;
1394
+ }
1395
+ export interface ProfileBulkGetPostResponseDataProfilesParent extends JsonObject {
1396
+ "user_id": string;
1397
+ "parent_type"?: string | null;
1398
+ }
1399
+ export interface ProfileBulkGetPostResponseDataProfiles extends JsonObject {
1400
+ "id": string;
1401
+ "user_id": string;
1402
+ "email"?: string | null;
1403
+ "phone"?: string | null;
1404
+ "national_code"?: string | null;
1405
+ "first_name"?: JsonValue | null;
1406
+ "last_name"?: JsonValue | null;
1407
+ "status": string;
1408
+ "employee_type"?: string | null;
1409
+ "freemium_session_limit"?: number | null;
1410
+ "avatar"?: string | null;
1411
+ "has_active_enrollment": boolean;
1412
+ "roles": ProfileBulkGetPostResponseDataProfilesRoles[];
1413
+ "credential"?: ProfileBulkGetPostResponseDataProfilesCredential | null;
1414
+ "meta"?: JsonValue | null;
1415
+ "app"?: JsonValue | null;
1416
+ "assessment"?: JsonValue | null;
1417
+ "properties"?: JsonValue | null;
1418
+ "services"?: JsonValue | null;
1419
+ "parent"?: ProfileBulkGetPostResponseDataProfilesParent[] | null;
1420
+ }
586
1421
  export interface ProfileBulkGetPostResponseData extends JsonObject {
587
- "profiles": JsonValue[];
1422
+ "profiles": ProfileBulkGetPostResponseDataProfiles[];
588
1423
  }
589
1424
  export interface ProfileBulkGetPostResponse extends ApiEnvelope<ProfileBulkGetPostResponseData> {
590
1425
  }
@@ -600,38 +1435,94 @@ export interface ProfileGetAppGetResponse extends ApiEnvelope<JsonValue> {
600
1435
  /** Backend response type: serde_json::Value. */
601
1436
  export interface ProfileGetParentGetResponse extends ApiEnvelope<JsonValue> {
602
1437
  }
603
- /** Backend response type: response without a declared JSON model. */
1438
+ /** Backend response type: handler-defined response. */
604
1439
  export interface ProfileManagerIndexGetResponse extends ApiEnvelope<JsonValue> {
605
1440
  }
606
- /** Backend response type: response without a declared JSON model. */
1441
+ /** Backend response type: handler-defined response. */
607
1442
  export interface ProfileOtherIndexGetResponse extends ApiEnvelope<JsonValue> {
608
1443
  }
609
- /** Backend response type: response without a declared JSON model. */
1444
+ /** Backend response type: handler-defined response. */
610
1445
  export interface ProfileParentIndexGetResponse extends ApiEnvelope<JsonValue> {
611
1446
  }
612
1447
  /** Backend request type: models::GeoBulkGetRequest. */
613
1448
  export interface ProfileProvinceGetPostInput extends JsonObject {
614
1449
  "ids": string[];
615
- "user_ids"?: string[];
1450
+ "user_ids"?: string[] | null;
616
1451
  }
617
1452
  /** Backend response type: models::ListData. */
1453
+ export interface ProfileProvinceGetPostResponseDataProfilesRoles extends JsonObject {
1454
+ "id": string;
1455
+ "name": string;
1456
+ }
1457
+ export interface ProfileProvinceGetPostResponseDataProfilesCredential extends JsonObject {
1458
+ "handle_registration": number;
1459
+ "handle_registration_with_installment": number;
1460
+ "handle_await_installment": number;
1461
+ "handle_overdue_installment": number;
1462
+ "handle_freemium_sessions": number;
1463
+ "handle_cancel": number;
1464
+ "total": number;
1465
+ }
1466
+ export interface ProfileProvinceGetPostResponseDataProfilesParent extends JsonObject {
1467
+ "user_id": string;
1468
+ "parent_type"?: string | null;
1469
+ }
1470
+ export interface ProfileProvinceGetPostResponseDataProfiles extends JsonObject {
1471
+ "id": string;
1472
+ "user_id": string;
1473
+ "email"?: string | null;
1474
+ "phone"?: string | null;
1475
+ "national_code"?: string | null;
1476
+ "first_name"?: JsonValue | null;
1477
+ "last_name"?: JsonValue | null;
1478
+ "status": string;
1479
+ "employee_type"?: string | null;
1480
+ "freemium_session_limit"?: number | null;
1481
+ "avatar"?: string | null;
1482
+ "has_active_enrollment": boolean;
1483
+ "roles": ProfileProvinceGetPostResponseDataProfilesRoles[];
1484
+ "credential"?: ProfileProvinceGetPostResponseDataProfilesCredential | null;
1485
+ "meta"?: JsonValue | null;
1486
+ "app"?: JsonValue | null;
1487
+ "assessment"?: JsonValue | null;
1488
+ "properties"?: JsonValue | null;
1489
+ "services"?: JsonValue | null;
1490
+ "parent"?: ProfileProvinceGetPostResponseDataProfilesParent[] | null;
1491
+ }
618
1492
  export interface ProfileProvinceGetPostResponseData extends JsonObject {
619
- "profiles": JsonValue[];
1493
+ "profiles": ProfileProvinceGetPostResponseDataProfiles[];
620
1494
  }
621
1495
  export interface ProfileProvinceGetPostResponse extends ApiEnvelope<ProfileProvinceGetPostResponseData> {
622
1496
  }
623
1497
  /** Backend request type: crate::profile_search::models::SearchRequest. */
1498
+ export type ProfileSearchSearchPostInputFiltersOp = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "in" | "contains" | "exists" | "json_contains";
1499
+ export interface ProfileSearchSearchPostInputFilters extends JsonObject {
1500
+ "path": string;
1501
+ "op": ProfileSearchSearchPostInputFiltersOp;
1502
+ "value"?: JsonValue | null;
1503
+ }
1504
+ export interface ProfileSearchSearchPostInputSort extends JsonObject {
1505
+ "path": string;
1506
+ "dir": string;
1507
+ }
624
1508
  export interface ProfileSearchSearchPostInput extends JsonObject {
625
- "search"?: string;
626
- "filters": JsonValue[];
627
- "sort": JsonValue[];
628
- "page"?: number;
629
- "per_page"?: number;
630
- "include": string[];
1509
+ "search"?: string | null;
1510
+ "filters"?: ProfileSearchSearchPostInputFilters[];
1511
+ "sort"?: ProfileSearchSearchPostInputSort[];
1512
+ "page"?: number | null;
1513
+ "per_page"?: number | null;
1514
+ "include"?: string[];
631
1515
  }
632
1516
  /** Backend response type: SearchData. */
1517
+ export interface ProfileSearchSearchPostResponseDataResults extends JsonObject {
1518
+ "profile_id": string;
1519
+ "user_id": string;
1520
+ "core"?: JsonValue | null;
1521
+ "properties"?: JsonValue | null;
1522
+ "services"?: JsonValue | null;
1523
+ }
633
1524
  export interface ProfileSearchSearchPostResponseData extends JsonObject {
634
- "results": JsonValue[];
1525
+ "results": ProfileSearchSearchPostResponseDataResults[];
635
1526
  }
636
1527
  export interface ProfileSearchSearchPostMetaData extends JsonObject {
637
1528
  "current_page": number;
@@ -642,7 +1533,7 @@ export interface ProfileSearchSearchPostMetaData extends JsonObject {
642
1533
  export interface ProfileSearchSearchPostResponse extends ApiEnvelope<ProfileSearchSearchPostResponseData> {
643
1534
  meta: ProfileSearchSearchPostMetaData;
644
1535
  }
645
- /** Backend response type: response without a declared JSON model. */
1536
+ /** Backend response type: handler-defined response. */
646
1537
  export interface ProfileStudentIndexGetResponse extends ApiEnvelope<JsonValue> {
647
1538
  }
648
1539
  /** Backend response type: models::PesResponse. */
@@ -655,7 +1546,7 @@ export interface ProfileStudentPesGetResponse extends ApiEnvelope<ProfileStudent
655
1546
  /** Backend response type: serde_json::Value. */
656
1547
  export interface ProfileStudentPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
657
1548
  }
658
- /** Backend response type: response without a declared JSON model. */
1549
+ /** Backend response type: handler-defined response. */
659
1550
  export interface ProfileSupportIndexGetResponse extends ApiEnvelope<JsonValue> {
660
1551
  }
661
1552
  /** Backend response type: models::PesResponse. */
@@ -668,7 +1559,7 @@ export interface ProfileSupportPesGetResponse extends ApiEnvelope<ProfileSupport
668
1559
  /** Backend response type: serde_json::Value. */
669
1560
  export interface ProfileSupportPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
670
1561
  }
671
- /** Backend response type: response without a declared JSON model. */
1562
+ /** Backend response type: handler-defined response. */
672
1563
  export interface ProfileTeacherIndexGetResponse extends ApiEnvelope<JsonValue> {
673
1564
  }
674
1565
  /** Backend response type: serde_json::Value. */
@@ -690,66 +1581,155 @@ export interface ProfileAddMetaPutResponse extends ApiEnvelope<JsonValue> {
690
1581
  }
691
1582
  /** Backend request type: models::PersonalInformationUpdate. */
692
1583
  export interface ProfileUpdatePersonalPatchInput extends JsonObject {
693
- "first_name"?: JsonValue;
694
- "last_name"?: JsonValue;
695
- "birthday"?: string;
696
- "nationality"?: string;
697
- "religion"?: string;
698
- "gender"?: string;
699
- "marital"?: string;
700
- "nickname"?: string;
701
- "national_number"?: string;
702
- "description"?: string;
703
- "referral_source"?: string;
704
- "referrer_uuid"?: string;
705
- "country_id"?: string;
706
- "province_id"?: string;
707
- "city_id"?: string;
1584
+ "first_name"?: JsonValue | null;
1585
+ "last_name"?: JsonValue | null;
1586
+ "birthday"?: string | null;
1587
+ "nationality"?: string | null;
1588
+ "religion"?: string | null;
1589
+ "gender"?: string | null;
1590
+ "marital"?: string | null;
1591
+ "nickname"?: string | null;
1592
+ "national_number"?: string | null;
1593
+ "description"?: string | null;
1594
+ "referral_source"?: string | null;
1595
+ "referrer_uuid"?: string | null;
1596
+ "country_id"?: string | null;
1597
+ "province_id"?: string | null;
1598
+ "city_id"?: string | null;
708
1599
  }
709
1600
  /** Backend response type: models::SingleData. */
1601
+ export interface ProfileUpdatePersonalPatchResponseDataProfileRoles extends JsonObject {
1602
+ "id": string;
1603
+ "name": string;
1604
+ }
1605
+ export interface ProfileUpdatePersonalPatchResponseDataProfileCredential extends JsonObject {
1606
+ "handle_registration": number;
1607
+ "handle_registration_with_installment": number;
1608
+ "handle_await_installment": number;
1609
+ "handle_overdue_installment": number;
1610
+ "handle_freemium_sessions": number;
1611
+ "handle_cancel": number;
1612
+ "total": number;
1613
+ }
1614
+ export interface ProfileUpdatePersonalPatchResponseDataProfileParent extends JsonObject {
1615
+ "user_id": string;
1616
+ "parent_type"?: string | null;
1617
+ }
1618
+ export interface ProfileUpdatePersonalPatchResponseDataProfile extends JsonObject {
1619
+ "id": string;
1620
+ "user_id": string;
1621
+ "email"?: string | null;
1622
+ "phone"?: string | null;
1623
+ "national_code"?: string | null;
1624
+ "first_name"?: JsonValue | null;
1625
+ "last_name"?: JsonValue | null;
1626
+ "status": string;
1627
+ "employee_type"?: string | null;
1628
+ "freemium_session_limit"?: number | null;
1629
+ "avatar"?: string | null;
1630
+ "has_active_enrollment": boolean;
1631
+ "roles": ProfileUpdatePersonalPatchResponseDataProfileRoles[];
1632
+ "credential"?: ProfileUpdatePersonalPatchResponseDataProfileCredential | null;
1633
+ "meta"?: JsonValue | null;
1634
+ "app"?: JsonValue | null;
1635
+ "assessment"?: JsonValue | null;
1636
+ "properties"?: JsonValue | null;
1637
+ "services"?: JsonValue | null;
1638
+ "parent"?: ProfileUpdatePersonalPatchResponseDataProfileParent[] | null;
1639
+ }
710
1640
  export interface ProfileUpdatePersonalPatchResponseData extends JsonObject {
711
- "profile": JsonValue;
1641
+ "profile": ProfileUpdatePersonalPatchResponseDataProfile;
712
1642
  }
713
1643
  export interface ProfileUpdatePersonalPatchResponse extends ApiEnvelope<ProfileUpdatePersonalPatchResponseData> {
714
1644
  }
715
1645
  /** Backend request type: models::PersonalInformationUpdate. */
716
1646
  export interface ProfileUpdatePersonalPutInput extends JsonObject {
717
- "first_name"?: JsonValue;
718
- "last_name"?: JsonValue;
719
- "birthday"?: string;
720
- "nationality"?: string;
721
- "religion"?: string;
722
- "gender"?: string;
723
- "marital"?: string;
724
- "nickname"?: string;
725
- "national_number"?: string;
726
- "description"?: string;
727
- "referral_source"?: string;
728
- "referrer_uuid"?: string;
729
- "country_id"?: string;
730
- "province_id"?: string;
731
- "city_id"?: string;
1647
+ "first_name"?: JsonValue | null;
1648
+ "last_name"?: JsonValue | null;
1649
+ "birthday"?: string | null;
1650
+ "nationality"?: string | null;
1651
+ "religion"?: string | null;
1652
+ "gender"?: string | null;
1653
+ "marital"?: string | null;
1654
+ "nickname"?: string | null;
1655
+ "national_number"?: string | null;
1656
+ "description"?: string | null;
1657
+ "referral_source"?: string | null;
1658
+ "referrer_uuid"?: string | null;
1659
+ "country_id"?: string | null;
1660
+ "province_id"?: string | null;
1661
+ "city_id"?: string | null;
732
1662
  }
733
1663
  /** Backend response type: models::SingleData. */
1664
+ export interface ProfileUpdatePersonalPutResponseDataProfileRoles extends JsonObject {
1665
+ "id": string;
1666
+ "name": string;
1667
+ }
1668
+ export interface ProfileUpdatePersonalPutResponseDataProfileCredential extends JsonObject {
1669
+ "handle_registration": number;
1670
+ "handle_registration_with_installment": number;
1671
+ "handle_await_installment": number;
1672
+ "handle_overdue_installment": number;
1673
+ "handle_freemium_sessions": number;
1674
+ "handle_cancel": number;
1675
+ "total": number;
1676
+ }
1677
+ export interface ProfileUpdatePersonalPutResponseDataProfileParent extends JsonObject {
1678
+ "user_id": string;
1679
+ "parent_type"?: string | null;
1680
+ }
1681
+ export interface ProfileUpdatePersonalPutResponseDataProfile extends JsonObject {
1682
+ "id": string;
1683
+ "user_id": string;
1684
+ "email"?: string | null;
1685
+ "phone"?: string | null;
1686
+ "national_code"?: string | null;
1687
+ "first_name"?: JsonValue | null;
1688
+ "last_name"?: JsonValue | null;
1689
+ "status": string;
1690
+ "employee_type"?: string | null;
1691
+ "freemium_session_limit"?: number | null;
1692
+ "avatar"?: string | null;
1693
+ "has_active_enrollment": boolean;
1694
+ "roles": ProfileUpdatePersonalPutResponseDataProfileRoles[];
1695
+ "credential"?: ProfileUpdatePersonalPutResponseDataProfileCredential | null;
1696
+ "meta"?: JsonValue | null;
1697
+ "app"?: JsonValue | null;
1698
+ "assessment"?: JsonValue | null;
1699
+ "properties"?: JsonValue | null;
1700
+ "services"?: JsonValue | null;
1701
+ "parent"?: ProfileUpdatePersonalPutResponseDataProfileParent[] | null;
1702
+ }
734
1703
  export interface ProfileUpdatePersonalPutResponseData extends JsonObject {
735
- "profile": JsonValue;
1704
+ "profile": ProfileUpdatePersonalPutResponseDataProfile;
736
1705
  }
737
1706
  export interface ProfileUpdatePersonalPutResponse extends ApiEnvelope<ProfileUpdatePersonalPutResponseData> {
738
1707
  }
739
1708
  /** Backend query type: models::ListQuery. */
740
1709
  export interface ProvinceIndexGetQuery extends QueryParams {
741
- "page"?: string;
742
- "per_page"?: string;
743
- "filter[search]"?: string;
744
- "filter[status]"?: string;
745
- "filter[active]"?: string;
746
- "filter[name]"?: string;
747
- "filter[country_id]"?: string;
748
- "filter[trashed]"?: string;
1710
+ "page"?: string | null;
1711
+ "per_page"?: string | null;
1712
+ "filter[search]"?: string | null;
1713
+ "filter[status]"?: string | null;
1714
+ "filter[active]"?: string | null;
1715
+ "filter[name]"?: string | null;
1716
+ "filter[country_id]"?: string | null;
1717
+ "filter[trashed]"?: string | null;
749
1718
  }
750
1719
  /** Backend response type: models::ListData. */
1720
+ export interface ProvinceIndexGetResponseDataProvinces extends JsonObject {
1721
+ "id": string;
1722
+ "country_id": string;
1723
+ "name": string;
1724
+ "latitude"?: number | null;
1725
+ "longitude"?: number | null;
1726
+ "status": string;
1727
+ "created_at": string;
1728
+ "updated_at"?: string | null;
1729
+ "deleted_at"?: string | null;
1730
+ }
751
1731
  export interface ProvinceIndexGetResponseData extends JsonObject {
752
- "provinces": JsonValue[];
1732
+ "provinces": ProvinceIndexGetResponseDataProvinces[];
753
1733
  }
754
1734
  export interface ProvinceIndexGetMetaData extends JsonObject {
755
1735
  "current_page": number;
@@ -764,12 +1744,23 @@ export interface ProvinceIndexGetResponse extends ApiEnvelope<ProvinceIndexGetRe
764
1744
  export interface ProvinceStorePostInput extends JsonObject {
765
1745
  "country_id": string;
766
1746
  "name": string;
767
- "latitude"?: number;
768
- "longitude"?: number;
1747
+ "latitude"?: number | null;
1748
+ "longitude"?: number | null;
769
1749
  }
770
1750
  /** Backend response type: models::SingleData. */
1751
+ export interface ProvinceStorePostResponseDataProvince extends JsonObject {
1752
+ "id": string;
1753
+ "country_id": string;
1754
+ "name": string;
1755
+ "latitude"?: number | null;
1756
+ "longitude"?: number | null;
1757
+ "status": string;
1758
+ "created_at": string;
1759
+ "updated_at"?: string | null;
1760
+ "deleted_at"?: string | null;
1761
+ }
771
1762
  export interface ProvinceStorePostResponseData extends JsonObject {
772
- "province": JsonValue;
1763
+ "province": ProvinceStorePostResponseDataProvince;
773
1764
  }
774
1765
  export interface ProvinceStorePostResponse extends ApiEnvelope<ProvinceStorePostResponseData> {
775
1766
  }
@@ -777,36 +1768,69 @@ export interface ProvinceStorePostResponse extends ApiEnvelope<ProvinceStorePost
777
1768
  export interface ProvinceDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
778
1769
  }
779
1770
  /** Backend response type: models::SingleData. */
1771
+ export interface ProvinceShowGetResponseDataProvince extends JsonObject {
1772
+ "id": string;
1773
+ "country_id": string;
1774
+ "name": string;
1775
+ "latitude"?: number | null;
1776
+ "longitude"?: number | null;
1777
+ "status": string;
1778
+ "created_at": string;
1779
+ "updated_at"?: string | null;
1780
+ "deleted_at"?: string | null;
1781
+ }
780
1782
  export interface ProvinceShowGetResponseData extends JsonObject {
781
- "province": JsonValue;
1783
+ "province": ProvinceShowGetResponseDataProvince;
782
1784
  }
783
1785
  export interface ProvinceShowGetResponse extends ApiEnvelope<ProvinceShowGetResponseData> {
784
1786
  }
785
1787
  /** Backend request type: models::Update. */
786
1788
  export interface ProvinceUpdatePatchInput extends JsonObject {
787
- "country_id"?: string;
788
- "name"?: string;
789
- "status"?: string;
790
- "latitude"?: number;
791
- "longitude"?: number;
1789
+ "country_id"?: string | null;
1790
+ "name"?: string | null;
1791
+ "status"?: string | null;
1792
+ "latitude"?: number | null;
1793
+ "longitude"?: number | null;
792
1794
  }
793
1795
  /** Backend response type: models::SingleData. */
1796
+ export interface ProvinceUpdatePatchResponseDataProvince extends JsonObject {
1797
+ "id": string;
1798
+ "country_id": string;
1799
+ "name": string;
1800
+ "latitude"?: number | null;
1801
+ "longitude"?: number | null;
1802
+ "status": string;
1803
+ "created_at": string;
1804
+ "updated_at"?: string | null;
1805
+ "deleted_at"?: string | null;
1806
+ }
794
1807
  export interface ProvinceUpdatePatchResponseData extends JsonObject {
795
- "province": JsonValue;
1808
+ "province": ProvinceUpdatePatchResponseDataProvince;
796
1809
  }
797
1810
  export interface ProvinceUpdatePatchResponse extends ApiEnvelope<ProvinceUpdatePatchResponseData> {
798
1811
  }
799
1812
  /** Backend request type: models::Update. */
800
1813
  export interface ProvinceUpdatePutInput extends JsonObject {
801
- "country_id"?: string;
802
- "name"?: string;
803
- "status"?: string;
804
- "latitude"?: number;
805
- "longitude"?: number;
1814
+ "country_id"?: string | null;
1815
+ "name"?: string | null;
1816
+ "status"?: string | null;
1817
+ "latitude"?: number | null;
1818
+ "longitude"?: number | null;
806
1819
  }
807
1820
  /** Backend response type: models::SingleData. */
1821
+ export interface ProvinceUpdatePutResponseDataProvince extends JsonObject {
1822
+ "id": string;
1823
+ "country_id": string;
1824
+ "name": string;
1825
+ "latitude"?: number | null;
1826
+ "longitude"?: number | null;
1827
+ "status": string;
1828
+ "created_at": string;
1829
+ "updated_at"?: string | null;
1830
+ "deleted_at"?: string | null;
1831
+ }
808
1832
  export interface ProvinceUpdatePutResponseData extends JsonObject {
809
- "province": JsonValue;
1833
+ "province": ProvinceUpdatePutResponseDataProvince;
810
1834
  }
811
1835
  export interface ProvinceUpdatePutResponse extends ApiEnvelope<ProvinceUpdatePutResponseData> {
812
1836
  }
@@ -817,8 +1841,16 @@ export interface ProvinceForceDestroyDeleteResponse extends ApiEnvelope<JsonValu
817
1841
  export interface ProvinceRestoreGetResponse extends ApiEnvelope<JsonValue> {
818
1842
  }
819
1843
  /** Backend response type: models::ListData. */
1844
+ export interface SettingIndexGetResponseDataSetting extends JsonObject {
1845
+ "id": string;
1846
+ "key": string;
1847
+ "title": string;
1848
+ "value": number;
1849
+ "created_at": string;
1850
+ "updated_at"?: string | null;
1851
+ }
820
1852
  export interface SettingIndexGetResponseData extends JsonObject {
821
- "setting": JsonValue[];
1853
+ "setting": SettingIndexGetResponseDataSetting[];
822
1854
  }
823
1855
  export interface SettingIndexGetResponse extends ApiEnvelope<SettingIndexGetResponseData> {
824
1856
  }
@@ -829,8 +1861,16 @@ export interface SettingStorePostInput extends JsonObject {
829
1861
  "value": number;
830
1862
  }
831
1863
  /** Backend response type: models::SingleData. */
1864
+ export interface SettingStorePostResponseDataSetting extends JsonObject {
1865
+ "id": string;
1866
+ "key": string;
1867
+ "title": string;
1868
+ "value": number;
1869
+ "created_at": string;
1870
+ "updated_at"?: string | null;
1871
+ }
832
1872
  export interface SettingStorePostResponseData extends JsonObject {
833
- "setting": JsonValue;
1873
+ "setting": SettingStorePostResponseDataSetting;
834
1874
  }
835
1875
  export interface SettingStorePostResponse extends ApiEnvelope<SettingStorePostResponseData> {
836
1876
  }
@@ -839,24 +1879,37 @@ export interface SurveyIndexGetResponse extends ApiEnvelope<JsonValue> {
839
1879
  }
840
1880
  /** Backend request type: CreateSurvey. */
841
1881
  export interface SurveyStorePostInput extends JsonObject {
1882
+ "user_id": string;
1883
+ "enrollment_id"?: number | null;
1884
+ "type"?: string | null;
1885
+ "meta"?: JsonValue | null;
842
1886
  }
843
1887
  /** Backend response type: Value. */
844
1888
  export interface SurveyStorePostResponse extends ApiEnvelope<JsonValue> {
845
1889
  }
846
1890
  /** Backend query type: models::ListQuery. */
847
1891
  export interface TrustedServiceIndexGetQuery extends QueryParams {
848
- "page"?: string;
849
- "per_page"?: string;
850
- "filter[search]"?: string;
851
- "filter[status]"?: string;
852
- "filter[active]"?: string;
853
- "filter[service_key]"?: string;
854
- "filter[title]"?: string;
855
- "filter[trashed]"?: string;
1892
+ "page"?: string | null;
1893
+ "per_page"?: string | null;
1894
+ "filter[search]"?: string | null;
1895
+ "filter[status]"?: string | null;
1896
+ "filter[active]"?: string | null;
1897
+ "filter[service_key]"?: string | null;
1898
+ "filter[title]"?: string | null;
1899
+ "filter[trashed]"?: string | null;
856
1900
  }
857
1901
  /** Backend response type: models::ListData. */
1902
+ export interface TrustedServiceIndexGetResponseDataTrustedServices extends JsonObject {
1903
+ "id": string;
1904
+ "service_key": string;
1905
+ "title": string;
1906
+ "status": string;
1907
+ "created_at": string;
1908
+ "updated_at"?: string | null;
1909
+ "deleted_at"?: string | null;
1910
+ }
858
1911
  export interface TrustedServiceIndexGetResponseData extends JsonObject {
859
- "trusted_services": JsonValue[];
1912
+ "trusted_services": TrustedServiceIndexGetResponseDataTrustedServices[];
860
1913
  }
861
1914
  export interface TrustedServiceIndexGetMetaData extends JsonObject {
862
1915
  "current_page": number;
@@ -873,8 +1926,17 @@ export interface TrustedServiceStorePostInput extends JsonObject {
873
1926
  "title": string;
874
1927
  }
875
1928
  /** Backend response type: models::SingleData. */
1929
+ export interface TrustedServiceStorePostResponseDataTrustedService extends JsonObject {
1930
+ "id": string;
1931
+ "service_key": string;
1932
+ "title": string;
1933
+ "status": string;
1934
+ "created_at": string;
1935
+ "updated_at"?: string | null;
1936
+ "deleted_at"?: string | null;
1937
+ }
876
1938
  export interface TrustedServiceStorePostResponseData extends JsonObject {
877
- "trusted_service": JsonValue;
1939
+ "trusted_service": TrustedServiceStorePostResponseDataTrustedService;
878
1940
  }
879
1941
  export interface TrustedServiceStorePostResponse extends ApiEnvelope<TrustedServiceStorePostResponseData> {
880
1942
  }
@@ -882,49 +1944,89 @@ export interface TrustedServiceStorePostResponse extends ApiEnvelope<TrustedServ
882
1944
  export interface TrustedServiceDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
883
1945
  }
884
1946
  /** Backend response type: models::SingleData. */
1947
+ export interface TrustedServiceShowGetResponseDataTrustedService extends JsonObject {
1948
+ "id": string;
1949
+ "service_key": string;
1950
+ "title": string;
1951
+ "status": string;
1952
+ "created_at": string;
1953
+ "updated_at"?: string | null;
1954
+ "deleted_at"?: string | null;
1955
+ }
885
1956
  export interface TrustedServiceShowGetResponseData extends JsonObject {
886
- "trusted_service": JsonValue;
1957
+ "trusted_service": TrustedServiceShowGetResponseDataTrustedService;
887
1958
  }
888
1959
  export interface TrustedServiceShowGetResponse extends ApiEnvelope<TrustedServiceShowGetResponseData> {
889
1960
  }
890
1961
  /** Backend request type: models::Update. */
891
1962
  export interface TrustedServiceUpdatePatchInput extends JsonObject {
892
- "service_key"?: string;
893
- "title"?: string;
894
- "status"?: string;
1963
+ "service_key"?: string | null;
1964
+ "title"?: string | null;
1965
+ "status"?: string | null;
895
1966
  }
896
1967
  /** Backend response type: models::SingleData. */
1968
+ export interface TrustedServiceUpdatePatchResponseDataTrustedService extends JsonObject {
1969
+ "id": string;
1970
+ "service_key": string;
1971
+ "title": string;
1972
+ "status": string;
1973
+ "created_at": string;
1974
+ "updated_at"?: string | null;
1975
+ "deleted_at"?: string | null;
1976
+ }
897
1977
  export interface TrustedServiceUpdatePatchResponseData extends JsonObject {
898
- "trusted_service": JsonValue;
1978
+ "trusted_service": TrustedServiceUpdatePatchResponseDataTrustedService;
899
1979
  }
900
1980
  export interface TrustedServiceUpdatePatchResponse extends ApiEnvelope<TrustedServiceUpdatePatchResponseData> {
901
1981
  }
902
1982
  /** Backend request type: models::Update. */
903
1983
  export interface TrustedServiceUpdatePutInput extends JsonObject {
904
- "service_key"?: string;
905
- "title"?: string;
906
- "status"?: string;
1984
+ "service_key"?: string | null;
1985
+ "title"?: string | null;
1986
+ "status"?: string | null;
907
1987
  }
908
1988
  /** Backend response type: models::SingleData. */
1989
+ export interface TrustedServiceUpdatePutResponseDataTrustedService extends JsonObject {
1990
+ "id": string;
1991
+ "service_key": string;
1992
+ "title": string;
1993
+ "status": string;
1994
+ "created_at": string;
1995
+ "updated_at"?: string | null;
1996
+ "deleted_at"?: string | null;
1997
+ }
909
1998
  export interface TrustedServiceUpdatePutResponseData extends JsonObject {
910
- "trusted_service": JsonValue;
1999
+ "trusted_service": TrustedServiceUpdatePutResponseDataTrustedService;
911
2000
  }
912
2001
  export interface TrustedServiceUpdatePutResponse extends ApiEnvelope<TrustedServiceUpdatePutResponseData> {
913
2002
  }
914
2003
  /** Backend query type: models::EventListQuery. */
915
2004
  export interface TrustedServiceEventIndexGetQuery extends QueryParams {
916
- "page"?: string;
917
- "per_page"?: string;
918
- "filter[search]"?: string;
919
- "filter[status]"?: string;
920
- "filter[active]"?: string;
921
- "filter[event_name]"?: string;
922
- "filter[title]"?: string;
923
- "filter[trashed]"?: string;
2005
+ "page"?: string | null;
2006
+ "per_page"?: string | null;
2007
+ "filter[search]"?: string | null;
2008
+ "filter[status]"?: string | null;
2009
+ "filter[active]"?: string | null;
2010
+ "filter[event_name]"?: string | null;
2011
+ "filter[title]"?: string | null;
2012
+ "filter[trashed]"?: string | null;
924
2013
  }
925
2014
  /** Backend response type: models::EventListData. */
2015
+ export interface TrustedServiceEventIndexGetResponseDataTrustedServiceEvents extends JsonObject {
2016
+ "id": string;
2017
+ "service_id": string;
2018
+ "event_name": string;
2019
+ "title": string;
2020
+ "visible_in_list": boolean;
2021
+ "visible_in_get": boolean;
2022
+ "visible_in_full": boolean;
2023
+ "payload_schema"?: JsonValue | null;
2024
+ "created_at": string;
2025
+ "updated_at"?: string | null;
2026
+ "deleted_at"?: string | null;
2027
+ }
926
2028
  export interface TrustedServiceEventIndexGetResponseData extends JsonObject {
927
- "trusted_service_events": JsonValue[];
2029
+ "trusted_service_events": TrustedServiceEventIndexGetResponseDataTrustedServiceEvents[];
928
2030
  }
929
2031
  export interface TrustedServiceEventIndexGetMetaData extends JsonObject {
930
2032
  "current_page": number;
@@ -939,14 +2041,27 @@ export interface TrustedServiceEventIndexGetResponse extends ApiEnvelope<Trusted
939
2041
  export interface TrustedServiceEventStorePostInput extends JsonObject {
940
2042
  "event_name": string;
941
2043
  "title": string;
942
- "visible_in_list"?: boolean;
943
- "visible_in_get"?: boolean;
944
- "visible_in_full"?: boolean;
945
- "payload_schema"?: JsonValue;
2044
+ "visible_in_list"?: boolean | null;
2045
+ "visible_in_get"?: boolean | null;
2046
+ "visible_in_full"?: boolean | null;
2047
+ "payload_schema"?: JsonValue | null;
946
2048
  }
947
2049
  /** Backend response type: models::EventSingleData. */
2050
+ export interface TrustedServiceEventStorePostResponseDataTrustedServiceEvent extends JsonObject {
2051
+ "id": string;
2052
+ "service_id": string;
2053
+ "event_name": string;
2054
+ "title": string;
2055
+ "visible_in_list": boolean;
2056
+ "visible_in_get": boolean;
2057
+ "visible_in_full": boolean;
2058
+ "payload_schema"?: JsonValue | null;
2059
+ "created_at": string;
2060
+ "updated_at"?: string | null;
2061
+ "deleted_at"?: string | null;
2062
+ }
948
2063
  export interface TrustedServiceEventStorePostResponseData extends JsonObject {
949
- "trusted_service_event": JsonValue;
2064
+ "trusted_service_event": TrustedServiceEventStorePostResponseDataTrustedServiceEvent;
950
2065
  }
951
2066
  export interface TrustedServiceEventStorePostResponse extends ApiEnvelope<TrustedServiceEventStorePostResponseData> {
952
2067
  }
@@ -954,38 +2069,77 @@ export interface TrustedServiceEventStorePostResponse extends ApiEnvelope<Truste
954
2069
  export interface TrustedServiceEventDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
955
2070
  }
956
2071
  /** Backend response type: models::EventSingleData. */
2072
+ export interface TrustedServiceEventShowGetResponseDataTrustedServiceEvent extends JsonObject {
2073
+ "id": string;
2074
+ "service_id": string;
2075
+ "event_name": string;
2076
+ "title": string;
2077
+ "visible_in_list": boolean;
2078
+ "visible_in_get": boolean;
2079
+ "visible_in_full": boolean;
2080
+ "payload_schema"?: JsonValue | null;
2081
+ "created_at": string;
2082
+ "updated_at"?: string | null;
2083
+ "deleted_at"?: string | null;
2084
+ }
957
2085
  export interface TrustedServiceEventShowGetResponseData extends JsonObject {
958
- "trusted_service_event": JsonValue;
2086
+ "trusted_service_event": TrustedServiceEventShowGetResponseDataTrustedServiceEvent;
959
2087
  }
960
2088
  export interface TrustedServiceEventShowGetResponse extends ApiEnvelope<TrustedServiceEventShowGetResponseData> {
961
2089
  }
962
2090
  /** Backend request type: models::EventUpdate. */
963
2091
  export interface TrustedServiceEventUpdatePatchInput extends JsonObject {
964
- "event_name"?: string;
965
- "title"?: string;
966
- "visible_in_list"?: boolean;
967
- "visible_in_get"?: boolean;
968
- "visible_in_full"?: boolean;
969
- "payload_schema"?: JsonValue;
2092
+ "event_name"?: string | null;
2093
+ "title"?: string | null;
2094
+ "visible_in_list"?: boolean | null;
2095
+ "visible_in_get"?: boolean | null;
2096
+ "visible_in_full"?: boolean | null;
2097
+ "payload_schema"?: JsonValue | null;
970
2098
  }
971
2099
  /** Backend response type: models::EventSingleData. */
2100
+ export interface TrustedServiceEventUpdatePatchResponseDataTrustedServiceEvent extends JsonObject {
2101
+ "id": string;
2102
+ "service_id": string;
2103
+ "event_name": string;
2104
+ "title": string;
2105
+ "visible_in_list": boolean;
2106
+ "visible_in_get": boolean;
2107
+ "visible_in_full": boolean;
2108
+ "payload_schema"?: JsonValue | null;
2109
+ "created_at": string;
2110
+ "updated_at"?: string | null;
2111
+ "deleted_at"?: string | null;
2112
+ }
972
2113
  export interface TrustedServiceEventUpdatePatchResponseData extends JsonObject {
973
- "trusted_service_event": JsonValue;
2114
+ "trusted_service_event": TrustedServiceEventUpdatePatchResponseDataTrustedServiceEvent;
974
2115
  }
975
2116
  export interface TrustedServiceEventUpdatePatchResponse extends ApiEnvelope<TrustedServiceEventUpdatePatchResponseData> {
976
2117
  }
977
2118
  /** Backend request type: models::EventUpdate. */
978
2119
  export interface TrustedServiceEventUpdatePutInput extends JsonObject {
979
- "event_name"?: string;
980
- "title"?: string;
981
- "visible_in_list"?: boolean;
982
- "visible_in_get"?: boolean;
983
- "visible_in_full"?: boolean;
984
- "payload_schema"?: JsonValue;
2120
+ "event_name"?: string | null;
2121
+ "title"?: string | null;
2122
+ "visible_in_list"?: boolean | null;
2123
+ "visible_in_get"?: boolean | null;
2124
+ "visible_in_full"?: boolean | null;
2125
+ "payload_schema"?: JsonValue | null;
985
2126
  }
986
2127
  /** Backend response type: models::EventSingleData. */
2128
+ export interface TrustedServiceEventUpdatePutResponseDataTrustedServiceEvent extends JsonObject {
2129
+ "id": string;
2130
+ "service_id": string;
2131
+ "event_name": string;
2132
+ "title": string;
2133
+ "visible_in_list": boolean;
2134
+ "visible_in_get": boolean;
2135
+ "visible_in_full": boolean;
2136
+ "payload_schema"?: JsonValue | null;
2137
+ "created_at": string;
2138
+ "updated_at"?: string | null;
2139
+ "deleted_at"?: string | null;
2140
+ }
987
2141
  export interface TrustedServiceEventUpdatePutResponseData extends JsonObject {
988
- "trusted_service_event": JsonValue;
2142
+ "trusted_service_event": TrustedServiceEventUpdatePutResponseDataTrustedServiceEvent;
989
2143
  }
990
2144
  export interface TrustedServiceEventUpdatePutResponse extends ApiEnvelope<TrustedServiceEventUpdatePutResponseData> {
991
2145
  }