@findatruck/shared-schemas 2.8.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 +54 -31
- package/dist/browser.d.cts +233 -405
- package/dist/browser.d.ts +233 -405
- package/dist/browser.js +15 -1
- package/dist/{chunk-3CDH5DV5.js → chunk-CUV2KQXS.js} +47 -31
- package/dist/index.cjs +54 -31
- 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,7 +11,7 @@ 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),
|
|
@@ -19,28 +19,34 @@ var NewLoginRequest = z.object({
|
|
|
19
19
|
externalProviderAccountId: z.string(),
|
|
20
20
|
convexUpdateUrl: z.string().url().describe("The Convex function URL to send updates to")
|
|
21
21
|
});
|
|
22
|
-
var
|
|
22
|
+
var PublicUserSchema = z.object({
|
|
23
23
|
id: z.string(),
|
|
24
24
|
username: z.string(),
|
|
25
25
|
created_at: z.coerce.date(),
|
|
26
26
|
updated_at: z.coerce.date()
|
|
27
27
|
});
|
|
28
|
-
var
|
|
28
|
+
var PublicProviderSchema = z.object({
|
|
29
29
|
name: z.string(),
|
|
30
30
|
url: UrlSchema
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var NewLoginResponseSuccessSchema = z.object({
|
|
33
|
+
success: z.boolean().optional(),
|
|
33
34
|
message: z.string(),
|
|
34
|
-
user:
|
|
35
|
-
provider:
|
|
35
|
+
user: PublicUserSchema,
|
|
36
|
+
provider: PublicProviderSchema,
|
|
36
37
|
driverIds: z.array(z.string()).describe("An array of driver IDs associated with the login"),
|
|
37
38
|
organizationId: z.string().optional(),
|
|
38
39
|
honkUserId: z.string().optional()
|
|
39
40
|
});
|
|
40
|
-
var
|
|
41
|
+
var NewLoginResponseFailureSchema = z.object({
|
|
42
|
+
success: z.boolean().optional(),
|
|
41
43
|
error: z.string()
|
|
42
44
|
});
|
|
43
|
-
var
|
|
45
|
+
var NewLoginResponseSchema = z.union([NewLoginResponseSuccessSchema, NewLoginResponseFailureSchema]);
|
|
46
|
+
var NewLoginRequest = NewLoginRequestSchema;
|
|
47
|
+
var NewLoginResponseSuccess = NewLoginResponseSuccessSchema;
|
|
48
|
+
var NewLoginResponseFailure = NewLoginResponseFailureSchema;
|
|
49
|
+
var NewLoginResponse = NewLoginResponseSchema;
|
|
44
50
|
|
|
45
51
|
// src/schemas/drivers/convex-update.ts
|
|
46
52
|
import z2 from "zod";
|
|
@@ -55,34 +61,37 @@ var UrlSchema2 = z2.string().refine(
|
|
|
55
61
|
},
|
|
56
62
|
{ message: "Invalid URL" }
|
|
57
63
|
);
|
|
58
|
-
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({
|
|
59
85
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
60
86
|
username: z2.string().describe("The ELD account's login username"),
|
|
61
|
-
drivers: z2.array(
|
|
62
|
-
driver_name: z2.string().optional().describe("The driver's full name"),
|
|
63
|
-
vehicle_id: z2.string().optional().describe("The vehicle ID"),
|
|
64
|
-
driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
|
|
65
|
-
time_remaining_in_shift: z2.number().describe("Seconds remaining in current shift"),
|
|
66
|
-
time_remaining_till_break: z2.number().describe("Seconds remaining until next required break"),
|
|
67
|
-
time_remaining_in_week: z2.number().describe("Seconds remaining in current cycle/week"),
|
|
68
|
-
time_remaining_in_drive: z2.number().describe("Seconds remaining in current drive period"),
|
|
69
|
-
driver_current_location_latitude: z2.number().describe("Driver's current latitude"),
|
|
70
|
-
driver_current_location_longitude: z2.number().describe("Driver's current longitude"),
|
|
71
|
-
driver_current_location_address: z2.string().describe("Driver's current address"),
|
|
72
|
-
license_number: z2.string().optional().describe("The driver's license number"),
|
|
73
|
-
license_state: z2.string().optional().describe("The state that issued the driver's license"),
|
|
74
|
-
speed: z2.number().optional().describe("The vehicle's current speed in mph"),
|
|
75
|
-
odometer: z2.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
76
|
-
convex_provider_account_id: z2.string().describe("The Convex ELD provider account ID"),
|
|
77
|
-
external_provider_account_id: z2.string().describe("The provider account ID on backend"),
|
|
78
|
-
external_driver_id: z2.string().describe("The driver ID on backend"),
|
|
79
|
-
mileage_since_last_update: z2.number().optional().describe("Mileage since last update in miles")
|
|
80
|
-
}).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"),
|
|
81
88
|
version: z2.string().default("2.7.0").describe("The version of the Convex ELD API being used")
|
|
82
89
|
}).describe("Schema for updating driver ELD status information");
|
|
83
|
-
var
|
|
84
|
-
updates: z2.array(
|
|
90
|
+
var BatchConvexUpdateSchema = z2.object({
|
|
91
|
+
updates: z2.array(ConvexUpdateSchema).describe("An array of Convex ELD driver updates")
|
|
85
92
|
}).describe("Schema for batch updating driver ELD status information");
|
|
93
|
+
var ConvexUpdate = ConvexUpdateSchema;
|
|
94
|
+
var BatchConvexUpdate = BatchConvexUpdateSchema;
|
|
86
95
|
|
|
87
96
|
// src/schemas/providerAccounts/update-status.ts
|
|
88
97
|
import z3 from "zod";
|
|
@@ -118,10 +127,17 @@ var ValidatePasswordResponseSchema = z4.object({
|
|
|
118
127
|
}).describe("Response schema for password validation");
|
|
119
128
|
|
|
120
129
|
export {
|
|
130
|
+
NewLoginRequestSchema,
|
|
131
|
+
NewLoginResponseSuccessSchema,
|
|
132
|
+
NewLoginResponseFailureSchema,
|
|
133
|
+
NewLoginResponseSchema,
|
|
121
134
|
NewLoginRequest,
|
|
122
135
|
NewLoginResponseSuccess,
|
|
123
136
|
NewLoginResponseFailure,
|
|
124
137
|
NewLoginResponse,
|
|
138
|
+
ConvexDriverSchema,
|
|
139
|
+
ConvexUpdateSchema,
|
|
140
|
+
BatchConvexUpdateSchema,
|
|
125
141
|
ConvexUpdate,
|
|
126
142
|
BatchConvexUpdate,
|
|
127
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,7 +65,7 @@ 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),
|
|
@@ -66,28 +73,34 @@ var NewLoginRequest = import_zod.z.object({
|
|
|
66
73
|
externalProviderAccountId: import_zod.z.string(),
|
|
67
74
|
convexUpdateUrl: import_zod.z.string().url().describe("The Convex function URL to send updates to")
|
|
68
75
|
});
|
|
69
|
-
var
|
|
76
|
+
var PublicUserSchema = import_zod.z.object({
|
|
70
77
|
id: import_zod.z.string(),
|
|
71
78
|
username: import_zod.z.string(),
|
|
72
79
|
created_at: import_zod.z.coerce.date(),
|
|
73
80
|
updated_at: import_zod.z.coerce.date()
|
|
74
81
|
});
|
|
75
|
-
var
|
|
82
|
+
var PublicProviderSchema = import_zod.z.object({
|
|
76
83
|
name: import_zod.z.string(),
|
|
77
84
|
url: UrlSchema
|
|
78
85
|
});
|
|
79
|
-
var
|
|
86
|
+
var NewLoginResponseSuccessSchema = import_zod.z.object({
|
|
87
|
+
success: import_zod.z.boolean().optional(),
|
|
80
88
|
message: import_zod.z.string(),
|
|
81
|
-
user:
|
|
82
|
-
provider:
|
|
89
|
+
user: PublicUserSchema,
|
|
90
|
+
provider: PublicProviderSchema,
|
|
83
91
|
driverIds: import_zod.z.array(import_zod.z.string()).describe("An array of driver IDs associated with the login"),
|
|
84
92
|
organizationId: import_zod.z.string().optional(),
|
|
85
93
|
honkUserId: import_zod.z.string().optional()
|
|
86
94
|
});
|
|
87
|
-
var
|
|
95
|
+
var NewLoginResponseFailureSchema = import_zod.z.object({
|
|
96
|
+
success: import_zod.z.boolean().optional(),
|
|
88
97
|
error: import_zod.z.string()
|
|
89
98
|
});
|
|
90
|
-
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;
|
|
91
104
|
|
|
92
105
|
// src/schemas/drivers/convex-update.ts
|
|
93
106
|
var import_zod2 = __toESM(require("zod"), 1);
|
|
@@ -102,34 +115,37 @@ var UrlSchema2 = import_zod2.default.string().refine(
|
|
|
102
115
|
},
|
|
103
116
|
{ message: "Invalid URL" }
|
|
104
117
|
);
|
|
105
|
-
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({
|
|
106
139
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
107
140
|
username: import_zod2.default.string().describe("The ELD account's login username"),
|
|
108
|
-
drivers: import_zod2.default.array(
|
|
109
|
-
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
110
|
-
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
111
|
-
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
|
112
|
-
time_remaining_in_shift: import_zod2.default.number().describe("Seconds remaining in current shift"),
|
|
113
|
-
time_remaining_till_break: import_zod2.default.number().describe("Seconds remaining until next required break"),
|
|
114
|
-
time_remaining_in_week: import_zod2.default.number().describe("Seconds remaining in current cycle/week"),
|
|
115
|
-
time_remaining_in_drive: import_zod2.default.number().describe("Seconds remaining in current drive period"),
|
|
116
|
-
driver_current_location_latitude: import_zod2.default.number().describe("Driver's current latitude"),
|
|
117
|
-
driver_current_location_longitude: import_zod2.default.number().describe("Driver's current longitude"),
|
|
118
|
-
driver_current_location_address: import_zod2.default.string().describe("Driver's current address"),
|
|
119
|
-
license_number: import_zod2.default.string().optional().describe("The driver's license number"),
|
|
120
|
-
license_state: import_zod2.default.string().optional().describe("The state that issued the driver's license"),
|
|
121
|
-
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
122
|
-
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
123
|
-
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
124
|
-
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
125
|
-
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
126
|
-
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
127
|
-
}).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"),
|
|
128
142
|
version: import_zod2.default.string().default("2.7.0").describe("The version of the Convex ELD API being used")
|
|
129
143
|
}).describe("Schema for updating driver ELD status information");
|
|
130
|
-
var
|
|
131
|
-
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")
|
|
132
146
|
}).describe("Schema for batch updating driver ELD status information");
|
|
147
|
+
var ConvexUpdate = ConvexUpdateSchema;
|
|
148
|
+
var BatchConvexUpdate = BatchConvexUpdateSchema;
|
|
133
149
|
|
|
134
150
|
// src/security/transit-crypto.ts
|
|
135
151
|
var import_node_crypto = require("crypto");
|
|
@@ -192,11 +208,18 @@ var ValidatePasswordResponseSchema = import_zod4.z.object({
|
|
|
192
208
|
// Annotate the CommonJS export names for ESM import in node:
|
|
193
209
|
0 && (module.exports = {
|
|
194
210
|
BatchConvexUpdate,
|
|
211
|
+
BatchConvexUpdateSchema,
|
|
212
|
+
ConvexDriverSchema,
|
|
195
213
|
ConvexUpdate,
|
|
214
|
+
ConvexUpdateSchema,
|
|
196
215
|
NewLoginRequest,
|
|
216
|
+
NewLoginRequestSchema,
|
|
197
217
|
NewLoginResponse,
|
|
198
218
|
NewLoginResponseFailure,
|
|
219
|
+
NewLoginResponseFailureSchema,
|
|
220
|
+
NewLoginResponseSchema,
|
|
199
221
|
NewLoginResponseSuccess,
|
|
222
|
+
NewLoginResponseSuccessSchema,
|
|
200
223
|
ScrapeStatus,
|
|
201
224
|
UpdateScrapeStatusMessage,
|
|
202
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,
|