@collective-intelligence/external-apps-server-sdk 0.3.5 → 0.3.7

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 CHANGED
@@ -187,7 +187,12 @@ and is never forwarded. To bring anonymous visitors to a declared Agent, add
187
187
  so the backend runs only the Agent's own bindings and never the application's
188
188
  service authority. An Audit subject with `mappedUserId` is refused with `401`
189
189
  for a visitor caller. Forwarding covers `context`, `knowledge`, `agents`,
190
- `conversations` (continue and history), `skills`, `workflows`, and `runs/*`.
190
+ `conversations` (continue and history), `skills`, `workflows`, `runs/*`, and
191
+ `chat/*`. The chat routes are for a signed-in user of the app, so use them in
192
+ user-token mode: CI refuses a service or visitor caller with `403`
193
+ `principal_not_allowed`. The BFF passes each answer through unchanged, so a
194
+ chat event stream reaches the browser as CI sends it, and it forwards
195
+ `Last-Event-ID`, so a client resumes a cut presentation stream through the BFF.
191
196
  In user-token mode, and for each `ciResources` mount, the BFF passes CI's
192
197
  answer to `auth.observeCiResponse`: a `401` or a changed `x-access-version`
193
198
  drops the identity that lookups of that Access token reuse, so the next
package/dist/admin.d.ts CHANGED
@@ -328,11 +328,6 @@ declare const FeatureFlagRolloutMode: {
328
328
  readonly DISABLED_FOR_ORGANIZATIONS: "disabled_for_organizations";
329
329
  };
330
330
  export type FeatureFlagRolloutMode = typeof FeatureFlagRolloutMode[keyof typeof FeatureFlagRolloutMode];
331
- export type AiSkillDataAccess = {
332
- datasets?: "user" | "skill";
333
- documents?: "user" | "skill";
334
- knowledge?: "user" | "skill";
335
- };
336
331
  export type KnowledgeRelationFieldEntry = {
337
332
  autocomplete?: {
338
333
  baseFilters?: Array<{
@@ -641,6 +636,11 @@ export type AiSkillPackageSummaryDto = {
641
636
  scriptCount: number;
642
637
  totalSizeBytes: number;
643
638
  };
639
+ export type AiSkillDataAccess = {
640
+ datasets?: "user" | "skill";
641
+ documents?: "user" | "skill";
642
+ knowledge?: "user" | "skill";
643
+ };
644
644
  export type UpdateAiSkillRequest = {
645
645
  archivedAt?: string | null;
646
646
  authoringMode?: string | null;