@digiteers/uloba3-sdk 3.4.0 → 3.4.2

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.
package/dist/types.d.ts CHANGED
@@ -2289,9 +2289,9 @@ export interface paths {
2289
2289
  account_owner_id: string | null;
2290
2290
  account_status: string | null;
2291
2291
  account_language: string | null;
2292
- is_job_seeker: boolean;
2292
+ is_assistant: boolean;
2293
2293
  is_employer: boolean;
2294
- is_admin: boolean;
2294
+ is_caseworker: boolean;
2295
2295
  is_support: boolean;
2296
2296
  };
2297
2297
  };
@@ -17545,7 +17545,7 @@ export interface paths {
17545
17545
  };
17546
17546
  content: {
17547
17547
  'application/json': {
17548
- data: ({
17548
+ data: (({
17549
17549
  /** Format: uuid */
17550
17550
  id: string;
17551
17551
  } & {
@@ -17595,6 +17595,31 @@ export interface paths {
17595
17595
  proposed_end_date: string | null;
17596
17596
  proposed_hours_per_week: number | null;
17597
17597
  job_id: string | null;
17598
+ }) & {
17599
+ inviter_user_id: string | null;
17600
+ inviter_full_name: string | null;
17601
+ inviter_email: string | null;
17602
+ inviter_phone: string | null;
17603
+ inviter_given_name: string | null;
17604
+ inviter_family_name: string | null;
17605
+ inviter_picture: string | null;
17606
+ invitee_user_id: string | null;
17607
+ invitee_full_name: string | null;
17608
+ invitee_email: string | null;
17609
+ invitee_phone: string | null;
17610
+ invitee_given_name: string | null;
17611
+ invitee_family_name: string | null;
17612
+ invitee_picture: string | null;
17613
+ account_id_ref: string | null;
17614
+ account_owner_id: string | null;
17615
+ submitted_by: string | null;
17616
+ submitted_by_name: string | null;
17617
+ accepted_by: string | null;
17618
+ accepted_by_name: string | null;
17619
+ declined_by: string | null;
17620
+ declined_by_name: string | null;
17621
+ cancelled_by: string | null;
17622
+ cancelled_by_name: string | null;
17598
17623
  })[];
17599
17624
  pagination: {
17600
17625
  page: number;
@@ -17655,7 +17680,7 @@ export interface paths {
17655
17680
  };
17656
17681
  content: {
17657
17682
  'application/json': {
17658
- data: ({
17683
+ data: (({
17659
17684
  /** Format: uuid */
17660
17685
  id: string;
17661
17686
  } & {
@@ -17705,6 +17730,31 @@ export interface paths {
17705
17730
  proposed_end_date: string | null;
17706
17731
  proposed_hours_per_week: number | null;
17707
17732
  job_id: string | null;
17733
+ }) & {
17734
+ inviter_user_id: string | null;
17735
+ inviter_full_name: string | null;
17736
+ inviter_email: string | null;
17737
+ inviter_phone: string | null;
17738
+ inviter_given_name: string | null;
17739
+ inviter_family_name: string | null;
17740
+ inviter_picture: string | null;
17741
+ invitee_user_id: string | null;
17742
+ invitee_full_name: string | null;
17743
+ invitee_email: string | null;
17744
+ invitee_phone: string | null;
17745
+ invitee_given_name: string | null;
17746
+ invitee_family_name: string | null;
17747
+ invitee_picture: string | null;
17748
+ account_id_ref: string | null;
17749
+ account_owner_id: string | null;
17750
+ submitted_by: string | null;
17751
+ submitted_by_name: string | null;
17752
+ accepted_by: string | null;
17753
+ accepted_by_name: string | null;
17754
+ declined_by: string | null;
17755
+ declined_by_name: string | null;
17756
+ cancelled_by: string | null;
17757
+ cancelled_by_name: string | null;
17708
17758
  })[];
17709
17759
  pagination: {
17710
17760
  page: number;
@@ -17868,7 +17918,7 @@ export interface paths {
17868
17918
  };
17869
17919
  content: {
17870
17920
  'application/json': {
17871
- data: ({
17921
+ data: (({
17872
17922
  /** Format: uuid */
17873
17923
  id: string;
17874
17924
  } & {
@@ -17918,6 +17968,31 @@ export interface paths {
17918
17968
  proposed_end_date: string | null;
17919
17969
  proposed_hours_per_week: number | null;
17920
17970
  job_id: string | null;
17971
+ }) & {
17972
+ inviter_user_id: string | null;
17973
+ inviter_full_name: string | null;
17974
+ inviter_email: string | null;
17975
+ inviter_phone: string | null;
17976
+ inviter_given_name: string | null;
17977
+ inviter_family_name: string | null;
17978
+ inviter_picture: string | null;
17979
+ invitee_user_id: string | null;
17980
+ invitee_full_name: string | null;
17981
+ invitee_email: string | null;
17982
+ invitee_phone: string | null;
17983
+ invitee_given_name: string | null;
17984
+ invitee_family_name: string | null;
17985
+ invitee_picture: string | null;
17986
+ account_id_ref: string | null;
17987
+ account_owner_id: string | null;
17988
+ submitted_by: string | null;
17989
+ submitted_by_name: string | null;
17990
+ accepted_by: string | null;
17991
+ accepted_by_name: string | null;
17992
+ declined_by: string | null;
17993
+ declined_by_name: string | null;
17994
+ cancelled_by: string | null;
17995
+ cancelled_by_name: string | null;
17921
17996
  })[];
17922
17997
  pagination: {
17923
17998
  page: number;
@@ -17978,7 +18053,7 @@ export interface paths {
17978
18053
  };
17979
18054
  content: {
17980
18055
  'application/json': {
17981
- data: ({
18056
+ data: (({
17982
18057
  /** Format: uuid */
17983
18058
  id: string;
17984
18059
  } & {
@@ -18028,6 +18103,31 @@ export interface paths {
18028
18103
  proposed_end_date: string | null;
18029
18104
  proposed_hours_per_week: number | null;
18030
18105
  job_id: string | null;
18106
+ }) & {
18107
+ inviter_user_id: string | null;
18108
+ inviter_full_name: string | null;
18109
+ inviter_email: string | null;
18110
+ inviter_phone: string | null;
18111
+ inviter_given_name: string | null;
18112
+ inviter_family_name: string | null;
18113
+ inviter_picture: string | null;
18114
+ invitee_user_id: string | null;
18115
+ invitee_full_name: string | null;
18116
+ invitee_email: string | null;
18117
+ invitee_phone: string | null;
18118
+ invitee_given_name: string | null;
18119
+ invitee_family_name: string | null;
18120
+ invitee_picture: string | null;
18121
+ account_id_ref: string | null;
18122
+ account_owner_id: string | null;
18123
+ submitted_by: string | null;
18124
+ submitted_by_name: string | null;
18125
+ accepted_by: string | null;
18126
+ accepted_by_name: string | null;
18127
+ declined_by: string | null;
18128
+ declined_by_name: string | null;
18129
+ cancelled_by: string | null;
18130
+ cancelled_by_name: string | null;
18031
18131
  })[];
18032
18132
  pagination: {
18033
18133
  page: number;
@@ -39551,7 +39651,7 @@ export interface paths {
39551
39651
  'application/json': {
39552
39652
  title: string;
39553
39653
  description?: string;
39554
- category: 'sports' | 'culture' | 'social' | 'nature' | 'technology' | 'creative' | 'other';
39654
+ category: 'sports' | 'culture' | 'hobbies' | 'nature' | 'social' | 'other';
39555
39655
  /** @enum {string} */
39556
39656
  context?: 'assistant';
39557
39657
  is_active?: boolean;
@@ -39676,7 +39776,7 @@ export interface paths {
39676
39776
  'application/json': {
39677
39777
  title?: string;
39678
39778
  description?: string;
39679
- category?: 'sports' | 'culture' | 'social' | 'nature' | 'technology' | 'creative' | 'other';
39779
+ category?: 'sports' | 'culture' | 'hobbies' | 'nature' | 'social' | 'other';
39680
39780
  /** @enum {string} */
39681
39781
  context?: 'assistant';
39682
39782
  is_active?: boolean;
@@ -40531,6 +40631,1000 @@ export interface paths {
40531
40631
  patch?: never;
40532
40632
  trace?: never;
40533
40633
  };
40634
+ '/api/support/users/{id}': {
40635
+ parameters: {
40636
+ query?: never;
40637
+ header?: never;
40638
+ path?: never;
40639
+ cookie?: never;
40640
+ };
40641
+ /**
40642
+ * Get user information
40643
+ * @description Get complete user information for support purposes. Requires CASE_MANAGER role.
40644
+ */
40645
+ get: {
40646
+ parameters: {
40647
+ query?: never;
40648
+ header?: never;
40649
+ path: {
40650
+ /** @description User ID */
40651
+ id: string;
40652
+ };
40653
+ cookie?: never;
40654
+ };
40655
+ requestBody?: never;
40656
+ responses: {
40657
+ /** @description Default Response */
40658
+ 200: {
40659
+ headers: {
40660
+ [name: string]: unknown;
40661
+ };
40662
+ content: {
40663
+ 'application/json': {
40664
+ user: {
40665
+ id: string;
40666
+ uloba_immutable_id?: string | null;
40667
+ email: string;
40668
+ email_verified?: boolean;
40669
+ full_name?: string;
40670
+ given_name?: string;
40671
+ family_name?: string;
40672
+ phone?: string;
40673
+ roles: string[];
40674
+ created_at: string;
40675
+ updated_at?: string;
40676
+ last_login?: string;
40677
+ };
40678
+ account: {
40679
+ id: string;
40680
+ status: 'active' | 'suspended';
40681
+ language: string;
40682
+ timezone?: string;
40683
+ created_at: string;
40684
+ };
40685
+ profile?: {
40686
+ type: 'assistant' | 'employer';
40687
+ data: unknown;
40688
+ };
40689
+ stats: {
40690
+ total_jobs: number;
40691
+ total_applications: number;
40692
+ total_contracts: number;
40693
+ total_inquiries: number;
40694
+ total_invites: number;
40695
+ };
40696
+ };
40697
+ };
40698
+ };
40699
+ /** @description Default Response */
40700
+ 404: {
40701
+ headers: {
40702
+ [name: string]: unknown;
40703
+ };
40704
+ content: {
40705
+ 'application/json': {
40706
+ error: string;
40707
+ };
40708
+ };
40709
+ };
40710
+ /** @description Default Response */
40711
+ 500: {
40712
+ headers: {
40713
+ [name: string]: unknown;
40714
+ };
40715
+ content: {
40716
+ 'application/json': {
40717
+ error: string;
40718
+ };
40719
+ };
40720
+ };
40721
+ };
40722
+ };
40723
+ put?: never;
40724
+ post?: never;
40725
+ delete?: never;
40726
+ options?: never;
40727
+ head?: never;
40728
+ patch?: never;
40729
+ trace?: never;
40730
+ };
40731
+ '/api/support/users/{id}/activity': {
40732
+ parameters: {
40733
+ query?: never;
40734
+ header?: never;
40735
+ path?: never;
40736
+ cookie?: never;
40737
+ };
40738
+ /**
40739
+ * Get user activity
40740
+ * @description Get paginated activity timeline for a user. Requires CASE_MANAGER role.
40741
+ */
40742
+ get: {
40743
+ parameters: {
40744
+ query?: {
40745
+ limit?: number;
40746
+ offset?: number;
40747
+ event_type?: string;
40748
+ };
40749
+ header?: never;
40750
+ path: {
40751
+ /** @description User ID */
40752
+ id: string;
40753
+ };
40754
+ cookie?: never;
40755
+ };
40756
+ requestBody?: never;
40757
+ responses: {
40758
+ /** @description Default Response */
40759
+ 200: {
40760
+ headers: {
40761
+ [name: string]: unknown;
40762
+ };
40763
+ content: {
40764
+ 'application/json': {
40765
+ data: {
40766
+ id: string;
40767
+ event_name: string;
40768
+ entity_type: string;
40769
+ entity_id?: string;
40770
+ event_data: unknown;
40771
+ created_at: string;
40772
+ session_id?: string;
40773
+ }[];
40774
+ pagination: {
40775
+ limit: number;
40776
+ offset: number;
40777
+ total: number;
40778
+ has_more: boolean;
40779
+ };
40780
+ };
40781
+ };
40782
+ };
40783
+ /** @description Default Response */
40784
+ 500: {
40785
+ headers: {
40786
+ [name: string]: unknown;
40787
+ };
40788
+ content: {
40789
+ 'application/json': {
40790
+ error: string;
40791
+ };
40792
+ };
40793
+ };
40794
+ };
40795
+ };
40796
+ put?: never;
40797
+ post?: never;
40798
+ delete?: never;
40799
+ options?: never;
40800
+ head?: never;
40801
+ patch?: never;
40802
+ trace?: never;
40803
+ };
40804
+ '/api/support/users/{id}/sessions': {
40805
+ parameters: {
40806
+ query?: never;
40807
+ header?: never;
40808
+ path?: never;
40809
+ cookie?: never;
40810
+ };
40811
+ /**
40812
+ * Get user sessions
40813
+ * @description Get paginated session history for a user. Requires CASE_MANAGER role.
40814
+ */
40815
+ get: {
40816
+ parameters: {
40817
+ query?: {
40818
+ limit?: number;
40819
+ offset?: number;
40820
+ };
40821
+ header?: never;
40822
+ path: {
40823
+ /** @description User ID */
40824
+ id: string;
40825
+ };
40826
+ cookie?: never;
40827
+ };
40828
+ requestBody?: never;
40829
+ responses: {
40830
+ /** @description Default Response */
40831
+ 200: {
40832
+ headers: {
40833
+ [name: string]: unknown;
40834
+ };
40835
+ content: {
40836
+ 'application/json': {
40837
+ data: {
40838
+ id: string;
40839
+ user_id: string;
40840
+ started_at: string;
40841
+ ended_at?: string;
40842
+ last_activity_at: string;
40843
+ is_active: boolean;
40844
+ ip_address?: string;
40845
+ device_type?: string;
40846
+ user_agent?: string;
40847
+ }[];
40848
+ pagination: {
40849
+ limit: number;
40850
+ offset: number;
40851
+ total: number;
40852
+ has_more: boolean;
40853
+ };
40854
+ };
40855
+ };
40856
+ };
40857
+ /** @description Default Response */
40858
+ 500: {
40859
+ headers: {
40860
+ [name: string]: unknown;
40861
+ };
40862
+ content: {
40863
+ 'application/json': {
40864
+ error: string;
40865
+ };
40866
+ };
40867
+ };
40868
+ };
40869
+ };
40870
+ put?: never;
40871
+ post?: never;
40872
+ delete?: never;
40873
+ options?: never;
40874
+ head?: never;
40875
+ patch?: never;
40876
+ trace?: never;
40877
+ };
40878
+ '/api/support/users/{id}/jobs': {
40879
+ parameters: {
40880
+ query?: never;
40881
+ header?: never;
40882
+ path?: never;
40883
+ cookie?: never;
40884
+ };
40885
+ /**
40886
+ * Get user jobs
40887
+ * @description Get paginated list of jobs created by user. Requires CASE_MANAGER role.
40888
+ */
40889
+ get: {
40890
+ parameters: {
40891
+ query?: {
40892
+ limit?: number;
40893
+ offset?: number;
40894
+ status?: string;
40895
+ };
40896
+ header?: never;
40897
+ path: {
40898
+ /** @description User ID */
40899
+ id: string;
40900
+ };
40901
+ cookie?: never;
40902
+ };
40903
+ requestBody?: never;
40904
+ responses: {
40905
+ /** @description Default Response */
40906
+ 200: {
40907
+ headers: {
40908
+ [name: string]: unknown;
40909
+ };
40910
+ content: {
40911
+ 'application/json': {
40912
+ data: {
40913
+ id: string;
40914
+ title: string;
40915
+ status: string;
40916
+ created_at: string;
40917
+ updated_at: string;
40918
+ published_at?: string;
40919
+ unpublished_at?: string;
40920
+ }[];
40921
+ pagination: {
40922
+ limit: number;
40923
+ offset: number;
40924
+ total: number;
40925
+ has_more: boolean;
40926
+ };
40927
+ };
40928
+ };
40929
+ };
40930
+ /** @description Default Response */
40931
+ 404: {
40932
+ headers: {
40933
+ [name: string]: unknown;
40934
+ };
40935
+ content: {
40936
+ 'application/json': {
40937
+ error: string;
40938
+ };
40939
+ };
40940
+ };
40941
+ /** @description Default Response */
40942
+ 500: {
40943
+ headers: {
40944
+ [name: string]: unknown;
40945
+ };
40946
+ content: {
40947
+ 'application/json': {
40948
+ error: string;
40949
+ };
40950
+ };
40951
+ };
40952
+ };
40953
+ };
40954
+ put?: never;
40955
+ post?: never;
40956
+ delete?: never;
40957
+ options?: never;
40958
+ head?: never;
40959
+ patch?: never;
40960
+ trace?: never;
40961
+ };
40962
+ '/api/support/users/{id}/applications': {
40963
+ parameters: {
40964
+ query?: never;
40965
+ header?: never;
40966
+ path?: never;
40967
+ cookie?: never;
40968
+ };
40969
+ /**
40970
+ * Get user applications
40971
+ * @description Get paginated list of applications submitted by user. Requires CASE_MANAGER role.
40972
+ */
40973
+ get: {
40974
+ parameters: {
40975
+ query?: {
40976
+ limit?: number;
40977
+ offset?: number;
40978
+ status?: string;
40979
+ };
40980
+ header?: never;
40981
+ path: {
40982
+ /** @description User ID */
40983
+ id: string;
40984
+ };
40985
+ cookie?: never;
40986
+ };
40987
+ requestBody?: never;
40988
+ responses: {
40989
+ /** @description Default Response */
40990
+ 200: {
40991
+ headers: {
40992
+ [name: string]: unknown;
40993
+ };
40994
+ content: {
40995
+ 'application/json': {
40996
+ data: {
40997
+ id: string;
40998
+ job_id: string;
40999
+ job_title?: string;
41000
+ status: string;
41001
+ created_at: string;
41002
+ submitted_at?: string;
41003
+ }[];
41004
+ pagination: {
41005
+ limit: number;
41006
+ offset: number;
41007
+ total: number;
41008
+ has_more: boolean;
41009
+ };
41010
+ };
41011
+ };
41012
+ };
41013
+ /** @description Default Response */
41014
+ 500: {
41015
+ headers: {
41016
+ [name: string]: unknown;
41017
+ };
41018
+ content: {
41019
+ 'application/json': {
41020
+ error: string;
41021
+ };
41022
+ };
41023
+ };
41024
+ };
41025
+ };
41026
+ put?: never;
41027
+ post?: never;
41028
+ delete?: never;
41029
+ options?: never;
41030
+ head?: never;
41031
+ patch?: never;
41032
+ trace?: never;
41033
+ };
41034
+ '/api/support/users/{id}/contracts': {
41035
+ parameters: {
41036
+ query?: never;
41037
+ header?: never;
41038
+ path?: never;
41039
+ cookie?: never;
41040
+ };
41041
+ /**
41042
+ * Get user contracts
41043
+ * @description Get paginated list of contracts for user. Requires CASE_MANAGER role.
41044
+ */
41045
+ get: {
41046
+ parameters: {
41047
+ query?: {
41048
+ limit?: number;
41049
+ offset?: number;
41050
+ status?: string;
41051
+ };
41052
+ header?: never;
41053
+ path: {
41054
+ /** @description User ID */
41055
+ id: string;
41056
+ };
41057
+ cookie?: never;
41058
+ };
41059
+ requestBody?: never;
41060
+ responses: {
41061
+ /** @description Default Response */
41062
+ 200: {
41063
+ headers: {
41064
+ [name: string]: unknown;
41065
+ };
41066
+ content: {
41067
+ 'application/json': {
41068
+ data: {
41069
+ id: string;
41070
+ contract_number?: string;
41071
+ status: string;
41072
+ created_at: string;
41073
+ signed_at?: string;
41074
+ }[];
41075
+ pagination: {
41076
+ limit: number;
41077
+ offset: number;
41078
+ total: number;
41079
+ has_more: boolean;
41080
+ };
41081
+ };
41082
+ };
41083
+ };
41084
+ /** @description Default Response */
41085
+ 500: {
41086
+ headers: {
41087
+ [name: string]: unknown;
41088
+ };
41089
+ content: {
41090
+ 'application/json': {
41091
+ error: string;
41092
+ };
41093
+ };
41094
+ };
41095
+ };
41096
+ };
41097
+ put?: never;
41098
+ post?: never;
41099
+ delete?: never;
41100
+ options?: never;
41101
+ head?: never;
41102
+ patch?: never;
41103
+ trace?: never;
41104
+ };
41105
+ '/api/support/users/{id}/inquiries': {
41106
+ parameters: {
41107
+ query?: never;
41108
+ header?: never;
41109
+ path?: never;
41110
+ cookie?: never;
41111
+ };
41112
+ /**
41113
+ * Get user inquiries
41114
+ * @description Get paginated list of inquiries (sent and received). Requires CASE_MANAGER role.
41115
+ */
41116
+ get: {
41117
+ parameters: {
41118
+ query?: {
41119
+ limit?: number;
41120
+ offset?: number;
41121
+ status?: string;
41122
+ type?: 'sent' | 'received';
41123
+ };
41124
+ header?: never;
41125
+ path: {
41126
+ /** @description User ID */
41127
+ id: string;
41128
+ };
41129
+ cookie?: never;
41130
+ };
41131
+ requestBody?: never;
41132
+ responses: {
41133
+ /** @description Default Response */
41134
+ 200: {
41135
+ headers: {
41136
+ [name: string]: unknown;
41137
+ };
41138
+ content: {
41139
+ 'application/json': {
41140
+ data: {
41141
+ id: string;
41142
+ status: string;
41143
+ type: 'sent' | 'received';
41144
+ created_at: string;
41145
+ responded_at?: string;
41146
+ }[];
41147
+ pagination: {
41148
+ limit: number;
41149
+ offset: number;
41150
+ total: number;
41151
+ has_more: boolean;
41152
+ };
41153
+ };
41154
+ };
41155
+ };
41156
+ /** @description Default Response */
41157
+ 500: {
41158
+ headers: {
41159
+ [name: string]: unknown;
41160
+ };
41161
+ content: {
41162
+ 'application/json': {
41163
+ error: string;
41164
+ };
41165
+ };
41166
+ };
41167
+ };
41168
+ };
41169
+ put?: never;
41170
+ post?: never;
41171
+ delete?: never;
41172
+ options?: never;
41173
+ head?: never;
41174
+ patch?: never;
41175
+ trace?: never;
41176
+ };
41177
+ '/api/support/users/{id}/invites': {
41178
+ parameters: {
41179
+ query?: never;
41180
+ header?: never;
41181
+ path?: never;
41182
+ cookie?: never;
41183
+ };
41184
+ /**
41185
+ * Get user invites
41186
+ * @description Get paginated list of invites (sent and received). Requires CASE_MANAGER role.
41187
+ */
41188
+ get: {
41189
+ parameters: {
41190
+ query?: {
41191
+ limit?: number;
41192
+ offset?: number;
41193
+ status?: string;
41194
+ type?: 'sent' | 'received';
41195
+ };
41196
+ header?: never;
41197
+ path: {
41198
+ /** @description User ID */
41199
+ id: string;
41200
+ };
41201
+ cookie?: never;
41202
+ };
41203
+ requestBody?: never;
41204
+ responses: {
41205
+ /** @description Default Response */
41206
+ 200: {
41207
+ headers: {
41208
+ [name: string]: unknown;
41209
+ };
41210
+ content: {
41211
+ 'application/json': {
41212
+ data: {
41213
+ id: string;
41214
+ status: string;
41215
+ type: 'sent' | 'received';
41216
+ created_at: string;
41217
+ accepted_at?: string;
41218
+ rejected_at?: string;
41219
+ }[];
41220
+ pagination: {
41221
+ limit: number;
41222
+ offset: number;
41223
+ total: number;
41224
+ has_more: boolean;
41225
+ };
41226
+ };
41227
+ };
41228
+ };
41229
+ /** @description Default Response */
41230
+ 500: {
41231
+ headers: {
41232
+ [name: string]: unknown;
41233
+ };
41234
+ content: {
41235
+ 'application/json': {
41236
+ error: string;
41237
+ };
41238
+ };
41239
+ };
41240
+ };
41241
+ };
41242
+ put?: never;
41243
+ post?: never;
41244
+ delete?: never;
41245
+ options?: never;
41246
+ head?: never;
41247
+ patch?: never;
41248
+ trace?: never;
41249
+ };
41250
+ '/api/support/users/{id}/documents': {
41251
+ parameters: {
41252
+ query?: never;
41253
+ header?: never;
41254
+ path?: never;
41255
+ cookie?: never;
41256
+ };
41257
+ /**
41258
+ * Get user documents
41259
+ * @description Get paginated list of documents uploaded by user. Requires CASE_MANAGER role.
41260
+ */
41261
+ get: {
41262
+ parameters: {
41263
+ query?: {
41264
+ limit?: number;
41265
+ offset?: number;
41266
+ };
41267
+ header?: never;
41268
+ path: {
41269
+ /** @description User ID */
41270
+ id: string;
41271
+ };
41272
+ cookie?: never;
41273
+ };
41274
+ requestBody?: never;
41275
+ responses: {
41276
+ /** @description Default Response */
41277
+ 200: {
41278
+ headers: {
41279
+ [name: string]: unknown;
41280
+ };
41281
+ content: {
41282
+ 'application/json': {
41283
+ data: {
41284
+ id: string;
41285
+ filename: string;
41286
+ content_type: string;
41287
+ size: number;
41288
+ created_at: string;
41289
+ }[];
41290
+ pagination: {
41291
+ limit: number;
41292
+ offset: number;
41293
+ total: number;
41294
+ has_more: boolean;
41295
+ };
41296
+ };
41297
+ };
41298
+ };
41299
+ /** @description Default Response */
41300
+ 500: {
41301
+ headers: {
41302
+ [name: string]: unknown;
41303
+ };
41304
+ content: {
41305
+ 'application/json': {
41306
+ error: string;
41307
+ };
41308
+ };
41309
+ };
41310
+ };
41311
+ };
41312
+ put?: never;
41313
+ post?: never;
41314
+ delete?: never;
41315
+ options?: never;
41316
+ head?: never;
41317
+ patch?: never;
41318
+ trace?: never;
41319
+ };
41320
+ '/api/support/users/{id}/account-status': {
41321
+ parameters: {
41322
+ query?: never;
41323
+ header?: never;
41324
+ path?: never;
41325
+ cookie?: never;
41326
+ };
41327
+ get?: never;
41328
+ /**
41329
+ * Update account status
41330
+ * @description Suspend or activate a user account. Requires CASE_MANAGER role.
41331
+ */
41332
+ put: {
41333
+ parameters: {
41334
+ query?: never;
41335
+ header?: never;
41336
+ path: {
41337
+ /** @description User ID */
41338
+ id: string;
41339
+ };
41340
+ cookie?: never;
41341
+ };
41342
+ requestBody: {
41343
+ content: {
41344
+ 'application/json': {
41345
+ /** @description New account status */
41346
+ status: 'active' | 'suspended';
41347
+ /** @description Reason for status change */
41348
+ reason: string;
41349
+ /**
41350
+ * @description Send notification email to user
41351
+ * @default true
41352
+ */
41353
+ notify_user?: boolean;
41354
+ };
41355
+ };
41356
+ };
41357
+ responses: {
41358
+ /** @description Default Response */
41359
+ 200: {
41360
+ headers: {
41361
+ [name: string]: unknown;
41362
+ };
41363
+ content: {
41364
+ 'application/json': {
41365
+ success: boolean;
41366
+ user: {
41367
+ id: string;
41368
+ account_status: string;
41369
+ };
41370
+ message: string;
41371
+ };
41372
+ };
41373
+ };
41374
+ /** @description Default Response */
41375
+ 404: {
41376
+ headers: {
41377
+ [name: string]: unknown;
41378
+ };
41379
+ content: {
41380
+ 'application/json': {
41381
+ error: string;
41382
+ };
41383
+ };
41384
+ };
41385
+ /** @description Default Response */
41386
+ 500: {
41387
+ headers: {
41388
+ [name: string]: unknown;
41389
+ };
41390
+ content: {
41391
+ 'application/json': {
41392
+ error: string;
41393
+ };
41394
+ };
41395
+ };
41396
+ };
41397
+ };
41398
+ post?: never;
41399
+ delete?: never;
41400
+ options?: never;
41401
+ head?: never;
41402
+ patch?: never;
41403
+ trace?: never;
41404
+ };
41405
+ '/api/support/users/{id}/reset-password': {
41406
+ parameters: {
41407
+ query?: never;
41408
+ header?: never;
41409
+ path?: never;
41410
+ cookie?: never;
41411
+ };
41412
+ get?: never;
41413
+ put?: never;
41414
+ /**
41415
+ * Trigger password reset
41416
+ * @description Trigger password reset email for user. Requires CASE_MANAGER role.
41417
+ */
41418
+ post: {
41419
+ parameters: {
41420
+ query?: never;
41421
+ header?: never;
41422
+ path: {
41423
+ /** @description User ID */
41424
+ id: string;
41425
+ };
41426
+ cookie?: never;
41427
+ };
41428
+ requestBody: {
41429
+ content: {
41430
+ 'application/json': {
41431
+ /** @description Reason for password reset */
41432
+ reason: string;
41433
+ /**
41434
+ * @description Send password reset email
41435
+ * @default true
41436
+ */
41437
+ notify_user: boolean;
41438
+ };
41439
+ };
41440
+ };
41441
+ responses: {
41442
+ /** @description Default Response */
41443
+ 200: {
41444
+ headers: {
41445
+ [name: string]: unknown;
41446
+ };
41447
+ content: {
41448
+ 'application/json': {
41449
+ success: boolean;
41450
+ message: string;
41451
+ };
41452
+ };
41453
+ };
41454
+ /** @description Default Response */
41455
+ 404: {
41456
+ headers: {
41457
+ [name: string]: unknown;
41458
+ };
41459
+ content: {
41460
+ 'application/json': {
41461
+ error: string;
41462
+ };
41463
+ };
41464
+ };
41465
+ /** @description Default Response */
41466
+ 500: {
41467
+ headers: {
41468
+ [name: string]: unknown;
41469
+ };
41470
+ content: {
41471
+ 'application/json': {
41472
+ error: string;
41473
+ };
41474
+ };
41475
+ };
41476
+ };
41477
+ };
41478
+ delete?: never;
41479
+ options?: never;
41480
+ head?: never;
41481
+ patch?: never;
41482
+ trace?: never;
41483
+ };
41484
+ '/api/support/users/{id}/verify-email': {
41485
+ parameters: {
41486
+ query?: never;
41487
+ header?: never;
41488
+ path?: never;
41489
+ cookie?: never;
41490
+ };
41491
+ get?: never;
41492
+ put?: never;
41493
+ /**
41494
+ * Verify email
41495
+ * @description Manually verify user email. Requires CASE_MANAGER role.
41496
+ */
41497
+ post: {
41498
+ parameters: {
41499
+ query?: never;
41500
+ header?: never;
41501
+ path: {
41502
+ /** @description User ID */
41503
+ id: string;
41504
+ };
41505
+ cookie?: never;
41506
+ };
41507
+ requestBody: {
41508
+ content: {
41509
+ 'application/json': {
41510
+ /** @description Reason for manual email verification */
41511
+ reason: string;
41512
+ };
41513
+ };
41514
+ };
41515
+ responses: {
41516
+ /** @description Default Response */
41517
+ 200: {
41518
+ headers: {
41519
+ [name: string]: unknown;
41520
+ };
41521
+ content: {
41522
+ 'application/json': {
41523
+ success: boolean;
41524
+ message: string;
41525
+ };
41526
+ };
41527
+ };
41528
+ /** @description Default Response */
41529
+ 500: {
41530
+ headers: {
41531
+ [name: string]: unknown;
41532
+ };
41533
+ content: {
41534
+ 'application/json': {
41535
+ error: string;
41536
+ };
41537
+ };
41538
+ };
41539
+ };
41540
+ };
41541
+ delete?: never;
41542
+ options?: never;
41543
+ head?: never;
41544
+ patch?: never;
41545
+ trace?: never;
41546
+ };
41547
+ '/api/support/users/{id}/send-notification': {
41548
+ parameters: {
41549
+ query?: never;
41550
+ header?: never;
41551
+ path?: never;
41552
+ cookie?: never;
41553
+ };
41554
+ get?: never;
41555
+ put?: never;
41556
+ /**
41557
+ * Send notification
41558
+ * @description Send notification to user. Requires CASE_MANAGER role.
41559
+ */
41560
+ post: {
41561
+ parameters: {
41562
+ query?: never;
41563
+ header?: never;
41564
+ path: {
41565
+ /** @description User ID */
41566
+ id: string;
41567
+ };
41568
+ cookie?: never;
41569
+ };
41570
+ requestBody: {
41571
+ content: {
41572
+ 'application/json': {
41573
+ /** @description Notification title */
41574
+ title: string;
41575
+ /** @description Notification message */
41576
+ message: string;
41577
+ /**
41578
+ * @description Notification type
41579
+ * @default info
41580
+ */
41581
+ type: 'info' | 'warning' | 'success' | 'error';
41582
+ };
41583
+ };
41584
+ };
41585
+ responses: {
41586
+ /** @description Default Response */
41587
+ 200: {
41588
+ headers: {
41589
+ [name: string]: unknown;
41590
+ };
41591
+ content: {
41592
+ 'application/json': {
41593
+ success: boolean;
41594
+ message: string;
41595
+ };
41596
+ };
41597
+ };
41598
+ /** @description Default Response */
41599
+ 404: {
41600
+ headers: {
41601
+ [name: string]: unknown;
41602
+ };
41603
+ content: {
41604
+ 'application/json': {
41605
+ error: string;
41606
+ };
41607
+ };
41608
+ };
41609
+ /** @description Default Response */
41610
+ 500: {
41611
+ headers: {
41612
+ [name: string]: unknown;
41613
+ };
41614
+ content: {
41615
+ 'application/json': {
41616
+ error: string;
41617
+ };
41618
+ };
41619
+ };
41620
+ };
41621
+ };
41622
+ delete?: never;
41623
+ options?: never;
41624
+ head?: never;
41625
+ patch?: never;
41626
+ trace?: never;
41627
+ };
40534
41628
  }
40535
41629
  export type webhooks = Record<string, never>;
40536
41630
  export interface components {