@anchrd/colab-sdk 0.1.32 → 0.1.33
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 +3 -1
- package/dist/actions/actions.d.ts +46 -17
- package/dist/actions/actions.js +10 -0
- package/dist/archive/archive.d.ts +10 -0
- package/dist/archive/archive.js +9 -0
- package/dist/boards/boards.d.ts +29 -25
- package/dist/boards/boards.js +3 -2
- package/dist/card-kinds/card-kinds.d.ts +5 -5
- package/dist/columns/columns.d.ts +2 -2
- package/dist/connectors/connectors.d.ts +37 -3
- package/dist/connectors/connectors.js +6 -2
- package/dist/crawls/crawls.d.ts +3 -3
- package/dist/documents/documents.d.ts +4 -0
- package/dist/documents/documents.js +3 -2
- package/dist/error/error.d.ts +1 -0
- package/dist/error/error.js +8 -1
- package/dist/files/files.d.ts +4 -0
- package/dist/files/files.js +3 -2
- package/dist/gadgets/gadgets.d.ts +44 -0
- package/dist/gadgets/gadgets.js +35 -5
- package/dist/goals/goals.d.ts +7 -0
- package/dist/goals/goals.js +7 -5
- package/dist/grammar/grammar.d.ts +2 -1
- package/dist/grammar/grammar.js +9 -3
- package/dist/mcps/mcps.d.ts +41 -3
- package/dist/mcps/mcps.js +53 -3
- package/dist/nodes/nodes.d.ts +21 -9
- package/dist/nodes/nodes.js +16 -2
- package/dist/operators/operators.js +1 -1
- package/dist/organisation/organisation.d.ts +45 -0
- package/dist/organisation/organisation.js +45 -0
- package/dist/profile/profile.d.ts +3 -3
- package/dist/profile/profile.js +3 -2
- package/dist/providers/providers.d.ts +128 -0
- package/dist/providers/providers.js +118 -0
- package/dist/runs/runs.d.ts +3 -3
- package/dist/runtime-config.d.ts +12 -0
- package/dist/runtime-config.js +10 -0
- package/dist/sdk.d.ts +5 -4
- package/dist/sdk.js +5 -4
- package/dist/skills/skills.d.ts +4 -0
- package/dist/skills/skills.js +3 -2
- package/dist/sources/sources.d.ts +19 -4
- package/dist/sources/sources.js +8 -3
- package/dist/tables/tables.d.ts +4 -0
- package/dist/tables/tables.js +3 -2
- package/dist/versions/versions.d.ts +13 -13
- package/dist/written/written.d.ts +5 -2
- package/dist/written/written.js +2 -2
- package/package.json +1 -1
- package/dist/sso/sso.d.ts +0 -71
- package/dist/sso/sso.js +0 -59
package/dist/sso/sso.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { UserId } from "../users/users.js";
|
|
3
|
-
// Sign-in through Google and Microsoft, set up under Einstellungen › SSO (#358, E90): one row per
|
|
4
|
-
// provider, set up or not. The id is the provider's word from the code (`google`), not a ULID, like a
|
|
5
|
-
// connector's id: there are exactly these two, and the sign-in page and Better Auth name them so.
|
|
6
|
-
//
|
|
7
|
-
// ⚠️ The client secret goes in and never comes out: no answer carries it, and no field of an answer
|
|
8
|
-
// is called `secret` (`/mcp` would strike it, `redactSecrets`). The input field is `clientSecret`.
|
|
9
|
-
export const ssoIds = ["google", "microsoft"];
|
|
10
|
-
export const SsoId = z.enum(ssoIds);
|
|
11
|
-
// Where the sign-in page gets a provider from right now: `settings` (set up here, in the database of
|
|
12
|
-
// `access`), `environment` (the installation's variables; locally `.dev.vars`), or null: not offered.
|
|
13
|
-
export const SsoSource = z.enum(["settings", "environment"]);
|
|
14
|
-
export const SsoListInput = z.strictObject({});
|
|
15
|
-
// "Einrichten": both values every time. A new client id with the old secret would not sign anybody
|
|
16
|
-
// in, so the pair is replaced together.
|
|
17
|
-
export const SsoUpdateInput = z.strictObject({
|
|
18
|
-
ssoId: SsoId.describe("The provider: google or microsoft."),
|
|
19
|
-
clientId: z
|
|
20
|
-
.string()
|
|
21
|
-
.trim()
|
|
22
|
-
.min(1)
|
|
23
|
-
.max(512)
|
|
24
|
-
.describe("The client id of the app registered at the provider."),
|
|
25
|
-
clientSecret: z
|
|
26
|
-
.string()
|
|
27
|
-
.trim()
|
|
28
|
-
.min(1)
|
|
29
|
-
.max(1024)
|
|
30
|
-
.describe("The client secret of that app. Stored sealed; no answer ever shows it again."),
|
|
31
|
-
});
|
|
32
|
-
// "Entfernen": the provider's settings are deleted at once and without archive. A provider the
|
|
33
|
-
// installation's variables name stays offered from there.
|
|
34
|
-
export const SsoRemoveInput = z.strictObject({
|
|
35
|
-
ssoId: SsoId.describe("The provider: google or microsoft."),
|
|
36
|
-
});
|
|
37
|
-
export const Sso = z.object({
|
|
38
|
-
ssoId: SsoId,
|
|
39
|
-
// Set up here: the client id, when and by whom. Null while it is not set up here.
|
|
40
|
-
clientId: z.string().nullable(),
|
|
41
|
-
setAt: z.iso.datetime().nullable(),
|
|
42
|
-
setBy: UserId.nullable(),
|
|
43
|
-
source: SsoSource.nullable(),
|
|
44
|
-
// The address to enter at the provider as the redirect URI ("Weiterleitungs-Adresse").
|
|
45
|
-
redirectUrl: z.url(),
|
|
46
|
-
});
|
|
47
|
-
export const SsoList = z.object({
|
|
48
|
-
items: z.array(Sso),
|
|
49
|
-
// Two rows at most: never a further page.
|
|
50
|
-
nextCursor: z.null(),
|
|
51
|
-
});
|
|
52
|
-
// `GET /auth/providers`, public: which buttons the sign-in page shows, in their order. Nothing else
|
|
53
|
-
// of a provider travels here. `signUp` is true only while no person exists, or only one whose sign-up
|
|
54
|
-
// lapsed unconfirmed (E131): the first one signs up on the page and becomes the main admin (E9,
|
|
55
|
-
// #539); after that it says nothing about anybody.
|
|
56
|
-
export const SignInProviders = z.object({
|
|
57
|
-
providers: z.array(SsoId),
|
|
58
|
-
signUp: z.boolean(),
|
|
59
|
-
});
|