@withloops.ai/contracts 0.3.1 → 0.4.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/api.d.ts +153 -0
- package/dist/api.js +86 -0
- package/dist/fields.d.ts +6 -0
- package/dist/fields.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/manifest.d.ts +516 -3
- package/dist/manifest.js +161 -3
- package/dist/registry.d.ts +151 -1
- package/dist/sync.d.ts +338 -0
- package/dist/sync.js +123 -0
- package/dist/trust.d.ts +1 -1
- package/examples/attio-sync.manifest.json +146 -0
- package/package.json +1 -1
- package/src/api.ts +110 -0
- package/src/fields.ts +11 -0
- package/src/index.ts +2 -0
- package/src/manifest.ts +161 -3
- package/src/sync.ts +229 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -12,6 +12,71 @@ export declare const RecordKind: z.ZodEnum<{
|
|
|
12
12
|
DEAL: "DEAL";
|
|
13
13
|
}>;
|
|
14
14
|
export type RecordKind = z.infer<typeof RecordKind>;
|
|
15
|
+
/**
|
|
16
|
+
* Added in 0.4.0 (L2). A JSON body template. A string that is exactly `{{name}}` takes the value as it is (type kept);
|
|
17
|
+
* `{{name}}` inside longer text is written as text. A key whose value comes out null or missing is left out, so is a null
|
|
18
|
+
* array item and an object left empty. Names: see `TEMPLATE_VARIABLES` in sync.ts. Pure: no code, no loops, no conditions.
|
|
19
|
+
*/
|
|
20
|
+
export declare const BodyTemplate: z.ZodJSONSchema;
|
|
21
|
+
/** Added in 0.4.0. A dotted path into a JSON answer: `data`, `values.name[0].first_name`, `values.associated_people[*].target_record_id`. */
|
|
22
|
+
export declare const JsonPath: z.ZodString;
|
|
23
|
+
/** Added in 0.4.0. Small pure value transforms, applied in order when reading their value. */
|
|
24
|
+
export declare const ValueTransform: z.ZodEnum<{
|
|
25
|
+
string: "string";
|
|
26
|
+
number: "number";
|
|
27
|
+
boolean: "boolean";
|
|
28
|
+
trim: "trim";
|
|
29
|
+
lower: "lower";
|
|
30
|
+
upper: "upper";
|
|
31
|
+
isoDate: "isoDate";
|
|
32
|
+
first: "first";
|
|
33
|
+
domainFromUrl: "domainFromUrl";
|
|
34
|
+
}>;
|
|
35
|
+
/** Added in 0.4.0. How a list call pages. `cursor`: their answer holds the next cursor; `offset`/`page`: count up until a short page. */
|
|
36
|
+
export declare const Paging: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
style: z.ZodLiteral<"cursor">;
|
|
38
|
+
param: z.ZodString;
|
|
39
|
+
nextPath: z.ZodString;
|
|
40
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
41
|
+
query: "query";
|
|
42
|
+
body: "body";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
style: z.ZodLiteral<"offset">;
|
|
46
|
+
param: z.ZodString;
|
|
47
|
+
sizeParam: z.ZodString;
|
|
48
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
50
|
+
query: "query";
|
|
51
|
+
body: "body";
|
|
52
|
+
}>>;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
style: z.ZodLiteral<"page">;
|
|
55
|
+
param: z.ZodString;
|
|
56
|
+
sizeParam: z.ZodString;
|
|
57
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
58
|
+
startAt: z.ZodDefault<z.ZodNumber>;
|
|
59
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
60
|
+
query: "query";
|
|
61
|
+
body: "body";
|
|
62
|
+
}>>;
|
|
63
|
+
}, z.core.$strip>], "style">;
|
|
64
|
+
export type Paging = z.infer<typeof Paging>;
|
|
65
|
+
/** Added in 0.4.0. One HTTP call against their API. `{id}` in the path is their record id. */
|
|
66
|
+
export declare const RecordCall: z.ZodObject<{
|
|
67
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
68
|
+
GET: "GET";
|
|
69
|
+
POST: "POST";
|
|
70
|
+
PUT: "PUT";
|
|
71
|
+
PATCH: "PATCH";
|
|
72
|
+
DELETE: "DELETE";
|
|
73
|
+
}>>;
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
76
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
77
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type RecordCall = z.infer<typeof RecordCall>;
|
|
15
80
|
export declare const SyncAuth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
81
|
type: z.ZodLiteral<"oauth2">;
|
|
17
82
|
authorizeUrl: z.ZodURL;
|
|
@@ -23,6 +88,8 @@ export declare const SyncAuth: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
23
88
|
type: z.ZodLiteral<"apiKey">;
|
|
24
89
|
header: z.ZodDefault<z.ZodString>;
|
|
25
90
|
prefix: z.ZodOptional<z.ZodString>;
|
|
91
|
+
label: z.ZodOptional<z.ZodString>;
|
|
92
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
26
93
|
}, z.core.$strip>], "type">;
|
|
27
94
|
export type SyncAuth = z.infer<typeof SyncAuth>;
|
|
28
95
|
/** Who owns a field. The customer's CRM owns its fields (locked in Loops); Loops owns its own. Owner wins, never last-write-wins. */
|
|
@@ -37,6 +104,17 @@ export declare const SyncField: z.ZodObject<{
|
|
|
37
104
|
theirs: "theirs";
|
|
38
105
|
ours: "ours";
|
|
39
106
|
}>;
|
|
107
|
+
transform: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
108
|
+
string: "string";
|
|
109
|
+
number: "number";
|
|
110
|
+
boolean: "boolean";
|
|
111
|
+
trim: "trim";
|
|
112
|
+
lower: "lower";
|
|
113
|
+
upper: "upper";
|
|
114
|
+
isoDate: "isoDate";
|
|
115
|
+
first: "first";
|
|
116
|
+
domainFromUrl: "domainFromUrl";
|
|
117
|
+
}>>>;
|
|
40
118
|
}, z.core.$strip>;
|
|
41
119
|
export declare const SyncObject: z.ZodObject<{
|
|
42
120
|
theirs: z.ZodString;
|
|
@@ -52,6 +130,39 @@ export declare const SyncObject: z.ZodObject<{
|
|
|
52
130
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
53
131
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
54
132
|
updatedSinceParam: z.ZodOptional<z.ZodString>;
|
|
133
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
134
|
+
GET: "GET";
|
|
135
|
+
POST: "POST";
|
|
136
|
+
}>>;
|
|
137
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
138
|
+
paging: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
139
|
+
style: z.ZodLiteral<"cursor">;
|
|
140
|
+
param: z.ZodString;
|
|
141
|
+
nextPath: z.ZodString;
|
|
142
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
query: "query";
|
|
144
|
+
body: "body";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
+
style: z.ZodLiteral<"offset">;
|
|
148
|
+
param: z.ZodString;
|
|
149
|
+
sizeParam: z.ZodString;
|
|
150
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
151
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
152
|
+
query: "query";
|
|
153
|
+
body: "body";
|
|
154
|
+
}>>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
style: z.ZodLiteral<"page">;
|
|
157
|
+
param: z.ZodString;
|
|
158
|
+
sizeParam: z.ZodString;
|
|
159
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
160
|
+
startAt: z.ZodDefault<z.ZodNumber>;
|
|
161
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
162
|
+
query: "query";
|
|
163
|
+
body: "body";
|
|
164
|
+
}>>;
|
|
165
|
+
}, z.core.$strip>], "style">>;
|
|
55
166
|
}, z.core.$strip>;
|
|
56
167
|
fields: z.ZodArray<z.ZodObject<{
|
|
57
168
|
theirs: z.ZodString;
|
|
@@ -60,8 +171,60 @@ export declare const SyncObject: z.ZodObject<{
|
|
|
60
171
|
theirs: "theirs";
|
|
61
172
|
ours: "ours";
|
|
62
173
|
}>;
|
|
174
|
+
transform: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
175
|
+
string: "string";
|
|
176
|
+
number: "number";
|
|
177
|
+
boolean: "boolean";
|
|
178
|
+
trim: "trim";
|
|
179
|
+
lower: "lower";
|
|
180
|
+
upper: "upper";
|
|
181
|
+
isoDate: "isoDate";
|
|
182
|
+
first: "first";
|
|
183
|
+
domainFromUrl: "domainFromUrl";
|
|
184
|
+
}>>>;
|
|
63
185
|
}, z.core.$strip>>;
|
|
64
186
|
match: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
187
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
188
|
+
updatedAtPath: z.ZodOptional<z.ZodString>;
|
|
189
|
+
get: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
191
|
+
GET: "GET";
|
|
192
|
+
POST: "POST";
|
|
193
|
+
PUT: "PUT";
|
|
194
|
+
PATCH: "PATCH";
|
|
195
|
+
DELETE: "DELETE";
|
|
196
|
+
}>>;
|
|
197
|
+
path: z.ZodString;
|
|
198
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
199
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
200
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
203
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
GET: "GET";
|
|
205
|
+
POST: "POST";
|
|
206
|
+
PUT: "PUT";
|
|
207
|
+
PATCH: "PATCH";
|
|
208
|
+
DELETE: "DELETE";
|
|
209
|
+
}>>;
|
|
210
|
+
path: z.ZodString;
|
|
211
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
212
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
213
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
217
|
+
GET: "GET";
|
|
218
|
+
POST: "POST";
|
|
219
|
+
PUT: "PUT";
|
|
220
|
+
PATCH: "PATCH";
|
|
221
|
+
DELETE: "DELETE";
|
|
222
|
+
}>>;
|
|
223
|
+
path: z.ZodString;
|
|
224
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
225
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
226
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strip>>;
|
|
65
228
|
}, z.core.$strip>;
|
|
66
229
|
export declare const SyncLink: z.ZodObject<{
|
|
67
230
|
from: z.ZodEnum<{
|
|
@@ -87,10 +250,58 @@ export declare const ChangeFeed: z.ZodObject<{
|
|
|
87
250
|
"hmac-sha1": "hmac-sha1";
|
|
88
251
|
}>;
|
|
89
252
|
header: z.ZodString;
|
|
253
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
hex: "hex";
|
|
255
|
+
base64: "base64";
|
|
256
|
+
}>>;
|
|
257
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
90
258
|
}, z.core.$strip>;
|
|
259
|
+
eventsPath: z.ZodOptional<z.ZodString>;
|
|
260
|
+
typePath: z.ZodOptional<z.ZodString>;
|
|
261
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
262
|
+
objectPath: z.ZodOptional<z.ZodString>;
|
|
263
|
+
types: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
created: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
265
|
+
updated: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
266
|
+
deleted: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
register: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
call: z.ZodObject<{
|
|
270
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
271
|
+
GET: "GET";
|
|
272
|
+
POST: "POST";
|
|
273
|
+
PUT: "PUT";
|
|
274
|
+
PATCH: "PATCH";
|
|
275
|
+
DELETE: "DELETE";
|
|
276
|
+
}>>;
|
|
277
|
+
path: z.ZodString;
|
|
278
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
279
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
280
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
281
|
+
}, z.core.$strip>;
|
|
282
|
+
secretPath: z.ZodString;
|
|
283
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
284
|
+
unregister: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
286
|
+
GET: "GET";
|
|
287
|
+
POST: "POST";
|
|
288
|
+
PUT: "PUT";
|
|
289
|
+
PATCH: "PATCH";
|
|
290
|
+
DELETE: "DELETE";
|
|
291
|
+
}>>;
|
|
292
|
+
path: z.ZodString;
|
|
293
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
294
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
295
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
91
298
|
}, z.core.$strip>>;
|
|
92
299
|
polling: z.ZodOptional<z.ZodObject<{
|
|
93
300
|
everyMinutes: z.ZodNumber;
|
|
301
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
updatedSince: "updatedSince";
|
|
303
|
+
full: "full";
|
|
304
|
+
}>>;
|
|
94
305
|
}, z.core.$strip>>;
|
|
95
306
|
}, z.core.$strip>;
|
|
96
307
|
/** What Loops writes back to the CRM timeline (Loops owns these). */
|
|
@@ -116,6 +327,8 @@ export declare const WriteBack: z.ZodRecord<z.ZodEnum<{
|
|
|
116
327
|
PATCH: "PATCH";
|
|
117
328
|
}>;
|
|
118
329
|
path: z.ZodString;
|
|
330
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
331
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
119
332
|
}, z.core.$strip>>;
|
|
120
333
|
export declare const SyncLimits: z.ZodObject<{
|
|
121
334
|
requestsPerSecond: z.ZodNumber;
|
|
@@ -135,6 +348,8 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
135
348
|
type: z.ZodLiteral<"apiKey">;
|
|
136
349
|
header: z.ZodDefault<z.ZodString>;
|
|
137
350
|
prefix: z.ZodOptional<z.ZodString>;
|
|
351
|
+
label: z.ZodOptional<z.ZodString>;
|
|
352
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
138
353
|
}, z.core.$strip>], "type">;
|
|
139
354
|
objects: z.ZodArray<z.ZodObject<{
|
|
140
355
|
theirs: z.ZodString;
|
|
@@ -150,6 +365,39 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
150
365
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
151
366
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
152
367
|
updatedSinceParam: z.ZodOptional<z.ZodString>;
|
|
368
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
369
|
+
GET: "GET";
|
|
370
|
+
POST: "POST";
|
|
371
|
+
}>>;
|
|
372
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
373
|
+
paging: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
374
|
+
style: z.ZodLiteral<"cursor">;
|
|
375
|
+
param: z.ZodString;
|
|
376
|
+
nextPath: z.ZodString;
|
|
377
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
378
|
+
query: "query";
|
|
379
|
+
body: "body";
|
|
380
|
+
}>>;
|
|
381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
382
|
+
style: z.ZodLiteral<"offset">;
|
|
383
|
+
param: z.ZodString;
|
|
384
|
+
sizeParam: z.ZodString;
|
|
385
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
386
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
387
|
+
query: "query";
|
|
388
|
+
body: "body";
|
|
389
|
+
}>>;
|
|
390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
+
style: z.ZodLiteral<"page">;
|
|
392
|
+
param: z.ZodString;
|
|
393
|
+
sizeParam: z.ZodString;
|
|
394
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
395
|
+
startAt: z.ZodDefault<z.ZodNumber>;
|
|
396
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
397
|
+
query: "query";
|
|
398
|
+
body: "body";
|
|
399
|
+
}>>;
|
|
400
|
+
}, z.core.$strip>], "style">>;
|
|
153
401
|
}, z.core.$strip>;
|
|
154
402
|
fields: z.ZodArray<z.ZodObject<{
|
|
155
403
|
theirs: z.ZodString;
|
|
@@ -158,8 +406,60 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
158
406
|
theirs: "theirs";
|
|
159
407
|
ours: "ours";
|
|
160
408
|
}>;
|
|
409
|
+
transform: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
410
|
+
string: "string";
|
|
411
|
+
number: "number";
|
|
412
|
+
boolean: "boolean";
|
|
413
|
+
trim: "trim";
|
|
414
|
+
lower: "lower";
|
|
415
|
+
upper: "upper";
|
|
416
|
+
isoDate: "isoDate";
|
|
417
|
+
first: "first";
|
|
418
|
+
domainFromUrl: "domainFromUrl";
|
|
419
|
+
}>>>;
|
|
161
420
|
}, z.core.$strip>>;
|
|
162
421
|
match: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
422
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
423
|
+
updatedAtPath: z.ZodOptional<z.ZodString>;
|
|
424
|
+
get: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
426
|
+
GET: "GET";
|
|
427
|
+
POST: "POST";
|
|
428
|
+
PUT: "PUT";
|
|
429
|
+
PATCH: "PATCH";
|
|
430
|
+
DELETE: "DELETE";
|
|
431
|
+
}>>;
|
|
432
|
+
path: z.ZodString;
|
|
433
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
434
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
435
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
436
|
+
}, z.core.$strip>>;
|
|
437
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
438
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
439
|
+
GET: "GET";
|
|
440
|
+
POST: "POST";
|
|
441
|
+
PUT: "PUT";
|
|
442
|
+
PATCH: "PATCH";
|
|
443
|
+
DELETE: "DELETE";
|
|
444
|
+
}>>;
|
|
445
|
+
path: z.ZodString;
|
|
446
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
447
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
448
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
451
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
452
|
+
GET: "GET";
|
|
453
|
+
POST: "POST";
|
|
454
|
+
PUT: "PUT";
|
|
455
|
+
PATCH: "PATCH";
|
|
456
|
+
DELETE: "DELETE";
|
|
457
|
+
}>>;
|
|
458
|
+
path: z.ZodString;
|
|
459
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
460
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
461
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
462
|
+
}, z.core.$strip>>;
|
|
163
463
|
}, z.core.$strip>>;
|
|
164
464
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
165
465
|
from: z.ZodEnum<{
|
|
@@ -185,10 +485,58 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
185
485
|
"hmac-sha1": "hmac-sha1";
|
|
186
486
|
}>;
|
|
187
487
|
header: z.ZodString;
|
|
488
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
489
|
+
hex: "hex";
|
|
490
|
+
base64: "base64";
|
|
491
|
+
}>>;
|
|
492
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
188
493
|
}, z.core.$strip>;
|
|
494
|
+
eventsPath: z.ZodOptional<z.ZodString>;
|
|
495
|
+
typePath: z.ZodOptional<z.ZodString>;
|
|
496
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
497
|
+
objectPath: z.ZodOptional<z.ZodString>;
|
|
498
|
+
types: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
created: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
500
|
+
updated: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
501
|
+
deleted: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
register: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
call: z.ZodObject<{
|
|
505
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
506
|
+
GET: "GET";
|
|
507
|
+
POST: "POST";
|
|
508
|
+
PUT: "PUT";
|
|
509
|
+
PATCH: "PATCH";
|
|
510
|
+
DELETE: "DELETE";
|
|
511
|
+
}>>;
|
|
512
|
+
path: z.ZodString;
|
|
513
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
514
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
515
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
secretPath: z.ZodString;
|
|
518
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
519
|
+
unregister: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
521
|
+
GET: "GET";
|
|
522
|
+
POST: "POST";
|
|
523
|
+
PUT: "PUT";
|
|
524
|
+
PATCH: "PATCH";
|
|
525
|
+
DELETE: "DELETE";
|
|
526
|
+
}>>;
|
|
527
|
+
path: z.ZodString;
|
|
528
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
529
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
530
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strip>>;
|
|
532
|
+
}, z.core.$strip>>;
|
|
189
533
|
}, z.core.$strip>>;
|
|
190
534
|
polling: z.ZodOptional<z.ZodObject<{
|
|
191
535
|
everyMinutes: z.ZodNumber;
|
|
536
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
updatedSince: "updatedSince";
|
|
538
|
+
full: "full";
|
|
539
|
+
}>>;
|
|
192
540
|
}, z.core.$strip>>;
|
|
193
541
|
}, z.core.$strip>;
|
|
194
542
|
writeBack: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
@@ -205,12 +553,27 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
205
553
|
PATCH: "PATCH";
|
|
206
554
|
}>;
|
|
207
555
|
path: z.ZodString;
|
|
556
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
557
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
208
558
|
}, z.core.$strip>>>;
|
|
209
559
|
limits: z.ZodObject<{
|
|
210
560
|
requestsPerSecond: z.ZodNumber;
|
|
211
561
|
burst: z.ZodOptional<z.ZodNumber>;
|
|
212
562
|
retryAfterHeader: z.ZodDefault<z.ZodString>;
|
|
213
563
|
}, z.core.$strip>;
|
|
564
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
566
|
+
GET: "GET";
|
|
567
|
+
POST: "POST";
|
|
568
|
+
PUT: "PUT";
|
|
569
|
+
PATCH: "PATCH";
|
|
570
|
+
DELETE: "DELETE";
|
|
571
|
+
}>>;
|
|
572
|
+
path: z.ZodString;
|
|
573
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
574
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
575
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>>;
|
|
214
577
|
}, z.core.$strip>;
|
|
215
578
|
export type SyncManifest = z.infer<typeof SyncManifest>;
|
|
216
579
|
export declare const SLOTS: readonly ["recordPanel", "recordTab", "recordAction", "bulkAction", "composerButton", "messageAction", "loopCard", "linkCard", "crmPanelItem", "settingsPage", "dashboardTile", "simiTool"];
|
|
@@ -248,10 +611,10 @@ export declare const ValueSource: z.ZodString;
|
|
|
248
611
|
export declare const ReturnType: z.ZodString;
|
|
249
612
|
export declare const Endpoint: z.ZodObject<{
|
|
250
613
|
method: z.ZodEnum<{
|
|
614
|
+
GET: "GET";
|
|
251
615
|
POST: "POST";
|
|
252
616
|
PUT: "PUT";
|
|
253
617
|
PATCH: "PATCH";
|
|
254
|
-
GET: "GET";
|
|
255
618
|
DELETE: "DELETE";
|
|
256
619
|
}>;
|
|
257
620
|
url: z.ZodURL;
|
|
@@ -325,10 +688,10 @@ export declare const UiManifest: z.ZodObject<{
|
|
|
325
688
|
}, z.core.$strip>], "type">>>;
|
|
326
689
|
endpoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
327
690
|
method: z.ZodEnum<{
|
|
691
|
+
GET: "GET";
|
|
328
692
|
POST: "POST";
|
|
329
693
|
PUT: "PUT";
|
|
330
694
|
PATCH: "PATCH";
|
|
331
|
-
GET: "GET";
|
|
332
695
|
DELETE: "DELETE";
|
|
333
696
|
}>;
|
|
334
697
|
url: z.ZodURL;
|
|
@@ -394,6 +757,8 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
394
757
|
type: z.ZodLiteral<"apiKey">;
|
|
395
758
|
header: z.ZodDefault<z.ZodString>;
|
|
396
759
|
prefix: z.ZodOptional<z.ZodString>;
|
|
760
|
+
label: z.ZodOptional<z.ZodString>;
|
|
761
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
397
762
|
}, z.core.$strip>], "type">;
|
|
398
763
|
objects: z.ZodArray<z.ZodObject<{
|
|
399
764
|
theirs: z.ZodString;
|
|
@@ -409,6 +774,39 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
409
774
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
410
775
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
411
776
|
updatedSinceParam: z.ZodOptional<z.ZodString>;
|
|
777
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
778
|
+
GET: "GET";
|
|
779
|
+
POST: "POST";
|
|
780
|
+
}>>;
|
|
781
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
782
|
+
paging: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
783
|
+
style: z.ZodLiteral<"cursor">;
|
|
784
|
+
param: z.ZodString;
|
|
785
|
+
nextPath: z.ZodString;
|
|
786
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
787
|
+
query: "query";
|
|
788
|
+
body: "body";
|
|
789
|
+
}>>;
|
|
790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
791
|
+
style: z.ZodLiteral<"offset">;
|
|
792
|
+
param: z.ZodString;
|
|
793
|
+
sizeParam: z.ZodString;
|
|
794
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
795
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
796
|
+
query: "query";
|
|
797
|
+
body: "body";
|
|
798
|
+
}>>;
|
|
799
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
800
|
+
style: z.ZodLiteral<"page">;
|
|
801
|
+
param: z.ZodString;
|
|
802
|
+
sizeParam: z.ZodString;
|
|
803
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
804
|
+
startAt: z.ZodDefault<z.ZodNumber>;
|
|
805
|
+
in: z.ZodDefault<z.ZodEnum<{
|
|
806
|
+
query: "query";
|
|
807
|
+
body: "body";
|
|
808
|
+
}>>;
|
|
809
|
+
}, z.core.$strip>], "style">>;
|
|
412
810
|
}, z.core.$strip>;
|
|
413
811
|
fields: z.ZodArray<z.ZodObject<{
|
|
414
812
|
theirs: z.ZodString;
|
|
@@ -417,8 +815,60 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
417
815
|
theirs: "theirs";
|
|
418
816
|
ours: "ours";
|
|
419
817
|
}>;
|
|
818
|
+
transform: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
819
|
+
string: "string";
|
|
820
|
+
number: "number";
|
|
821
|
+
boolean: "boolean";
|
|
822
|
+
trim: "trim";
|
|
823
|
+
lower: "lower";
|
|
824
|
+
upper: "upper";
|
|
825
|
+
isoDate: "isoDate";
|
|
826
|
+
first: "first";
|
|
827
|
+
domainFromUrl: "domainFromUrl";
|
|
828
|
+
}>>>;
|
|
420
829
|
}, z.core.$strip>>;
|
|
421
830
|
match: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
831
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
832
|
+
updatedAtPath: z.ZodOptional<z.ZodString>;
|
|
833
|
+
get: z.ZodOptional<z.ZodObject<{
|
|
834
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
835
|
+
GET: "GET";
|
|
836
|
+
POST: "POST";
|
|
837
|
+
PUT: "PUT";
|
|
838
|
+
PATCH: "PATCH";
|
|
839
|
+
DELETE: "DELETE";
|
|
840
|
+
}>>;
|
|
841
|
+
path: z.ZodString;
|
|
842
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
843
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
844
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$strip>>;
|
|
846
|
+
create: z.ZodOptional<z.ZodObject<{
|
|
847
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
848
|
+
GET: "GET";
|
|
849
|
+
POST: "POST";
|
|
850
|
+
PUT: "PUT";
|
|
851
|
+
PATCH: "PATCH";
|
|
852
|
+
DELETE: "DELETE";
|
|
853
|
+
}>>;
|
|
854
|
+
path: z.ZodString;
|
|
855
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
856
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
857
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
858
|
+
}, z.core.$strip>>;
|
|
859
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
860
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
861
|
+
GET: "GET";
|
|
862
|
+
POST: "POST";
|
|
863
|
+
PUT: "PUT";
|
|
864
|
+
PATCH: "PATCH";
|
|
865
|
+
DELETE: "DELETE";
|
|
866
|
+
}>>;
|
|
867
|
+
path: z.ZodString;
|
|
868
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
869
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
870
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
871
|
+
}, z.core.$strip>>;
|
|
422
872
|
}, z.core.$strip>>;
|
|
423
873
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
424
874
|
from: z.ZodEnum<{
|
|
@@ -444,10 +894,58 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
444
894
|
"hmac-sha1": "hmac-sha1";
|
|
445
895
|
}>;
|
|
446
896
|
header: z.ZodString;
|
|
897
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
898
|
+
hex: "hex";
|
|
899
|
+
base64: "base64";
|
|
900
|
+
}>>;
|
|
901
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
447
902
|
}, z.core.$strip>;
|
|
903
|
+
eventsPath: z.ZodOptional<z.ZodString>;
|
|
904
|
+
typePath: z.ZodOptional<z.ZodString>;
|
|
905
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
906
|
+
objectPath: z.ZodOptional<z.ZodString>;
|
|
907
|
+
types: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
created: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
909
|
+
updated: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
910
|
+
deleted: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
911
|
+
}, z.core.$strip>>;
|
|
912
|
+
register: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
call: z.ZodObject<{
|
|
914
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
915
|
+
GET: "GET";
|
|
916
|
+
POST: "POST";
|
|
917
|
+
PUT: "PUT";
|
|
918
|
+
PATCH: "PATCH";
|
|
919
|
+
DELETE: "DELETE";
|
|
920
|
+
}>>;
|
|
921
|
+
path: z.ZodString;
|
|
922
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
923
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
924
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
secretPath: z.ZodString;
|
|
927
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
928
|
+
unregister: z.ZodOptional<z.ZodObject<{
|
|
929
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
930
|
+
GET: "GET";
|
|
931
|
+
POST: "POST";
|
|
932
|
+
PUT: "PUT";
|
|
933
|
+
PATCH: "PATCH";
|
|
934
|
+
DELETE: "DELETE";
|
|
935
|
+
}>>;
|
|
936
|
+
path: z.ZodString;
|
|
937
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
938
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
939
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
940
|
+
}, z.core.$strip>>;
|
|
941
|
+
}, z.core.$strip>>;
|
|
448
942
|
}, z.core.$strip>>;
|
|
449
943
|
polling: z.ZodOptional<z.ZodObject<{
|
|
450
944
|
everyMinutes: z.ZodNumber;
|
|
945
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
946
|
+
updatedSince: "updatedSince";
|
|
947
|
+
full: "full";
|
|
948
|
+
}>>;
|
|
451
949
|
}, z.core.$strip>>;
|
|
452
950
|
}, z.core.$strip>;
|
|
453
951
|
writeBack: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
@@ -464,12 +962,27 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
464
962
|
PATCH: "PATCH";
|
|
465
963
|
}>;
|
|
466
964
|
path: z.ZodString;
|
|
965
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
966
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
467
967
|
}, z.core.$strip>>>;
|
|
468
968
|
limits: z.ZodObject<{
|
|
469
969
|
requestsPerSecond: z.ZodNumber;
|
|
470
970
|
burst: z.ZodOptional<z.ZodNumber>;
|
|
471
971
|
retryAfterHeader: z.ZodDefault<z.ZodString>;
|
|
472
972
|
}, z.core.$strip>;
|
|
973
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
974
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
975
|
+
GET: "GET";
|
|
976
|
+
POST: "POST";
|
|
977
|
+
PUT: "PUT";
|
|
978
|
+
PATCH: "PATCH";
|
|
979
|
+
DELETE: "DELETE";
|
|
980
|
+
}>>;
|
|
981
|
+
path: z.ZodString;
|
|
982
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
983
|
+
itemPath: z.ZodOptional<z.ZodString>;
|
|
984
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
985
|
+
}, z.core.$strip>>;
|
|
473
986
|
}, z.core.$strip>>;
|
|
474
987
|
ui: z.ZodOptional<z.ZodObject<{
|
|
475
988
|
apiVersion: z.ZodLiteral<1>;
|
|
@@ -526,10 +1039,10 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
526
1039
|
}, z.core.$strip>], "type">>>;
|
|
527
1040
|
endpoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
528
1041
|
method: z.ZodEnum<{
|
|
1042
|
+
GET: "GET";
|
|
529
1043
|
POST: "POST";
|
|
530
1044
|
PUT: "PUT";
|
|
531
1045
|
PATCH: "PATCH";
|
|
532
|
-
GET: "GET";
|
|
533
1046
|
DELETE: "DELETE";
|
|
534
1047
|
}>;
|
|
535
1048
|
url: z.ZodURL;
|