@drawnagency/primitives 0.1.66 → 0.1.67
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/chunk-4VMAZZXT.js +968 -0
- package/dist/{chunk-VEIDANEU.js → chunk-KM6HOW4H.js} +126 -39
- package/dist/{chunk-DQTKWKSK.js → chunk-WJ7RZ6CC.js} +11 -2
- package/dist/components/primitives/defineHeadingSection.d.ts +2 -0
- package/dist/components/primitives/defineHeadingSection.d.ts.map +1 -1
- package/dist/components/primitives/index.js +1 -1
- package/dist/components/sections/Button/index.d.ts.map +1 -1
- package/dist/components/sections/Colors/index.d.ts.map +1 -1
- package/dist/components/sections/Colors/schema.d.ts.map +1 -1
- package/dist/components/sections/Container/index.d.ts.map +1 -1
- package/dist/components/sections/DoDontMedia/index.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconList.d.ts +2 -1
- package/dist/components/sections/IconList/IconList.d.ts.map +1 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts +2 -1
- package/dist/components/sections/IconList/IconListSettings.d.ts.map +1 -1
- package/dist/components/sections/IconList/index.d.ts +1 -0
- package/dist/components/sections/IconList/index.d.ts.map +1 -1
- package/dist/components/sections/LinkHeading/index.d.ts.map +1 -1
- package/dist/components/sections/Media/index.d.ts.map +1 -1
- package/dist/components/sections/Prose/index.d.ts.map +1 -1
- package/dist/components/sections/Spacer/index.d.ts.map +1 -1
- package/dist/components/sections/SubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/SubSubHeading/index.d.ts.map +1 -1
- package/dist/components/sections/all-sections.d.ts +1 -0
- package/dist/components/sections/all-sections.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.d.ts +1 -0
- package/dist/components/sections/brand-guide.d.ts.map +1 -1
- package/dist/components/sections/brand-guide.js +1 -1
- package/dist/components/sections/register-schemas.js +11 -941
- package/dist/components/sections/register.js +36 -0
- package/dist/components/shell/EditorShell.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/dist/lib/index.js +2 -2
- package/dist/lib/insert-menu.d.ts +19 -0
- package/dist/lib/insert-menu.d.ts.map +1 -0
- package/dist/lib/registry.d.ts +23 -0
- package/dist/lib/registry.d.ts.map +1 -1
- package/dist/types/database.d.ts +248 -34
- package/dist/types/database.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/components/primitives/defineHeadingSection.tsx +18 -2
- package/src/components/sections/Button/index.tsx +10 -3
- package/src/components/sections/Colors/index.tsx +15 -7
- package/src/components/sections/Colors/schema.ts +5 -2
- package/src/components/sections/Container/index.tsx +19 -3
- package/src/components/sections/DoDontMedia/index.tsx +18 -7
- package/src/components/sections/IconList/IconList.tsx +43 -19
- package/src/components/sections/IconList/IconListSettings.tsx +58 -11
- package/src/components/sections/IconList/index.tsx +51 -7
- package/src/components/sections/LinkHeading/index.tsx +2 -0
- package/src/components/sections/Media/index.tsx +15 -6
- package/src/components/sections/Prose/index.tsx +9 -1
- package/src/components/sections/Spacer/index.tsx +2 -0
- package/src/components/sections/SubHeading/index.tsx +2 -0
- package/src/components/sections/SubSubHeading/index.tsx +2 -0
- package/src/components/shell/EditorShell.tsx +13 -19
- package/src/lib/insert-menu.ts +42 -0
- package/src/lib/registry.ts +24 -0
- package/src/types/database.ts +236 -36
- package/dist/{chunk-ZYXLNJ5M.js → chunk-AFK45HX2.js} +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
allSectionDefs
|
|
3
|
+
} from "../../chunk-4VMAZZXT.js";
|
|
4
|
+
import "../../chunk-KM6HOW4H.js";
|
|
5
|
+
import "../../chunk-2BHPWO7M.js";
|
|
6
|
+
import "../../chunk-5THS4K5D.js";
|
|
7
|
+
import "../../chunk-WJ7RZ6CC.js";
|
|
8
|
+
import "../../chunk-XNGG5AGI.js";
|
|
9
|
+
import "../../chunk-4E66N6UV.js";
|
|
10
|
+
import "../../chunk-I5737FJY.js";
|
|
11
|
+
import "../../chunk-VU3XR362.js";
|
|
12
|
+
import "../../chunk-3DCG4DNU.js";
|
|
13
|
+
import "../../chunk-WDSVHKAH.js";
|
|
14
|
+
import "../../chunk-53DKVAB6.js";
|
|
15
|
+
import "../../chunk-ZGFAYZWB.js";
|
|
16
|
+
import "../../chunk-7EOSDFS3.js";
|
|
17
|
+
import "../../chunk-TZQPOR5A.js";
|
|
18
|
+
import "../../chunk-TEYTLQVH.js";
|
|
19
|
+
import {
|
|
20
|
+
registerSection
|
|
21
|
+
} from "../../chunk-VKAGMEKE.js";
|
|
22
|
+
import "../../chunk-NSCT3AMV.js";
|
|
23
|
+
import "../../chunk-JSBRDJBE.js";
|
|
24
|
+
|
|
25
|
+
// src/components/sections/register.ts
|
|
26
|
+
var _ensured = false;
|
|
27
|
+
function ensureSectionsRegistered() {
|
|
28
|
+
if (!_ensured) {
|
|
29
|
+
allSectionDefs.forEach(registerSection);
|
|
30
|
+
_ensured = true;
|
|
31
|
+
}
|
|
32
|
+
return allSectionDefs.length;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
ensureSectionsRegistered
|
|
36
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../../src/components/shell/EditorShell.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAwEjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAQxD,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAIhB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,YAAY,EAAE;QACZ,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,cAAc,EAAE,OAAO,CAAC;QACxB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,cAAc,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,MAAM,EACN,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EACZ,WAAW,GACZ,EAAE,KAAK,2CAu6BP"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUDIENCE_COOKIE,
|
|
3
|
+
AUDIENCE_MAX_AGE_SECONDS,
|
|
4
|
+
LastOwnerError,
|
|
5
|
+
SESSION_COOKIE,
|
|
6
|
+
SESSION_MAX_AGE_SECONDS,
|
|
7
|
+
SessionExpiredError,
|
|
8
|
+
deriveUiCapabilities,
|
|
9
|
+
setSessionCookie,
|
|
10
|
+
signAudienceToken,
|
|
11
|
+
signSessionToken,
|
|
12
|
+
verifyAudienceToken,
|
|
13
|
+
verifySessionToken
|
|
14
|
+
} from "./chunk-EM5DFHDZ.js";
|
|
1
15
|
import {
|
|
2
16
|
EXT_TO_MIME,
|
|
3
17
|
MIME_TO_EXT,
|
|
@@ -14,20 +28,6 @@ import {
|
|
|
14
28
|
sanitizeMediaName,
|
|
15
29
|
setMediaProvider
|
|
16
30
|
} from "./chunk-VU3XR362.js";
|
|
17
|
-
import {
|
|
18
|
-
AUDIENCE_COOKIE,
|
|
19
|
-
AUDIENCE_MAX_AGE_SECONDS,
|
|
20
|
-
LastOwnerError,
|
|
21
|
-
SESSION_COOKIE,
|
|
22
|
-
SESSION_MAX_AGE_SECONDS,
|
|
23
|
-
SessionExpiredError,
|
|
24
|
-
deriveUiCapabilities,
|
|
25
|
-
setSessionCookie,
|
|
26
|
-
signAudienceToken,
|
|
27
|
-
signSessionToken,
|
|
28
|
-
verifyAudienceToken,
|
|
29
|
-
verifySessionToken
|
|
30
|
-
} from "./chunk-EM5DFHDZ.js";
|
|
31
31
|
import {
|
|
32
32
|
AudienceColorSchema,
|
|
33
33
|
AudienceNameSchema,
|
|
@@ -55,7 +55,12 @@ import {
|
|
|
55
55
|
loadStaticSiteContent,
|
|
56
56
|
mergeSiteContent,
|
|
57
57
|
safeRedirect
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-AFK45HX2.js";
|
|
59
|
+
import {
|
|
60
|
+
isSameOriginRequest,
|
|
61
|
+
requireSessionSecret,
|
|
62
|
+
safeNextPath
|
|
63
|
+
} from "./chunk-S2L3BPLS.js";
|
|
59
64
|
import "./chunk-75P6HWPN.js";
|
|
60
65
|
import {
|
|
61
66
|
curatedIcons,
|
|
@@ -77,11 +82,6 @@ import "./chunk-ZGFAYZWB.js";
|
|
|
77
82
|
import {
|
|
78
83
|
cn
|
|
79
84
|
} from "./chunk-7EOSDFS3.js";
|
|
80
|
-
import {
|
|
81
|
-
isSameOriginRequest,
|
|
82
|
-
requireSessionSecret,
|
|
83
|
-
safeNextPath
|
|
84
|
-
} from "./chunk-S2L3BPLS.js";
|
|
85
85
|
import {
|
|
86
86
|
getSectionContentSchema,
|
|
87
87
|
getSectionSchema
|
package/dist/lib/index.js
CHANGED
|
@@ -7,7 +7,8 @@ import {
|
|
|
7
7
|
loadStaticSiteContent,
|
|
8
8
|
mergeSiteContent,
|
|
9
9
|
safeRedirect
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-AFK45HX2.js";
|
|
11
|
+
import "../chunk-S2L3BPLS.js";
|
|
11
12
|
import "../chunk-75P6HWPN.js";
|
|
12
13
|
import {
|
|
13
14
|
curatedIcons,
|
|
@@ -29,7 +30,6 @@ import "../chunk-ZGFAYZWB.js";
|
|
|
29
30
|
import {
|
|
30
31
|
cn
|
|
31
32
|
} from "../chunk-7EOSDFS3.js";
|
|
32
|
-
import "../chunk-S2L3BPLS.js";
|
|
33
33
|
import "../chunk-TZQPOR5A.js";
|
|
34
34
|
import "../chunk-TEYTLQVH.js";
|
|
35
35
|
import {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SectionDefinition } from "./registry";
|
|
3
|
+
import type { SectionContent } from "../schemas/sections";
|
|
4
|
+
/** Namespacing prefix for preset selections in the Add-section menu. */
|
|
5
|
+
export declare const PRESET_PREFIX = "__preset:";
|
|
6
|
+
/** One Add-section menu entry: a section `type`, or `__preset:<presetId>`. */
|
|
7
|
+
export interface InsertMenuOption {
|
|
8
|
+
type: string;
|
|
9
|
+
label: string;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/** Every non-spacer section type, followed by presets contributed by registered
|
|
13
|
+
* sections. Presets appear only when their owning section is registered, so a
|
|
14
|
+
* core-only build (no brand-guide sections) shows no brand-guide presets. */
|
|
15
|
+
export declare function buildInsertMenuOptions(sections: SectionDefinition[]): InsertMenuOption[];
|
|
16
|
+
/** Resolve an Add-menu selection to ready-to-insert content. `newId` mints ids for
|
|
17
|
+
* any nested children a preset creates. Returns null for an unknown type/preset. */
|
|
18
|
+
export declare function resolveInsertedContent(selection: string, sections: SectionDefinition[], newId: () => string): SectionContent | null;
|
|
19
|
+
//# sourceMappingURL=insert-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-menu.d.ts","sourceRoot":"","sources":["../../src/lib/insert-menu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wEAAwE;AACxE,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;8EAE8E;AAC9E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,CAQxF;AAED;qFACqF;AACrF,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,KAAK,EAAE,MAAM,MAAM,GAClB,cAAc,GAAG,IAAI,CAQvB"}
|
package/dist/lib/registry.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ZodType, z } from "zod";
|
|
|
2
2
|
import type { ComponentType, ReactNode } from "react";
|
|
3
3
|
import type { Audience } from "../schemas/auth";
|
|
4
4
|
import type { LinkValue } from "../schemas/link";
|
|
5
|
+
import type { SectionContent } from "../schemas/sections";
|
|
5
6
|
export type SettingsFieldDef = {
|
|
6
7
|
type: "text";
|
|
7
8
|
label: string;
|
|
@@ -92,6 +93,18 @@ export interface WrapperProps {
|
|
|
92
93
|
isLocalOnly?: boolean;
|
|
93
94
|
children: React.ReactNode;
|
|
94
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* A ready-to-insert composite (e.g. a container of preconfigured child sections),
|
|
98
|
+
* surfaced in the Add-section menu. Contributed by the section definition that owns
|
|
99
|
+
* the composition, so it rides the section registry and disappears in a core-only
|
|
100
|
+
* build that never registers that section. `newId` mints unique ids for nested children.
|
|
101
|
+
*/
|
|
102
|
+
export interface SectionPreset {
|
|
103
|
+
id: string;
|
|
104
|
+
label: string;
|
|
105
|
+
icon?: ReactNode;
|
|
106
|
+
build(newId: () => string): SectionContent;
|
|
107
|
+
}
|
|
95
108
|
export interface SectionDefinition<T = unknown> {
|
|
96
109
|
type: string;
|
|
97
110
|
/** Grouping label. `"brand-guide"` marks opinionated sections separable from the
|
|
@@ -124,6 +137,14 @@ export interface SectionDefinition<T = unknown> {
|
|
|
124
137
|
label: string;
|
|
125
138
|
fields: string[];
|
|
126
139
|
}[];
|
|
140
|
+
/** Composite blueprints for the Add-section menu (see SectionPreset). */
|
|
141
|
+
presets?: SectionPreset[];
|
|
142
|
+
/**
|
|
143
|
+
* Human/agent-facing prose describing when to use this section type and how to
|
|
144
|
+
* author it well. Surfaced by the get_section_schema tool as the JSON Schema
|
|
145
|
+
* top-level `description`. Presentation/metadata only — not validated.
|
|
146
|
+
*/
|
|
147
|
+
authoringNote?: string;
|
|
127
148
|
}
|
|
128
149
|
type DefineSectionInput<S extends ZodType> = {
|
|
129
150
|
type: string;
|
|
@@ -149,6 +170,8 @@ type DefineSectionInput<S extends ZodType> = {
|
|
|
149
170
|
label: string;
|
|
150
171
|
fields: string[];
|
|
151
172
|
}[];
|
|
173
|
+
presets?: SectionPreset[];
|
|
174
|
+
authoringNote?: string;
|
|
152
175
|
};
|
|
153
176
|
export declare function defineSection<S extends ZodType>(def: DefineSectionInput<S>): SectionDefinition<z.infer<S>>;
|
|
154
177
|
export interface SectionRegistry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/lib/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/lib/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,K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c,IAAI,iBAAiB,EAAE,CAAC;IACtC,aAAa,IAAI,OAAO,EAAE,CAAC;IAC3B,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAChE,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IACnD,aAAa,IAAI,IAAI,CAAC;CACvB;AAED,wBAAgB,cAAc,IAAI,eAAe,CA0ChD;AAYD,wBAAgB,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAG,IAAI,CAEjE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAElE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAE9E;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAEjE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAEtE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAE3D;AAED,wBAAgB,cAAc,IAAI,iBAAiB,EAAE,CAEpD;AAED,wBAAgB,aAAa,IAAI,OAAO,EAAE,CAEzC;AAED,wBAAgB,aAAa,IAAI,IAAI,CAEpC"}
|
package/dist/types/database.d.ts
CHANGED
|
@@ -61,6 +61,41 @@ export type Database = {
|
|
|
61
61
|
}
|
|
62
62
|
];
|
|
63
63
|
};
|
|
64
|
+
audit_log: {
|
|
65
|
+
Row: {
|
|
66
|
+
action: string;
|
|
67
|
+
actor_platform_user_id: string | null;
|
|
68
|
+
created_at: string;
|
|
69
|
+
id: string;
|
|
70
|
+
metadata: Json;
|
|
71
|
+
target_site_id: string | null;
|
|
72
|
+
};
|
|
73
|
+
Insert: {
|
|
74
|
+
action: string;
|
|
75
|
+
actor_platform_user_id?: string | null;
|
|
76
|
+
created_at?: string;
|
|
77
|
+
id?: string;
|
|
78
|
+
metadata?: Json;
|
|
79
|
+
target_site_id?: string | null;
|
|
80
|
+
};
|
|
81
|
+
Update: {
|
|
82
|
+
action?: string;
|
|
83
|
+
actor_platform_user_id?: string | null;
|
|
84
|
+
created_at?: string;
|
|
85
|
+
id?: string;
|
|
86
|
+
metadata?: Json;
|
|
87
|
+
target_site_id?: string | null;
|
|
88
|
+
};
|
|
89
|
+
Relationships: [
|
|
90
|
+
{
|
|
91
|
+
foreignKeyName: "audit_log_actor_platform_user_id_fkey";
|
|
92
|
+
columns: ["actor_platform_user_id"];
|
|
93
|
+
isOneToOne: false;
|
|
94
|
+
referencedRelation: "platform_users";
|
|
95
|
+
referencedColumns: ["id"];
|
|
96
|
+
}
|
|
97
|
+
];
|
|
98
|
+
};
|
|
64
99
|
bug_reports: {
|
|
65
100
|
Row: {
|
|
66
101
|
category: string;
|
|
@@ -220,8 +255,148 @@ export type Database = {
|
|
|
220
255
|
}
|
|
221
256
|
];
|
|
222
257
|
};
|
|
258
|
+
oauth_auth_codes: {
|
|
259
|
+
Row: {
|
|
260
|
+
client_id: string;
|
|
261
|
+
code_challenge: string;
|
|
262
|
+
code_hash: string;
|
|
263
|
+
consumed_at: string | null;
|
|
264
|
+
created_at: string;
|
|
265
|
+
expires_at: string;
|
|
266
|
+
platform_user_id: string;
|
|
267
|
+
redirect_uri: string;
|
|
268
|
+
resource: string | null;
|
|
269
|
+
scopes: string[];
|
|
270
|
+
};
|
|
271
|
+
Insert: {
|
|
272
|
+
client_id: string;
|
|
273
|
+
code_challenge: string;
|
|
274
|
+
code_hash: string;
|
|
275
|
+
consumed_at?: string | null;
|
|
276
|
+
created_at?: string;
|
|
277
|
+
expires_at: string;
|
|
278
|
+
platform_user_id: string;
|
|
279
|
+
redirect_uri: string;
|
|
280
|
+
resource?: string | null;
|
|
281
|
+
scopes?: string[];
|
|
282
|
+
};
|
|
283
|
+
Update: {
|
|
284
|
+
client_id?: string;
|
|
285
|
+
code_challenge?: string;
|
|
286
|
+
code_hash?: string;
|
|
287
|
+
consumed_at?: string | null;
|
|
288
|
+
created_at?: string;
|
|
289
|
+
expires_at?: string;
|
|
290
|
+
platform_user_id?: string;
|
|
291
|
+
redirect_uri?: string;
|
|
292
|
+
resource?: string | null;
|
|
293
|
+
scopes?: string[];
|
|
294
|
+
};
|
|
295
|
+
Relationships: [
|
|
296
|
+
{
|
|
297
|
+
foreignKeyName: "oauth_auth_codes_platform_user_id_fkey";
|
|
298
|
+
columns: ["platform_user_id"];
|
|
299
|
+
isOneToOne: false;
|
|
300
|
+
referencedRelation: "platform_users";
|
|
301
|
+
referencedColumns: ["id"];
|
|
302
|
+
}
|
|
303
|
+
];
|
|
304
|
+
};
|
|
305
|
+
oauth_clients: {
|
|
306
|
+
Row: {
|
|
307
|
+
client_id: string;
|
|
308
|
+
client_id_issued_at: number | null;
|
|
309
|
+
client_metadata: Json;
|
|
310
|
+
client_secret_hash: string | null;
|
|
311
|
+
created_at: string;
|
|
312
|
+
redirect_uris: string[];
|
|
313
|
+
};
|
|
314
|
+
Insert: {
|
|
315
|
+
client_id: string;
|
|
316
|
+
client_id_issued_at?: number | null;
|
|
317
|
+
client_metadata?: Json;
|
|
318
|
+
client_secret_hash?: string | null;
|
|
319
|
+
created_at?: string;
|
|
320
|
+
redirect_uris: string[];
|
|
321
|
+
};
|
|
322
|
+
Update: {
|
|
323
|
+
client_id?: string;
|
|
324
|
+
client_id_issued_at?: number | null;
|
|
325
|
+
client_metadata?: Json;
|
|
326
|
+
client_secret_hash?: string | null;
|
|
327
|
+
created_at?: string;
|
|
328
|
+
redirect_uris?: string[];
|
|
329
|
+
};
|
|
330
|
+
Relationships: [];
|
|
331
|
+
};
|
|
332
|
+
oauth_rate_limits: {
|
|
333
|
+
Row: {
|
|
334
|
+
count: number;
|
|
335
|
+
key: string;
|
|
336
|
+
updated_at: string;
|
|
337
|
+
window_start: string;
|
|
338
|
+
};
|
|
339
|
+
Insert: {
|
|
340
|
+
count?: number;
|
|
341
|
+
key: string;
|
|
342
|
+
updated_at?: string;
|
|
343
|
+
window_start?: string;
|
|
344
|
+
};
|
|
345
|
+
Update: {
|
|
346
|
+
count?: number;
|
|
347
|
+
key?: string;
|
|
348
|
+
updated_at?: string;
|
|
349
|
+
window_start?: string;
|
|
350
|
+
};
|
|
351
|
+
Relationships: [];
|
|
352
|
+
};
|
|
353
|
+
oauth_refresh_tokens: {
|
|
354
|
+
Row: {
|
|
355
|
+
client_id: string;
|
|
356
|
+
created_at: string;
|
|
357
|
+
expires_at: string;
|
|
358
|
+
family_id: string;
|
|
359
|
+
platform_user_id: string;
|
|
360
|
+
prev_token_hash: string | null;
|
|
361
|
+
revoked_at: string | null;
|
|
362
|
+
rotated_at: string | null;
|
|
363
|
+
token_hash: string;
|
|
364
|
+
};
|
|
365
|
+
Insert: {
|
|
366
|
+
client_id: string;
|
|
367
|
+
created_at?: string;
|
|
368
|
+
expires_at: string;
|
|
369
|
+
family_id: string;
|
|
370
|
+
platform_user_id: string;
|
|
371
|
+
prev_token_hash?: string | null;
|
|
372
|
+
revoked_at?: string | null;
|
|
373
|
+
rotated_at?: string | null;
|
|
374
|
+
token_hash: string;
|
|
375
|
+
};
|
|
376
|
+
Update: {
|
|
377
|
+
client_id?: string;
|
|
378
|
+
created_at?: string;
|
|
379
|
+
expires_at?: string;
|
|
380
|
+
family_id?: string;
|
|
381
|
+
platform_user_id?: string;
|
|
382
|
+
prev_token_hash?: string | null;
|
|
383
|
+
revoked_at?: string | null;
|
|
384
|
+
rotated_at?: string | null;
|
|
385
|
+
token_hash?: string;
|
|
386
|
+
};
|
|
387
|
+
Relationships: [
|
|
388
|
+
{
|
|
389
|
+
foreignKeyName: "oauth_refresh_tokens_platform_user_id_fkey";
|
|
390
|
+
columns: ["platform_user_id"];
|
|
391
|
+
isOneToOne: false;
|
|
392
|
+
referencedRelation: "platform_users";
|
|
393
|
+
referencedColumns: ["id"];
|
|
394
|
+
}
|
|
395
|
+
];
|
|
396
|
+
};
|
|
223
397
|
platform_users: {
|
|
224
398
|
Row: {
|
|
399
|
+
can_provision: boolean;
|
|
225
400
|
created_at: string | null;
|
|
226
401
|
email: string;
|
|
227
402
|
github_user_id: number | null;
|
|
@@ -230,6 +405,7 @@ export type Database = {
|
|
|
230
405
|
user_id: string;
|
|
231
406
|
};
|
|
232
407
|
Insert: {
|
|
408
|
+
can_provision?: boolean;
|
|
233
409
|
created_at?: string | null;
|
|
234
410
|
email: string;
|
|
235
411
|
github_user_id?: number | null;
|
|
@@ -238,6 +414,7 @@ export type Database = {
|
|
|
238
414
|
user_id: string;
|
|
239
415
|
};
|
|
240
416
|
Update: {
|
|
417
|
+
can_provision?: boolean;
|
|
241
418
|
created_at?: string | null;
|
|
242
419
|
email?: string;
|
|
243
420
|
github_user_id?: number | null;
|
|
@@ -247,6 +424,41 @@ export type Database = {
|
|
|
247
424
|
};
|
|
248
425
|
Relationships: [];
|
|
249
426
|
};
|
|
427
|
+
rate_limits: {
|
|
428
|
+
Row: {
|
|
429
|
+
count: number;
|
|
430
|
+
key: string;
|
|
431
|
+
limiter: string;
|
|
432
|
+
site_id: string;
|
|
433
|
+
updated_at: string;
|
|
434
|
+
window_start: string;
|
|
435
|
+
};
|
|
436
|
+
Insert: {
|
|
437
|
+
count?: number;
|
|
438
|
+
key: string;
|
|
439
|
+
limiter: string;
|
|
440
|
+
site_id: string;
|
|
441
|
+
updated_at?: string;
|
|
442
|
+
window_start?: string;
|
|
443
|
+
};
|
|
444
|
+
Update: {
|
|
445
|
+
count?: number;
|
|
446
|
+
key?: string;
|
|
447
|
+
limiter?: string;
|
|
448
|
+
site_id?: string;
|
|
449
|
+
updated_at?: string;
|
|
450
|
+
window_start?: string;
|
|
451
|
+
};
|
|
452
|
+
Relationships: [
|
|
453
|
+
{
|
|
454
|
+
foreignKeyName: "rate_limits_site_id_fkey";
|
|
455
|
+
columns: ["site_id"];
|
|
456
|
+
isOneToOne: false;
|
|
457
|
+
referencedRelation: "sites";
|
|
458
|
+
referencedColumns: ["id"];
|
|
459
|
+
}
|
|
460
|
+
];
|
|
461
|
+
};
|
|
250
462
|
site_api_keys: {
|
|
251
463
|
Row: {
|
|
252
464
|
created_at: string | null;
|
|
@@ -318,6 +530,7 @@ export type Database = {
|
|
|
318
530
|
Row: {
|
|
319
531
|
created_at: string | null;
|
|
320
532
|
custom_domain: string | null;
|
|
533
|
+
failed_step: string | null;
|
|
321
534
|
github_owner: string;
|
|
322
535
|
github_repo: string;
|
|
323
536
|
id: string;
|
|
@@ -327,10 +540,12 @@ export type Database = {
|
|
|
327
540
|
password_enabled: boolean;
|
|
328
541
|
provisioned_by: string | null;
|
|
329
542
|
provisioning_status: string;
|
|
543
|
+
subdomain: string | null;
|
|
330
544
|
};
|
|
331
545
|
Insert: {
|
|
332
546
|
created_at?: string | null;
|
|
333
547
|
custom_domain?: string | null;
|
|
548
|
+
failed_step?: string | null;
|
|
334
549
|
github_owner: string;
|
|
335
550
|
github_repo: string;
|
|
336
551
|
id?: string;
|
|
@@ -340,10 +555,12 @@ export type Database = {
|
|
|
340
555
|
password_enabled?: boolean;
|
|
341
556
|
provisioned_by?: string | null;
|
|
342
557
|
provisioning_status?: string;
|
|
558
|
+
subdomain?: string | null;
|
|
343
559
|
};
|
|
344
560
|
Update: {
|
|
345
561
|
created_at?: string | null;
|
|
346
562
|
custom_domain?: string | null;
|
|
563
|
+
failed_step?: string | null;
|
|
347
564
|
github_owner?: string;
|
|
348
565
|
github_repo?: string;
|
|
349
566
|
id?: string;
|
|
@@ -353,6 +570,7 @@ export type Database = {
|
|
|
353
570
|
password_enabled?: boolean;
|
|
354
571
|
provisioned_by?: string | null;
|
|
355
572
|
provisioning_status?: string;
|
|
573
|
+
subdomain?: string | null;
|
|
356
574
|
};
|
|
357
575
|
Relationships: [
|
|
358
576
|
{
|
|
@@ -412,33 +630,6 @@ export type Database = {
|
|
|
412
630
|
}
|
|
413
631
|
];
|
|
414
632
|
};
|
|
415
|
-
rate_limits: {
|
|
416
|
-
Row: {
|
|
417
|
-
site_id: string;
|
|
418
|
-
limiter: string;
|
|
419
|
-
key: string;
|
|
420
|
-
window_start: string;
|
|
421
|
-
count: number;
|
|
422
|
-
updated_at: string;
|
|
423
|
-
};
|
|
424
|
-
Insert: {
|
|
425
|
-
site_id: string;
|
|
426
|
-
limiter: string;
|
|
427
|
-
key: string;
|
|
428
|
-
window_start?: string;
|
|
429
|
-
count?: number;
|
|
430
|
-
updated_at?: string;
|
|
431
|
-
};
|
|
432
|
-
Update: {
|
|
433
|
-
site_id?: string;
|
|
434
|
-
limiter?: string;
|
|
435
|
-
key?: string;
|
|
436
|
-
window_start?: string;
|
|
437
|
-
count?: number;
|
|
438
|
-
updated_at?: string;
|
|
439
|
-
};
|
|
440
|
-
Relationships: [];
|
|
441
|
-
};
|
|
442
633
|
};
|
|
443
634
|
Views: {
|
|
444
635
|
[_ in never]: never;
|
|
@@ -462,32 +653,55 @@ export type Database = {
|
|
|
462
653
|
};
|
|
463
654
|
Returns: boolean;
|
|
464
655
|
};
|
|
465
|
-
|
|
656
|
+
oauth_cleanup: {
|
|
466
657
|
Args: {
|
|
467
|
-
|
|
468
|
-
p_user_id: string;
|
|
658
|
+
p_max_age_ms: number;
|
|
469
659
|
};
|
|
470
660
|
Returns: undefined;
|
|
471
661
|
};
|
|
472
|
-
|
|
662
|
+
oauth_rate_limit_hit: {
|
|
473
663
|
Args: {
|
|
474
|
-
p_site_id: string;
|
|
475
|
-
p_limiter: string;
|
|
476
664
|
p_key: string;
|
|
477
|
-
p_window_ms: number;
|
|
478
665
|
p_max: number;
|
|
666
|
+
p_window_ms: number;
|
|
479
667
|
};
|
|
480
668
|
Returns: {
|
|
481
669
|
allowed: boolean;
|
|
482
670
|
retry_after_ms: number;
|
|
483
671
|
}[];
|
|
484
672
|
};
|
|
673
|
+
provision_claim: {
|
|
674
|
+
Args: {
|
|
675
|
+
p_site_id: string;
|
|
676
|
+
};
|
|
677
|
+
Returns: boolean;
|
|
678
|
+
};
|
|
485
679
|
rate_limit_cleanup: {
|
|
486
680
|
Args: {
|
|
487
681
|
p_max_age_ms: number;
|
|
488
682
|
};
|
|
489
683
|
Returns: undefined;
|
|
490
684
|
};
|
|
685
|
+
rate_limit_hit: {
|
|
686
|
+
Args: {
|
|
687
|
+
p_key: string;
|
|
688
|
+
p_limiter: string;
|
|
689
|
+
p_max: number;
|
|
690
|
+
p_site_id: string;
|
|
691
|
+
p_window_ms: number;
|
|
692
|
+
};
|
|
693
|
+
Returns: {
|
|
694
|
+
allowed: boolean;
|
|
695
|
+
retry_after_ms: number;
|
|
696
|
+
}[];
|
|
697
|
+
};
|
|
698
|
+
revoke_site_user: {
|
|
699
|
+
Args: {
|
|
700
|
+
p_site_id: string;
|
|
701
|
+
p_user_id: string;
|
|
702
|
+
};
|
|
703
|
+
Returns: undefined;
|
|
704
|
+
};
|
|
491
705
|
};
|
|
492
706
|
Enums: {
|
|
493
707
|
[_ in never]: never;
|