@collective-intelligence/external-apps-server-sdk 0.1.17 → 0.1.19

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/index.d.ts CHANGED
@@ -601,32 +601,17 @@ export type ExternalApplicationServiceOperationRequest = {
601
601
  origin: string;
602
602
  };
603
603
  operationId: "origins_set_runtime";
604
- } | {
605
- input: {
606
- userId: string;
607
- };
608
- operationId: "users_list_company_links";
609
- } | {
610
- input: {
611
- entityIds: string[];
612
- userId: string;
613
- };
614
- operationId: "users_link_companies";
615
604
  };
616
605
  /**
617
606
  * Whether `users_create_or_get` would accept an email, checked without
618
607
  * creating anything; an unknown email is usable.
619
608
  */
620
609
  export type ApplicationUserEmailCheck = ExternalApplicationsCheckAppUserEmailResponse["result"];
621
- /** A user's linked company entities, in entity id order. */
622
- export interface UserCompanyLinks {
623
- entityIds: string[];
624
- }
625
610
  export type ExternalApplicationServiceOperationSuccess = EnvelopeSuccess<"users_check_email", ApplicationUserEmailCheck> | EnvelopeSuccess<"files_upload", {
626
611
  storageFileId: StorageFileId;
627
612
  }> | EnvelopeSuccess<"origins_set_runtime", {
628
613
  origin: string;
629
- }> | EnvelopeSuccess<"users_list_company_links", UserCompanyLinks> | EnvelopeSuccess<"users_link_companies", UserCompanyLinks>;
614
+ }>;
630
615
  /** Every operation a confidential server client may invoke. */
631
616
  export type ExternalApplicationServerOperationRequest = ExternalApplicationOperationRequest | ExternalApplicationServiceOperationRequest;
632
617
  export type ExternalApplicationOperationFailure = ExternalApplicationsGetContextError;
@@ -1008,8 +993,7 @@ export interface ServerClient {
1008
993
  }>;
1009
994
  /**
1010
995
  * Application users and their role-bounded lifecycle. User tokens and service
1011
- * credentials are authorized by CI on each call. Company-link operations
1012
- * remain limited to service credentials and Organization members.
996
+ * credentials are authorized by CI on each call.
1013
997
  */
1014
998
  readonly users: Readonly<{
1015
999
  /**
@@ -1022,10 +1006,7 @@ export interface ServerClient {
1022
1006
  createOrGet: ServerOperationMethod<"users_create_or_get">;
1023
1007
  deactivate: ServerOperationMethod<"users_deactivate">;
1024
1008
  get: ServerOperationMethod<"users_get">;
1025
- /** Links `userId` to `entityIds`, keeping existing links; returns all of them. */
1026
- linkCompanies: ServerOperationMethod<"users_link_companies">;
1027
1009
  list: ServerOperationMethod<"users_list">;
1028
- listCompanyLinks: ServerOperationMethod<"users_list_company_links">;
1029
1010
  }>;
1030
1011
  readonly workflows: Readonly<{
1031
1012
  invoke: ServerOperationMethod<"workflows_invoke">;