@collective-intelligence/external-apps-server-sdk 0.1.9 → 0.1.11
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 +131 -39
- package/dist/admin.d.ts +537 -319
- package/dist/admin.js +1 -1
- package/dist/auth/better-auth.d.ts +4 -2
- package/dist/auth/federated.d.ts +17 -7
- package/dist/auth/federated.js +1 -1
- package/dist/auth.d.ts +3 -1
- package/dist/express.d.ts +15 -2
- package/dist/gateway/contracts.d.ts +15 -2
- package/dist/gateway.d.ts +15 -2
- package/dist/gateway.js +2 -2
- package/dist/index.d.ts +232 -73
- package/dist/index.js +3 -3
- package/dist/knowledge-sources/payload.d.ts +23 -2
- package/dist/knowledge-sources/strapi.d.ts +23 -2
- package/dist/persistence/drizzle.d.ts +43 -4
- package/dist/persistence/drizzle.js +4 -4
- package/dist/resources.d.ts +39 -5
- package/dist/resources.js +3 -3
- package/dist/runtime/effect.d.ts +93 -5
- package/dist/runtime/effect.js +4 -4
- package/dist/runtime/express.d.ts +15 -2
- package/dist/runtime/nestjs.d.ts +36 -5
- package/dist/runtime/nestjs.js +2 -2
- package/dist/runtime/next.d.ts +37 -6
- package/dist/runtime/next.js +2 -2
- package/dist/runtime/web.d.ts +19 -4
- package/dist/runtime/web.js +2 -2
- package/dist/tools/ai-sdk.js +2 -2
- package/package.json +3 -3
package/dist/auth.d.ts
CHANGED
|
@@ -131,13 +131,15 @@ export type ApplicationUserIdentity = Readonly<{
|
|
|
131
131
|
* and request/correlation IDs are deliberately not part of that logical identity.
|
|
132
132
|
*/
|
|
133
133
|
export type EntityInvocationContext = Readonly<{
|
|
134
|
+
/** The App Permissions of the user's effective roles on the app. */
|
|
135
|
+
appPermissions: readonly string[];
|
|
134
136
|
applicationId: string;
|
|
135
137
|
issuer: string;
|
|
136
138
|
organizationId: string;
|
|
137
139
|
resourceId: string;
|
|
140
|
+
/** The user's effective roles on the app, read from CI at this lookup. */
|
|
138
141
|
roles: readonly string[];
|
|
139
142
|
scopes: readonly string[];
|
|
140
|
-
groupIds: readonly string[];
|
|
141
143
|
user: ApplicationUserIdentity;
|
|
142
144
|
}>;
|
|
143
145
|
export declare const createGatewayConnectionAuthentication: (config: GatewayConnectionAuthenticationConfig) => {
|
package/dist/express.d.ts
CHANGED
|
@@ -426,13 +426,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
|
|
|
426
426
|
}>;
|
|
427
427
|
}>;
|
|
428
428
|
export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
|
|
429
|
+
/**
|
|
430
|
+
* A filter predicate. `field` names a declared filterable field, or a path
|
|
431
|
+
* through at most three fields that hold Entity References to a field of
|
|
432
|
+
* the last target, such as `company.industry` or
|
|
433
|
+
* `contacts.company.parent.industry`. On a field that holds Entity
|
|
434
|
+
* References, `is_empty` means no reference, and `contains_any` and
|
|
435
|
+
* `contains_all` compare the ids of a field that holds many.
|
|
436
|
+
*/
|
|
429
437
|
export type ResourceFilter = Readonly<{
|
|
430
438
|
field: string;
|
|
431
|
-
operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
439
|
+
operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
432
440
|
value: FilterValue;
|
|
433
441
|
}> | Readonly<{
|
|
434
442
|
field: string;
|
|
435
|
-
operator: "is_not_null" | "is_null";
|
|
443
|
+
operator: "is_empty" | "is_not_null" | "is_null";
|
|
436
444
|
}> | Readonly<{
|
|
437
445
|
filters: readonly ResourceFilter[];
|
|
438
446
|
operator: "and" | "or";
|
|
@@ -455,6 +463,11 @@ export type ResourcePagination = Readonly<{
|
|
|
455
463
|
}>;
|
|
456
464
|
export type ResourceListQuery = Readonly<{
|
|
457
465
|
filter?: ResourceFilter;
|
|
466
|
+
/**
|
|
467
|
+
* Include Paths, such as `["company", "contacts.company"]`: relation
|
|
468
|
+
* fields whose records each item carries in `included`.
|
|
469
|
+
*/
|
|
470
|
+
include?: readonly string[];
|
|
458
471
|
includeDeleted?: boolean;
|
|
459
472
|
pagination: ResourcePagination;
|
|
460
473
|
sort?: readonly ResourceSort[];
|
|
@@ -393,13 +393,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
|
|
|
393
393
|
}>;
|
|
394
394
|
}>;
|
|
395
395
|
export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
|
|
396
|
+
/**
|
|
397
|
+
* A filter predicate. `field` names a declared filterable field, or a path
|
|
398
|
+
* through at most three fields that hold Entity References to a field of
|
|
399
|
+
* the last target, such as `company.industry` or
|
|
400
|
+
* `contacts.company.parent.industry`. On a field that holds Entity
|
|
401
|
+
* References, `is_empty` means no reference, and `contains_any` and
|
|
402
|
+
* `contains_all` compare the ids of a field that holds many.
|
|
403
|
+
*/
|
|
396
404
|
export type ResourceFilter = Readonly<{
|
|
397
405
|
field: string;
|
|
398
|
-
operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
406
|
+
operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
399
407
|
value: FilterValue;
|
|
400
408
|
}> | Readonly<{
|
|
401
409
|
field: string;
|
|
402
|
-
operator: "is_not_null" | "is_null";
|
|
410
|
+
operator: "is_empty" | "is_not_null" | "is_null";
|
|
403
411
|
}> | Readonly<{
|
|
404
412
|
filters: readonly ResourceFilter[];
|
|
405
413
|
operator: "and" | "or";
|
|
@@ -422,6 +430,11 @@ export type ResourcePagination = Readonly<{
|
|
|
422
430
|
}>;
|
|
423
431
|
export type ResourceListQuery = Readonly<{
|
|
424
432
|
filter?: ResourceFilter;
|
|
433
|
+
/**
|
|
434
|
+
* Include Paths, such as `["company", "contacts.company"]`: relation
|
|
435
|
+
* fields whose records each item carries in `included`.
|
|
436
|
+
*/
|
|
437
|
+
include?: readonly string[];
|
|
425
438
|
includeDeleted?: boolean;
|
|
426
439
|
pagination: ResourcePagination;
|
|
427
440
|
sort?: readonly ResourceSort[];
|
package/dist/gateway.d.ts
CHANGED
|
@@ -434,13 +434,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
|
|
|
434
434
|
}>;
|
|
435
435
|
}>;
|
|
436
436
|
export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
|
|
437
|
+
/**
|
|
438
|
+
* A filter predicate. `field` names a declared filterable field, or a path
|
|
439
|
+
* through at most three fields that hold Entity References to a field of
|
|
440
|
+
* the last target, such as `company.industry` or
|
|
441
|
+
* `contacts.company.parent.industry`. On a field that holds Entity
|
|
442
|
+
* References, `is_empty` means no reference, and `contains_any` and
|
|
443
|
+
* `contains_all` compare the ids of a field that holds many.
|
|
444
|
+
*/
|
|
437
445
|
export type ResourceFilter = Readonly<{
|
|
438
446
|
field: string;
|
|
439
|
-
operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
447
|
+
operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
|
|
440
448
|
value: FilterValue;
|
|
441
449
|
}> | Readonly<{
|
|
442
450
|
field: string;
|
|
443
|
-
operator: "is_not_null" | "is_null";
|
|
451
|
+
operator: "is_empty" | "is_not_null" | "is_null";
|
|
444
452
|
}> | Readonly<{
|
|
445
453
|
filters: readonly ResourceFilter[];
|
|
446
454
|
operator: "and" | "or";
|
|
@@ -463,6 +471,11 @@ export type ResourcePagination = Readonly<{
|
|
|
463
471
|
}>;
|
|
464
472
|
export type ResourceListQuery = Readonly<{
|
|
465
473
|
filter?: ResourceFilter;
|
|
474
|
+
/**
|
|
475
|
+
* Include Paths, such as `["company", "contacts.company"]`: relation
|
|
476
|
+
* fields whose records each item carries in `included`.
|
|
477
|
+
*/
|
|
478
|
+
include?: readonly string[];
|
|
466
479
|
includeDeleted?: boolean;
|
|
467
480
|
pagination: ResourcePagination;
|
|
468
481
|
sort?: readonly ResourceSort[];
|