@faiber/faiber-profile 0.3.0 → 0.5.1

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,64 @@
1
- import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, BackendJson, 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: api. */
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
  }
13
+ /** Backend response type: profile_methods::ChatContext. */
14
+ export interface SessionGetChatContextGetResponseData extends JsonObject {
15
+ "profile": JsonValue;
16
+ "properties": BackendJson<"Map<String, Value>">;
17
+ }
18
+ export interface SessionGetChatContextGetResponse extends ApiEnvelope<SessionGetChatContextGetResponseData> {
19
+ }
12
20
  /** Backend response type: SessionResponse. */
13
21
  export interface SessionGetSelfGetResponseData extends JsonObject {
14
22
  "user_id": string;
15
23
  "roles": string[];
16
24
  "permissions": string[];
25
+ "profile": BackendJson<"ProfileResponse">;
17
26
  }
18
27
  export interface SessionGetSelfGetResponse extends ApiEnvelope<SessionGetSelfGetResponseData> {
19
28
  }
29
+ /** Backend response type: Value. */
30
+ export interface CampaignIndexGetResponse extends ApiEnvelope<JsonValue> {
31
+ }
32
+ /** Backend response type: Value. */
33
+ export interface CampaignMyContributionsGetResponse extends ApiEnvelope<JsonValue> {
34
+ }
35
+ /** Backend response type: Value. */
36
+ export interface CampaignShowGetResponse extends ApiEnvelope<JsonValue> {
37
+ }
38
+ /** Backend request type: ContributionRequest. */
39
+ export interface CampaignContributePostInput extends JsonObject {
40
+ "method": string;
41
+ "amount": number;
42
+ "unit": string;
43
+ "idempotency_key": string;
44
+ }
45
+ /** Backend response type: Value. */
46
+ export interface CampaignContributePostResponse extends ApiEnvelope<JsonValue> {
47
+ }
20
48
  /** Backend query type: models::ListQuery. */
21
49
  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;
50
+ "page"?: string | null;
51
+ "per_page"?: string | null;
52
+ "filter[search]"?: string | null;
53
+ "filter[status]"?: string | null;
54
+ "filter[active]"?: string | null;
55
+ "filter[name]"?: string | null;
56
+ "filter[province_id]"?: string | null;
57
+ "filter[trashed]"?: string | null;
30
58
  }
31
59
  /** Backend response type: models::ListData. */
32
60
  export interface CityIndexGetResponseData extends JsonObject {
33
- "cities": JsonValue[];
61
+ "cities": BackendJson<"Response">[];
34
62
  }
35
63
  export interface CityIndexGetMetaData extends JsonObject {
36
64
  "current_page": number;
@@ -45,12 +73,12 @@ export interface CityIndexGetResponse extends ApiEnvelope<CityIndexGetResponseDa
45
73
  export interface CityStorePostInput extends JsonObject {
46
74
  "province_id": string;
47
75
  "name": string;
48
- "latitude"?: number;
49
- "longitude"?: number;
76
+ "latitude"?: number | null;
77
+ "longitude"?: number | null;
50
78
  }
51
79
  /** Backend response type: models::SingleData. */
52
80
  export interface CityStorePostResponseData extends JsonObject {
53
- "city": JsonValue;
81
+ "city": BackendJson<"Response">;
54
82
  }
55
83
  export interface CityStorePostResponse extends ApiEnvelope<CityStorePostResponseData> {
56
84
  }
@@ -59,35 +87,35 @@ export interface CityDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
59
87
  }
60
88
  /** Backend response type: models::SingleData. */
61
89
  export interface CityShowGetResponseData extends JsonObject {
62
- "city": JsonValue;
90
+ "city": BackendJson<"Response">;
63
91
  }
64
92
  export interface CityShowGetResponse extends ApiEnvelope<CityShowGetResponseData> {
65
93
  }
66
94
  /** Backend request type: models::Update. */
67
95
  export interface CityUpdatePatchInput extends JsonObject {
68
- "province_id"?: string;
69
- "name"?: string;
70
- "latitude"?: number;
71
- "longitude"?: number;
72
- "status"?: string;
96
+ "province_id"?: string | null;
97
+ "name"?: string | null;
98
+ "latitude"?: number | null;
99
+ "longitude"?: number | null;
100
+ "status"?: string | null;
73
101
  }
74
102
  /** Backend response type: models::SingleData. */
75
103
  export interface CityUpdatePatchResponseData extends JsonObject {
76
- "city": JsonValue;
104
+ "city": BackendJson<"Response">;
77
105
  }
78
106
  export interface CityUpdatePatchResponse extends ApiEnvelope<CityUpdatePatchResponseData> {
79
107
  }
80
108
  /** Backend request type: models::Update. */
81
109
  export interface CityUpdatePutInput extends JsonObject {
82
- "province_id"?: string;
83
- "name"?: string;
84
- "latitude"?: number;
85
- "longitude"?: number;
86
- "status"?: string;
110
+ "province_id"?: string | null;
111
+ "name"?: string | null;
112
+ "latitude"?: number | null;
113
+ "longitude"?: number | null;
114
+ "status"?: string | null;
87
115
  }
88
116
  /** Backend response type: models::SingleData. */
89
117
  export interface CityUpdatePutResponseData extends JsonObject {
90
- "city": JsonValue;
118
+ "city": BackendJson<"Response">;
91
119
  }
92
120
  export interface CityUpdatePutResponse extends ApiEnvelope<CityUpdatePutResponseData> {
93
121
  }
@@ -99,17 +127,17 @@ export interface CityRestoreGetResponse extends ApiEnvelope<JsonValue> {
99
127
  }
100
128
  /** Backend query type: models::ListQuery. */
101
129
  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;
130
+ "page"?: string | null;
131
+ "per_page"?: string | null;
132
+ "filter[search]"?: string | null;
133
+ "filter[status]"?: string | null;
134
+ "filter[active]"?: string | null;
135
+ "filter[name]"?: string | null;
136
+ "filter[trashed]"?: string | null;
109
137
  }
110
138
  /** Backend response type: models::ListData. */
111
139
  export interface CountryIndexGetResponseData extends JsonObject {
112
- "countries": JsonValue[];
140
+ "countries": BackendJson<"Response">[];
113
141
  }
114
142
  export interface CountryIndexGetMetaData extends JsonObject {
115
143
  "current_page": number;
@@ -123,12 +151,12 @@ export interface CountryIndexGetResponse extends ApiEnvelope<CountryIndexGetResp
123
151
  /** Backend request type: models::Create. */
124
152
  export interface CountryStorePostInput extends JsonObject {
125
153
  "name": string;
126
- "latitude"?: number;
127
- "longitude"?: number;
154
+ "latitude"?: number | null;
155
+ "longitude"?: number | null;
128
156
  }
129
157
  /** Backend response type: models::SingleData. */
130
158
  export interface CountryStorePostResponseData extends JsonObject {
131
- "country": JsonValue;
159
+ "country": BackendJson<"Response">;
132
160
  }
133
161
  export interface CountryStorePostResponse extends ApiEnvelope<CountryStorePostResponseData> {
134
162
  }
@@ -137,33 +165,33 @@ export interface CountryDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
137
165
  }
138
166
  /** Backend response type: models::SingleData. */
