@collective-intelligence/external-apps-server-sdk 0.1.8 → 0.1.10
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/README.md +150 -0
- package/dist/admin.d.ts +423 -25
- package/dist/express.d.ts +20 -3
- package/dist/gateway/contracts.d.ts +20 -3
- package/dist/gateway.d.ts +20 -3
- package/dist/gateway.js +2 -1
- package/dist/index.d.ts +113 -1
- package/dist/index.js +3 -3
- package/dist/knowledge-sources/payload.d.ts +28 -3
- package/dist/knowledge-sources/strapi.d.ts +28 -3
- package/dist/persistence/drizzle.d.ts +42 -3
- package/dist/persistence/drizzle.js +4 -3
- package/dist/resources.d.ts +50 -6
- package/dist/resources.js +3 -3
- package/dist/runtime/effect.d.ts +105 -6
- package/dist/runtime/effect.js +4 -3
- package/dist/runtime/express.d.ts +20 -3
- package/dist/runtime/nestjs.d.ts +48 -6
- package/dist/runtime/nestjs.js +1 -1
- package/dist/runtime/next.d.ts +48 -6
- package/dist/runtime/next.js +1 -1
- package/dist/runtime/web.d.ts +20 -3
- package/dist/runtime/web.js +1 -1
- package/dist/tools/ai-sdk.js +2 -1
- package/package.json +3 -3
package/dist/runtime/web.d.ts
CHANGED
|
@@ -385,6 +385,8 @@ export type ResourceCapabilities = Readonly<{
|
|
|
385
385
|
search: true;
|
|
386
386
|
softDelete?: boolean;
|
|
387
387
|
update?: boolean;
|
|
388
|
+
/** File uploads for the File fields of a common entity resource. */
|
|
389
|
+
upload?: boolean;
|
|
388
390
|
}>;
|
|
389
391
|
export type ResourcePaginationMode = "cursor" | "page";
|
|
390
392
|
export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
|
|
@@ -422,13 +424,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
|
|
|
422
424
|
}>;
|
|
423
425
|
}>;
|
|
424
426
|
export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
|
|
427
|
+
/**
|
|
428
|
+
* A filter predicate. `field` names a declared filterable field, or a path
|
|
429
|
+
* through at most three fields that hold Entity References to a field of
|
|
430
|
+
* the last target, such as `company.industry` or
|
|
431
|
+
* `contacts.company.parent.industry`. On a field that holds Entity
|
|
432
|
+
* References, `is_empty` means no reference, and `contains_any` and
|
|
433
|
+
* `contains_all` compare the ids of a field that holds many.
|
|
434
|
+
*/
|
|
425
435
|
export type ResourceFilter = Readonly<{
|
|
426
436
|
field: string;
|
|
427
|
-
operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
437
|
+
operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
428
438
|
value: FilterValue;
|
|
429
439
|
}> | Readonly<{
|
|
430
440
|
field: string;
|
|
431
|
-
operator: "is_not_null" | "is_null";
|
|
441
|
+
operator: "is_empty" | "is_not_null" | "is_null";
|
|
432
442
|
}> | Readonly<{
|
|
433
443
|
filters: readonly ResourceFilter[];
|
|
434
444
|
operator: "and" | "or";
|
|
@@ -451,12 +461,19 @@ export type ResourcePagination = Readonly<{
|
|
|
451
461
|
}>;
|
|
452
462
|
export type ResourceListQuery = Readonly<{
|
|
453
463
|
filter?: ResourceFilter;
|
|
464
|
+
/**
|
|
465
|
+
* Include Paths, such as `["company", "contacts.company"]`: relation
|
|
466
|
+
* fields whose records each item carries in `included`.
|
|
467
|
+
*/
|
|
468
|
+
include?: readonly string[];
|
|
454
469
|
includeDeleted?: boolean;
|
|
455
470
|
pagination: ResourcePagination;
|
|
456
471
|
sort?: readonly ResourceSort[];
|
|
457
472
|
textSearch?: string;
|
|
458
473
|
}>;
|
|
459
|
-
export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable"
|
|
474
|
+
export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
|
|
475
|
+
/** The CI Organization storage can not take a presigned File upload. */
|
|
476
|
+
"upload_not_supported";
|
|
460
477
|
export type ResourceError = Readonly<{
|
|
461
478
|
code: ResourceErrorCode;
|
|
462
479
|
/** Client-observed dispatch outcome; uncertainty never proves rollback. */
|