@withloops.ai/contracts 0.3.0 → 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 +519 -3
- package/dist/manifest.js +163 -3
- package/dist/registry.d.ts +152 -1
- package/dist/sync.d.ts +338 -0
- package/dist/sync.js +123 -0
- package/dist/trust.d.ts +31 -0
- package/dist/trust.js +20 -0
- 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 +163 -3
- package/src/sync.ts +229 -0
- package/src/trust.ts +25 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -12,16 +12,84 @@ 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;
|
|
18
83
|
tokenUrl: z.ZodURL;
|
|
84
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
19
85
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
86
|
refresh: z.ZodDefault<z.ZodBoolean>;
|
|
21
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
88
|
type: z.ZodLiteral<"apiKey">;
|
|
23
89
|
header: z.ZodDefault<z.ZodString>;
|
|
24
90
|
prefix: z.ZodOptional<z.ZodString>;
|
|
91
|
+
label: z.ZodOptional<z.ZodString>;
|
|
92
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
25
93
|
}, z.core.$strip>], "type">;
|
|
26
94
|
export type SyncAuth = z.infer<typeof SyncAuth>;
|
|
27
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. */
|
|
@@ -36,6 +104,17 @@ export declare const SyncField: z.ZodObject<{
|
|
|
36
104
|
theirs: "theirs";
|
|
37
105
|
ours: "ours";
|
|
38
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
|
+
}>>>;
|
|
39
118
|
}, z.core.$strip>;
|
|
40
119
|
export declare const SyncObject: z.ZodObject<{
|
|
41
120
|
theirs: z.ZodString;
|
|
@@ -51,6 +130,39 @@ export declare const SyncObject: z.ZodObject<{
|
|
|
51
130
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
52
131
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
53
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">>;
|
|
54
166
|
}, z.core.$strip>;
|
|
55
167
|
fields: z.ZodArray<z.ZodObject<{
|
|
56
168
|
theirs: z.ZodString;
|
|
@@ -59,8 +171,60 @@ export declare const SyncObject: z.ZodObject<{
|
|
|
59
171
|
theirs: "theirs";
|
|
60
172
|
ours: "ours";
|
|
61
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
|
+
}>>>;
|
|
62
185
|
}, z.core.$strip>>;
|
|
63
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>>;
|
|
64
228
|
}, z.core.$strip>;
|
|
65
229
|
export declare const SyncLink: z.ZodObject<{
|
|
66
230
|
from: z.ZodEnum<{
|
|
@@ -86,10 +250,58 @@ export declare const ChangeFeed: z.ZodObject<{
|
|
|
86
250
|
"hmac-sha1": "hmac-sha1";
|
|
87
251
|
}>;
|
|
88
252
|
header: z.ZodString;
|
|
253
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
hex: "hex";
|
|
255
|
+
base64: "base64";
|
|
256
|
+
}>>;
|
|
257
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
89
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>>;
|
|
90
298
|
}, z.core.$strip>>;
|
|
91
299
|
polling: z.ZodOptional<z.ZodObject<{
|
|
92
300
|
everyMinutes: z.ZodNumber;
|
|
301
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
updatedSince: "updatedSince";
|
|
303
|
+
full: "full";
|
|
304
|
+
}>>;
|
|
93
305
|
}, z.core.$strip>>;
|
|
94
306
|
}, z.core.$strip>;
|
|
95
307
|
/** What Loops writes back to the CRM timeline (Loops owns these). */
|
|
@@ -115,6 +327,8 @@ export declare const WriteBack: z.ZodRecord<z.ZodEnum<{
|
|
|
115
327
|
PATCH: "PATCH";
|
|
116
328
|
}>;
|
|
117
329
|
path: z.ZodString;
|
|
330
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
331
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
118
332
|
}, z.core.$strip>>;
|
|
119
333
|
export declare const SyncLimits: z.ZodObject<{
|
|
120
334
|
requestsPerSecond: z.ZodNumber;
|
|
@@ -127,12 +341,15 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
127
341
|
type: z.ZodLiteral<"oauth2">;
|
|
128
342
|
authorizeUrl: z.ZodURL;
|
|
129
343
|
tokenUrl: z.ZodURL;
|
|
344
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
130
345
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
131
346
|
refresh: z.ZodDefault<z.ZodBoolean>;
|
|
132
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
348
|
type: z.ZodLiteral<"apiKey">;
|
|
134
349
|
header: z.ZodDefault<z.ZodString>;
|
|
135
350
|
prefix: z.ZodOptional<z.ZodString>;
|
|
351
|
+
label: z.ZodOptional<z.ZodString>;
|
|
352
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
136
353
|
}, z.core.$strip>], "type">;
|
|
137
354
|
objects: z.ZodArray<z.ZodObject<{
|
|
138
355
|
theirs: z.ZodString;
|
|
@@ -148,6 +365,39 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
148
365
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
149
366
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
150
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">>;
|
|
151
401
|
}, z.core.$strip>;
|
|
152
402
|
fields: z.ZodArray<z.ZodObject<{
|
|
153
403
|
theirs: z.ZodString;
|
|
@@ -156,8 +406,60 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
156
406
|
theirs: "theirs";
|
|
157
407
|
ours: "ours";
|
|
158
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
|
+
}>>>;
|
|
159
420
|
}, z.core.$strip>>;
|
|
160
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>>;
|
|
161
463
|
}, z.core.$strip>>;
|
|
162
464
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
163
465
|
from: z.ZodEnum<{
|
|
@@ -183,10 +485,58 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
183
485
|
"hmac-sha1": "hmac-sha1";
|
|
184
486
|
}>;
|
|
185
487
|
header: z.ZodString;
|
|
488
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
489
|
+
hex: "hex";
|
|
490
|
+
base64: "base64";
|
|
491
|
+
}>>;
|
|
492
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
186
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>>;
|
|
187
533
|
}, z.core.$strip>>;
|
|
188
534
|
polling: z.ZodOptional<z.ZodObject<{
|
|
189
535
|
everyMinutes: z.ZodNumber;
|
|
536
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
updatedSince: "updatedSince";
|
|
538
|
+
full: "full";
|
|
539
|
+
}>>;
|
|
190
540
|
}, z.core.$strip>>;
|
|
191
541
|
}, z.core.$strip>;
|
|
192
542
|
writeBack: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
@@ -203,12 +553,27 @@ export declare const SyncManifest: z.ZodObject<{
|
|
|
203
553
|
PATCH: "PATCH";
|
|
204
554
|
}>;
|
|
205
555
|
path: z.ZodString;
|
|
556
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
557
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
206
558
|
}, z.core.$strip>>>;
|
|
207
559
|
limits: z.ZodObject<{
|
|
208
560
|
requestsPerSecond: z.ZodNumber;
|
|
209
561
|
burst: z.ZodOptional<z.ZodNumber>;
|
|
210
562
|
retryAfterHeader: z.ZodDefault<z.ZodString>;
|
|
211
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>>;
|
|
212
577
|
}, z.core.$strip>;
|
|
213
578
|
export type SyncManifest = z.infer<typeof SyncManifest>;
|
|
214
579
|
export declare const SLOTS: readonly ["recordPanel", "recordTab", "recordAction", "bulkAction", "composerButton", "messageAction", "loopCard", "linkCard", "crmPanelItem", "settingsPage", "dashboardTile", "simiTool"];
|
|
@@ -246,10 +611,10 @@ export declare const ValueSource: z.ZodString;
|
|
|
246
611
|
export declare const ReturnType: z.ZodString;
|
|
247
612
|
export declare const Endpoint: z.ZodObject<{
|
|
248
613
|
method: z.ZodEnum<{
|
|
614
|
+
GET: "GET";
|
|
249
615
|
POST: "POST";
|
|
250
616
|
PUT: "PUT";
|
|
251
617
|
PATCH: "PATCH";
|
|
252
|
-
GET: "GET";
|
|
253
618
|
DELETE: "DELETE";
|
|
254
619
|
}>;
|
|
255
620
|
url: z.ZodURL;
|
|
@@ -323,10 +688,10 @@ export declare const UiManifest: z.ZodObject<{
|
|
|
323
688
|
}, z.core.$strip>], "type">>>;
|
|
324
689
|
endpoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
325
690
|
method: z.ZodEnum<{
|
|
691
|
+
GET: "GET";
|
|
326
692
|
POST: "POST";
|
|
327
693
|
PUT: "PUT";
|
|
328
694
|
PATCH: "PATCH";
|
|
329
|
-
GET: "GET";
|
|
330
695
|
DELETE: "DELETE";
|
|
331
696
|
}>;
|
|
332
697
|
url: z.ZodURL;
|
|
@@ -385,12 +750,15 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
385
750
|
type: z.ZodLiteral<"oauth2">;
|
|
386
751
|
authorizeUrl: z.ZodURL;
|
|
387
752
|
tokenUrl: z.ZodURL;
|
|
753
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
388
754
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
389
755
|
refresh: z.ZodDefault<z.ZodBoolean>;
|
|
390
756
|
}, z.core.$strip>, z.ZodObject<{
|
|
391
757
|
type: z.ZodLiteral<"apiKey">;
|
|
392
758
|
header: z.ZodDefault<z.ZodString>;
|
|
393
759
|
prefix: z.ZodOptional<z.ZodString>;
|
|
760
|
+
label: z.ZodOptional<z.ZodString>;
|
|
761
|
+
helpUrl: z.ZodOptional<z.ZodURL>;
|
|
394
762
|
}, z.core.$strip>], "type">;
|
|
395
763
|
objects: z.ZodArray<z.ZodObject<{
|
|
396
764
|
theirs: z.ZodString;
|
|
@@ -406,6 +774,39 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
406
774
|
cursorParam: z.ZodOptional<z.ZodString>;
|
|
407
775
|
nextCursorPath: z.ZodOptional<z.ZodString>;
|
|
408
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">>;
|
|
409
810
|
}, z.core.$strip>;
|
|
410
811
|
fields: z.ZodArray<z.ZodObject<{
|
|
411
812
|
theirs: z.ZodString;
|
|
@@ -414,8 +815,60 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
414
815
|
theirs: "theirs";
|
|
415
816
|
ours: "ours";
|
|
416
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
|
+
}>>>;
|
|
417
829
|
}, z.core.$strip>>;
|
|
418
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>>;
|
|
419
872
|
}, z.core.$strip>>;
|
|
420
873
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
421
874
|
from: z.ZodEnum<{
|
|
@@ -441,10 +894,58 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
441
894
|
"hmac-sha1": "hmac-sha1";
|
|
442
895
|
}>;
|
|
443
896
|
header: z.ZodString;
|
|
897
|
+
encoding: z.ZodOptional<z.ZodEnum<{
|
|
898
|
+
hex: "hex";
|
|
899
|
+
base64: "base64";
|
|
900
|
+
}>>;
|
|
901
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
444
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>>;
|
|
445
942
|
}, z.core.$strip>>;
|
|
446
943
|
polling: z.ZodOptional<z.ZodObject<{
|
|
447
944
|
everyMinutes: z.ZodNumber;
|
|
945
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
946
|
+
updatedSince: "updatedSince";
|
|
947
|
+
full: "full";
|
|
948
|
+
}>>;
|
|
448
949
|
}, z.core.$strip>>;
|
|
449
950
|
}, z.core.$strip>;
|
|
450
951
|
writeBack: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
@@ -461,12 +962,27 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
461
962
|
PATCH: "PATCH";
|
|
462
963
|
}>;
|
|
463
964
|
path: z.ZodString;
|
|
965
|
+
body: z.ZodOptional<z.ZodJSONSchema>;
|
|
966
|
+
idPath: z.ZodOptional<z.ZodString>;
|
|
464
967
|
}, z.core.$strip>>>;
|
|
465
968
|
limits: z.ZodObject<{
|
|
466
969
|
requestsPerSecond: z.ZodNumber;
|
|
467
970
|
burst: z.ZodOptional<z.ZodNumber>;
|
|
468
971
|
retryAfterHeader: z.ZodDefault<z.ZodString>;
|
|
469
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>>;
|
|
470
986
|
}, z.core.$strip>>;
|
|
471
987
|
ui: z.ZodOptional<z.ZodObject<{
|
|
472
988
|
apiVersion: z.ZodLiteral<1>;
|
|
@@ -523,10 +1039,10 @@ export declare const ManifestV1: z.ZodObject<{
|
|
|
523
1039
|
}, z.core.$strip>], "type">>>;
|
|
524
1040
|
endpoints: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
525
1041
|
method: z.ZodEnum<{
|
|
1042
|
+
GET: "GET";
|
|
526
1043
|
POST: "POST";
|
|
527
1044
|
PUT: "PUT";
|
|
528
1045
|
PATCH: "PATCH";
|
|
529
|
-
GET: "GET";
|
|
530
1046
|
DELETE: "DELETE";
|
|
531
1047
|
}>;
|
|
532
1048
|
url: z.ZodURL;
|