@ourofoundation/ouro-js 3.2.4 → 3.3.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/chunk-42EQ7ULD.cjs +2 -0
- package/dist/chunk-42EQ7ULD.cjs.map +1 -0
- package/dist/chunk-43KB23BA.cjs +2 -0
- package/dist/chunk-43KB23BA.cjs.map +1 -0
- package/dist/{chunk-7RF362MN.cjs → chunk-4K6R6FZD.cjs} +2 -2
- package/dist/{chunk-7RF362MN.cjs.map → chunk-4K6R6FZD.cjs.map} +1 -1
- package/dist/{chunk-SKQ6BRPY.js → chunk-6YF2RSXS.js} +2 -2
- package/dist/{chunk-SKQ6BRPY.js.map → chunk-6YF2RSXS.js.map} +1 -1
- package/dist/{chunk-TGAK4B5M.js → chunk-B4225TEG.js} +2 -2
- package/dist/{chunk-TGAK4B5M.js.map → chunk-B4225TEG.js.map} +1 -1
- package/dist/{chunk-Q34MIANF.js → chunk-BFBGVGNF.js} +2 -2
- package/dist/{chunk-Q34MIANF.js.map → chunk-BFBGVGNF.js.map} +1 -1
- package/dist/{chunk-OFSSOFOC.cjs → chunk-BQ5WODME.cjs} +2 -2
- package/dist/{chunk-OFSSOFOC.cjs.map → chunk-BQ5WODME.cjs.map} +1 -1
- package/dist/{chunk-WYHO26N6.js → chunk-CF56NFUG.js} +2 -2
- package/dist/{chunk-WYHO26N6.js.map → chunk-CF56NFUG.js.map} +1 -1
- package/dist/chunk-CIWFH5BJ.js +2 -0
- package/dist/chunk-CIWFH5BJ.js.map +1 -0
- package/dist/chunk-EY4OFSDP.js +2 -0
- package/dist/chunk-EY4OFSDP.js.map +1 -0
- package/dist/chunk-FDKZIS34.js +2 -0
- package/dist/chunk-FDKZIS34.js.map +1 -0
- package/dist/chunk-G24BRDHO.cjs +2 -0
- package/dist/chunk-G24BRDHO.cjs.map +1 -0
- package/dist/{chunk-KZOOYWQ7.js → chunk-G2MXCB7Q.js} +2 -2
- package/dist/{chunk-KZOOYWQ7.js.map → chunk-G2MXCB7Q.js.map} +1 -1
- package/dist/{chunk-FQ4F7DQH.cjs → chunk-IP4OVRZB.cjs} +2 -2
- package/dist/{chunk-FQ4F7DQH.cjs.map → chunk-IP4OVRZB.cjs.map} +1 -1
- package/dist/{chunk-XIH622YH.js → chunk-JISPX5A6.js} +2 -2
- package/dist/{chunk-XIH622YH.js.map → chunk-JISPX5A6.js.map} +1 -1
- package/dist/{chunk-KYK27OHG.cjs → chunk-MH4A7XAY.cjs} +2 -2
- package/dist/{chunk-KYK27OHG.cjs.map → chunk-MH4A7XAY.cjs.map} +1 -1
- package/dist/chunk-MOEVC3KD.cjs +2 -0
- package/dist/chunk-MOEVC3KD.cjs.map +1 -0
- package/dist/chunk-NEINJFFK.cjs +2 -0
- package/dist/{chunk-CVFVOARW.cjs.map → chunk-NEINJFFK.cjs.map} +1 -1
- package/dist/{chunk-P5JYABNP.cjs → chunk-QT3A4ULM.cjs} +2 -2
- package/dist/{chunk-P5JYABNP.cjs.map → chunk-QT3A4ULM.cjs.map} +1 -1
- package/dist/{chunk-7SSENGQL.js → chunk-U3F23ASS.js} +2 -2
- package/dist/{chunk-7SSENGQL.js.map → chunk-U3F23ASS.js.map} +1 -1
- package/dist/chunk-UY43EQTO.cjs +2 -0
- package/dist/{chunk-IW4MZW5P.cjs.map → chunk-UY43EQTO.cjs.map} +1 -1
- package/dist/{chunk-OIPOIY6M.cjs → chunk-VOY623ZD.cjs} +2 -2
- package/dist/{chunk-OIPOIY6M.cjs.map → chunk-VOY623ZD.cjs.map} +1 -1
- package/dist/{chunk-MB4EEZKP.js → chunk-WLGOABHV.js} +2 -2
- package/dist/{chunk-MB4EEZKP.js.map → chunk-WLGOABHV.js.map} +1 -1
- package/dist/chunk-WRHPQNEL.js +2 -0
- package/dist/chunk-WRHPQNEL.js.map +1 -0
- package/dist/{chunk-V5DSXK34.cjs → chunk-WUC5AUUJ.cjs} +2 -2
- package/dist/{chunk-V5DSXK34.cjs.map → chunk-WUC5AUUJ.cjs.map} +1 -1
- package/dist/{chunk-XWUYZSVO.js → chunk-Y6AKG4FJ.js} +2 -2
- package/dist/{chunk-XWUYZSVO.js.map → chunk-Y6AKG4FJ.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/schema/assets.cjs +1 -1
- package/dist/schema/assets.d.cts +84 -90
- package/dist/schema/assets.d.ts +84 -90
- package/dist/schema/assets.js +1 -1
- package/dist/schema/comments.cjs +1 -1
- package/dist/schema/comments.d.cts +136 -136
- package/dist/schema/comments.d.ts +136 -136
- package/dist/schema/comments.js +1 -1
- package/dist/schema/common.cjs +1 -1
- package/dist/schema/common.d.cts +17 -28
- package/dist/schema/common.d.ts +17 -28
- package/dist/schema/common.js +1 -1
- package/dist/schema/conversations.cjs +1 -1
- package/dist/schema/conversations.d.cts +69 -71
- package/dist/schema/conversations.d.ts +69 -71
- package/dist/schema/conversations.js +1 -1
- package/dist/schema/datasets.cjs +1 -1
- package/dist/schema/datasets.d.cts +106 -106
- package/dist/schema/datasets.d.ts +106 -106
- package/dist/schema/datasets.js +1 -1
- package/dist/schema/events.cjs +2 -0
- package/dist/schema/events.cjs.map +1 -0
- package/dist/schema/events.d.cts +113 -0
- package/dist/schema/events.d.ts +113 -0
- package/dist/schema/events.js +2 -0
- package/dist/schema/events.js.map +1 -0
- package/dist/schema/files.cjs +1 -1
- package/dist/schema/files.d.cts +100 -100
- package/dist/schema/files.d.ts +100 -100
- package/dist/schema/files.js +1 -1
- package/dist/schema/notifications.cjs +1 -1
- package/dist/schema/notifications.d.cts +2 -4
- package/dist/schema/notifications.d.ts +2 -4
- package/dist/schema/notifications.js +1 -1
- package/dist/schema/organizations.cjs +1 -1
- package/dist/schema/organizations.d.cts +1 -1
- package/dist/schema/organizations.d.ts +1 -1
- package/dist/schema/organizations.js +1 -1
- package/dist/schema/posts.cjs +1 -1
- package/dist/schema/posts.d.cts +127 -137
- package/dist/schema/posts.d.ts +127 -137
- package/dist/schema/posts.js +1 -1
- package/dist/schema/services.cjs +1 -1
- package/dist/schema/services.d.cts +124 -131
- package/dist/schema/services.d.ts +124 -131
- package/dist/schema/services.js +1 -1
- package/dist/schema/teams.cjs +1 -1
- package/dist/schema/teams.d.cts +18 -18
- package/dist/schema/teams.d.ts +18 -18
- package/dist/schema/teams.js +1 -1
- package/dist/utils/navigate.cjs +1 -1
- package/dist/utils/navigate.d.cts +2 -2
- package/dist/utils/navigate.d.ts +2 -2
- package/dist/utils/navigate.js +1 -1
- package/package.json +1 -1
- package/scripts/dump-events.ts +10 -0
- package/dist/chunk-3ZHWBPGA.cjs +0 -2
- package/dist/chunk-3ZHWBPGA.cjs.map +0 -1
- package/dist/chunk-6AK3RVZR.cjs +0 -2
- package/dist/chunk-6AK3RVZR.cjs.map +0 -1
- package/dist/chunk-6RGIIOOP.js +0 -2
- package/dist/chunk-6RGIIOOP.js.map +0 -1
- package/dist/chunk-6TOGDJKP.cjs +0 -2
- package/dist/chunk-6TOGDJKP.cjs.map +0 -1
- package/dist/chunk-7ABFUHWW.js +0 -2
- package/dist/chunk-7ABFUHWW.js.map +0 -1
- package/dist/chunk-BU2S7UEL.js +0 -2
- package/dist/chunk-BU2S7UEL.js.map +0 -1
- package/dist/chunk-CVFVOARW.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs +0 -2
- package/dist/chunk-DHQJ2FCF.cjs.map +0 -1
- package/dist/chunk-FNW6DDNP.cjs +0 -2
- package/dist/chunk-FNW6DDNP.cjs.map +0 -1
- package/dist/chunk-IW4MZW5P.cjs +0 -2
- package/dist/chunk-JPCZIGX2.js +0 -2
- package/dist/chunk-JPCZIGX2.js.map +0 -1
- package/dist/chunk-XMYZV7TD.js +0 -2
- package/dist/chunk-XMYZV7TD.js.map +0 -1
- package/dist/schema/blueprints.cjs +0 -2
- package/dist/schema/blueprints.cjs.map +0 -1
- package/dist/schema/blueprints.d.cts +0 -823
- package/dist/schema/blueprints.d.ts +0 -823
- package/dist/schema/blueprints.js +0 -2
- package/dist/schema/blueprints.js.map +0 -1
- package/dist/schema/replications.cjs +0 -2
- package/dist/schema/replications.cjs.map +0 -1
- package/dist/schema/replications.d.cts +0 -827
- package/dist/schema/replications.d.ts +0 -827
- package/dist/schema/replications.js +0 -2
- package/dist/schema/replications.js.map +0 -1
|
@@ -108,9 +108,9 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
108
108
|
none: "none";
|
|
109
109
|
}>>;
|
|
110
110
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
111
|
-
organization: "organization";
|
|
112
111
|
public: "public";
|
|
113
112
|
private: "private";
|
|
113
|
+
organization: "organization";
|
|
114
114
|
monetized: "monetized";
|
|
115
115
|
inherit: "inherit";
|
|
116
116
|
}>>;
|
|
@@ -182,9 +182,9 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
182
182
|
text: z.ZodString;
|
|
183
183
|
}, z.core.$strip>>>;
|
|
184
184
|
visibility: z.ZodEnum<{
|
|
185
|
-
organization: "organization";
|
|
186
185
|
public: "public";
|
|
187
186
|
private: "private";
|
|
187
|
+
organization: "organization";
|
|
188
188
|
monetized: "monetized";
|
|
189
189
|
inherit: "inherit";
|
|
190
190
|
}>;
|
|
@@ -209,14 +209,14 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
209
209
|
stripe_meter_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
210
|
state: z.ZodEnum<{
|
|
211
211
|
success: "success";
|
|
212
|
+
error: "error";
|
|
212
213
|
queued: "queued";
|
|
213
214
|
"in-progress": "in-progress";
|
|
214
215
|
"timed-out": "timed-out";
|
|
215
|
-
error: "error";
|
|
216
216
|
}>;
|
|
217
217
|
source: z.ZodEnum<{
|
|
218
|
-
api: "api";
|
|
219
218
|
web: "web";
|
|
219
|
+
api: "api";
|
|
220
220
|
}>;
|
|
221
221
|
created_at: z.ZodString;
|
|
222
222
|
last_updated: z.ZodString;
|
|
@@ -251,15 +251,15 @@ declare const DatasetSchema: z.ZodObject<{
|
|
|
251
251
|
}, z.core.$strip>;
|
|
252
252
|
declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
253
253
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
254
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
255
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
256
|
-
text: z.ZodString;
|
|
257
|
-
}, z.core.$strip>>>>;
|
|
258
254
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
259
255
|
none: "none";
|
|
260
256
|
"pay-to-unlock": "pay-to-unlock";
|
|
261
257
|
"pay-per-use": "pay-per-use";
|
|
262
258
|
}>>;
|
|
259
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
260
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
261
|
+
text: z.ZodString;
|
|
262
|
+
}, z.core.$strip>>>>;
|
|
263
263
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
264
264
|
license_id: z.ZodOptional<z.ZodString>;
|
|
265
265
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -283,19 +283,19 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
283
283
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
284
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
285
285
|
success: "success";
|
|
286
|
+
error: "error";
|
|
286
287
|
queued: "queued";
|
|
287
288
|
"in-progress": "in-progress";
|
|
288
289
|
"timed-out": "timed-out";
|
|
289
|
-
error: "error";
|
|
290
290
|
}>>>;
|
|
291
291
|
source: z.ZodDefault<z.ZodEnum<{
|
|
292
|
-
api: "api";
|
|
293
292
|
web: "web";
|
|
293
|
+
api: "api";
|
|
294
294
|
}>>;
|
|
295
295
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
296
|
-
organization: "organization";
|
|
297
296
|
public: "public";
|
|
298
297
|
private: "private";
|
|
298
|
+
organization: "organization";
|
|
299
299
|
monetized: "monetized";
|
|
300
300
|
inherit: "inherit";
|
|
301
301
|
}>>>;
|
|
@@ -334,9 +334,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
334
334
|
team_id: string | null;
|
|
335
335
|
org_id: string | null;
|
|
336
336
|
name: string;
|
|
337
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
338
|
-
source: "
|
|
339
|
-
visibility: "
|
|
337
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
338
|
+
source: "web" | "api";
|
|
339
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
340
340
|
created_at: string;
|
|
341
341
|
last_updated: string;
|
|
342
342
|
asset_type: "dataset";
|
|
@@ -361,11 +361,11 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
361
361
|
};
|
|
362
362
|
preview: Record<string, any>[];
|
|
363
363
|
parent?: Record<string, any> | undefined;
|
|
364
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
364
365
|
description?: {
|
|
365
366
|
json: Record<string, any>;
|
|
366
367
|
text: string;
|
|
367
368
|
} | null | undefined;
|
|
368
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
369
369
|
parent_id?: string | null | undefined;
|
|
370
370
|
license_id?: string | undefined;
|
|
371
371
|
price?: number | null | undefined;
|
|
@@ -382,9 +382,9 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
382
382
|
team_id: string | null;
|
|
383
383
|
org_id: string | null;
|
|
384
384
|
name: string;
|
|
385
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
386
|
-
source: "
|
|
387
|
-
visibility: "
|
|
385
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
386
|
+
source: "web" | "api";
|
|
387
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
388
388
|
created_at: string;
|
|
389
389
|
last_updated: string;
|
|
390
390
|
asset_type: "dataset";
|
|
@@ -409,11 +409,11 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
409
409
|
};
|
|
410
410
|
preview: Record<string, any>[];
|
|
411
411
|
parent?: Record<string, any> | undefined;
|
|
412
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
412
413
|
description?: {
|
|
413
414
|
json: Record<string, any>;
|
|
414
415
|
text: string;
|
|
415
416
|
} | null | undefined;
|
|
416
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
417
417
|
parent_id?: string | null | undefined;
|
|
418
418
|
license_id?: string | undefined;
|
|
419
419
|
price?: number | null | undefined;
|
|
@@ -428,15 +428,15 @@ declare const CreateDatasetFromFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
428
428
|
}>>;
|
|
429
429
|
declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
430
430
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
431
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
432
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
433
|
-
text: z.ZodString;
|
|
434
|
-
}, z.core.$strip>>>>;
|
|
435
431
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
436
432
|
none: "none";
|
|
437
433
|
"pay-to-unlock": "pay-to-unlock";
|
|
438
434
|
"pay-per-use": "pay-per-use";
|
|
439
435
|
}>>;
|
|
436
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
437
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
438
|
+
text: z.ZodString;
|
|
439
|
+
}, z.core.$strip>>>>;
|
|
440
440
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
441
441
|
license_id: z.ZodOptional<z.ZodString>;
|
|
442
442
|
price: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -460,19 +460,19 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
460
460
|
name_url_slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
461
|
state: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
462
462
|
success: "success";
|
|
463
|
+
error: "error";
|
|
463
464
|
queued: "queued";
|
|
464
465
|
"in-progress": "in-progress";
|
|
465
466
|
"timed-out": "timed-out";
|
|
466
|
-
error: "error";
|
|
467
467
|
}>>>;
|
|
468
468
|
source: z.ZodDefault<z.ZodEnum<{
|
|
469
|
-
api: "api";
|
|
470
469
|
web: "web";
|
|
470
|
+
api: "api";
|
|
471
471
|
}>>;
|
|
472
472
|
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
473
|
-
organization: "organization";
|
|
474
473
|
public: "public";
|
|
475
474
|
private: "private";
|
|
475
|
+
organization: "organization";
|
|
476
476
|
monetized: "monetized";
|
|
477
477
|
inherit: "inherit";
|
|
478
478
|
}>>>;
|
|
@@ -501,9 +501,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
501
501
|
team_id: string | null;
|
|
502
502
|
org_id: string | null;
|
|
503
503
|
name: string;
|
|
504
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
505
|
-
source: "
|
|
506
|
-
visibility: "
|
|
504
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
505
|
+
source: "web" | "api";
|
|
506
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
507
507
|
created_at: string;
|
|
508
508
|
last_updated: string;
|
|
509
509
|
asset_type: "dataset";
|
|
@@ -521,11 +521,11 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
521
521
|
};
|
|
522
522
|
preview: Record<string, any>[];
|
|
523
523
|
parent?: Record<string, any> | undefined;
|
|
524
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
524
525
|
description?: {
|
|
525
526
|
json: Record<string, any>;
|
|
526
527
|
text: string;
|
|
527
528
|
} | null | undefined;
|
|
528
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
529
529
|
parent_id?: string | null | undefined;
|
|
530
530
|
license_id?: string | undefined;
|
|
531
531
|
price?: number | null | undefined;
|
|
@@ -542,9 +542,9 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
542
542
|
team_id: string | null;
|
|
543
543
|
org_id: string | null;
|
|
544
544
|
name: string;
|
|
545
|
-
state: "success" | "queued" | "in-progress" | "timed-out"
|
|
546
|
-
source: "
|
|
547
|
-
visibility: "
|
|
545
|
+
state: "success" | "error" | "queued" | "in-progress" | "timed-out";
|
|
546
|
+
source: "web" | "api";
|
|
547
|
+
visibility: "public" | "private" | "organization" | "monetized" | "inherit";
|
|
548
548
|
created_at: string;
|
|
549
549
|
last_updated: string;
|
|
550
550
|
asset_type: "dataset";
|
|
@@ -562,11 +562,11 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
562
562
|
};
|
|
563
563
|
preview: Record<string, any>[];
|
|
564
564
|
parent?: Record<string, any> | undefined;
|
|
565
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
565
566
|
description?: {
|
|
566
567
|
json: Record<string, any>;
|
|
567
568
|
text: string;
|
|
568
569
|
} | null | undefined;
|
|
569
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
570
570
|
parent_id?: string | null | undefined;
|
|
571
571
|
license_id?: string | undefined;
|
|
572
572
|
price?: number | null | undefined;
|
|
@@ -580,51 +580,18 @@ declare const CreateDatasetFromSchemaSchema: z.ZodPipe<z.ZodObject<{
|
|
|
580
580
|
name_url_slug?: string | null | undefined;
|
|
581
581
|
}>>;
|
|
582
582
|
declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
583
|
-
org_id: z.ZodOptional<z.ZodUUID>;
|
|
584
583
|
parent: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
590
|
-
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
591
|
-
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
592
|
-
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
593
|
-
originality: z.ZodOptional<z.ZodEnum<{
|
|
594
|
-
original: "original";
|
|
595
|
-
derivative: "derivative";
|
|
596
|
-
"third-party": "third-party";
|
|
597
|
-
}>>;
|
|
598
|
-
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
599
|
-
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
600
|
-
type: z.ZodOptional<z.ZodString>;
|
|
601
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
602
|
-
path: z.ZodOptional<z.ZodString>;
|
|
603
|
-
extension: z.ZodOptional<z.ZodString>;
|
|
604
|
-
name: z.ZodOptional<z.ZodString>;
|
|
605
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
606
|
-
bucket: z.ZodOptional<z.ZodEnum<{
|
|
607
|
-
"public-files": "public-files";
|
|
608
|
-
files: "files";
|
|
609
|
-
}>>;
|
|
610
|
-
}, z.core.$strip>>;
|
|
611
|
-
name: z.ZodOptional<z.ZodString>;
|
|
612
|
-
team_id: z.ZodOptional<z.ZodUUID>;
|
|
584
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
web: "web";
|
|
586
|
+
api: "api";
|
|
587
|
+
}>>;
|
|
613
588
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
614
|
-
organization: "organization";
|
|
615
589
|
public: "public";
|
|
616
590
|
private: "private";
|
|
591
|
+
organization: "organization";
|
|
617
592
|
monetized: "monetized";
|
|
618
593
|
inherit: "inherit";
|
|
619
594
|
}>>;
|
|
620
|
-
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
621
|
-
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
622
|
-
text: z.ZodString;
|
|
623
|
-
}, z.core.$strip>>>>;
|
|
624
|
-
source: z.ZodOptional<z.ZodEnum<{
|
|
625
|
-
api: "api";
|
|
626
|
-
web: "web";
|
|
627
|
-
}>>;
|
|
628
595
|
monetization: z.ZodOptional<z.ZodEnum<{
|
|
629
596
|
none: "none";
|
|
630
597
|
"pay-to-unlock": "pay-to-unlock";
|
|
@@ -632,11 +599,18 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
632
599
|
}>>;
|
|
633
600
|
state: z.ZodOptional<z.ZodEnum<{
|
|
634
601
|
success: "success";
|
|
602
|
+
error: "error";
|
|
635
603
|
queued: "queued";
|
|
636
604
|
"in-progress": "in-progress";
|
|
637
605
|
"timed-out": "timed-out";
|
|
638
|
-
error: "error";
|
|
639
606
|
}>>;
|
|
607
|
+
name: z.ZodOptional<z.ZodString>;
|
|
608
|
+
org_id: z.ZodOptional<z.ZodUUID>;
|
|
609
|
+
team_id: z.ZodOptional<z.ZodUUID>;
|
|
610
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
611
|
+
json: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
612
|
+
text: z.ZodString;
|
|
613
|
+
}, z.core.$strip>>>>;
|
|
640
614
|
parent_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUUID>>>;
|
|
641
615
|
license_id: z.ZodOptional<z.ZodString>;
|
|
642
616
|
license: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -655,14 +629,62 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
655
629
|
stripe_product_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
656
630
|
stripe_price_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
657
631
|
stripe_meter_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
632
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
633
|
+
table_name: z.ZodString;
|
|
634
|
+
schema: z.ZodDefault<z.ZodLiteral<"datasets">>;
|
|
635
|
+
columns: z.ZodArray<z.ZodString>;
|
|
636
|
+
doi_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
637
|
+
external_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
638
|
+
paper_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
639
|
+
github_url: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
640
|
+
originality: z.ZodOptional<z.ZodEnum<{
|
|
641
|
+
original: "original";
|
|
642
|
+
derivative: "derivative";
|
|
643
|
+
"third-party": "third-party";
|
|
644
|
+
}>>;
|
|
645
|
+
source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
646
|
+
reply_to_comment_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
647
|
+
type: z.ZodOptional<z.ZodString>;
|
|
648
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
649
|
+
path: z.ZodOptional<z.ZodString>;
|
|
650
|
+
extension: z.ZodOptional<z.ZodString>;
|
|
651
|
+
name: z.ZodOptional<z.ZodString>;
|
|
652
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
653
|
+
bucket: z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
"public-files": "public-files";
|
|
655
|
+
files: "files";
|
|
656
|
+
}>>;
|
|
657
|
+
}, z.core.$strip>>;
|
|
658
658
|
preview: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
659
659
|
asset_type: z.ZodDefault<z.ZodLiteral<"dataset">>;
|
|
660
660
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
661
661
|
}, z.core.$strip>, z.ZodTransform<{
|
|
662
662
|
asset_type: "dataset";
|
|
663
663
|
last_updated: string;
|
|
664
|
-
org_id?: string | undefined;
|
|
665
664
|
parent?: Record<string, any> | undefined;
|
|
665
|
+
source?: "web" | "api" | undefined;
|
|
666
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
667
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
668
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
669
|
+
name?: string | undefined;
|
|
670
|
+
org_id?: string | undefined;
|
|
671
|
+
team_id?: string | undefined;
|
|
672
|
+
description?: {
|
|
673
|
+
json: Record<string, any>;
|
|
674
|
+
text: string;
|
|
675
|
+
} | null | undefined;
|
|
676
|
+
parent_id?: string | null | undefined;
|
|
677
|
+
license_id?: string | undefined;
|
|
678
|
+
license?: Record<string, any> | undefined;
|
|
679
|
+
name_url_slug?: string | null | undefined;
|
|
680
|
+
price?: number | null | undefined;
|
|
681
|
+
unit_cost?: number | null | undefined;
|
|
682
|
+
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
683
|
+
cost_unit?: string | null | undefined;
|
|
684
|
+
price_currency?: "usd" | "btc" | undefined;
|
|
685
|
+
stripe_product_id?: string | null | undefined;
|
|
686
|
+
stripe_price_id?: string | null | undefined;
|
|
687
|
+
stripe_meter_id?: string | null | undefined;
|
|
666
688
|
metadata?: {
|
|
667
689
|
table_name: string;
|
|
668
690
|
schema: "datasets";
|
|
@@ -682,16 +704,22 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
682
704
|
id?: string | undefined;
|
|
683
705
|
bucket?: "public-files" | "files" | undefined;
|
|
684
706
|
} | undefined;
|
|
707
|
+
preview?: Record<string, any>[] | undefined;
|
|
708
|
+
}, {
|
|
709
|
+
asset_type: "dataset";
|
|
710
|
+
last_updated: string;
|
|
711
|
+
parent?: Record<string, any> | undefined;
|
|
712
|
+
source?: "web" | "api" | undefined;
|
|
713
|
+
visibility?: "public" | "private" | "organization" | "monetized" | "inherit" | undefined;
|
|
714
|
+
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
715
|
+
state?: "success" | "error" | "queued" | "in-progress" | "timed-out" | undefined;
|
|
685
716
|
name?: string | undefined;
|
|
717
|
+
org_id?: string | undefined;
|
|
686
718
|
team_id?: string | undefined;
|
|
687
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
688
719
|
description?: {
|
|
689
720
|
json: Record<string, any>;
|
|
690
721
|
text: string;
|
|
691
722
|
} | null | undefined;
|
|
692
|
-
source?: "api" | "web" | undefined;
|
|
693
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
694
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
695
723
|
parent_id?: string | null | undefined;
|
|
696
724
|
license_id?: string | undefined;
|
|
697
725
|
license?: Record<string, any> | undefined;
|
|
@@ -704,12 +732,6 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
704
732
|
stripe_product_id?: string | null | undefined;
|
|
705
733
|
stripe_price_id?: string | null | undefined;
|
|
706
734
|
stripe_meter_id?: string | null | undefined;
|
|
707
|
-
preview?: Record<string, any>[] | undefined;
|
|
708
|
-
}, {
|
|
709
|
-
asset_type: "dataset";
|
|
710
|
-
last_updated: string;
|
|
711
|
-
org_id?: string | undefined;
|
|
712
|
-
parent?: Record<string, any> | undefined;
|
|
713
735
|
metadata?: {
|
|
714
736
|
table_name: string;
|
|
715
737
|
schema: "datasets";
|
|
@@ -729,28 +751,6 @@ declare const updateDatasetSchema: z.ZodPipe<z.ZodObject<{
|
|
|
729
751
|
id?: string | undefined;
|
|
730
752
|
bucket?: "public-files" | "files" | undefined;
|
|
731
753
|
} | undefined;
|
|
732
|
-
name?: string | undefined;
|
|
733
|
-
team_id?: string | undefined;
|
|
734
|
-
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
735
|
-
description?: {
|
|
736
|
-
json: Record<string, any>;
|
|
737
|
-
text: string;
|
|
738
|
-
} | null | undefined;
|
|
739
|
-
source?: "api" | "web" | undefined;
|
|
740
|
-
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
741
|
-
state?: "success" | "queued" | "in-progress" | "timed-out" | "error" | undefined;
|
|
742
|
-
parent_id?: string | null | undefined;
|
|
743
|
-
license_id?: string | undefined;
|
|
744
|
-
license?: Record<string, any> | undefined;
|
|
745
|
-
name_url_slug?: string | null | undefined;
|
|
746
|
-
price?: number | null | undefined;
|
|
747
|
-
unit_cost?: number | null | undefined;
|
|
748
|
-
cost_accounting?: "fixed" | "variable" | null | undefined;
|
|
749
|
-
cost_unit?: string | null | undefined;
|
|
750
|
-
price_currency?: "usd" | "btc" | undefined;
|
|
751
|
-
stripe_product_id?: string | null | undefined;
|
|
752
|
-
stripe_price_id?: string | null | undefined;
|
|
753
|
-
stripe_meter_id?: string | null | undefined;
|
|
754
754
|
preview?: Record<string, any>[] | undefined;
|
|
755
755
|
}>>;
|
|
756
756
|
|
package/dist/schema/datasets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'../chunk-
|
|
1
|
+
export{b as CreateDatasetFromFileSchema,c as CreateDatasetFromSchemaSchema,a as DatasetSchema,d as updateDatasetSchema}from'../chunk-U3F23ASS.js';import'../chunk-G2MXCB7Q.js';import'../chunk-CF56NFUG.js';import'../chunk-WLGOABHV.js';import'../chunk-3N56ERWF.js';import'../chunk-WRHPQNEL.js';import'../chunk-DUBPWSCA.js';//# sourceMappingURL=datasets.js.map
|
|
2
2
|
//# sourceMappingURL=datasets.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkG24BRDHO_cjs=require('../chunk-G24BRDHO.cjs');Object.defineProperty(exports,"USER_SUBSCRIBABLE_WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.c}});Object.defineProperty(exports,"WEBHOOK_EVENTS",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.a}});Object.defineProperty(exports,"WEBHOOK_EVENT_TYPES",{enumerable:true,get:function(){return chunkG24BRDHO_cjs.b}});//# sourceMappingURL=events.cjs.map
|
|
2
|
+
//# sourceMappingURL=events.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"events.cjs"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared registry of webhook event types emitted by the Ouro platform.
|
|
3
|
+
*
|
|
4
|
+
* This is the single source of truth used by the backend (event dispatch),
|
|
5
|
+
* the frontend (settings UI), the Python SDK (`ouro-py`), and the agent
|
|
6
|
+
* runtime (`ouro-agents`). Adding a new event type means adding a single
|
|
7
|
+
* entry here.
|
|
8
|
+
*/
|
|
9
|
+
interface WebhookEventDefinition {
|
|
10
|
+
/** Human-readable label rendered in the user-facing settings UI. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Whether users can subscribe to this event via a webhook URL. */
|
|
13
|
+
userSubscribable: boolean;
|
|
14
|
+
/** What kind of resource the event is bound to. Drives recipient resolution. */
|
|
15
|
+
scope: "asset" | "user" | "conversation";
|
|
16
|
+
}
|
|
17
|
+
declare const WEBHOOK_EVENTS: {
|
|
18
|
+
readonly comment: {
|
|
19
|
+
readonly label: "Comments";
|
|
20
|
+
readonly userSubscribable: true;
|
|
21
|
+
readonly scope: "asset";
|
|
22
|
+
};
|
|
23
|
+
readonly mention: {
|
|
24
|
+
readonly label: "Mentions";
|
|
25
|
+
readonly userSubscribable: true;
|
|
26
|
+
readonly scope: "asset";
|
|
27
|
+
};
|
|
28
|
+
readonly reference: {
|
|
29
|
+
readonly label: "References";
|
|
30
|
+
readonly userSubscribable: true;
|
|
31
|
+
readonly scope: "asset";
|
|
32
|
+
};
|
|
33
|
+
readonly reaction: {
|
|
34
|
+
readonly label: "Reactions";
|
|
35
|
+
readonly userSubscribable: true;
|
|
36
|
+
readonly scope: "asset";
|
|
37
|
+
};
|
|
38
|
+
readonly share: {
|
|
39
|
+
readonly label: "Shares";
|
|
40
|
+
readonly userSubscribable: true;
|
|
41
|
+
readonly scope: "asset";
|
|
42
|
+
};
|
|
43
|
+
readonly follow: {
|
|
44
|
+
readonly label: "Follows";
|
|
45
|
+
readonly userSubscribable: true;
|
|
46
|
+
readonly scope: "user";
|
|
47
|
+
};
|
|
48
|
+
readonly action: {
|
|
49
|
+
readonly label: "Actions";
|
|
50
|
+
readonly userSubscribable: true;
|
|
51
|
+
readonly scope: "asset";
|
|
52
|
+
};
|
|
53
|
+
readonly "asset.deleted": {
|
|
54
|
+
readonly label: "Asset deletions";
|
|
55
|
+
readonly userSubscribable: true;
|
|
56
|
+
readonly scope: "asset";
|
|
57
|
+
};
|
|
58
|
+
readonly "new-conversation": {
|
|
59
|
+
readonly label: "Conversations";
|
|
60
|
+
readonly userSubscribable: true;
|
|
61
|
+
readonly scope: "conversation";
|
|
62
|
+
};
|
|
63
|
+
readonly "new-message": {
|
|
64
|
+
readonly label: "Messages";
|
|
65
|
+
readonly userSubscribable: true;
|
|
66
|
+
readonly scope: "conversation";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
|
|
70
|
+
declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
|
|
71
|
+
declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
|
|
72
|
+
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
|
|
73
|
+
label: string;
|
|
74
|
+
}[];
|
|
75
|
+
interface WebhookActor {
|
|
76
|
+
id: string;
|
|
77
|
+
username: string;
|
|
78
|
+
is_agent: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface WebhookAssetRef {
|
|
81
|
+
id: string;
|
|
82
|
+
type: string;
|
|
83
|
+
}
|
|
84
|
+
interface WebhookOrgRef {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}
|
|
88
|
+
interface WebhookTeamRef {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Canonical envelope for every webhook event delivery.
|
|
94
|
+
*
|
|
95
|
+
* `data` is event-specific; consumers should branch on `event` and treat
|
|
96
|
+
* `data` as a typed payload accordingly.
|
|
97
|
+
*/
|
|
98
|
+
interface WebhookPayload<T extends WebhookEventType = WebhookEventType, D = unknown> {
|
|
99
|
+
/** Stable per-delivery UUID. Receivers should dedupe on this. */
|
|
100
|
+
delivery_id: string;
|
|
101
|
+
event: T;
|
|
102
|
+
/** ISO timestamp of when the event was produced (not when it was sent). */
|
|
103
|
+
timestamp: string;
|
|
104
|
+
/** The recipient user_id this delivery is targeted at. */
|
|
105
|
+
user_id: string;
|
|
106
|
+
/** Correlated in-app notification id when there is exactly one. */
|
|
107
|
+
notification_id?: string;
|
|
108
|
+
/** Correlated in-app notification ids when an event covers multiple. */
|
|
109
|
+
notification_ids?: string[];
|
|
110
|
+
data: D;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, type WebhookActor, type WebhookAssetRef, type WebhookEventDefinition, type WebhookEventType, type WebhookOrgRef, type WebhookPayload, type WebhookTeamRef };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared registry of webhook event types emitted by the Ouro platform.
|
|
3
|
+
*
|
|
4
|
+
* This is the single source of truth used by the backend (event dispatch),
|
|
5
|
+
* the frontend (settings UI), the Python SDK (`ouro-py`), and the agent
|
|
6
|
+
* runtime (`ouro-agents`). Adding a new event type means adding a single
|
|
7
|
+
* entry here.
|
|
8
|
+
*/
|
|
9
|
+
interface WebhookEventDefinition {
|
|
10
|
+
/** Human-readable label rendered in the user-facing settings UI. */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Whether users can subscribe to this event via a webhook URL. */
|
|
13
|
+
userSubscribable: boolean;
|
|
14
|
+
/** What kind of resource the event is bound to. Drives recipient resolution. */
|
|
15
|
+
scope: "asset" | "user" | "conversation";
|
|
16
|
+
}
|
|
17
|
+
declare const WEBHOOK_EVENTS: {
|
|
18
|
+
readonly comment: {
|
|
19
|
+
readonly label: "Comments";
|
|
20
|
+
readonly userSubscribable: true;
|
|
21
|
+
readonly scope: "asset";
|
|
22
|
+
};
|
|
23
|
+
readonly mention: {
|
|
24
|
+
readonly label: "Mentions";
|
|
25
|
+
readonly userSubscribable: true;
|
|
26
|
+
readonly scope: "asset";
|
|
27
|
+
};
|
|
28
|
+
readonly reference: {
|
|
29
|
+
readonly label: "References";
|
|
30
|
+
readonly userSubscribable: true;
|
|
31
|
+
readonly scope: "asset";
|
|
32
|
+
};
|
|
33
|
+
readonly reaction: {
|
|
34
|
+
readonly label: "Reactions";
|
|
35
|
+
readonly userSubscribable: true;
|
|
36
|
+
readonly scope: "asset";
|
|
37
|
+
};
|
|
38
|
+
readonly share: {
|
|
39
|
+
readonly label: "Shares";
|
|
40
|
+
readonly userSubscribable: true;
|
|
41
|
+
readonly scope: "asset";
|
|
42
|
+
};
|
|
43
|
+
readonly follow: {
|
|
44
|
+
readonly label: "Follows";
|
|
45
|
+
readonly userSubscribable: true;
|
|
46
|
+
readonly scope: "user";
|
|
47
|
+
};
|
|
48
|
+
readonly action: {
|
|
49
|
+
readonly label: "Actions";
|
|
50
|
+
readonly userSubscribable: true;
|
|
51
|
+
readonly scope: "asset";
|
|
52
|
+
};
|
|
53
|
+
readonly "asset.deleted": {
|
|
54
|
+
readonly label: "Asset deletions";
|
|
55
|
+
readonly userSubscribable: true;
|
|
56
|
+
readonly scope: "asset";
|
|
57
|
+
};
|
|
58
|
+
readonly "new-conversation": {
|
|
59
|
+
readonly label: "Conversations";
|
|
60
|
+
readonly userSubscribable: true;
|
|
61
|
+
readonly scope: "conversation";
|
|
62
|
+
};
|
|
63
|
+
readonly "new-message": {
|
|
64
|
+
readonly label: "Messages";
|
|
65
|
+
readonly userSubscribable: true;
|
|
66
|
+
readonly scope: "conversation";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type WebhookEventType = keyof typeof WEBHOOK_EVENTS;
|
|
70
|
+
declare const WEBHOOK_EVENT_TYPES: WebhookEventType[];
|
|
71
|
+
declare const USER_SUBSCRIBABLE_WEBHOOK_EVENTS: {
|
|
72
|
+
value: "comment" | "reference" | "mention" | "action" | "follow" | "share" | "reaction" | "asset.deleted" | "new-conversation" | "new-message";
|
|
73
|
+
label: string;
|
|
74
|
+
}[];
|
|
75
|
+
interface WebhookActor {
|
|
76
|
+
id: string;
|
|
77
|
+
username: string;
|
|
78
|
+
is_agent: boolean;
|
|
79
|
+
}
|
|
80
|
+
interface WebhookAssetRef {
|
|
81
|
+
id: string;
|
|
82
|
+
type: string;
|
|
83
|
+
}
|
|
84
|
+
interface WebhookOrgRef {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
}
|
|
88
|
+
interface WebhookTeamRef {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Canonical envelope for every webhook event delivery.
|
|
94
|
+
*
|
|
95
|
+
* `data` is event-specific; consumers should branch on `event` and treat
|
|
96
|
+
* `data` as a typed payload accordingly.
|
|
97
|
+
*/
|
|
98
|
+
interface WebhookPayload<T extends WebhookEventType = WebhookEventType, D = unknown> {
|
|
99
|
+
/** Stable per-delivery UUID. Receivers should dedupe on this. */
|
|
100
|
+
delivery_id: string;
|
|
101
|
+
event: T;
|
|
102
|
+
/** ISO timestamp of when the event was produced (not when it was sent). */
|
|
103
|
+
timestamp: string;
|
|
104
|
+
/** The recipient user_id this delivery is targeted at. */
|
|
105
|
+
user_id: string;
|
|
106
|
+
/** Correlated in-app notification id when there is exactly one. */
|
|
107
|
+
notification_id?: string;
|
|
108
|
+
/** Correlated in-app notification ids when an event covers multiple. */
|
|
109
|
+
notification_ids?: string[];
|
|
110
|
+
data: D;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { USER_SUBSCRIBABLE_WEBHOOK_EVENTS, WEBHOOK_EVENTS, WEBHOOK_EVENT_TYPES, type WebhookActor, type WebhookAssetRef, type WebhookEventDefinition, type WebhookEventType, type WebhookOrgRef, type WebhookPayload, type WebhookTeamRef };
|