@graphcore/react-kernel 0.2.5 → 0.4.0

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.
@@ -9,9 +9,15 @@ declare class EntityApi {
9
9
  } | {
10
10
  Authorization?: undefined;
11
11
  };
12
- /** `fetch` with the session's token, renewed once and retried on a 401. An injected token has no session to renew. */
12
+ /** `fetch` with the session's token, renewed once and retried on a 401. An injected token has no session to
13
+ * renew; a hosted app's host renews it. */
13
14
  _authorizedFetch(url: any, init?: {}): Promise<Response>;
14
15
  getStrategyDirectory(): Promise<any>;
16
+ /** The deployment's catalog: `deployments` (this one first, then its connections) and `entries`, each with its address. */
17
+ getCatalog(): Promise<any>;
18
+ /** A token for the signed-in person at one connection, addressed to it alone: what a host gives the
19
+ * connection's web app in a frame. `{ token, expires_at }`, `expires_at` in seconds since the epoch. */
20
+ getConnectionToken(backendId: any): Promise<any>;
15
21
  getRoutes(): Promise<any>;
16
22
  getEntityDirectory(): Promise<any>;
17
23
  /** Create an invite to `resourceId`; the returned `token` is the only copy of its secret. */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Sends the browser to the issuer when `/auth/me/` says offline access is
3
+ * needed, once per person per browser session, so a failed trip is not
4
+ * retried until the next sign-in. True when the page is leaving.
5
+ */
6
+ export declare function obtainOfflineAccess(me: {
7
+ principal_entity_id: string;
8
+ offline_access?: string | null;
9
+ }, token: string): Promise<boolean>;
10
+ export declare function resetOfflineAccessForTests(): void;
@@ -4,6 +4,7 @@ export declare const ADMIN_ROUTE = "/admin";
4
4
  export type DeploymentRole = {
5
5
  name: string;
6
6
  description?: string;
7
+ all_permissions?: boolean;
7
8
  permissions: string[];
8
9
  permission_details?: Array<{
9
10
  name: string;
@@ -15,8 +16,8 @@ export type AdminPanelProps = {
15
16
  className?: string;
16
17
  };
17
18
  /**
18
- * Deployment administration: who belongs, which groups exist, what the
19
- * deployment's roles allow, and what new users receive. Shown to members of
20
- * `graphcore.admins`; see `graphcore docs distro/deployment-access`.
19
+ * Deployment administration: people belong to groups, and each group holds
20
+ * one role on the deployment. Shown to members of `graphcore.admins`; see
21
+ * `graphcore docs distro/deployment-access`.
21
22
  */
22
23
  export declare function AdminPanel({ sendStrategyRequest: sendProp, className }: AdminPanelProps): import("react").JSX.Element;