@findatruck/shared-schemas 2.7.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.cjs +56 -32
- package/dist/browser.d.cts +234 -403
- package/dist/browser.d.ts +234 -403
- package/dist/browser.js +15 -1
- package/dist/{chunk-5AS6K3Q5.js → chunk-CUV2KQXS.js} +49 -32
- package/dist/index.cjs +56 -32
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BatchConvexUpdate,
|
|
3
|
+
BatchConvexUpdateSchema,
|
|
4
|
+
ConvexDriverSchema,
|
|
3
5
|
ConvexUpdate,
|
|
6
|
+
ConvexUpdateSchema,
|
|
4
7
|
NewLoginRequest,
|
|
8
|
+
NewLoginRequestSchema,
|
|
5
9
|
NewLoginResponse,
|
|
6
10
|
NewLoginResponseFailure,
|
|
11
|
+
NewLoginResponseFailureSchema,
|
|
12
|
+
NewLoginResponseSchema,
|
|
7
13
|
NewLoginResponseSuccess,
|
|
14
|
+
NewLoginResponseSuccessSchema,
|
|
8
15
|
ScrapeStatus,
|
|
9
16
|
UpdateScrapeStatusMessage,
|
|
10
17
|
ValidatePasswordRequestSchema,
|
|
11
18
|
ValidatePasswordResponseSchema
|
|
12
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CUV2KQXS.js";
|
|
13
20
|
export {
|
|
14
21
|
BatchConvexUpdate,
|
|
22
|
+
BatchConvexUpdateSchema,
|
|
23
|
+
ConvexDriverSchema,
|
|
15
24
|
ConvexUpdate,
|
|
25
|
+
ConvexUpdateSchema,
|
|
16
26
|
NewLoginRequest,
|
|
27
|
+
NewLoginRequestSchema,
|
|
17
28
|
NewLoginResponse,
|
|
18
29
|
NewLoginResponseFailure,
|
|
30
|
+
NewLoginResponseFailureSchema,
|
|
31
|
+
NewLoginResponseSchema,
|
|
19
32
|
NewLoginResponseSuccess,
|
|
33
|
+
NewLoginResponseSuccessSchema,
|
|
20
34
|
ScrapeStatus,
|
|
21
35
|
UpdateScrapeStatusMessage,
|
|
22
36
|
ValidatePasswordRequestSchema,
|
|
@@ -11,35 +11,42 @@ var UrlSchema = z.string().refine(
|
|
|
11
11
|
},
|
|
12
12
|
{ message: "Invalid URL" }
|
|
13
13
|
);
|
|
14
|
-
var
|
|
14
|
+
var NewLoginRequestSchema = z.object({
|
|
15
15
|
providerUrl: UrlSchema,
|
|
16
16
|
username: z.string().min(1),
|
|
17
17
|
encryptedPassword: z.string().min(1),
|
|
18
18
|
ownerId: z.string(),
|
|
19
|
-
externalProviderAccountId: z.string()
|
|
19
|
+
externalProviderAccountId: z.string(),
|
|
20
|
+
convexUpdateUrl: z.string().url().describe("The Convex function URL to send updates to")
|
|
20
21
|
});
|
|
21
|
-
var
|
|
22
|
+
var PublicUserSchema = z.object({
|
|
22
23
|
id: z.string(),
|
|
23
24
|
username: z.string(),
|
|
24
25
|
created_at: z.coerce.date(),
|
|
25
26
|
updated_at: z.coerce.date()
|
|
26
27
|
});
|
|
27
|
-
var
|
|
28
|
+
var PublicProviderSchema = z.object({
|
|
28
29
|
name: z.string(),
|
|
29
30
|
url: UrlSchema
|
|
30
31
|
});
|
|
31
|
-
var
|
|
32
|
+
var NewLoginResponseSuccessSchema = z.object({
|
|
33
|
+
success: z.boolean().optional(),
|
|
32
34
|
message: z.string(),
|
|
33
|
-
user:
|
|
34
|
-
provider:
|
|
35
|
+
user: PublicUserSchema,
|
|
36
|
+
provider: PublicProviderSchema,
|
|
35
37
|
driverIds: z.array(z.string()).describe("An array of driver IDs associated with the login"),
|
|
36
38
|
organizationId: z.string().optional(),
|
|
37
39
|
honkUserId: z.string().optional()
|
|
38
40
|
});
|
|
39
|
-
var
|
|
41
|
+
var NewLoginResponseFailureSchema = z.object({
|
|
42
|
+
success: z.boolean().optional(),
|
|
40
43
|
error: z.string()
|
|
41
44
|
});
|
|
42
|
-
var
|
|
45
|
+
var NewLoginResponseSchema = z.union([NewLoginResponseSuccessSchema, NewLoginResponseFailureSchema]);
|
|
46
|
+
var NewLoginRequest = NewLoginRequestSchema;
|
|
47
|
+
var NewLoginResponseSuccess = NewLoginResponseSuccessSchema;
|
|
48
|
+
var NewLoginResponseFailure = NewLoginResponseFailureSchema;
|
|
49
|
+
var NewLoginResponse = NewLoginResponseSchema;
|
|
43
50
|
|
|
44
51
|
// src/schemas/drivers/convex-update.ts
|
|
45
52
|
import z2 from "zod";
|
|
@@ -54,34 +61,37 @@ var UrlSchema2 = z2.string().refine(
|
|
|
54
61
|
},
|
|
55
62
|
{ message: "Invalid URL" }
|
|
56
63
|
);
|
|
57
|
-
var
|
|
64
|
+
var ConvexDriverSchema = z2.object({
|
|
65
|
+
driver_name: z2.string().optional().describe("The driver's full name"),
|
|
66
|
+
vehicle_id: z2.string().optional().describe("The vehicle ID"),
|
|
67
|
+
driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
|
|
68
|
+
time_remaining_in_shift: z2.number().describe("Seconds remaining in current shift"),
|
|
69
|
+
time_remaining_till_break: z2.number().describe("Seconds remaining until next required break"),
|
|
70
|
+
time_remaining_in_week: z2.number().describe("Seconds remaining in current cycle/week"),
|
|
71
|
+
time_remaining_in_drive: z2.number().describe("Seconds remaining in current drive period"),
|
|
72
|
+
driver_current_location_latitude: z2.number().describe("Driver's current latitude"),
|
|
73
|
+
driver_current_location_longitude: z2.number().describe("Driver's current longitude"),
|
|
74
|
+
driver_current_location_address: z2.string().describe("Driver's current address"),
|
|
75
|
+
license_number: z2.string().optional().describe("The driver's license number"),
|
|
76
|
+
license_state: z2.string().optional().describe("The state that issued the driver's license"),
|
|
77
|
+
speed: z2.number().optional().describe("The vehicle's current speed in mph"),
|
|
78
|
+
odometer: z2.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
79
|
+
convex_provider_account_id: z2.string().describe("The Convex ELD provider account ID"),
|
|
80
|
+
external_provider_account_id: z2.string().describe("The provider account ID on backend"),
|
|
81
|
+
external_driver_id: z2.string().describe("The driver ID on backend"),
|
|
82
|
+
mileage_since_last_update: z2.number().optional().describe("Mileage since last update in miles")
|
|
83
|
+
}).describe("An object containing driver ELD status information");
|
|
84
|
+
var ConvexUpdateSchema = z2.object({
|
|
58
85
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
59
86
|
username: z2.string().describe("The ELD account's login username"),
|
|
60
|
-
drivers: z2.array(
|
|
61
|
-
driver_name: z2.string().optional().describe("The driver's full name"),
|
|
62
|
-
vehicle_id: z2.string().optional().describe("The vehicle ID"),
|
|
63
|
-
driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
|
|
64
|
-
time_remaining_in_shift: z2.number().describe("Seconds remaining in current shift"),
|
|
65
|
-
time_remaining_till_break: z2.number().describe("Seconds remaining until next required break"),
|
|
66
|
-
time_remaining_in_week: z2.number().describe("Seconds remaining in current cycle/week"),
|
|
67
|
-
time_remaining_in_drive: z2.number().describe("Seconds remaining in current drive period"),
|
|
68
|
-
driver_current_location_latitude: z2.number().describe("Driver's current latitude"),
|
|
69
|
-
driver_current_location_longitude: z2.number().describe("Driver's current longitude"),
|
|
70
|
-
driver_current_location_address: z2.string().describe("Driver's current address"),
|
|
71
|
-
license_number: z2.string().optional().describe("The driver's license number"),
|
|
72
|
-
license_state: z2.string().optional().describe("The state that issued the driver's license"),
|
|
73
|
-
speed: z2.number().optional().describe("The vehicle's current speed in mph"),
|
|
74
|
-
odometer: z2.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
75
|
-
convex_provider_account_id: z2.string().describe("The Convex ELD provider account ID"),
|
|
76
|
-
external_provider_account_id: z2.string().describe("The provider account ID on backend"),
|
|
77
|
-
external_driver_id: z2.string().describe("The driver ID on backend"),
|
|
78
|
-
mileage_since_last_update: z2.number().optional().describe("Mileage since last update in miles")
|
|
79
|
-
}).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates"),
|
|
87
|
+
drivers: z2.array(ConvexDriverSchema).describe("An array of driver ELD status updates"),
|
|
80
88
|
version: z2.string().default("2.7.0").describe("The version of the Convex ELD API being used")
|
|
81
89
|
}).describe("Schema for updating driver ELD status information");
|
|
82
|
-
var
|
|
83
|
-
updates: z2.array(
|
|
90
|
+
var BatchConvexUpdateSchema = z2.object({
|
|
91
|
+
updates: z2.array(ConvexUpdateSchema).describe("An array of Convex ELD driver updates")
|
|
84
92
|
}).describe("Schema for batch updating driver ELD status information");
|
|
93
|
+
var ConvexUpdate = ConvexUpdateSchema;
|
|
94
|
+
var BatchConvexUpdate = BatchConvexUpdateSchema;
|
|
85
95
|
|
|
86
96
|
// src/schemas/providerAccounts/update-status.ts
|
|
87
97
|
import z3 from "zod";
|
|
@@ -117,10 +127,17 @@ var ValidatePasswordResponseSchema = z4.object({
|
|
|
117
127
|
}).describe("Response schema for password validation");
|
|
118
128
|
|
|
119
129
|
export {
|
|
130
|
+
NewLoginRequestSchema,
|
|
131
|
+
NewLoginResponseSuccessSchema,
|
|
132
|
+
NewLoginResponseFailureSchema,
|
|
133
|
+
NewLoginResponseSchema,
|
|
120
134
|
NewLoginRequest,
|
|
121
135
|
NewLoginResponseSuccess,
|
|
122
136
|
NewLoginResponseFailure,
|
|
123
137
|
NewLoginResponse,
|
|
138
|
+
ConvexDriverSchema,
|
|
139
|
+
ConvexUpdateSchema,
|
|
140
|
+
BatchConvexUpdateSchema,
|
|
124
141
|
ConvexUpdate,
|
|
125
142
|
BatchConvexUpdate,
|
|
126
143
|
ScrapeStatus,
|
package/dist/index.cjs
CHANGED
|
@@ -31,11 +31,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
BatchConvexUpdate: () => BatchConvexUpdate,
|
|
34
|
+
BatchConvexUpdateSchema: () => BatchConvexUpdateSchema,
|
|
35
|
+
ConvexDriverSchema: () => ConvexDriverSchema,
|
|
34
36
|
ConvexUpdate: () => ConvexUpdate,
|
|
37
|
+
ConvexUpdateSchema: () => ConvexUpdateSchema,
|
|
35
38
|
NewLoginRequest: () => NewLoginRequest,
|
|
39
|
+
NewLoginRequestSchema: () => NewLoginRequestSchema,
|
|
36
40
|
NewLoginResponse: () => NewLoginResponse,
|
|
37
41
|
NewLoginResponseFailure: () => NewLoginResponseFailure,
|
|
42
|
+
NewLoginResponseFailureSchema: () => NewLoginResponseFailureSchema,
|
|
43
|
+
NewLoginResponseSchema: () => NewLoginResponseSchema,
|
|
38
44
|
NewLoginResponseSuccess: () => NewLoginResponseSuccess,
|
|
45
|
+
NewLoginResponseSuccessSchema: () => NewLoginResponseSuccessSchema,
|
|
39
46
|
ScrapeStatus: () => ScrapeStatus,
|
|
40
47
|
UpdateScrapeStatusMessage: () => UpdateScrapeStatusMessage,
|
|
41
48
|
ValidatePasswordRequestSchema: () => ValidatePasswordRequestSchema,
|
|
@@ -58,35 +65,42 @@ var UrlSchema = import_zod.z.string().refine(
|
|
|
58
65
|
},
|
|
59
66
|
{ message: "Invalid URL" }
|
|
60
67
|
);
|
|
61
|
-
var
|
|
68
|
+
var NewLoginRequestSchema = import_zod.z.object({
|
|
62
69
|
providerUrl: UrlSchema,
|
|
63
70
|
username: import_zod.z.string().min(1),
|
|
64
71
|
encryptedPassword: import_zod.z.string().min(1),
|
|
65
72
|
ownerId: import_zod.z.string(),
|
|
66
|
-
externalProviderAccountId: import_zod.z.string()
|
|
73
|
+
externalProviderAccountId: import_zod.z.string(),
|
|
74
|
+
convexUpdateUrl: import_zod.z.string().url().describe("The Convex function URL to send updates to")
|
|
67
75
|
});
|
|
68
|
-
var
|
|
76
|
+
var PublicUserSchema = import_zod.z.object({
|
|
69
77
|
id: import_zod.z.string(),
|
|
70
78
|
username: import_zod.z.string(),
|
|
71
79
|
created_at: import_zod.z.coerce.date(),
|
|
72
80
|
updated_at: import_zod.z.coerce.date()
|
|
73
81
|
});
|
|
74
|
-
var
|
|
82
|
+
var PublicProviderSchema = import_zod.z.object({
|
|
75
83
|
name: import_zod.z.string(),
|
|
76
84
|
url: UrlSchema
|
|
77
85
|
});
|
|
78
|
-
var
|
|
86
|
+
var NewLoginResponseSuccessSchema = import_zod.z.object({
|
|
87
|
+
success: import_zod.z.boolean().optional(),
|
|
79
88
|
message: import_zod.z.string(),
|
|
80
|
-
user:
|
|
81
|
-
provider:
|
|
89
|
+
user: PublicUserSchema,
|
|
90
|
+
provider: PublicProviderSchema,
|
|
82
91
|
driverIds: import_zod.z.array(import_zod.z.string()).describe("An array of driver IDs associated with the login"),
|
|
83
92
|
organizationId: import_zod.z.string().optional(),
|
|
84
93
|
honkUserId: import_zod.z.string().optional()
|
|
85
94
|
});
|
|
86
|
-
var
|
|
95
|
+
var NewLoginResponseFailureSchema = import_zod.z.object({
|
|
96
|
+
success: import_zod.z.boolean().optional(),
|
|
87
97
|
error: import_zod.z.string()
|
|
88
98
|
});
|
|
89
|
-
var
|
|
99
|
+
var NewLoginResponseSchema = import_zod.z.union([NewLoginResponseSuccessSchema, NewLoginResponseFailureSchema]);
|
|
100
|
+
var NewLoginRequest = NewLoginRequestSchema;
|
|
101
|
+
var NewLoginResponseSuccess = NewLoginResponseSuccessSchema;
|
|
102
|
+
var NewLoginResponseFailure = NewLoginResponseFailureSchema;
|
|
103
|
+
var NewLoginResponse = NewLoginResponseSchema;
|
|
90
104
|
|
|
91
105
|
// src/schemas/drivers/convex-update.ts
|
|
92
106
|
var import_zod2 = __toESM(require("zod"), 1);
|
|
@@ -101,34 +115,37 @@ var UrlSchema2 = import_zod2.default.string().refine(
|
|
|
101
115
|
},
|
|
102
116
|
{ message: "Invalid URL" }
|
|
103
117
|
);
|
|
104
|
-
var
|
|
118
|
+
var ConvexDriverSchema = import_zod2.default.object({
|
|
119
|
+
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
120
|
+
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
121
|
+
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
|
122
|
+
time_remaining_in_shift: import_zod2.default.number().describe("Seconds remaining in current shift"),
|
|
123
|
+
time_remaining_till_break: import_zod2.default.number().describe("Seconds remaining until next required break"),
|
|
124
|
+
time_remaining_in_week: import_zod2.default.number().describe("Seconds remaining in current cycle/week"),
|
|
125
|
+
time_remaining_in_drive: import_zod2.default.number().describe("Seconds remaining in current drive period"),
|
|
126
|
+
driver_current_location_latitude: import_zod2.default.number().describe("Driver's current latitude"),
|
|
127
|
+
driver_current_location_longitude: import_zod2.default.number().describe("Driver's current longitude"),
|
|
128
|
+
driver_current_location_address: import_zod2.default.string().describe("Driver's current address"),
|
|
129
|
+
license_number: import_zod2.default.string().optional().describe("The driver's license number"),
|
|
130
|
+
license_state: import_zod2.default.string().optional().describe("The state that issued the driver's license"),
|
|
131
|
+
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
132
|
+
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
133
|
+
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
134
|
+
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
135
|
+
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
136
|
+
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
137
|
+
}).describe("An object containing driver ELD status information");
|
|
138
|
+
var ConvexUpdateSchema = import_zod2.default.object({
|
|
105
139
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
106
140
|
username: import_zod2.default.string().describe("The ELD account's login username"),
|
|
107
|
-
drivers: import_zod2.default.array(
|
|
108
|
-
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
109
|
-
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
110
|
-
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
|
111
|
-
time_remaining_in_shift: import_zod2.default.number().describe("Seconds remaining in current shift"),
|
|
112
|
-
time_remaining_till_break: import_zod2.default.number().describe("Seconds remaining until next required break"),
|
|
113
|
-
time_remaining_in_week: import_zod2.default.number().describe("Seconds remaining in current cycle/week"),
|
|
114
|
-
time_remaining_in_drive: import_zod2.default.number().describe("Seconds remaining in current drive period"),
|
|
115
|
-
driver_current_location_latitude: import_zod2.default.number().describe("Driver's current latitude"),
|
|
116
|
-
driver_current_location_longitude: import_zod2.default.number().describe("Driver's current longitude"),
|
|
117
|
-
driver_current_location_address: import_zod2.default.string().describe("Driver's current address"),
|
|
118
|
-
license_number: import_zod2.default.string().optional().describe("The driver's license number"),
|
|
119
|
-
license_state: import_zod2.default.string().optional().describe("The state that issued the driver's license"),
|
|
120
|
-
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
121
|
-
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
122
|
-
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
123
|
-
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
124
|
-
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
125
|
-
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
126
|
-
}).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates"),
|
|
141
|
+
drivers: import_zod2.default.array(ConvexDriverSchema).describe("An array of driver ELD status updates"),
|
|
127
142
|
version: import_zod2.default.string().default("2.7.0").describe("The version of the Convex ELD API being used")
|
|
128
143
|
}).describe("Schema for updating driver ELD status information");
|
|
129
|
-
var
|
|
130
|
-
updates: import_zod2.default.array(
|
|
144
|
+
var BatchConvexUpdateSchema = import_zod2.default.object({
|
|
145
|
+
updates: import_zod2.default.array(ConvexUpdateSchema).describe("An array of Convex ELD driver updates")
|
|
131
146
|
}).describe("Schema for batch updating driver ELD status information");
|
|
147
|
+
var ConvexUpdate = ConvexUpdateSchema;
|
|
148
|
+
var BatchConvexUpdate = BatchConvexUpdateSchema;
|
|
132
149
|
|
|
133
150
|
// src/security/transit-crypto.ts
|
|
134
151
|
var import_node_crypto = require("crypto");
|
|
@@ -191,11 +208,18 @@ var ValidatePasswordResponseSchema = import_zod4.z.object({
|
|
|
191
208
|
// Annotate the CommonJS export names for ESM import in node:
|
|
192
209
|
0 && (module.exports = {
|
|
193
210
|
BatchConvexUpdate,
|
|
211
|
+
BatchConvexUpdateSchema,
|
|
212
|
+
ConvexDriverSchema,
|
|
194
213
|
ConvexUpdate,
|
|
214
|
+
ConvexUpdateSchema,
|
|
195
215
|
NewLoginRequest,
|
|
216
|
+
NewLoginRequestSchema,
|
|
196
217
|
NewLoginResponse,
|
|
197
218
|
NewLoginResponseFailure,
|
|
219
|
+
NewLoginResponseFailureSchema,
|
|
220
|
+
NewLoginResponseSchema,
|
|
198
221
|
NewLoginResponseSuccess,
|
|
222
|
+
NewLoginResponseSuccessSchema,
|
|
199
223
|
ScrapeStatus,
|
|
200
224
|
UpdateScrapeStatusMessage,
|
|
201
225
|
ValidatePasswordRequestSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.cjs';
|
|
1
|
+
export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PublicProviderData, PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare function encryptRsaOaepSha256ToB64(plaintext: string, publicKeyPem: string): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.js';
|
|
1
|
+
export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PublicProviderData, PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare function encryptRsaOaepSha256ToB64(plaintext: string, publicKeyPem: string): string;
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BatchConvexUpdate,
|
|
3
|
+
BatchConvexUpdateSchema,
|
|
4
|
+
ConvexDriverSchema,
|
|
3
5
|
ConvexUpdate,
|
|
6
|
+
ConvexUpdateSchema,
|
|
4
7
|
NewLoginRequest,
|
|
8
|
+
NewLoginRequestSchema,
|
|
5
9
|
NewLoginResponse,
|
|
6
10
|
NewLoginResponseFailure,
|
|
11
|
+
NewLoginResponseFailureSchema,
|
|
12
|
+
NewLoginResponseSchema,
|
|
7
13
|
NewLoginResponseSuccess,
|
|
14
|
+
NewLoginResponseSuccessSchema,
|
|
8
15
|
ScrapeStatus,
|
|
9
16
|
UpdateScrapeStatusMessage,
|
|
10
17
|
ValidatePasswordRequestSchema,
|
|
11
18
|
ValidatePasswordResponseSchema
|
|
12
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CUV2KQXS.js";
|
|
13
20
|
|
|
14
21
|
// src/security/transit-crypto.ts
|
|
15
22
|
import { publicEncrypt, privateDecrypt, constants } from "crypto";
|
|
@@ -38,11 +45,18 @@ function decryptRsaOaepSha256B64(ciphertextB64, privateKeyPem, passphrase) {
|
|
|
38
45
|
}
|
|
39
46
|
export {
|
|
40
47
|
BatchConvexUpdate,
|
|
48
|
+
BatchConvexUpdateSchema,
|
|
49
|
+
ConvexDriverSchema,
|
|
41
50
|
ConvexUpdate,
|
|
51
|
+
ConvexUpdateSchema,
|
|
42
52
|
NewLoginRequest,
|
|
53
|
+
NewLoginRequestSchema,
|
|
43
54
|
NewLoginResponse,
|
|
44
55
|
NewLoginResponseFailure,
|
|
56
|
+
NewLoginResponseFailureSchema,
|
|
57
|
+
NewLoginResponseSchema,
|
|
45
58
|
NewLoginResponseSuccess,
|
|
59
|
+
NewLoginResponseSuccessSchema,
|
|
46
60
|
ScrapeStatus,
|
|
47
61
|
UpdateScrapeStatusMessage,
|
|
48
62
|
ValidatePasswordRequestSchema,
|