@tmlmobilidade/types 20260713.2140.32 → 20260714.1322.11

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.
@@ -8,6 +8,13 @@ export declare const AgencySchema: z.ZodObject<{
8
8
  updated_by: z.ZodOptional<z.ZodString>;
9
9
  } & {
10
10
  alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
11
+ apex: z.ZodObject<{
12
+ contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ contact_emails: string[];
15
+ }, {
16
+ contact_emails?: string[] | undefined;
17
+ }>;
11
18
  code: z.ZodString;
12
19
  contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
13
20
  contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -25,6 +32,7 @@ export declare const AgencySchema: z.ZodObject<{
25
32
  name: z.ZodString;
26
33
  operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
27
34
  phone: z.ZodString;
35
+ pta_name: z.ZodString;
28
36
  public_email: z.ZodString;
29
37
  public_name: z.ZodString;
30
38
  short_name: z.ZodString;
@@ -44,6 +52,9 @@ export declare const AgencySchema: z.ZodObject<{
44
52
  code: string;
45
53
  name: string;
46
54
  alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
55
+ apex: {
56
+ contact_emails: string[];
57
+ };
47
58
  contact_emails_pta: string[];
48
59
  contact_emails_pto: string[];
49
60
  fare_url: string;
@@ -53,6 +64,7 @@ export declare const AgencySchema: z.ZodObject<{
53
64
  };
54
65
  operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
55
66
  phone: string;
67
+ pta_name: string;
56
68
  public_email: string;
57
69
  public_name: string;
58
70
  short_name: string;
@@ -67,12 +79,16 @@ export declare const AgencySchema: z.ZodObject<{
67
79
  code: string;
68
80
  name: string;
69
81
  alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
82
+ apex: {
83
+ contact_emails?: string[] | undefined;
84
+ };
70
85
  fare_url: string;
71
86
  financials: {
72
87
  price_per_km: number;
73
88
  vkm_per_month: number[];
74
89
  };
75
90
  phone: string;
91
+ pta_name: string;
76
92
  public_email: string;
77
93
  public_name: string;
78
94
  short_name: string;
@@ -95,6 +111,13 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
95
111
  updated_by: z.ZodOptional<z.ZodString>;
96
112
  } & {
97
113
  alerts_map: z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>;
114
+ apex: z.ZodObject<{
115
+ contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ contact_emails: string[];
118
+ }, {
119
+ contact_emails?: string[] | undefined;
120
+ }>;
98
121
  code: z.ZodString;
99
122
  contact_emails_pta: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
100
123
  contact_emails_pto: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -112,6 +135,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
112
135
  name: z.ZodString;
113
136
  operation_start_date: z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>;
114
137
  phone: z.ZodString;
138
+ pta_name: z.ZodString;
115
139
  public_email: z.ZodString;
116
140
  public_name: z.ZodString;
117
141
  short_name: z.ZodString;
@@ -125,6 +149,9 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
125
149
  code: string;
126
150
  name: string;
127
151
  alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>>;
152
+ apex: {
153
+ contact_emails: string[];
154
+ };
128
155
  contact_emails_pta: string[];
129
156
  contact_emails_pto: string[];
130
157
  fare_url: string;
@@ -134,6 +161,7 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
134
161
  };
135
162
  operation_start_date: import("@tmlmobilidade/go-types-shared").OperationalDate | null;
136
163
  phone: string;
164
+ pta_name: string;
137
165
  public_email: string;
138
166
  public_name: string;
139
167
  short_name: string;
@@ -146,12 +174,16 @@ export declare const CreateAgencySchema: z.ZodObject<Omit<{
146
174
  code: string;
147
175
  name: string;
148
176
  alerts_map: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>>;
177
+ apex: {
178
+ contact_emails?: string[] | undefined;
179
+ };
149
180
  fare_url: string;
150
181
  financials: {
151
182
  price_per_km: number;
152
183
  vkm_per_month: number[];
153
184
  };
154
185
  phone: string;
186
+ pta_name: string;
155
187
  public_email: string;
156
188
  public_name: string;
157
189
  short_name: string;
@@ -172,6 +204,13 @@ export declare const UpdateAgencySchema: z.ZodObject<{
172
204
  code: z.ZodOptional<z.ZodString>;
173
205
  name: z.ZodOptional<z.ZodString>;
174
206
  alerts_map: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "MEDICAL_EMERGENCY", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "WEATHER", "ABUSIVE_PARKING", "DRIVER_ABSENCE", "DRIVER_ISSUE", "HIGH_PASSENGER_LOAD", "NETWORK_UPDATE", "ROAD_ISSUE", "TRAFFIC_JAM", "PUBLIC_DISORDER", "VEHICLE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_SERVICE", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "REALTIME_INFO_ISSUE", "ON_BOARD_SALE_ISSUE"]>, z.ZodRecord<z.ZodEnum<["agency", "lines", "stops", "rides"]>, z.ZodDefault<z.ZodBoolean>>>>>;
207
+ apex: z.ZodOptional<z.ZodObject<{
208
+ contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ contact_emails: string[];
211
+ }, {
212
+ contact_emails?: string[] | undefined;
213
+ }>>;
175
214
  contact_emails_pta: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
176
215
  contact_emails_pto: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
177
216
  fare_url: z.ZodOptional<z.ZodString>;
@@ -187,6 +226,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
187
226
  }>>;
188
227
  operation_start_date: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>>>>;
189
228
  phone: z.ZodOptional<z.ZodString>;
229
+ pta_name: z.ZodOptional<z.ZodString>;
190
230
  public_email: z.ZodOptional<z.ZodString>;
191
231
  public_name: z.ZodOptional<z.ZodString>;
192
232
  short_name: z.ZodOptional<z.ZodString>;
@@ -200,6 +240,9 @@ export declare const UpdateAgencySchema: z.ZodObject<{
200
240
  code?: string | undefined;
201
241
  name?: string | undefined;
202
242
  alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean>>>>>> | undefined;
243
+ apex?: {
244
+ contact_emails: string[];
245
+ } | undefined;
203
246
  contact_emails_pta?: string[] | undefined;
204
247
  contact_emails_pto?: string[] | undefined;
205
248
  fare_url?: string | undefined;
@@ -209,6 +252,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
209
252
  } | undefined;
210
253
  operation_start_date?: import("@tmlmobilidade/go-types-shared").OperationalDate | null | undefined;
211
254
  phone?: string | undefined;
255
+ pta_name?: string | undefined;
212
256
  public_email?: string | undefined;
213
257
  public_name?: string | undefined;
214
258
  short_name?: string | undefined;
@@ -222,6 +266,9 @@ export declare const UpdateAgencySchema: z.ZodObject<{
222
266
  code?: string | undefined;
223
267
  name?: string | undefined;
224
268
  alerts_map?: Partial<Record<"ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "MEDICAL_EMERGENCY" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "WEATHER" | "ABUSIVE_PARKING" | "DRIVER_ABSENCE" | "DRIVER_ISSUE" | "HIGH_PASSENGER_LOAD" | "NETWORK_UPDATE" | "ROAD_ISSUE" | "TRAFFIC_JAM" | "PUBLIC_DISORDER" | "VEHICLE_ISSUE", Partial<Record<"ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_SERVICE" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "REALTIME_INFO_ISSUE" | "ON_BOARD_SALE_ISSUE", Partial<Record<"agency" | "lines" | "stops" | "rides", boolean | undefined>>>>>> | undefined;
269
+ apex?: {
270
+ contact_emails?: string[] | undefined;
271
+ } | undefined;
225
272
  contact_emails_pta?: string[] | undefined;
226
273
  contact_emails_pto?: string[] | undefined;
227
274
  fare_url?: string | undefined;
@@ -231,6 +278,7 @@ export declare const UpdateAgencySchema: z.ZodObject<{
231
278
  } | undefined;
232
279
  operation_start_date?: string | null | undefined;
233
280
  phone?: string | undefined;
281
+ pta_name?: string | undefined;
234
282
  public_email?: string | undefined;
235
283
  public_name?: string | undefined;
236
284
  short_name?: string | undefined;
@@ -1,11 +1,13 @@
1
1
  /* * */
2
2
  import { AgencyAlertMapSchema } from './alert-map.js';
3
+ import { AgencyApexSchema } from './apex.js';
3
4
  import { AgencyFinancialsSchema } from './financials.js';
4
5
  import { DocumentSchema, OperationalDateSchema } from '@tmlmobilidade/go-types-shared';
5
6
  import { z } from 'zod';
6
7
  /* * */
7
8
  export const AgencySchema = DocumentSchema.extend({
8
9
  alerts_map: AgencyAlertMapSchema,
10
+ apex: AgencyApexSchema,
9
11
  code: z.string().max(20),
10
12
  contact_emails_pta: z.array(z.string().email()).default([]),
11
13
  contact_emails_pto: z.array(z.string().email()).default([]),
@@ -14,6 +16,7 @@ export const AgencySchema = DocumentSchema.extend({
14
16
  name: z.string(),
15
17
  operation_start_date: OperationalDateSchema.nullable().default(null),
16
18
  phone: z.string(),
19
+ pta_name: z.string(),
17
20
  public_email: z.string().email(),
18
21
  public_name: z.string(),
19
22
  short_name: z.string().max(4),
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const AgencyApexSchema: z.ZodObject<{
3
+ contact_emails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ contact_emails: string[];
6
+ }, {
7
+ contact_emails?: string[] | undefined;
8
+ }>;
9
+ export type AgencyApex = z.infer<typeof AgencyApexSchema>;
@@ -0,0 +1,6 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const AgencyApexSchema = z.object({
5
+ contact_emails: z.array(z.string().email()).default([]),
6
+ });
@@ -125,7 +125,7 @@ export declare const RoleSchema: z.ZodObject<{
125
125
  scope: "performance";
126
126
  action: "read";
127
127
  }>, z.ZodObject<{
128
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
128
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
129
129
  resources: z.ZodDefault<z.ZodObject<{
130
130
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
131
131
  }, "strip", z.ZodTypeAny, {
@@ -136,13 +136,13 @@ export declare const RoleSchema: z.ZodObject<{
136
136
  scope: z.ZodLiteral<"plans">;
137
137
  }, "strip", z.ZodTypeAny, {
138
138
  scope: "plans";
139
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
139
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
140
140
  resources: {
141
141
  agency_ids: string[];
142
142
  };
143
143
  }, {
144
144
  scope: "plans";
145
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
145
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
146
146
  resources?: {
147
147
  agency_ids?: string[] | undefined;
148
148
  } | undefined;
@@ -473,7 +473,7 @@ export declare const RoleSchema: z.ZodObject<{
473
473
  action: "read";
474
474
  } | {
475
475
  scope: "plans";
476
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
476
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
477
477
  resources: {
478
478
  agency_ids: string[];
479
479
  };
@@ -590,7 +590,7 @@ export declare const RoleSchema: z.ZodObject<{
590
590
  action: "read";
591
591
  } | {
592
592
  scope: "plans";
593
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
593
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
594
594
  resources?: {
595
595
  agency_ids?: string[] | undefined;
596
596
  } | undefined;
@@ -753,7 +753,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
753
753
  scope: "performance";
754
754
  action: "read";
755
755
  }>, z.ZodObject<{
756
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
756
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
757
757
  resources: z.ZodDefault<z.ZodObject<{
758
758
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
759
759
  }, "strip", z.ZodTypeAny, {
@@ -764,13 +764,13 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
764
764
  scope: z.ZodLiteral<"plans">;
765
765
  }, "strip", z.ZodTypeAny, {
766
766
  scope: "plans";
767
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
767
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
768
768
  resources: {
769
769
  agency_ids: string[];
770
770
  };
771
771
  }, {
772
772
  scope: "plans";
773
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
773
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
774
774
  resources?: {
775
775
  agency_ids?: string[] | undefined;
776
776
  } | undefined;
@@ -1094,7 +1094,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
1094
1094
  action: "read";
1095
1095
  } | {
1096
1096
  scope: "plans";
1097
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1097
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1098
1098
  resources: {
1099
1099
  agency_ids: string[];
1100
1100
  };
@@ -1208,7 +1208,7 @@ export declare const CreateRoleSchema: z.ZodObject<Omit<{
1208
1208
  action: "read";
1209
1209
  } | {
1210
1210
  scope: "plans";
1211
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1211
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1212
1212
  resources?: {
1213
1213
  agency_ids?: string[] | undefined;
1214
1214
  } | undefined;
@@ -1366,7 +1366,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
1366
1366
  scope: "performance";
1367
1367
  action: "read";
1368
1368
  }>, z.ZodObject<{
1369
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
1369
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
1370
1370
  resources: z.ZodDefault<z.ZodObject<{
1371
1371
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1372
1372
  }, "strip", z.ZodTypeAny, {
@@ -1377,13 +1377,13 @@ export declare const UpdateRoleSchema: z.ZodObject<{
1377
1377
  scope: z.ZodLiteral<"plans">;
1378
1378
  }, "strip", z.ZodTypeAny, {
1379
1379
  scope: "plans";
1380
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1380
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1381
1381
  resources: {
1382
1382
  agency_ids: string[];
1383
1383
  };
1384
1384
  }, {
1385
1385
  scope: "plans";
1386
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1386
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1387
1387
  resources?: {
1388
1388
  agency_ids?: string[] | undefined;
1389
1389
  } | undefined;
@@ -1707,7 +1707,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
1707
1707
  action: "read";
1708
1708
  } | {
1709
1709
  scope: "plans";
1710
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1710
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1711
1711
  resources: {
1712
1712
  agency_ids: string[];
1713
1713
  };
@@ -1819,7 +1819,7 @@ export declare const UpdateRoleSchema: z.ZodObject<{
1819
1819
  action: "read";
1820
1820
  } | {
1821
1821
  scope: "plans";
1822
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1822
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1823
1823
  resources?: {
1824
1824
  agency_ids?: string[] | undefined;
1825
1825
  } | undefined;
@@ -130,7 +130,7 @@ export declare const SimplifiedUserSchema: z.ZodObject<Pick<Omit<{
130
130
  scope: "performance";
131
131
  action: "read";
132
132
  }>, z.ZodObject<{
133
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
133
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
134
134
  resources: z.ZodDefault<z.ZodObject<{
135
135
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
136
136
  }, "strip", z.ZodTypeAny, {
@@ -141,13 +141,13 @@ export declare const SimplifiedUserSchema: z.ZodObject<Pick<Omit<{
141
141
  scope: z.ZodLiteral<"plans">;
142
142
  }, "strip", z.ZodTypeAny, {
143
143
  scope: "plans";
144
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
144
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
145
145
  resources: {
146
146
  agency_ids: string[];
147
147
  };
148
148
  }, {
149
149
  scope: "plans";
150
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
150
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
151
151
  resources?: {
152
152
  agency_ids?: string[] | undefined;
153
153
  } | undefined;
@@ -132,7 +132,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
132
132
  scope: "performance";
133
133
  action: "read";
134
134
  }>, z.ZodObject<{
135
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
135
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
136
136
  resources: z.ZodDefault<z.ZodObject<{
137
137
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
138
138
  }, "strip", z.ZodTypeAny, {
@@ -143,13 +143,13 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
143
143
  scope: z.ZodLiteral<"plans">;
144
144
  }, "strip", z.ZodTypeAny, {
145
145
  scope: "plans";
146
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
146
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
147
147
  resources: {
148
148
  agency_ids: string[];
149
149
  };
150
150
  }, {
151
151
  scope: "plans";
152
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
152
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
153
153
  resources?: {
154
154
  agency_ids?: string[] | undefined;
155
155
  } | undefined;
@@ -487,7 +487,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
487
487
  action: "read";
488
488
  } | {
489
489
  scope: "plans";
490
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
490
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
491
491
  resources: {
492
492
  agency_ids: string[];
493
493
  };
@@ -528,7 +528,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
528
528
  last_name: string;
529
529
  organization_id: string;
530
530
  password_hash: string | null;
531
- preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
531
+ preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
532
532
  role_ids: string[];
533
533
  seen_last_at: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
534
534
  session_ids: string[];
@@ -618,7 +618,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
618
618
  action: "read";
619
619
  } | {
620
620
  scope: "plans";
621
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
621
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
622
622
  resources?: {
623
623
  agency_ids?: string[] | undefined;
624
624
  } | undefined;
@@ -656,7 +656,7 @@ export declare const UserSchema_UNSAFE: z.ZodObject<{
656
656
  })[] | undefined;
657
657
  email_verified?: number | null | undefined;
658
658
  password_hash?: string | null | undefined;
659
- preferences?: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null | undefined;
659
+ preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
660
660
  role_ids?: string[] | undefined;
661
661
  seen_last_at?: number | null | undefined;
662
662
  session_ids?: string[] | undefined;
@@ -793,7 +793,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
793
793
  scope: "performance";
794
794
  action: "read";
795
795
  }>, z.ZodObject<{
796
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
796
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
797
797
  resources: z.ZodDefault<z.ZodObject<{
798
798
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
799
799
  }, "strip", z.ZodTypeAny, {
@@ -804,13 +804,13 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
804
804
  scope: z.ZodLiteral<"plans">;
805
805
  }, "strip", z.ZodTypeAny, {
806
806
  scope: "plans";
807
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
807
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
808
808
  resources: {
809
809
  agency_ids: string[];
810
810
  };
811
811
  }, {
812
812
  scope: "plans";
813
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
813
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
814
814
  resources?: {
815
815
  agency_ids?: string[] | undefined;
816
816
  } | undefined;
@@ -1141,7 +1141,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
1141
1141
  action: "read";
1142
1142
  } | {
1143
1143
  scope: "plans";
1144
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1144
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1145
1145
  resources: {
1146
1146
  agency_ids: string[];
1147
1147
  };
@@ -1182,7 +1182,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
1182
1182
  last_name: string;
1183
1183
  organization_id: string;
1184
1184
  password_hash: string | null;
1185
- preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
1185
+ preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
1186
1186
  role_ids: string[];
1187
1187
  seen_last_at: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
1188
1188
  session_ids: string[];
@@ -1269,7 +1269,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
1269
1269
  action: "read";
1270
1270
  } | {
1271
1271
  scope: "plans";
1272
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1272
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1273
1273
  resources?: {
1274
1274
  agency_ids?: string[] | undefined;
1275
1275
  } | undefined;
@@ -1307,7 +1307,7 @@ export declare const CreateUserSchema: z.ZodObject<Omit<{
1307
1307
  })[] | undefined;
1308
1308
  email_verified?: number | null | undefined;
1309
1309
  password_hash?: string | null | undefined;
1310
- preferences?: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null | undefined;
1310
+ preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
1311
1311
  role_ids?: string[] | undefined;
1312
1312
  seen_last_at?: number | null | undefined;
1313
1313
  session_ids?: string[] | undefined;
@@ -1435,7 +1435,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
1435
1435
  scope: "performance";
1436
1436
  action: "read";
1437
1437
  }>, z.ZodObject<{
1438
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
1438
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
1439
1439
  resources: z.ZodDefault<z.ZodObject<{
1440
1440
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1441
1441
  }, "strip", z.ZodTypeAny, {
@@ -1446,13 +1446,13 @@ export declare const UpdateUserSchema: z.ZodObject<{
1446
1446
  scope: z.ZodLiteral<"plans">;
1447
1447
  }, "strip", z.ZodTypeAny, {
1448
1448
  scope: "plans";
1449
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1449
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1450
1450
  resources: {
1451
1451
  agency_ids: string[];
1452
1452
  };
1453
1453
  }, {
1454
1454
  scope: "plans";
1455
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1455
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1456
1456
  resources?: {
1457
1457
  agency_ids?: string[] | undefined;
1458
1458
  } | undefined;
@@ -1785,7 +1785,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
1785
1785
  action: "read";
1786
1786
  } | {
1787
1787
  scope: "plans";
1788
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1788
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1789
1789
  resources: {
1790
1790
  agency_ids: string[];
1791
1791
  };
@@ -1826,7 +1826,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
1826
1826
  last_name?: string | undefined;
1827
1827
  organization_id?: string | undefined;
1828
1828
  password_hash?: string | null | undefined;
1829
- preferences?: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null | undefined;
1829
+ preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
1830
1830
  role_ids?: string[] | undefined;
1831
1831
  seen_last_at?: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null | undefined;
1832
1832
  }, {
@@ -1906,7 +1906,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
1906
1906
  action: "read";
1907
1907
  } | {
1908
1908
  scope: "plans";
1909
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
1909
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
1910
1910
  resources?: {
1911
1911
  agency_ids?: string[] | undefined;
1912
1912
  } | undefined;
@@ -1947,7 +1947,7 @@ export declare const UpdateUserSchema: z.ZodObject<{
1947
1947
  last_name?: string | undefined;
1948
1948
  organization_id?: string | undefined;
1949
1949
  password_hash?: string | null | undefined;
1950
- preferences?: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null | undefined;
1950
+ preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
1951
1951
  role_ids?: string[] | undefined;
1952
1952
  seen_last_at?: number | null | undefined;
1953
1953
  }>;
@@ -2082,7 +2082,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
2082
2082
  scope: "performance";
2083
2083
  action: "read";
2084
2084
  }>, z.ZodObject<{
2085
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
2085
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
2086
2086
  resources: z.ZodDefault<z.ZodObject<{
2087
2087
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2088
2088
  }, "strip", z.ZodTypeAny, {
@@ -2093,13 +2093,13 @@ export declare const UserSchema: z.ZodObject<Omit<{
2093
2093
  scope: z.ZodLiteral<"plans">;
2094
2094
  }, "strip", z.ZodTypeAny, {
2095
2095
  scope: "plans";
2096
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2096
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2097
2097
  resources: {
2098
2098
  agency_ids: string[];
2099
2099
  };
2100
2100
  }, {
2101
2101
  scope: "plans";
2102
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2102
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2103
2103
  resources?: {
2104
2104
  agency_ids?: string[] | undefined;
2105
2105
  } | undefined;
@@ -2437,7 +2437,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
2437
2437
  action: "read";
2438
2438
  } | {
2439
2439
  scope: "plans";
2440
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2440
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2441
2441
  resources: {
2442
2442
  agency_ids: string[];
2443
2443
  };
@@ -2477,7 +2477,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
2477
2477
  first_name: string;
2478
2478
  last_name: string;
2479
2479
  organization_id: string;
2480
- preferences: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null;
2480
+ preferences: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null;
2481
2481
  role_ids: string[];
2482
2482
  seen_last_at: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
2483
2483
  updated_by?: string | undefined;
@@ -2565,7 +2565,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
2565
2565
  action: "read";
2566
2566
  } | {
2567
2567
  scope: "plans";
2568
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2568
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2569
2569
  resources?: {
2570
2570
  agency_ids?: string[] | undefined;
2571
2571
  } | undefined;
@@ -2602,7 +2602,7 @@ export declare const UserSchema: z.ZodObject<Omit<{
2602
2602
  } | undefined;
2603
2603
  })[] | undefined;
2604
2604
  email_verified?: number | null | undefined;
2605
- preferences?: Record<string, Record<string, string | number | boolean | number[] | string[]>> | null | undefined;
2605
+ preferences?: Record<string, Record<string, string | number | boolean | string[] | number[]>> | null | undefined;
2606
2606
  role_ids?: string[] | undefined;
2607
2607
  seen_last_at?: number | null | undefined;
2608
2608
  }>;
@@ -2748,7 +2748,7 @@ export declare const UserDisplaySchema: z.ZodObject<Pick<Omit<{
2748
2748
  scope: "performance";
2749
2749
  action: "read";
2750
2750
  }>, z.ZodObject<{
2751
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
2751
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
2752
2752
  resources: z.ZodDefault<z.ZodObject<{
2753
2753
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2754
2754
  }, "strip", z.ZodTypeAny, {
@@ -2759,13 +2759,13 @@ export declare const UserDisplaySchema: z.ZodObject<Pick<Omit<{
2759
2759
  scope: z.ZodLiteral<"plans">;
2760
2760
  }, "strip", z.ZodTypeAny, {
2761
2761
  scope: "plans";
2762
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2762
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2763
2763
  resources: {
2764
2764
  agency_ids: string[];
2765
2765
  };
2766
2766
  }, {
2767
2767
  scope: "plans";
2768
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
2768
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
2769
2769
  resources?: {
2770
2770
  agency_ids?: string[] | undefined;
2771
2771
  } | undefined;
@@ -116,7 +116,7 @@ export declare const PermissionSchema: z.ZodDiscriminatedUnion<"scope", [z.ZodOb
116
116
  scope: "performance";
117
117
  action: "read";
118
118
  }>, z.ZodObject<{
119
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
119
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
120
120
  resources: z.ZodDefault<z.ZodObject<{
121
121
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
122
122
  }, "strip", z.ZodTypeAny, {
@@ -127,13 +127,13 @@ export declare const PermissionSchema: z.ZodDiscriminatedUnion<"scope", [z.ZodOb
127
127
  scope: z.ZodLiteral<"plans">;
128
128
  }, "strip", z.ZodTypeAny, {
129
129
  scope: "plans";
130
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
130
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
131
131
  resources: {
132
132
  agency_ids: string[];
133
133
  };
134
134
  }, {
135
135
  scope: "plans";
136
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
136
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
137
137
  resources?: {
138
138
  agency_ids?: string[] | undefined;
139
139
  } | undefined;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const PlansPermissionSchema: z.ZodObject<{
3
- action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file"]>;
3
+ action: z.ZodEnum<["create", "delete", "read", "read_controller", "read_pcgi_legacy", "lock", "update", "update_controller", "update_feed_info_dates", "update_gtfs_plan", "update_pcgi_legacy", "read_apex_file", "update_apex_file", "delete_apex_file", "send_apex_notification"]>;
4
4
  resources: z.ZodDefault<z.ZodObject<{
5
5
  agency_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6
6
  }, "strip", z.ZodTypeAny, {
@@ -11,13 +11,13 @@ export declare const PlansPermissionSchema: z.ZodObject<{
11
11
  scope: z.ZodLiteral<"plans">;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  scope: "plans";
14
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
14
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
15
15
  resources: {
16
16
  agency_ids: string[];
17
17
  };
18
18
  }, {
19
19
  scope: "plans";
20
- action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file";
20
+ action: "create" | "delete" | "read" | "lock" | "update" | "read_controller" | "read_pcgi_legacy" | "update_controller" | "update_feed_info_dates" | "update_gtfs_plan" | "update_pcgi_legacy" | "read_apex_file" | "update_apex_file" | "delete_apex_file" | "send_apex_notification";
21
21
  resources?: {
22
22
  agency_ids?: string[] | undefined;
23
23
  } | undefined;
@@ -17,6 +17,7 @@ export const PlansPermissionSchema = z.object({
17
17
  'read_apex_file',
18
18
  'update_apex_file',
19
19
  'delete_apex_file',
20
+ 'send_apex_notification',
20
21
  ]),
21
22
  resources: z.object({
22
23
  agency_ids: z.array(z.string()).default([]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260713.2140.32",
3
+ "version": "20260714.1322.11",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"