139
167
  export interface CountryShowGetResponseData extends JsonObject {
140
- "country": JsonValue;
168
+ "country": BackendJson<"Response">;
141
169
  }
142
170
  export interface CountryShowGetResponse extends ApiEnvelope<CountryShowGetResponseData> {
143
171
  }
144
172
  /** Backend request type: models::Update. */
145
173
  export interface CountryUpdatePatchInput extends JsonObject {
146
- "name"?: string;
147
- "status"?: string;
148
- "latitude"?: number;
149
- "longitude"?: number;
174
+ "name"?: string | null;
175
+ "status"?: string | null;
176
+ "latitude"?: number | null;
177
+ "longitude"?: number | null;
150
178
  }
151
179
  /** Backend response type: models::SingleData. */
152
180
  export interface CountryUpdatePatchResponseData extends JsonObject {
153
- "country": JsonValue;
181
+ "country": BackendJson<"Response">;
154
182
  }
155
183
  export interface CountryUpdatePatchResponse extends ApiEnvelope<CountryUpdatePatchResponseData> {
156
184
  }
157
185
  /** Backend request type: models::Update. */
158
186
  export interface CountryUpdatePutInput extends JsonObject {
159
- "name"?: string;
160
- "status"?: string;
161
- "latitude"?: number;
162
- "longitude"?: number;
187
+ "name"?: string | null;
188
+ "status"?: string | null;
189
+ "latitude"?: number | null;
190
+ "longitude"?: number | null;
163
191
  }
164
192
  /** Backend response type: models::SingleData. */
165
193
  export interface CountryUpdatePutResponseData extends JsonObject {
166
- "country": JsonValue;
194
+ "country": BackendJson<"Response">;
167
195
  }
168
196
  export interface CountryUpdatePutResponse extends ApiEnvelope<CountryUpdatePutResponseData> {
169
197
  }
@@ -181,28 +209,34 @@ export interface OptionIdentityGetResponse extends ApiEnvelope<JsonValue> {
181
209
  }
182
210
  /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
183
211
  export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
184
- "direct": JsonValue;
185
- "sdk": JsonValue[];
212
+ "direct": BackendJson<"DirectIntegrationMeta">;
213
+ "sdk": BackendJson<"SdkIntegrationSnippet">[];
186
214
  }
187
215
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
188
216
  }
189
217
  /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
190
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
218
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
191
219
  }
192
220
  /** Backend request type: LogActionCreate. */
193
221
  export interface LogActionStorePostInput extends JsonObject {
222
+ "action": string;
223
+ "meta"?: JsonValue | null;
194
224
  }
195
225
  /** Backend response type: Value. */
196
226
  export interface LogActionStorePostResponse extends ApiEnvelope<JsonValue> {
197
227
  }
198
228
  /** Backend request type: LogActionCreate. */
199
229
  export interface LogActionStoreSlugPostInput extends JsonObject {
230
+ "action": string;
231
+ "meta"?: JsonValue | null;
200
232
  }
201
233
  /** Backend response type: Value. */
202
234
  export interface LogActionStoreSlugPostResponse extends ApiEnvelope<JsonValue> {
203
235
  }
204
236
  /** Backend request type: LogActionCreate. */
205
237
  export interface LogActionStoreDirectPostInput extends JsonObject {
238
+ "action": string;
239
+ "meta"?: JsonValue | null;
206
240
  }
207
241
  /** Backend response type: Value. */
208
242
  export interface LogActionStoreDirectPostResponse extends ApiEnvelope<JsonValue> {
@@ -215,23 +249,24 @@ export interface LoggerShowGetResponse extends ApiEnvelope<JsonValue> {
215
249
  }
216
250
  /** Backend request type: BulkParentGet. */
217
251
  export interface OptionParentGetPostInput extends JsonObject {
252
+ "user_ids": string[];
218
253
  }
219
254
  /** Backend response type: Value. */
220
255
  export interface OptionParentGetPostResponse extends ApiEnvelope<JsonValue> {
221
256
  }
222
257
  /** Backend query type: models::ListQuery. */
223
258
  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;
259
+ "page"?: string | null;
260
+ "per_page"?: string | null;
261
+ "filter[search]"?: string | null;
262
+ "filter[status]"?: string | null;
263
+ "filter[active]"?: string | null;
264
+ "filter[role]"?: string | null;
265
+ "filter[trashed]"?: string | null;
231
266
  }
232
267
  /** Backend response type: models::ListData. */
233
268
  export interface ProfileIndexGetResponseData extends JsonObject {
234
- "profiles": JsonValue[];
269
+ "profiles": BackendJson<"ProfileResponse">[];
235
270
  }
236
271
  export interface ProfileIndexGetMetaData extends JsonObject {
237
272
  "current_page": number;
@@ -244,18 +279,18 @@ export interface ProfileIndexGetResponse extends ApiEnvelope<ProfileIndexGetResp
244
279
  }
245
280
  /** Backend query type: models::ListQuery. */
246
281
  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;
282
+ "page"?: string | null;
283
+ "per_page"?: string | null;
284
+ "filter[search]"?: string | null;
285
+ "filter[status]"?: string | null;
286
+ "filter[active]"?: string | null;
287
+ "filter[key]"?: string | null;
288
+ "filter[title]"?: string | null;
289
+ "filter[trashed]"?: string | null;
255
290
  }
256
291
  /** Backend response type: models::ListData. */
257
292
  export interface ProfilePropertyIndexGetResponseData extends JsonObject {
258
- "profile_property_definitions": JsonValue[];
293
+ "profile_property_definitions": BackendJson<"Response">[];
259
294
  }
260
295
  export interface ProfilePropertyIndexGetMetaData extends JsonObject {
261
296
  "current_page": number;
@@ -271,17 +306,18 @@ export interface ProfilePropertyStorePostInput extends JsonObject {
271
306
  "key": string;
272
307
  "title": string;
273
308
  "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;
309
+ "validator_config"?: JsonValue | null;
310
+ "visible_in_list"?: boolean | null;
311
+ "visible_in_get"?: boolean | null;
312
+ "visible_in_full"?: boolean | null;
313
+ "visible_in_chat"?: boolean | null;
314
+ "filterable"?: boolean | null;
315
+ "index_value_kind"?: string | null;
316
+ "sort_order"?: number | null;
281
317
  }
282
318
  /** Backend response type: models::SingleData. */
283
319
  export interface ProfilePropertyStorePostResponseData extends JsonObject {
284
- "profile_property_definition": JsonValue;
320
+ "profile_property_definition": BackendJson<"Response">;
285
321
  }
286
322
  export interface ProfilePropertyStorePostResponse extends ApiEnvelope<ProfilePropertyStorePostResponseData> {
287
323
  }
@@ -290,47 +326,49 @@ export interface ProfilePropertyDestroyDeleteResponse extends ApiEnvelope<JsonVa
290
326
  }
291
327
  /** Backend response type: models::SingleData. */
292
328
  export interface ProfilePropertyShowGetResponseData extends JsonObject {
293
- "profile_property_definition": JsonValue;
329
+ "profile_property_definition": BackendJson<"Response">;
294
330
  }
295
331
  export interface ProfilePropertyShowGetResponse extends ApiEnvelope<ProfilePropertyShowGetResponseData> {
296
332
  }
