@graphcore/react-kernel 0.3.0 → 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.
- package/dist/api/entityApi.d.ts +7 -1
- package/dist/auth/offlineAccess.d.ts +10 -0
- package/dist/components/Admin/AdminPanel.d.ts +4 -3
- package/dist/graphcore-react-kernel.cjs.js +3 -3
- package/dist/graphcore-react-kernel.es.js +1947 -1656
- package/dist/hooks/useCatalog.d.ts +28 -0
- package/dist/hooks/useServerRoutes.d.ts +5 -0
- package/dist/host/HostedSession.d.ts +28 -0
- package/dist/host/channel.d.ts +43 -0
- package/dist/host/connect.d.ts +26 -0
- package/dist/host/testing.d.ts +25 -0
- package/dist/lib/GraphCoreProvider.d.ts +4 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/runtimeConfig.d.ts +3 -0
- package/dist/state/registryDirectoryStore.d.ts +1 -0
- package/dist/utils/StrategyRequestBuilder.d.ts +2 -2
- package/dist/views/EntityView.d.ts +3 -1
- package/package.json +1 -1
package/dist/api/entityApi.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
19
|
-
*
|
|
20
|
-
* `graphcore
|
|
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;
|