@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/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[];