297
333
  /** Backend request type: models::Update. */
298
334
  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;
335
+ "key"?: string | null;
336
+ "title"?: string | null;
337
+ "validator_type"?: string | null;
338
+ "validator_config"?: JsonValue | null;
339
+ "visible_in_list"?: boolean | null;
340
+ "visible_in_get"?: boolean | null;
341
+ "visible_in_full"?: boolean | null;
342
+ "visible_in_chat"?: boolean | null;
343
+ "filterable"?: boolean | null;
344
+ "index_value_kind"?: string | null;
345
+ "sort_order"?: number | null;
346
+ "status"?: string | null;
310
347
  }
311
348
  /** Backend response type: models::SingleData. */
312
349
  export interface ProfilePropertyUpdatePatchResponseData extends JsonObject {
313
- "profile_property_definition": JsonValue;
350
+ "profile_property_definition": BackendJson<"Response">;
314
351
  }
315
352
  export interface ProfilePropertyUpdatePatchResponse extends ApiEnvelope<ProfilePropertyUpdatePatchResponseData> {
316
353
  }
317
354
  /** Backend request type: models::Update. */
318
355
  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;
356
+ "key"?: string | null;
357
+ "title"?: string | null;
358
+ "validator_type"?: string | null;
359
+ "validator_config"?: JsonValue | null;
360
+ "visible_in_list"?: boolean | null;
361
+ "visible_in_get"?: boolean | null;
362
+ "visible_in_full"?: boolean | null;
363
+ "visible_in_chat"?: boolean | null;
364
+ "filterable"?: boolean | null;
365
+ "index_value_kind"?: string | null;
366
+ "sort_order"?: number | null;
367
+ "status"?: string | null;
330
368
  }
331
369
  /** Backend response type: models::SingleData. */
332
370
  export interface ProfilePropertyUpdatePutResponseData extends JsonObject {
333
- "profile_property_definition": JsonValue;
371
+ "profile_property_definition": BackendJson<"Response">;
334
372
  }
335
373
  export interface ProfilePropertyUpdatePutResponse extends ApiEnvelope<ProfilePropertyUpdatePutResponseData> {
336
374
  }
@@ -348,7 +386,7 @@ export interface ProfileDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
348
386
  }
349
387
  /** Backend response type: models::SingleData. */
350
388
  export interface ProfileShowGetResponseData extends JsonObject {
351
- "profile": JsonValue;
389
+ "profile": BackendJson<"ProfileResponse">;
352
390
  }
353
391
  export interface ProfileShowGetResponse extends ApiEnvelope<ProfileShowGetResponseData> {
354
392
  }
