@lucern/contracts 0.3.0-alpha.2 → 0.3.0-alpha.3
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/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +155 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +1 -0
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +42 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +4 -2
- package/dist/index.d.ts +258 -1
- package/dist/index.js +618 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-gateway-boundary.contract.d.ts +181 -0
- package/dist/mcp-gateway-boundary.contract.js +43 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/schemas/component-table-manifest.d.ts +2 -2
- package/dist/schemas/index.js +35 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +130 -20
- package/dist/schemas/manifest.js +35 -0
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +2 -2
- package/dist/schemas/tables/mc/identity.d.ts +24 -1
- package/dist/schemas/tables/mc/identity.js +35 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +2 -2
- package/dist/tenant-client.contract.d.ts +266 -0
- package/dist/tenant-client.contract.js +404 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/package.json +1 -1
|
@@ -3097,9 +3097,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
3097
3097
|
}, "strip", zod.ZodTypeAny, {
|
|
3098
3098
|
status: "ai_draft" | "user_draft" | "final";
|
|
3099
3099
|
content: string;
|
|
3100
|
+
approvedAt?: number | undefined;
|
|
3100
3101
|
memoContent?: string | undefined;
|
|
3101
3102
|
generatedAt?: number | undefined;
|
|
3102
|
-
approvedAt?: number | undefined;
|
|
3103
3103
|
approvedBy?: string | undefined;
|
|
3104
3104
|
generationMetadata?: {
|
|
3105
3105
|
promptName: string;
|
|
@@ -3109,9 +3109,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
3109
3109
|
}, {
|
|
3110
3110
|
status: "ai_draft" | "user_draft" | "final";
|
|
3111
3111
|
content: string;
|
|
3112
|
+
approvedAt?: number | undefined;
|
|
3112
3113
|
memoContent?: string | undefined;
|
|
3113
3114
|
generatedAt?: number | undefined;
|
|
3114
|
-
approvedAt?: number | undefined;
|
|
3115
3115
|
approvedBy?: string | undefined;
|
|
3116
3116
|
generationMetadata?: {
|
|
3117
3117
|
promptName: string;
|
|
@@ -3845,6 +3845,28 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
3845
3845
|
grantedBy: zod.ZodOptional<zod.ZodString>;
|
|
3846
3846
|
createdAt: zod.ZodNumber;
|
|
3847
3847
|
updatedAt: zod.ZodNumber;
|
|
3848
|
+
}>, TableContract<{
|
|
3849
|
+
deviceCodeHash: zod.ZodString;
|
|
3850
|
+
userCode: zod.ZodString;
|
|
3851
|
+
clientId: zod.ZodString;
|
|
3852
|
+
scope: zod.ZodString;
|
|
3853
|
+
status: zod.ZodEnum<["pending", "approved", "denied", "expired", "consumed"]>;
|
|
3854
|
+
expiresAt: zod.ZodNumber;
|
|
3855
|
+
intervalSeconds: zod.ZodNumber;
|
|
3856
|
+
lastPolledAt: zod.ZodOptional<zod.ZodNumber>;
|
|
3857
|
+
slowDownCount: zod.ZodOptional<zod.ZodNumber>;
|
|
3858
|
+
clerkUserId: zod.ZodOptional<zod.ZodString>;
|
|
3859
|
+
tenantId: zod.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
3860
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
3861
|
+
principalId: zod.ZodOptional<zod.ZodString>;
|
|
3862
|
+
role: zod.ZodOptional<zod.ZodString>;
|
|
3863
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
3864
|
+
sessionId: zod.ZodOptional<zod.ZodString>;
|
|
3865
|
+
approvedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
3866
|
+
deniedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
3867
|
+
consumedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
3868
|
+
createdAt: zod.ZodNumber;
|
|
3869
|
+
updatedAt: zod.ZodNumber;
|
|
3848
3870
|
}>, TableContract<{
|
|
3849
3871
|
principalId: zod.ZodString;
|
|
3850
3872
|
principalType: zod.ZodEnum<["user", "group", "service", "external_viewer"]>;
|
|
@@ -4118,7 +4140,7 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
4118
4140
|
parameterSchema?: Record<string, any> | undefined;
|
|
4119
4141
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
4120
4142
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
4121
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
4143
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
4122
4144
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
4123
4145
|
returnSchema?: Record<string, any> | undefined;
|
|
4124
4146
|
handlerRef?: string | undefined;
|
|
@@ -4135,7 +4157,7 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
4135
4157
|
parameterSchema?: Record<string, any> | undefined;
|
|
4136
4158
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
4137
4159
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
4138
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
4160
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
4139
4161
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
4140
4162
|
returnSchema?: Record<string, any> | undefined;
|
|
4141
4163
|
handlerRef?: string | undefined;
|
|
@@ -8014,9 +8036,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
8014
8036
|
}, "strip", zod.ZodTypeAny, {
|
|
8015
8037
|
status: "ai_draft" | "user_draft" | "final";
|
|
8016
8038
|
content: string;
|
|
8039
|
+
approvedAt?: number | undefined;
|
|
8017
8040
|
memoContent?: string | undefined;
|
|
8018
8041
|
generatedAt?: number | undefined;
|
|
8019
|
-
approvedAt?: number | undefined;
|
|
8020
8042
|
approvedBy?: string | undefined;
|
|
8021
8043
|
generationMetadata?: {
|
|
8022
8044
|
promptName: string;
|
|
@@ -8026,9 +8048,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
8026
8048
|
}, {
|
|
8027
8049
|
status: "ai_draft" | "user_draft" | "final";
|
|
8028
8050
|
content: string;
|
|
8051
|
+
approvedAt?: number | undefined;
|
|
8029
8052
|
memoContent?: string | undefined;
|
|
8030
8053
|
generatedAt?: number | undefined;
|
|
8031
|
-
approvedAt?: number | undefined;
|
|
8032
8054
|
approvedBy?: string | undefined;
|
|
8033
8055
|
generationMetadata?: {
|
|
8034
8056
|
promptName: string;
|
|
@@ -8762,6 +8784,28 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
8762
8784
|
grantedBy: zod.ZodOptional<zod.ZodString>;
|
|
8763
8785
|
createdAt: zod.ZodNumber;
|
|
8764
8786
|
updatedAt: zod.ZodNumber;
|
|
8787
|
+
}>, TableContract<{
|
|
8788
|
+
deviceCodeHash: zod.ZodString;
|
|
8789
|
+
userCode: zod.ZodString;
|
|
8790
|
+
clientId: zod.ZodString;
|
|
8791
|
+
scope: zod.ZodString;
|
|
8792
|
+
status: zod.ZodEnum<["pending", "approved", "denied", "expired", "consumed"]>;
|
|
8793
|
+
expiresAt: zod.ZodNumber;
|
|
8794
|
+
intervalSeconds: zod.ZodNumber;
|
|
8795
|
+
lastPolledAt: zod.ZodOptional<zod.ZodNumber>;
|
|
8796
|
+
slowDownCount: zod.ZodOptional<zod.ZodNumber>;
|
|
8797
|
+
clerkUserId: zod.ZodOptional<zod.ZodString>;
|
|
8798
|
+
tenantId: zod.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
8799
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
8800
|
+
principalId: zod.ZodOptional<zod.ZodString>;
|
|
8801
|
+
role: zod.ZodOptional<zod.ZodString>;
|
|
8802
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
8803
|
+
sessionId: zod.ZodOptional<zod.ZodString>;
|
|
8804
|
+
approvedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
8805
|
+
deniedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
8806
|
+
consumedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
8807
|
+
createdAt: zod.ZodNumber;
|
|
8808
|
+
updatedAt: zod.ZodNumber;
|
|
8765
8809
|
}>, TableContract<{
|
|
8766
8810
|
principalId: zod.ZodString;
|
|
8767
8811
|
principalType: zod.ZodEnum<["user", "group", "service", "external_viewer"]>;
|
|
@@ -9035,7 +9079,7 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
9035
9079
|
parameterSchema?: Record<string, any> | undefined;
|
|
9036
9080
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
9037
9081
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
9038
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
9082
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
9039
9083
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
9040
9084
|
returnSchema?: Record<string, any> | undefined;
|
|
9041
9085
|
handlerRef?: string | undefined;
|
|
@@ -9052,7 +9096,7 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
|
|
|
9052
9096
|
parameterSchema?: Record<string, any> | undefined;
|
|
9053
9097
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
9054
9098
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
9055
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
9099
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
9056
9100
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
9057
9101
|
returnSchema?: Record<string, any> | undefined;
|
|
9058
9102
|
handlerRef?: string | undefined;
|
|
@@ -12932,9 +12976,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
12932
12976
|
}, "strip", zod.ZodTypeAny, {
|
|
12933
12977
|
status: "ai_draft" | "user_draft" | "final";
|
|
12934
12978
|
content: string;
|
|
12979
|
+
approvedAt?: number | undefined;
|
|
12935
12980
|
memoContent?: string | undefined;
|
|
12936
12981
|
generatedAt?: number | undefined;
|
|
12937
|
-
approvedAt?: number | undefined;
|
|
12938
12982
|
approvedBy?: string | undefined;
|
|
12939
12983
|
generationMetadata?: {
|
|
12940
12984
|
promptName: string;
|
|
@@ -12944,9 +12988,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
12944
12988
|
}, {
|
|
12945
12989
|
status: "ai_draft" | "user_draft" | "final";
|
|
12946
12990
|
content: string;
|
|
12991
|
+
approvedAt?: number | undefined;
|
|
12947
12992
|
memoContent?: string | undefined;
|
|
12948
12993
|
generatedAt?: number | undefined;
|
|
12949
|
-
approvedAt?: number | undefined;
|
|
12950
12994
|
approvedBy?: string | undefined;
|
|
12951
12995
|
generationMetadata?: {
|
|
12952
12996
|
promptName: string;
|
|
@@ -13678,6 +13722,28 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
13678
13722
|
grantedBy: zod.ZodOptional<zod.ZodString>;
|
|
13679
13723
|
createdAt: zod.ZodNumber;
|
|
13680
13724
|
updatedAt: zod.ZodNumber;
|
|
13725
|
+
}>, TableContract<{
|
|
13726
|
+
deviceCodeHash: zod.ZodString;
|
|
13727
|
+
userCode: zod.ZodString;
|
|
13728
|
+
clientId: zod.ZodString;
|
|
13729
|
+
scope: zod.ZodString;
|
|
13730
|
+
status: zod.ZodEnum<["pending", "approved", "denied", "expired", "consumed"]>;
|
|
13731
|
+
expiresAt: zod.ZodNumber;
|
|
13732
|
+
intervalSeconds: zod.ZodNumber;
|
|
13733
|
+
lastPolledAt: zod.ZodOptional<zod.ZodNumber>;
|
|
13734
|
+
slowDownCount: zod.ZodOptional<zod.ZodNumber>;
|
|
13735
|
+
clerkUserId: zod.ZodOptional<zod.ZodString>;
|
|
13736
|
+
tenantId: zod.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
13737
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
13738
|
+
principalId: zod.ZodOptional<zod.ZodString>;
|
|
13739
|
+
role: zod.ZodOptional<zod.ZodString>;
|
|
13740
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
13741
|
+
sessionId: zod.ZodOptional<zod.ZodString>;
|
|
13742
|
+
approvedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
13743
|
+
deniedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
13744
|
+
consumedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
13745
|
+
createdAt: zod.ZodNumber;
|
|
13746
|
+
updatedAt: zod.ZodNumber;
|
|
13681
13747
|
}>, TableContract<{
|
|
13682
13748
|
principalId: zod.ZodString;
|
|
13683
13749
|
principalType: zod.ZodEnum<["user", "group", "service", "external_viewer"]>;
|
|
@@ -13951,7 +14017,7 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
13951
14017
|
parameterSchema?: Record<string, any> | undefined;
|
|
13952
14018
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
13953
14019
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
13954
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
14020
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
13955
14021
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
13956
14022
|
returnSchema?: Record<string, any> | undefined;
|
|
13957
14023
|
handlerRef?: string | undefined;
|
|
@@ -13968,7 +14034,7 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
|
|
|
13968
14034
|
parameterSchema?: Record<string, any> | undefined;
|
|
13969
14035
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
13970
14036
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
13971
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
14037
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
13972
14038
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
13973
14039
|
returnSchema?: Record<string, any> | undefined;
|
|
13974
14040
|
handlerRef?: string | undefined;
|
|
@@ -16394,6 +16460,28 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
16394
16460
|
tier: zod.ZodEnum<["free", "developer", "partner"]>;
|
|
16395
16461
|
createdAt: zod.ZodNumber;
|
|
16396
16462
|
updatedAt: zod.ZodNumber;
|
|
16463
|
+
}> | TableContract<{
|
|
16464
|
+
deviceCodeHash: zod.ZodString;
|
|
16465
|
+
userCode: zod.ZodString;
|
|
16466
|
+
clientId: zod.ZodString;
|
|
16467
|
+
scope: zod.ZodString;
|
|
16468
|
+
status: zod.ZodEnum<["pending", "approved", "denied", "expired", "consumed"]>;
|
|
16469
|
+
expiresAt: zod.ZodNumber;
|
|
16470
|
+
intervalSeconds: zod.ZodNumber;
|
|
16471
|
+
lastPolledAt: zod.ZodOptional<zod.ZodNumber>;
|
|
16472
|
+
slowDownCount: zod.ZodOptional<zod.ZodNumber>;
|
|
16473
|
+
clerkUserId: zod.ZodOptional<zod.ZodString>;
|
|
16474
|
+
tenantId: zod.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
16475
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
16476
|
+
principalId: zod.ZodOptional<zod.ZodString>;
|
|
16477
|
+
role: zod.ZodOptional<zod.ZodString>;
|
|
16478
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
16479
|
+
sessionId: zod.ZodOptional<zod.ZodString>;
|
|
16480
|
+
approvedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
16481
|
+
deniedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
16482
|
+
consumedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
16483
|
+
createdAt: zod.ZodNumber;
|
|
16484
|
+
updatedAt: zod.ZodNumber;
|
|
16397
16485
|
}> | TableContract<{
|
|
16398
16486
|
keyId: zod.ZodString;
|
|
16399
16487
|
tokenHash: zod.ZodString;
|
|
@@ -17677,7 +17765,7 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
17677
17765
|
parameterSchema?: Record<string, any> | undefined;
|
|
17678
17766
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
17679
17767
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
17680
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
17768
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
17681
17769
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
17682
17770
|
returnSchema?: Record<string, any> | undefined;
|
|
17683
17771
|
handlerRef?: string | undefined;
|
|
@@ -17694,7 +17782,7 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
17694
17782
|
parameterSchema?: Record<string, any> | undefined;
|
|
17695
17783
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
17696
17784
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
17697
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
17785
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
17698
17786
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
17699
17787
|
returnSchema?: Record<string, any> | undefined;
|
|
17700
17788
|
handlerRef?: string | undefined;
|
|
@@ -19438,9 +19526,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
19438
19526
|
}, "strip", zod.ZodTypeAny, {
|
|
19439
19527
|
status: "ai_draft" | "user_draft" | "final";
|
|
19440
19528
|
content: string;
|
|
19529
|
+
approvedAt?: number | undefined;
|
|
19441
19530
|
memoContent?: string | undefined;
|
|
19442
19531
|
generatedAt?: number | undefined;
|
|
19443
|
-
approvedAt?: number | undefined;
|
|
19444
19532
|
approvedBy?: string | undefined;
|
|
19445
19533
|
generationMetadata?: {
|
|
19446
19534
|
promptName: string;
|
|
@@ -19450,9 +19538,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
|
|
|
19450
19538
|
}, {
|
|
19451
19539
|
status: "ai_draft" | "user_draft" | "final";
|
|
19452
19540
|
content: string;
|
|
19541
|
+
approvedAt?: number | undefined;
|
|
19453
19542
|
memoContent?: string | undefined;
|
|
19454
19543
|
generatedAt?: number | undefined;
|
|
19455
|
-
approvedAt?: number | undefined;
|
|
19456
19544
|
approvedBy?: string | undefined;
|
|
19457
19545
|
generationMetadata?: {
|
|
19458
19546
|
promptName: string;
|
|
@@ -21308,6 +21396,28 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
21308
21396
|
tier: zod.ZodEnum<["free", "developer", "partner"]>;
|
|
21309
21397
|
createdAt: zod.ZodNumber;
|
|
21310
21398
|
updatedAt: zod.ZodNumber;
|
|
21399
|
+
}> | TableContract<{
|
|
21400
|
+
deviceCodeHash: zod.ZodString;
|
|
21401
|
+
userCode: zod.ZodString;
|
|
21402
|
+
clientId: zod.ZodString;
|
|
21403
|
+
scope: zod.ZodString;
|
|
21404
|
+
status: zod.ZodEnum<["pending", "approved", "denied", "expired", "consumed"]>;
|
|
21405
|
+
expiresAt: zod.ZodNumber;
|
|
21406
|
+
intervalSeconds: zod.ZodNumber;
|
|
21407
|
+
lastPolledAt: zod.ZodOptional<zod.ZodNumber>;
|
|
21408
|
+
slowDownCount: zod.ZodOptional<zod.ZodNumber>;
|
|
21409
|
+
clerkUserId: zod.ZodOptional<zod.ZodString>;
|
|
21410
|
+
tenantId: zod.ZodOptional<ConvexIdSchema<"tenants">>;
|
|
21411
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
21412
|
+
principalId: zod.ZodOptional<zod.ZodString>;
|
|
21413
|
+
role: zod.ZodOptional<zod.ZodString>;
|
|
21414
|
+
scopes: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
21415
|
+
sessionId: zod.ZodOptional<zod.ZodString>;
|
|
21416
|
+
approvedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
21417
|
+
deniedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
21418
|
+
consumedAt: zod.ZodOptional<zod.ZodNumber>;
|
|
21419
|
+
createdAt: zod.ZodNumber;
|
|
21420
|
+
updatedAt: zod.ZodNumber;
|
|
21311
21421
|
}> | TableContract<{
|
|
21312
21422
|
keyId: zod.ZodString;
|
|
21313
21423
|
tokenHash: zod.ZodString;
|
|
@@ -22591,7 +22701,7 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
22591
22701
|
parameterSchema?: Record<string, any> | undefined;
|
|
22592
22702
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
22593
22703
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
22594
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
22704
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
22595
22705
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
22596
22706
|
returnSchema?: Record<string, any> | undefined;
|
|
22597
22707
|
handlerRef?: string | undefined;
|
|
@@ -22608,7 +22718,7 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
22608
22718
|
parameterSchema?: Record<string, any> | undefined;
|
|
22609
22719
|
category?: "read" | "write" | "admin" | "system" | undefined;
|
|
22610
22720
|
requiredRole?: "platform_admin" | "tenant_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
|
|
22611
|
-
requiredAction?: "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "
|
|
22721
|
+
requiredAction?: "delete" | "read" | "admin" | "mutate" | "summarize" | "export" | "create" | "grant" | "revoke" | undefined;
|
|
22612
22722
|
surfaces?: ("cli" | "mcp" | "chat" | "voice" | "sprint" | "api" | "sdk")[] | undefined;
|
|
22613
22723
|
returnSchema?: Record<string, any> | undefined;
|
|
22614
22724
|
handlerRef?: string | undefined;
|
|
@@ -24352,9 +24462,9 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
24352
24462
|
}, "strip", zod.ZodTypeAny, {
|
|
24353
24463
|
status: "ai_draft" | "user_draft" | "final";
|
|
24354
24464
|
content: string;
|
|
24465
|
+
approvedAt?: number | undefined;
|
|
24355
24466
|
memoContent?: string | undefined;
|
|
24356
24467
|
generatedAt?: number | undefined;
|
|
24357
|
-
approvedAt?: number | undefined;
|
|
24358
24468
|
approvedBy?: string | undefined;
|
|
24359
24469
|
generationMetadata?: {
|
|
24360
24470
|
promptName: string;
|
|
@@ -24364,9 +24474,9 @@ declare function getTableContract(name: string, component?: string): TableContra
|
|
|
24364
24474
|
}, {
|
|
24365
24475
|
status: "ai_draft" | "user_draft" | "final";
|
|
24366
24476
|
content: string;
|
|
24477
|
+
approvedAt?: number | undefined;
|
|
24367
24478
|
memoContent?: string | undefined;
|
|
24368
24479
|
generatedAt?: number | undefined;
|
|
24369
|
-
approvedAt?: number | undefined;
|
|
24370
24480
|
approvedBy?: string | undefined;
|
|
24371
24481
|
generationMetadata?: {
|
|
24372
24482
|
promptName: string;
|
package/dist/schemas/manifest.js
CHANGED
|
@@ -1850,6 +1850,40 @@ var rateLimitWindows = defineTable({
|
|
|
1850
1850
|
{ kind: "index", name: "by_tier_window_end", columns: ["tier", "windowEndMs"] }
|
|
1851
1851
|
]
|
|
1852
1852
|
});
|
|
1853
|
+
var oauthDeviceCodes = defineTable({
|
|
1854
|
+
name: "oauthDeviceCodes",
|
|
1855
|
+
component: "mc",
|
|
1856
|
+
category: "identity",
|
|
1857
|
+
shape: z.object({
|
|
1858
|
+
"deviceCodeHash": z.string(),
|
|
1859
|
+
"userCode": z.string(),
|
|
1860
|
+
"clientId": z.string(),
|
|
1861
|
+
"scope": z.string(),
|
|
1862
|
+
"status": z.enum(["pending", "approved", "denied", "expired", "consumed"]),
|
|
1863
|
+
"expiresAt": z.number(),
|
|
1864
|
+
"intervalSeconds": z.number(),
|
|
1865
|
+
"lastPolledAt": z.number().optional(),
|
|
1866
|
+
"slowDownCount": z.number().optional(),
|
|
1867
|
+
"clerkUserId": z.string().optional(),
|
|
1868
|
+
"tenantId": idOf("tenants").optional(),
|
|
1869
|
+
"workspaceId": z.string().optional(),
|
|
1870
|
+
"principalId": z.string().optional(),
|
|
1871
|
+
"role": z.string().optional(),
|
|
1872
|
+
"scopes": z.array(z.string()).optional(),
|
|
1873
|
+
"sessionId": z.string().optional(),
|
|
1874
|
+
"approvedAt": z.number().optional(),
|
|
1875
|
+
"deniedAt": z.number().optional(),
|
|
1876
|
+
"consumedAt": z.number().optional(),
|
|
1877
|
+
"createdAt": z.number(),
|
|
1878
|
+
"updatedAt": z.number()
|
|
1879
|
+
}),
|
|
1880
|
+
indices: [
|
|
1881
|
+
{ kind: "index", name: "by_deviceCodeHash", columns: ["deviceCodeHash"] },
|
|
1882
|
+
{ kind: "index", name: "by_userCode", columns: ["userCode"] },
|
|
1883
|
+
{ kind: "index", name: "by_status_expiresAt", columns: ["status", "expiresAt"] },
|
|
1884
|
+
{ kind: "index", name: "by_sessionId", columns: ["sessionId"] }
|
|
1885
|
+
]
|
|
1886
|
+
});
|
|
1853
1887
|
var servicePrincipalKeys = defineTable({
|
|
1854
1888
|
name: "servicePrincipalKeys",
|
|
1855
1889
|
component: "mc",
|
|
@@ -4214,6 +4248,7 @@ var MC_TABLE_CONTRACTS = [
|
|
|
4214
4248
|
groupMemberships,
|
|
4215
4249
|
groups,
|
|
4216
4250
|
memberships,
|
|
4251
|
+
oauthDeviceCodes,
|
|
4217
4252
|
principals,
|
|
4218
4253
|
rateLimitWindows,
|
|
4219
4254
|
servicePrincipalKeys,
|