@@ -358,8 +396,8 @@ export interface ProfileUpdatePatchInput extends JsonObject {
358
396
  "phone"?: string | null;
359
397
  "national_code"?: string | null;
360
398
  "national_number"?: string | null;
361
- "first_name"?: JsonValue;
362
- "last_name"?: JsonValue;
399
+ "first_name"?: JsonValue | null;
400
+ "last_name"?: JsonValue | null;
363
401
  "birthday"?: string | null;
364
402
  "nationality"?: string | null;
365
403
  "religion"?: string | null;
@@ -374,31 +412,37 @@ export interface ProfileUpdatePatchInput extends JsonObject {
374
412
  "country_id"?: string | null;
375
413
  "province_id"?: string | null;
376
414
  "city_id"?: string | null;
377
- "status"?: string;
415
+ "status"?: string | null;
378
416
  "employee_type"?: string | null;
379
417
  "freemium_session_limit"?: number | null;
380
- "meta"?: JsonValue;
381
- "app"?: JsonValue;
382
- "properties"?: Record<string, JsonValue>;
418
+ "meta"?: JsonValue | null;
419
+ "app"?: JsonValue | null;
420
+ "properties"?: Record<string, JsonValue> | null;
383
421
  }
384
422
  /** Backend response type: models::SingleData. */
385
423
  export interface ProfileUpdatePatchResponseData extends JsonObject {
386
- "profile": JsonValue;
424
+ "profile": BackendJson<"ProfileResponse">;
387
425
  }
388
426
  export interface ProfileUpdatePatchResponse extends ApiEnvelope<ProfileUpdatePatchResponseData> {
389
427
  }
390
428
  /** Backend response type: models::SingleData. */
391
429
  export interface ProfileShowAdminGetResponseData extends JsonObject {
392
- "profile": JsonValue;
430
+ "profile": BackendJson<"ProfileResponse">;
393
431
  }
394
432
  export interface ProfileShowAdminGetResponse extends ApiEnvelope<ProfileShowAdminGetResponseData> {
395
433
  }
396
434
  /** Backend response type: serde_json::Value. */
397
435
  export interface ProfileAvatarDeleteDeleteResponse extends ApiEnvelope<JsonValue> {
398
436
  }
399
- /** Backend request type: multipart/form-data. */
400
- export interface ProfileAvatarStorePostInput extends JsonObject {
437
+ /** Backend query type: MediaQuery. */
438
+ export interface ProfileAvatarShowGetQuery extends QueryParams {
439
+ "key": string;
440
+ }
441
+ /** Backend response type: raw-response. */
442
+ export interface ProfileAvatarShowGetResponse extends ApiEnvelope<JsonValue> {
401
443
  }
444
+ /** Backend request type: multipart/form-data. */
445
+ export type ProfileAvatarStorePostInput = FormData;
402
446
  /** Backend response type: serde_json::Value. */
403
447
  export interface ProfileAvatarStorePostResponse extends ApiEnvelope<JsonValue> {
404
448
  }
@@ -411,7 +455,7 @@ export interface ProfileUpdateEmployeeTypePatchInput extends JsonObject {
411
455
  }
412
456
  /** Backend response type: models::SingleData. */
413
457
  export interface ProfileUpdateEmployeeTypePatchResponseData extends JsonObject {
414
- "profile": JsonValue;
458
+ "profile": BackendJson<"ProfileResponse">;
415
459
  }
416
460
  export interface ProfileUpdateEmployeeTypePatchResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePatchResponseData> {
417
461
  }
@@ -421,7 +465,7 @@ export interface ProfileUpdateEmployeeTypePutInput extends JsonObject {
421
465
  }
422
466
  /** Backend response type: models::SingleData. */
423
467
  export interface ProfileUpdateEmployeeTypePutResponseData extends JsonObject {
424
- "profile": JsonValue;
468
+ "profile": BackendJson<"ProfileResponse">;
425
469
  }
426
470
  export interface ProfileUpdateEmployeeTypePutResponse extends ApiEnvelope<ProfileUpdateEmployeeTypePutResponseData> {
427
471
  }
@@ -431,7 +475,7 @@ export interface ProfileUpdateFreemiumPatchInput extends JsonObject {
431
475
  }
432
476
  /** Backend response type: models::SingleData. */
433
477
  export interface ProfileUpdateFreemiumPatchResponseData extends JsonObject {
434
- "profile": JsonValue;
478
+ "profile": BackendJson<"ProfileResponse">;
435
479
  }
436
480
  export interface ProfileUpdateFreemiumPatchResponse extends ApiEnvelope<ProfileUpdateFreemiumPatchResponseData> {
437
481
  }
@@ -441,20 +485,21 @@ export interface ProfileUpdateFreemiumPutInput extends JsonObject {
441
485
  }
442
486
  /** Backend response type: models::SingleData. */
443
487
  export interface ProfileUpdateFreemiumPutResponseData extends JsonObject {
444
- "profile": JsonValue;
488
+ "profile": BackendJson<"ProfileResponse">;
445
489
  }
446
490
  export interface ProfileUpdateFreemiumPutResponse extends ApiEnvelope<ProfileUpdateFreemiumPutResponseData> {
447
491
  }
448
492
  /** Backend response type: models::SingleData. */
449
493
  export interface ProfileShowFullGetResponseData extends JsonObject {
450
- "profile": JsonValue;
494
+ "profile": BackendJson<"ProfileResponse">;
451
495
  }
452
496
  export interface ProfileShowFullGetResponse extends ApiEnvelope<ProfileShowFullGetResponseData> {
453
497
  }
454
498
  /** Backend query type: MediaQuery. */
455
499
  export interface ProfileMediaShowGetQuery extends QueryParams {
500
+ "key": string;
456
501
  }
457
- /** Backend response type: response without a declared JSON model. */
502
+ /** Backend response type: raw-response. */
458
503
  export interface ProfileMediaShowGetResponse extends ApiEnvelope<JsonValue> {
459
504
  }
460
505
  /** Backend request type: property_models::PropertiesUpdate. */
@@ -477,7 +522,7 @@ export interface ProfileUpdateStatusPatchInput extends JsonObject {
477
522
  }
478
523
  /** Backend response type: models::SingleData. */
479
524
  export interface ProfileUpdateStatusPatchResponseData extends JsonObject {
480
- "profile": JsonValue;
525
+ "profile": BackendJson<"ProfileResponse">;
481
526
  }
482
527
  export interface ProfileUpdateStatusPatchResponse extends ApiEnvelope<ProfileUpdateStatusPatchResponseData> {
483
528
  }
@@ -487,22 +532,42 @@ export interface ProfileUpdateStatusPutInput extends JsonObject {
487
532
  }
488
533
  /** Backend response type: models::SingleData. */
489
534
  export interface ProfileUpdateStatusPutResponseData extends JsonObject {
490
- "profile": JsonValue;
535
+ "profile": BackendJson<"ProfileResponse">;
491
536
  }
492
537
  export interface ProfileUpdateStatusPutResponse extends ApiEnvelope<ProfileUpdateStatusPutResponseData> {
493
538
  }
494
- /** Backend response type: response without a declared JSON model. */
495
- export interface ProfileAccountantIndexGetResponse extends ApiEnvelope<JsonValue> {
539
+ /** Backend query type: models::ListQuery. */
540
+ export interface ProfileAccountantIndexGetQuery extends QueryParams {
541
+ "page"?: string | null;
542
+ "per_page"?: string | null;
543
+ "filter[search]"?: string | null;
544
+ "filter[status]"?: string | null;
545
+ "filter[active]"?: string | null;
546
+ "filter[role]"?: string | null;
547
+ "filter[trashed]"?: string | null;
548
+ }
549
+ /** Backend response type: models::ListData. */
550
+ export interface ProfileAccountantIndexGetResponseData extends JsonObject {
551
+ "profiles": BackendJson<"ProfileResponse">[];
552
+ }
553
+ export interface ProfileAccountantIndexGetMetaData extends JsonObject {
554
+ "current_page": number;
555
+ "per_page": number;
556
+ "total": number;
557
+ "last_page": number;
558
+ }
559
+ export interface ProfileAccountantIndexGetResponse extends ApiEnvelope<ProfileAccountantIndexGetResponseData> {
560
+ meta: ProfileAccountantIndexGetMetaData;
496
561
  }
497
562
  /** Backend request type: models::AddressRequest. */
498
563
  export interface ProfileAddAddressPatchInput extends JsonObject {
499
564
  "title": string;
500
- "country"?: string;
501
- "province"?: string;
502
- "city"?: string;
503
- "postal_code"?: string;
504
- "plate"?: string;
505
- "detail"?: string;
565
+ "country"?: string | null;
566
+ "province"?: string | null;
567
+ "city"?: string | null;
568
+ "postal_code"?: string | null;
569
+ "plate"?: string | null;
570
+ "detail"?: string | null;
506
571
  }
507
572
  /** Backend response type: serde_json::Value. */
508
573
  export interface ProfileAddAddressPatchResponse extends ApiEnvelope<JsonValue> {
@@ -510,12 +575,12 @@ export interface ProfileAddAddressPatchResponse extends ApiEnvelope<JsonValue> {
510
575
  /** Backend request type: models::AddressRequest. */
511
576
  export interface ProfileAddAddressPutInput extends JsonObject {
512
577
  "title": string;
513
- "country"?: string;
514
- "province"?: string;
515
- "city"?: string;
516
- "postal_code"?: string;
517
- "plate"?: string;
518
- "detail"?: string;
578
+ "country"?: string | null;
579
+ "province"?: string | null;
580
+ "city"?: string | null;
581
+ "postal_code"?: string | null;
582
+ "plate"?: string | null;
583
+ "detail"?: string | null;
519
584
  }
520
585
  /** Backend response type: serde_json::Value. */
521
586
  export interface ProfileAddAddressPutResponse extends ApiEnvelope<JsonValue> {
@@ -537,7 +602,7 @@ export interface ProfileAddAppPutResponse extends ApiEnvelope<JsonValue> {
537
602
  /** Backend request type: models::ParentLinkRequest. */
538
603
  export interface ProfileAddParentPatchInput extends JsonObject {
539
604
  "user_id": string;
540
- "parent_type"?: string;
605
+ "parent_type"?: string | null;
541
606
  }
542
607
  /** Backend response type: serde_json::Value. */
543
608
  export interface ProfileAddParentPatchResponse extends ApiEnvelope<JsonValue> {
@@ -545,7 +610,7 @@ export interface ProfileAddParentPatchResponse extends ApiEnvelope<JsonValue> {
545
610
  /** Backend request type: models::ParentLinkRequest. */
546
611
  export interface ProfileAddParentPutInput extends JsonObject {
547
612
  "user_id": string;
548
- "parent_type"?: string;
613
+ "parent_type"?: string | null;
549
614
  }
550
615
  /** Backend response type: serde_json::Value. */
551
616
  export interface ProfileAddParentPutResponse extends ApiEnvelope<JsonValue> {
@@ -553,25 +618,45 @@ export interface ProfileAddParentPutResponse extends ApiEnvelope<JsonValue> {
553
618
  /** Backend request type: models::GeoBulkGetRequest. */
554
619
  export interface ProfileCityGetPostInput extends JsonObject {
555
620
  "ids": string[];
556
- "user_ids"?: string[];
621
+ "user_ids"?: string[] | null;
557
622
  }
558
623
  /** Backend response type: models::ListData. */
559
624
  export interface ProfileCityGetPostResponseData extends JsonObject {
560
- "profiles": JsonValue[];
625
+ "profiles": BackendJson<"ProfileResponse">[];
561
626
  }
562
627
  export interface ProfileCityGetPostResponse extends ApiEnvelope<ProfileCityGetPostResponseData> {
563
628
  }
564
- /** Backend response type: response without a declared JSON model. */
565
- export interface ProfileConsultantIndexGetResponse extends ApiEnvelope<JsonValue> {
629
+ /** Backend query type: models::ListQuery. */
630
+ export interface ProfileConsultantIndexGetQuery extends QueryParams {
631
+ "page"?: string | null;
632
+ "per_page"?: string | null;
633
+ "filter[search]"?: string | null;
634
+ "filter[status]"?: string | null;
635
+ "filter[active]"?: string | null;
636
+ "filter[role]"?: string | null;
637
+ "filter[trashed]"?: string | null;
638
+ }
639
+ /** Backend response type: models::ListData. */
640
+ export interface ProfileConsultantIndexGetResponseData extends JsonObject {
641
+ "profiles": BackendJson<"ProfileResponse">[];
642
+ }
643
+ export interface ProfileConsultantIndexGetMetaData extends JsonObject {
644
+ "current_page": number;
645
+ "per_page": number;
646
+ "total": number;
647
+ "last_page": number;
648
+ }
649
+ export interface ProfileConsultantIndexGetResponse extends ApiEnvelope<ProfileConsultantIndexGetResponseData> {
650
+ meta: ProfileConsultantIndexGetMetaData;
566
651
  }
567
652
  /** Backend request type: models::GeoBulkGetRequest. */
568
653
  export interface ProfileCountryGetPostInput extends JsonObject {
569
654
  "ids": string[];
570
- "user_ids"?: string[];
655
+ "user_ids"?: string[] | null;
571
656
  }
572
657
  /** Backend response type: models::ListData. */
573
658
  export interface ProfileCountryGetPostResponseData extends JsonObject {
574
- "profiles": JsonValue[];
659
+ "profiles": BackendJson<"ProfileResponse">[];
575
660
  }
576
661
  export interface ProfileCountryGetPostResponse extends ApiEnvelope<ProfileCountryGetPostResponseData> {
577
662
  }
@@ -584,7 +669,7 @@ export interface ProfileBulkGetPostInput extends JsonObject {
584
669
  }
585
670
  /** Backend response type: models::ListData. */
586
671
  export interface ProfileBulkGetPostResponseData extends JsonObject {
587
- "profiles": JsonValue[];
672
+ "profiles": BackendJson<"ProfileResponse">[];
588
673
  }
589
674
  export interface ProfileBulkGetPostResponse extends ApiEnvelope<ProfileBulkGetPostResponseData> {
590
675
  }
@@ -600,38 +685,98 @@ export interface ProfileGetAppGetResponse extends ApiEnvelope<JsonValue> {
600
685
  /** Backend response type: serde_json::Value. */
601
686
  export interface ProfileGetParentGetResponse extends ApiEnvelope<JsonValue> {
602
687
  }
603
- /** Backend response type: response without a declared JSON model. */
604
- export interface ProfileManagerIndexGetResponse extends ApiEnvelope<JsonValue> {
688
+ /** Backend query type: models::ListQuery. */
689
+ export interface ProfileManagerIndexGetQuery extends QueryParams {
690
+ "page"?: string | null;
691
+ "per_page"?: string | null;
692
+ "filter[search]"?: string | null;
693
+ "filter[status]"?: string | null;
694
+ "filter[active]"?: string | null;
695
+ "filter[role]"?: string | null;
696
+ "filter[trashed]"?: string | null;
697
+ }
698
+ /** Backend response type: models::ListData. */
699
+ export interface ProfileManagerIndexGetResponseData extends JsonObject {
700
+ "profiles": BackendJson<"ProfileResponse">[];
701
+ }
702
+ export interface ProfileManagerIndexGetMetaData extends JsonObject {
703
+ "current_page": number;
704
+ "per_page": number;
705
+ "total": number;
706
+ "last_page": number;
707
+ }
708
+ export interface ProfileManagerIndexGetResponse extends ApiEnvelope<ProfileManagerIndexGetResponseData> {
709
+ meta: ProfileManagerIndexGetMetaData;
710
+ }
711
+ /** Backend query type: models::ListQuery. */
712
+ export interface ProfileOtherIndexGetQuery extends QueryParams {
713
+ "page"?: string | null;
714
+ "per_page"?: string | null;
715
+ "filter[search]"?: string | null;
716
+ "filter[status]"?: string | null;
717
+ "filter[active]"?: string | null;
718
+ "filter[role]"?: string | null;
719
+ "filter[trashed]"?: string | null;
720
+ }
721
+ /** Backend response type: models::ListData. */
722
+ export interface ProfileOtherIndexGetResponseData extends JsonObject {
723
+ "profiles": BackendJson<"ProfileResponse">[];
724
+ }
725
+ export interface ProfileOtherIndexGetMetaData extends JsonObject {
726
+ "current_page": number;
727
+ "per_page": number;
728
+ "total": number;
729
+ "last_page": number;
730
+ }
731
+ export interface ProfileOtherIndexGetResponse extends ApiEnvelope<ProfileOtherIndexGetResponseData> {
732
+ meta: ProfileOtherIndexGetMetaData;
605
733
  }
606
- /** Backend response type: response without a declared JSON model. */
607
- export interface ProfileOtherIndexGetResponse extends ApiEnvelope<JsonValue> {
734
+ /** Backend query type: models::ListQuery. */
735
+ export interface ProfileParentIndexGetQuery extends QueryParams {
736
+ "page"?: string | null;
737
+ "per_page"?: string | null;
738
+ "filter[search]"?: string | null;
739
+ "filter[status]"?: string | null;
740
+ "filter[active]"?: string | null;
741
+ "filter[role]"?: string | null;
742
+ "filter[trashed]"?: string | null;
743
+ }
744
+ /** Backend response type: models::ListData. */
745
+ export interface ProfileParentIndexGetResponseData extends JsonObject {
746
+ "profiles": BackendJson<"ProfileResponse">[];
608
747
  }
609
- /** Backend response type: response without a declared JSON model. */
610
- export interface ProfileParentIndexGetResponse extends ApiEnvelope<JsonValue> {
748
+ export interface ProfileParentIndexGetMetaData extends JsonObject {
749
+ "current_page": number;
750
+ "per_page": number;
751
+ "total": number;
752
+ "last_page": number;
753
+ }
754
+ export interface ProfileParentIndexGetResponse extends ApiEnvelope<ProfileParentIndexGetResponseData> {
755
+ meta: ProfileParentIndexGetMetaData;
611
756
  }
612
757
  /** Backend request type: models::GeoBulkGetRequest. */
613
758
  export interface ProfileProvinceGetPostInput extends JsonObject {
614
759
  "ids": string[];
615
- "user_ids"?: string[];
760
+ "user_ids"?: string[] | null;
616
761
  }
617
762
  /** Backend response type: models::ListData. */
618
763
  export interface ProfileProvinceGetPostResponseData extends JsonObject {
619
- "profiles": JsonValue[];
764
+ "profiles": BackendJson<"ProfileResponse">[];
620
765
  }
621
766
  export interface ProfileProvinceGetPostResponse extends ApiEnvelope<ProfileProvinceGetPostResponseData> {
622
767
  }
623
768
  /** Backend request type: crate::profile_search::models::SearchRequest. */
624
769
  export interface ProfileSearchSearchPostInput extends JsonObject {
625
- "search"?: string;
626
- "filters": JsonValue[];
627
- "sort": JsonValue[];
628
- "page"?: number;
629
- "per_page"?: number;
630
- "include": string[];
770
+ "search"?: string | null;
771
+ "filters"?: BackendJson<"FilterClause">[];
772
+ "sort"?: BackendJson<"SortClause">[];
773
+ "page"?: number | null;
774
+ "per_page"?: number | null;
775
+ "include"?: string[];
631
776
  }
632
777
  /** Backend response type: SearchData. */
633
778
  export interface ProfileSearchSearchPostResponseData extends JsonObject {
634
- "results": JsonValue[];
779
+ "results": BackendJson<"SearchHit">[];
635
780
  }
636
781
  export interface ProfileSearchSearchPostMetaData extends JsonObject {
637
782
  "current_page": number;
@@ -642,8 +787,28 @@ export interface ProfileSearchSearchPostMetaData extends JsonObject {
642
787
  export interface ProfileSearchSearchPostResponse extends ApiEnvelope<ProfileSearchSearchPostResponseData> {
643
788
  meta: ProfileSearchSearchPostMetaData;
644
789
  }
645
- /** Backend response type: response without a declared JSON model. */
646
- export interface ProfileStudentIndexGetResponse extends ApiEnvelope<JsonValue> {
790
+ /** Backend query type: models::ListQuery. */
791
+ export interface ProfileStudentIndexGetQuery extends QueryParams {
792
+ "page"?: string | null;
793
+ "per_page"?: string | null;
794
+ "filter[search]"?: string | null;
795
+ "filter[status]"?: string | null;
796
+ "filter[active]"?: string | null;
797
+ "filter[role]"?: string | null;
798
+ "filter[trashed]"?: string | null;
799
+ }
800
+ /** Backend response type: models::ListData. */
801
+ export interface ProfileStudentIndexGetResponseData extends JsonObject {
802
+ "profiles": BackendJson<"ProfileResponse">[];
803
+ }
804
+ export interface ProfileStudentIndexGetMetaData extends JsonObject {
805
+ "current_page": number;
806
+ "per_page": number;
807
+ "total": number;
808
+ "last_page": number;
809
+ }
810
+ export interface ProfileStudentIndexGetResponse extends ApiEnvelope<ProfileStudentIndexGetResponseData> {
811
+ meta: ProfileStudentIndexGetMetaData;
647
812
  }
648
813
  /** Backend response type: models::PesResponse. */
649
814
  export interface ProfileStudentPesGetResponseData extends JsonObject {
@@ -655,8 +820,28 @@ export interface ProfileStudentPesGetResponse extends ApiEnvelope<ProfileStudent
655
820
  /** Backend response type: serde_json::Value. */
656
821
  export interface ProfileStudentPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
657
822
  }
658
- /** Backend response type: response without a declared JSON model. */
659
- export interface ProfileSupportIndexGetResponse extends ApiEnvelope<JsonValue> {
823
+ /** Backend query type: models::ListQuery. */
824
+ export interface ProfileSupportIndexGetQuery extends QueryParams {
825
+ "page"?: string | null;
826
+ "per_page"?: string | null;
827
+ "filter[search]"?: string | null;
828
+ "filter[status]"?: string | null;
829
+ "filter[active]"?: string | null;
830
+ "filter[role]"?: string | null;
831
+ "filter[trashed]"?: string | null;
832
+ }
833
+ /** Backend response type: models::ListData. */
834
+ export interface ProfileSupportIndexGetResponseData extends JsonObject {
835
+ "profiles": BackendJson<"ProfileResponse">[];
836
+ }
837
+ export interface ProfileSupportIndexGetMetaData extends JsonObject {
838
+ "current_page": number;
839
+ "per_page": number;
840
+ "total": number;
841
+ "last_page": number;
842
+ }
843
+ export interface ProfileSupportIndexGetResponse extends ApiEnvelope<ProfileSupportIndexGetResponseData> {
844
+ meta: ProfileSupportIndexGetMetaData;
660
845
  }
661
846
  /** Backend response type: models::PesResponse. */
662
847
  export interface ProfileSupportPesGetResponseData extends JsonObject {
@@ -668,8 +853,28 @@ export interface ProfileSupportPesGetResponse extends ApiEnvelope<ProfileSupport
668
853
  /** Backend response type: serde_json::Value. */
669
854
  export interface ProfileSupportPesSchemaGetResponse extends ApiEnvelope<JsonValue> {
670
855
  }
671
- /** Backend response type: response without a declared JSON model. */
672
- export interface ProfileTeacherIndexGetResponse extends ApiEnvelope<JsonValue> {
856
+ /** Backend query type: models::ListQuery. */
857
+ export interface ProfileTeacherIndexGetQuery extends QueryParams {
858
+ "page"?: string | null;
859
+ "per_page"?: string | null;
860
+ "filter[search]"?: string | null;
861
+ "filter[status]"?: string | null;
862
+ "filter[active]"?: string | null;
863
+ "filter[role]"?: string | null;
864
+ "filter[trashed]"?: string | null;
865
+ }
866
+ /** Backend response type: models::ListData. */
867
+ export interface ProfileTeacherIndexGetResponseData extends JsonObject {
868
+ "profiles": BackendJson<"ProfileResponse">[];
869
+ }
870
+ export interface ProfileTeacherIndexGetMetaData extends JsonObject {
871
+ "current_page": number;
872
+ "per_page": number;
873
+ "total": number;
874
+ "last_page": number;
875
+ }
876
+ export interface ProfileTeacherIndexGetResponse extends ApiEnvelope<ProfileTeacherIndexGetResponseData> {
877
+ meta: ProfileTeacherIndexGetMetaData;
673
878
  }
674
879
  /** Backend response type: serde_json::Value. */
675
880
  export interface ProfileRestoreGetResponse extends ApiEnvelope<JsonValue> {
@@ -690,66 +895,66 @@ export interface ProfileAddMetaPutResponse extends ApiEnvelope<JsonValue> {
690
895
  }
691
896
  /** Backend request type: models::PersonalInformationUpdate. */
692
897
  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;
898
+ "first_name"?: JsonValue | null;
899
+ "last_name"?: JsonValue | null;
900
+ "birthday"?: string | null;
901
+ "nationality"?: string | null;
902
+ "religion"?: string | null;
903
+ "gender"?: string | null;
904
+ "marital"?: string | null;
905
+ "nickname"?: string | null;
906
+ "national_number"?: string | null;
907
+ "description"?: string | null;
908
+ "referral_source"?: string | null;
909
+ "referrer_uuid"?: string | null;
910
+ "country_id"?: string | null;
911
+ "province_id"?: string | null;
912
+ "city_id"?: string | null;
708
913
  }
709
914
  /** Backend response type: models::SingleData. */
710
915
  export interface ProfileUpdatePersonalPatchResponseData extends JsonObject {
711
- "profile": JsonValue;
916
+ "profile": BackendJson<"ProfileResponse">;
712
917
  }
713
918
  export interface ProfileUpdatePersonalPatchResponse extends ApiEnvelope<ProfileUpdatePersonalPatchResponseData> {
714
919
  }
715
920
  /** Backend request type: models::PersonalInformationUpdate. */
716
921
  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;
922
+ "first_name"?: JsonValue | null;
923
+ "last_name"?: JsonValue | null;
924
+ "birthday"?: string | null;
925
+ "nationality"?: string | null;
926
+ "religion"?: string | null;
927
+ "gender"?: string | null;
928
+ "marital"?: string | null;
929
+ "nickname"?: string | null;
930
+ "national_number"?: string | null;
931
+ "description"?: string | null;
932
+ "referral_source"?: string | null;
933
+ "referrer_uuid"?: string | null;
934
+ "country_id"?: string | null;
935
+ "province_id"?: string | null;
936
+ "city_id"?: string | null;
732
937
  }
733
938
  /** Backend response type: models::SingleData. */
734
939
  export interface ProfileUpdatePersonalPutResponseData extends JsonObject {
735
- "profile": JsonValue;
940
+ "profile": BackendJson<"ProfileResponse">;
736
941
  }
737
942
  export interface ProfileUpdatePersonalPutResponse extends ApiEnvelope<ProfileUpdatePersonalPutResponseData> {
738
943
  }
739
944
  /** Backend query type: models::ListQuery. */
740
945
  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;
946
+ "page"?: string | null;
947
+ "per_page"?: string | null;
948
+ "filter[search]"?: string | null;
949
+ "filter[status]"?: string | null;
950
+ "filter[active]"?: string | null;
951
+ "filter[name]"?: string | null;
952
+ "filter[country_id]"?: string | null;
953
+ "filter[trashed]"?: string | null;
749
954
  }
750
955
  /** Backend response type: models::ListData. */
751
956
  export interface ProvinceIndexGetResponseData extends JsonObject {
752
- "provinces": JsonValue[];
957
+ "provinces": BackendJson<"Response">[];
753
958
  }
754
959
  export interface ProvinceIndexGetMetaData extends JsonObject {
755
960
  "current_page": number;
@@ -764,12 +969,12 @@ export interface ProvinceIndexGetResponse extends ApiEnvelope<ProvinceIndexGetRe
764
969
  export interface ProvinceStorePostInput extends JsonObject {
765
970
  "country_id": string;
766
971
  "name": string;
767
- "latitude"?: number;
768
- "longitude"?: number;
972
+ "latitude"?: number | null;
973
+ "longitude"?: number | null;
769
974
  }
770
975
  /** Backend response type: models::SingleData. */
771
976
  export interface ProvinceStorePostResponseData extends JsonObject {
772
- "province": JsonValue;
977
+ "province": BackendJson<"Response">;
773
978
  }
774
979
  export interface ProvinceStorePostResponse extends ApiEnvelope<ProvinceStorePostResponseData> {
775
980
  }
@@ -778,35 +983,35 @@ export interface ProvinceDestroyDeleteResponse extends ApiEnvelope<JsonValue> {
778
983
  }
779
984
  /** Backend response type: models::SingleData. */
780
985
  export interface ProvinceShowGetResponseData extends JsonObject {
781
- "province": JsonValue;
986
+ "province": BackendJson<"Response">;
782
987
  }
783
988
  export interface ProvinceShowGetResponse extends ApiEnvelope<ProvinceShowGetResponseData> {
784
989
  }
785
990
  /** Backend request type: models::Update. */
786
991
  export interface ProvinceUpdatePatchInput extends JsonObject {
787
- "country_id"?: string;
788
- "name"?: string;
789
- "status"?: string;
790
- "latitude"?: number;
791
- "longitude"?: number;
992
+ "country_id"?: string | null;
993
+ "name"?: string | null;
994
+ "status"?: string | null;
995
+ "latitude"?: number | null;
996
+ "longitude"?: number | null;
792
997
  }
793
998
  /** Backend response type: models::SingleData. */
794
999
  export interface ProvinceUpdatePatchResponseData extends JsonObject {
795
- "province": JsonValue;
1000
+ "province": BackendJson<"Response">;
796
1001
  }
797
1002
  export interface ProvinceUpdatePatchResponse extends ApiEnvelope<ProvinceUpdatePatchResponseData> {
798
1003
  }
799
1004
  /** Backend request type: models::Update. */
800
1005
  export interface ProvinceUpdatePutInput extends JsonObject {
801
- "country_id"?: string;
802
- "name"?: string;
803
- "status"?: string;
804
- "latitude"?: number;
805
- "longitude"?: number;
1006
+ "country_id"?: string | null;
1007
+ "name"?: string | null;
1008
+ "status"?: string | null;
1009
+ "latitude"?: number | null;
1010
+ "longitude"?: number | null;
806
1011
  }
807
1012
  /** Backend response type: models::SingleData. */
808
1013
  export interface ProvinceUpdatePutResponseData extends JsonObject {
809
- "province": JsonValue;
1014
+ "province": BackendJson<"Response">;
810
1015
  }
811
1016
  export interface ProvinceUpdatePutResponse extends ApiEnvelope<ProvinceUpdatePutResponseData> {
812
1017
  }
@@ -818,7 +1023,7 @@ export interface ProvinceRestoreGetResponse extends ApiEnvelope<JsonValue> {
818
1023
  }
819
1024
  /** Backend response type: models::ListData. */
820
1025
  export interface SettingIndexGetResponseData extends JsonObject {
821
- "setting": JsonValue[];
1026
+ "setting": BackendJson<"Response">[];
822
1027
  }
823
1028
  export interface SettingIndexGetResponse extends ApiEnvelope<SettingIndexGetResponseData> {
824
1029
  }
@@ -830,7 +1035,7 @@ export interface SettingStorePostInput extends JsonObject {
830
1035
  }
831
1036
  /** Backend response type: models::SingleData. */
832
1037
  export interface SettingStorePostResponseData extends JsonObject {
833
- "setting": JsonValue;
1038
+ "setting": BackendJson<"Response">;
834
1039
  }
835
1040
  export interface SettingStorePostResponse extends ApiEnvelope<SettingStorePostResponseData> {
836
1041
  }
@@ -839,24 +1044,28 @@ export interface SurveyIndexGetResponse extends ApiEnvelope<JsonValue> {
839
1044
  }
840
1045
  /** Backend request type: CreateSurvey. */
841
1046
  export interface SurveyStorePostInput extends JsonObject {
1047
+ "user_id": string;
1048
+ "enrollment_id"?: number | null;
1049
+ "type"?: string | null;
1050
+ "meta"?: JsonValue | null;
842
1051
  }
843
1052
  /** Backend response type: Value. */
844
1053
  export interface SurveyStorePostResponse extends ApiEnvelope<JsonValue> {
845
1054
  }
846
1055
  /** Backend query type: models::ListQuery. */
847
1056
  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;
1057
+ "page"?: string | null;
1058
+ "per_page"?: string | null;
1059
+ "filter[search]"?: string | null;
1060
+ "filter[status]"?: string | null;
1061
+ "filter[active]"?: string | null;
1062
+ "filter[service_key]"?: string | null;
1063
+ "filter[title]"?: string | null;
1064
+ "filter[trashed]"?: string | null;
856
1065
  }
857
1066
  /** Backend response type: models::ListData. */
858
1067
  export interface TrustedServiceIndexGetResponseData extends JsonObject {
859
- "trusted_services": JsonValue[];
1068
+ "trusted_services": BackendJson<"Response">[];
860
1069
  }
861
1070
  export interface TrustedServiceIndexGetMetaData extends JsonObject {
862
1071
  "current_page": number;
@@ -874,7 +1083,7 @@ export interface TrustedServiceStorePostInput extends JsonObject {
874
1083
  }
875
1084
  /** Backend response type: models::SingleData. */
876
1085
  export interface TrustedServiceStorePostResponseData extends JsonObject {
877
- "trusted_service": JsonValue;
1086
+ "trusted_service": BackendJson<"Response">;
878
1087
  }
879
1088
  export interface TrustedServiceStorePostResponse extends ApiEnvelope<TrustedServiceStorePostResponseData> {
880
1089
  }
@@ -883,48 +1092,48 @@ export interface TrustedServiceDestroyDeleteResponse extends ApiEnvelope<JsonVal
883
1092
  }
884
1093
  /** Backend response type: models::SingleData. */
885
1094
  export interface TrustedServiceShowGetResponseData extends JsonObject {
886
- "trusted_service": JsonValue;
1095
+ "trusted_service": BackendJson<"Response">;
887
1096
  }
888
1097
  export interface TrustedServiceShowGetResponse extends ApiEnvelope<TrustedServiceShowGetResponseData> {
889
1098
  }
890
1099
  /** Backend request type: models::Update. */
891
1100
  export interface TrustedServiceUpdatePatchInput extends JsonObject {
892
- "service_key"?: string;
893
- "title"?: string;
894
- "status"?: string;
1101
+ "service_key"?: string | null;
1102
+ "title"?: string | null;
1103
+ "status"?: string | null;
895
1104
  }
896
1105
  /** Backend response type: models::SingleData. */
897
1106
  export interface TrustedServiceUpdatePatchResponseData extends JsonObject {
898
- "trusted_service": JsonValue;
1107
+ "trusted_service": BackendJson<"Response">;
899
1108
  }
900
1109
  export interface TrustedServiceUpdatePatchResponse extends ApiEnvelope<TrustedServiceUpdatePatchResponseData> {
901
1110
  }
902
1111
  /** Backend request type: models::Update. */
903
1112
  export interface TrustedServiceUpdatePutInput extends JsonObject {
904
- "service_key"?: string;
905
- "title"?: string;
906
- "status"?: string;
1113
+ "service_key"?: string | null;
1114
+ "title"?: string | null;
1115
+ "status"?: string | null;
907
1116
  }
908
1117
  /** Backend response type: models::SingleData. */
909
1118
  export interface TrustedServiceUpdatePutResponseData extends JsonObject {
910
- "trusted_service": JsonValue;
1119
+ "trusted_service": BackendJson<"Response">;
911
1120
  }
912
1121
  export interface TrustedServiceUpdatePutResponse extends ApiEnvelope<TrustedServiceUpdatePutResponseData> {
913
1122
  }
914
1123
  /** Backend query type: models::EventListQuery. */
915
1124
  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;
1125
+ "page"?: string | null;
1126
+ "per_page"?: string | null;
1127
+ "filter[search]"?: string | null;
1128
+ "filter[status]"?: string | null;
1129
+ "filter[active]"?: string | null;
1130
+ "filter[event_name]"?: string | null;
1131
+ "filter[title]"?: string | null;
1132
+ "filter[trashed]"?: string | null;
924
1133
  }
925
1134
  /** Backend response type: models::EventListData. */
926
1135
  export interface TrustedServiceEventIndexGetResponseData extends JsonObject {
927
- "trusted_service_events": JsonValue[];
1136
+ "trusted_service_events": BackendJson<"EventResponse">[];
928
1137
  }
929
1138
  export interface TrustedServiceEventIndexGetMetaData extends JsonObject {
930
1139
  "current_page": number;
@@ -939,14 +1148,14 @@ export interface TrustedServiceEventIndexGetResponse extends ApiEnvelope<Trusted
939
1148
  export interface TrustedServiceEventStorePostInput extends JsonObject {
940
1149
  "event_name": string;
941
1150
  "title": string;
942
- "visible_in_list"?: boolean;
943
- "visible_in_get"?: boolean;
944
- "visible_in_full"?: boolean;
945
- "payload_schema"?: JsonValue;
1151
+ "visible_in_list"?: boolean | null;
1152
+ "visible_in_get"?: boolean | null;
1153
+ "visible_in_full"?: boolean | null;
1154
+ "payload_schema"?: JsonValue | null;
946
1155
  }
947
1156
  /** Backend response type: models::EventSingleData. */
948
1157
  export interface TrustedServiceEventStorePostResponseData extends JsonObject {
949
- "trusted_service_event": JsonValue;
1158
+ "trusted_service_event": BackendJson<"EventResponse">;
950
1159
  }
951
1160
  export interface TrustedServiceEventStorePostResponse extends ApiEnvelope<TrustedServiceEventStorePostResponseData> {
952
1161
  }
@@ -955,37 +1164,37 @@ export interface TrustedServiceEventDestroyDeleteResponse extends ApiEnvelope<Js
955
1164
  }
956
1165
  /** Backend response type: models::EventSingleData. */
957
1166
  export interface TrustedServiceEventShowGetResponseData extends JsonObject {
958
- "trusted_service_event": JsonValue;
1167
+ "trusted_service_event": BackendJson<"EventResponse">;
959
1168
  }
960
1169
  export interface TrustedServiceEventShowGetResponse extends ApiEnvelope<TrustedServiceEventShowGetResponseData> {
961
1170
  }
962
1171
  /** Backend request type: models::EventUpdate. */
963
1172
  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;
1173
+ "event_name"?: string | null;
1174
+ "title"?: string | null;
1175
+ "visible_in_list"?: boolean | null;
1176
+ "visible_in_get"?: boolean | null;
1177
+ "visible_in_full"?: boolean | null;
1178
+ "payload_schema"?: JsonValue | null;
970
1179
  }
971
1180
  /** Backend response type: models::EventSingleData. */
972
1181
  export interface TrustedServiceEventUpdatePatchResponseData extends JsonObject {
973
- "trusted_service_event": JsonValue;
1182
+ "trusted_service_event": BackendJson<"EventResponse">;
974
1183
  }
975
1184
  export interface TrustedServiceEventUpdatePatchResponse extends ApiEnvelope<TrustedServiceEventUpdatePatchResponseData> {
976
1185
  }
977
1186
  /** Backend request type: models::EventUpdate. */
978
1187
  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;
1188
+ "event_name"?: string | null;
1189
+ "title"?: string | null;
1190
+ "visible_in_list"?: boolean | null;
1191
+ "visible_in_get"?: boolean | null;
1192
+ "visible_in_full"?: boolean | null;
1193
+ "payload_schema"?: JsonValue | null;
985
1194
  }
986
1195
  /** Backend response type: models::EventSingleData. */
987
1196
  export interface TrustedServiceEventUpdatePutResponseData extends JsonObject {
988
- "trusted_service_event": JsonValue;
1197
+ "trusted_service_event": BackendJson<"EventResponse">;
989
1198
  }
990
1199
  export interface TrustedServiceEventUpdatePutResponse extends ApiEnvelope<TrustedServiceEventUpdatePutResponseData> {
991
1200
  }