@zyraxon-ai/schema 19.0.4
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/agent.d.ts +88 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +29 -0
- package/dist/agent.js.map +1 -0
- package/dist/catalog.d.ts +90 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +5 -0
- package/dist/catalog.js.map +1 -0
- package/dist/command.d.ts +45 -0
- package/dist/command.d.ts.map +1 -0
- package/dist/command.js +13 -0
- package/dist/command.js.map +1 -0
- package/dist/connection.d.ts +29 -0
- package/dist/connection.d.ts.map +1 -0
- package/dist/connection.js +16 -0
- package/dist/connection.js.map +1 -0
- package/dist/credential.d.ts +37 -0
- package/dist/credential.d.ts.map +1 -0
- package/dist/credential.js +24 -0
- package/dist/credential.js.map +1 -0
- package/dist/durable-event-manifest.d.ts +10045 -0
- package/dist/durable-event-manifest.d.ts.map +1 -0
- package/dist/durable-event-manifest.js +13 -0
- package/dist/durable-event-manifest.js.map +1 -0
- package/dist/event-manifest.d.ts +14332 -0
- package/dist/event-manifest.d.ts.map +1 -0
- package/dist/event-manifest.js +41 -0
- package/dist/event-manifest.js.map +1 -0
- package/dist/event.d.ts +83 -0
- package/dist/event.d.ts.map +1 -0
- package/dist/event.js +74 -0
- package/dist/event.js.map +1 -0
- package/dist/file-diff.d.ts +12 -0
- package/dist/file-diff.d.ts.map +1 -0
- package/dist/file-diff.js +11 -0
- package/dist/file-diff.js.map +1 -0
- package/dist/filesystem-watcher.d.ts +103 -0
- package/dist/filesystem-watcher.d.ts.map +1 -0
- package/dist/filesystem-watcher.js +12 -0
- package/dist/filesystem-watcher.js.map +1 -0
- package/dist/filesystem.d.ts +135 -0
- package/dist/filesystem.d.ts.map +1 -0
- package/dist/filesystem.js +33 -0
- package/dist/filesystem.js.map +1 -0
- package/dist/ide-event.d.ts +97 -0
- package/dist/ide-event.d.ts.map +1 -0
- package/dist/ide-event.js +11 -0
- package/dist/ide-event.js.map +1 -0
- package/dist/identifier.d.ts +4 -0
- package/dist/identifier.d.ts.map +1 -0
- package/dist/identifier.js +25 -0
- package/dist/identifier.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/installation-event.d.ts +190 -0
- package/dist/installation-event.d.ts.map +1 -0
- package/dist/installation-event.js +17 -0
- package/dist/installation-event.js.map +1 -0
- package/dist/integration-id.d.ts +6 -0
- package/dist/integration-id.d.ts.map +1 -0
- package/dist/integration-id.js +4 -0
- package/dist/integration-id.js.map +1 -0
- package/dist/integration.d.ts +573 -0
- package/dist/integration.d.ts.map +1 -0
- package/dist/integration.js +94 -0
- package/dist/integration.js.map +1 -0
- package/dist/legacy-event.d.ts +2 -0
- package/dist/legacy-event.d.ts.map +1 -0
- package/dist/legacy-event.js +2 -0
- package/dist/legacy-event.js.map +1 -0
- package/dist/llm.d.ts +29 -0
- package/dist/llm.d.ts.map +1 -0
- package/dist/llm.js +20 -0
- package/dist/llm.js.map +1 -0
- package/dist/location.d.ts +37 -0
- package/dist/location.d.ts.map +1 -0
- package/dist/location.js +22 -0
- package/dist/location.js.map +1 -0
- package/dist/lsp-event.d.ts +88 -0
- package/dist/lsp-event.d.ts.map +1 -0
- package/dist/lsp-event.js +5 -0
- package/dist/lsp-event.js.map +1 -0
- package/dist/mcp-event.d.ts +194 -0
- package/dist/mcp-event.d.ts.map +1 -0
- package/dist/mcp-event.js +18 -0
- package/dist/mcp-event.js.map +1 -0
- package/dist/model.d.ts +206 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +87 -0
- package/dist/model.js.map +1 -0
- package/dist/models-dev.d.ts +90 -0
- package/dist/models-dev.d.ts.map +1 -0
- package/dist/models-dev.js +8 -0
- package/dist/models-dev.js.map +1 -0
- package/dist/permission-saved.d.ts +19 -0
- package/dist/permission-saved.d.ts.map +1 -0
- package/dist/permission-saved.js +13 -0
- package/dist/permission-saved.js.map +1 -0
- package/dist/permission-v1.d.ts +2 -0
- package/dist/permission-v1.d.ts.map +1 -0
- package/dist/permission-v1.js +2 -0
- package/dist/permission-v1.js.map +1 -0
- package/dist/permission.d.ts +347 -0
- package/dist/permission.d.ts.map +1 -0
- package/dist/permission.js +46 -0
- package/dist/permission.js.map +1 -0
- package/dist/plugin.d.ts +101 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +10 -0
- package/dist/plugin.js.map +1 -0
- package/dist/project-copy.d.ts +30 -0
- package/dist/project-copy.d.ts.map +1 -0
- package/dist/project-copy.js +22 -0
- package/dist/project-copy.js.map +1 -0
- package/dist/project-directories.d.ts +106 -0
- package/dist/project-directories.d.ts.map +1 -0
- package/dist/project-directories.js +9 -0
- package/dist/project-directories.js.map +1 -0
- package/dist/project-id.d.ts +6 -0
- package/dist/project-id.d.ts.map +1 -0
- package/dist/project-id.js +4 -0
- package/dist/project-id.js.map +1 -0
- package/dist/project.d.ts +253 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +33 -0
- package/dist/project.js.map +1 -0
- package/dist/prompt-input.d.ts +107 -0
- package/dist/prompt-input.d.ts.map +1 -0
- package/dist/prompt-input.js +20 -0
- package/dist/prompt-input.js.map +1 -0
- package/dist/prompt.d.ts +178 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +44 -0
- package/dist/prompt.js.map +1 -0
- package/dist/provider.d.ts +112 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +54 -0
- package/dist/provider.js.map +1 -0
- package/dist/pty-ticket.d.ts +9 -0
- package/dist/pty-ticket.d.ts.map +1 -0
- package/dist/pty-ticket.js +8 -0
- package/dist/pty-ticket.js.map +1 -0
- package/dist/pty.d.ts +543 -0
- package/dist/pty.d.ts.map +1 -0
- package/dist/pty.js +44 -0
- package/dist/pty.js.map +1 -0
- package/dist/question-v1.d.ts +2 -0
- package/dist/question-v1.d.ts.map +1 -0
- package/dist/question-v1.js +2 -0
- package/dist/question-v1.js.map +1 -0
- package/dist/question.d.ts +517 -0
- package/dist/question.d.ts.map +1 -0
- package/dist/question.js +65 -0
- package/dist/question.js.map +1 -0
- package/dist/reference.d.ts +141 -0
- package/dist/reference.d.ts.map +1 -0
- package/dist/reference.js +32 -0
- package/dist/reference.js.map +1 -0
- package/dist/revert.d.ts +35 -0
- package/dist/revert.d.ts.map +1 -0
- package/dist/revert.js +20 -0
- package/dist/revert.js.map +1 -0
- package/dist/schema.d.ts +11 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +15 -0
- package/dist/schema.js.map +1 -0
- package/dist/server-event.d.ts +173 -0
- package/dist/server-event.d.ts.map +1 -0
- package/dist/server-event.js +6 -0
- package/dist/server-event.js.map +1 -0
- package/dist/session-compaction-event.d.ts +108 -0
- package/dist/session-compaction-event.d.ts.map +1 -0
- package/dist/session-compaction-event.js +11 -0
- package/dist/session-compaction-event.js.map +1 -0
- package/dist/session-delivery.d.ts +5 -0
- package/dist/session-delivery.d.ts.map +1 -0
- package/dist/session-delivery.js +4 -0
- package/dist/session-delivery.js.map +1 -0
- package/dist/session-event.d.ts +13248 -0
- package/dist/session-event.d.ts.map +1 -0
- package/dist/session-event.js +391 -0
- package/dist/session-event.js.map +1 -0
- package/dist/session-id.d.ts +7 -0
- package/dist/session-id.d.ts.map +1 -0
- package/dist/session-id.js +11 -0
- package/dist/session-id.js.map +1 -0
- package/dist/session-input.d.ts +146 -0
- package/dist/session-input.d.ts.map +1 -0
- package/dist/session-input.js +19 -0
- package/dist/session-input.js.map +1 -0
- package/dist/session-message.d.ts +1292 -0
- package/dist/session-message.d.ts.map +1 -0
- package/dist/session-message.js +164 -0
- package/dist/session-message.js.map +1 -0
- package/dist/session-status-event.d.ts +340 -0
- package/dist/session-status-event.d.ts.map +1 -0
- package/dist/session-status-event.js +44 -0
- package/dist/session-status-event.js.map +1 -0
- package/dist/session-todo.d.ts +138 -0
- package/dist/session-todo.d.ts.map +1 -0
- package/dist/session-todo.js +22 -0
- package/dist/session-todo.js.map +1 -0
- package/dist/session-v1.d.ts +2 -0
- package/dist/session-v1.d.ts.map +1 -0
- package/dist/session-v1.js +2 -0
- package/dist/session-v1.js.map +1 -0
- package/dist/session.d.ts +141 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +44 -0
- package/dist/session.js.map +1 -0
- package/dist/skill.d.ts +56 -0
- package/dist/skill.d.ts.map +1 -0
- package/dist/skill.js +42 -0
- package/dist/skill.js.map +1 -0
- package/dist/tui-event.d.ts +388 -0
- package/dist/tui-event.d.ts.map +1 -0
- package/dist/tui-event.js +53 -0
- package/dist/tui-event.js.map +1 -0
- package/dist/v1/legacy-event.d.ts +129 -0
- package/dist/v1/legacy-event.d.ts.map +1 -0
- package/dist/v1/legacy-event.js +16 -0
- package/dist/v1/legacy-event.js.map +1 -0
- package/dist/v1/permission.d.ts +357 -0
- package/dist/v1/permission.d.ts.map +1 -0
- package/dist/v1/permission.js +42 -0
- package/dist/v1/permission.js.map +1 -0
- package/dist/v1/question.d.ts +505 -0
- package/dist/v1/question.d.ts.map +1 -0
- package/dist/v1/question.js +58 -0
- package/dist/v1/question.js.map +1 -0
- package/dist/v1/session.d.ts +7776 -0
- package/dist/v1/session.d.ts.map +1 -0
- package/dist/v1/session.js +536 -0
- package/dist/v1/session.js.map +1 -0
- package/dist/vcs-event.d.ts +97 -0
- package/dist/vcs-event.d.ts.map +1 -0
- package/dist/vcs-event.js +12 -0
- package/dist/vcs-event.js.map +1 -0
- package/dist/workspace-event.d.ts +308 -0
- package/dist/workspace-event.d.ts.map +1 -0
- package/dist/workspace-event.js +26 -0
- package/dist/workspace-event.js.map +1 -0
- package/dist/workspace-id.d.ts +7 -0
- package/dist/workspace-id.d.ts.map +1 -0
- package/dist/workspace-id.js +17 -0
- package/dist/workspace-id.js.map +1 -0
- package/dist/workspace.d.ts +10 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +6 -0
- package/dist/workspace.js.map +1 -0
- package/dist/worktree-event.d.ts +194 -0
- package/dist/worktree-event.d.ts.map +1 -0
- package/dist/worktree-event.js +19 -0
- package/dist/worktree-event.js.map +1 -0
- package/package.json +44 -0
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export * as Model from "./model";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { Provider } from "./provider";
|
|
4
|
+
export declare const ID: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
5
|
+
export type ID = typeof ID.Type;
|
|
6
|
+
export declare const VariantID: Schema.brand<Schema.String, "VariantID">;
|
|
7
|
+
export type VariantID = typeof VariantID.Type;
|
|
8
|
+
export declare const Ref: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
10
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
11
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
12
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
14
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
15
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
16
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
17
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
18
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
19
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
20
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
21
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
22
|
+
};
|
|
23
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
24
|
+
}>;
|
|
25
|
+
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
26
|
+
}
|
|
27
|
+
export declare const Family: Schema.brand<Schema.String, "Family">;
|
|
28
|
+
export type Family = typeof Family.Type;
|
|
29
|
+
export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> {
|
|
30
|
+
}
|
|
31
|
+
export declare const Capabilities: Schema.Struct<{
|
|
32
|
+
readonly tools: Schema.Boolean;
|
|
33
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
34
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
35
|
+
}>;
|
|
36
|
+
export interface Cost extends Schema.Schema.Type<typeof Cost> {
|
|
37
|
+
}
|
|
38
|
+
export declare const Cost: Schema.Struct<{
|
|
39
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"context">;
|
|
41
|
+
readonly size: Schema.Int;
|
|
42
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"context">;
|
|
44
|
+
readonly size: Schema.Int;
|
|
45
|
+
}>>, never, never>;
|
|
46
|
+
readonly input: Schema.Finite;
|
|
47
|
+
readonly output: Schema.Finite;
|
|
48
|
+
readonly cache: Schema.Struct<{
|
|
49
|
+
readonly read: Schema.Finite;
|
|
50
|
+
readonly write: Schema.Finite;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const Api: Schema.Union<readonly [Schema.Struct<{
|
|
54
|
+
readonly type: Schema.Literal<"aisdk">;
|
|
55
|
+
readonly package: Schema.String;
|
|
56
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
57
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
58
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
59
|
+
}>, Schema.Struct<{
|
|
60
|
+
readonly type: Schema.Literal<"native">;
|
|
61
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
62
|
+
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
63
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
64
|
+
}>]>;
|
|
65
|
+
export type Api = typeof Api.Type;
|
|
66
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
67
|
+
}
|
|
68
|
+
export declare const Info: Schema.Struct<{
|
|
69
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
70
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
71
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
72
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
73
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
74
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
75
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
76
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
77
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
78
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
79
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
80
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
81
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
82
|
+
};
|
|
83
|
+
readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
|
|
84
|
+
readonly name: Schema.String;
|
|
85
|
+
readonly api: Schema.Union<readonly [Schema.Struct<{
|
|
86
|
+
readonly type: Schema.Literal<"aisdk">;
|
|
87
|
+
readonly package: Schema.String;
|
|
88
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
89
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
90
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
91
|
+
}>, Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"native">;
|
|
93
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
94
|
+
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
95
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
96
|
+
}>]>;
|
|
97
|
+
readonly capabilities: Schema.Struct<{
|
|
98
|
+
readonly tools: Schema.Boolean;
|
|
99
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
100
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly request: Schema.Struct<{
|
|
103
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
104
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
105
|
+
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
106
|
+
}>;
|
|
107
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
108
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
109
|
+
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
110
|
+
readonly id: Schema.brand<Schema.String, "VariantID">;
|
|
111
|
+
}>>;
|
|
112
|
+
readonly time: Schema.Struct<{
|
|
113
|
+
readonly released: Schema.Finite;
|
|
114
|
+
}>;
|
|
115
|
+
readonly cost: Schema.$Array<Schema.Struct<{
|
|
116
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
117
|
+
readonly type: Schema.Literal<"context">;
|
|
118
|
+
readonly size: Schema.Int;
|
|
119
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
120
|
+
readonly type: Schema.Literal<"context">;
|
|
121
|
+
readonly size: Schema.Int;
|
|
122
|
+
}>>, never, never>;
|
|
123
|
+
readonly input: Schema.Finite;
|
|
124
|
+
readonly output: Schema.Finite;
|
|
125
|
+
readonly cache: Schema.Struct<{
|
|
126
|
+
readonly read: Schema.Finite;
|
|
127
|
+
readonly write: Schema.Finite;
|
|
128
|
+
}>;
|
|
129
|
+
}>>;
|
|
130
|
+
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
131
|
+
readonly enabled: Schema.Boolean;
|
|
132
|
+
readonly limit: Schema.Struct<{
|
|
133
|
+
readonly context: Schema.Int;
|
|
134
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
135
|
+
readonly output: Schema.Int;
|
|
136
|
+
}>;
|
|
137
|
+
}> & {
|
|
138
|
+
empty: (providerID: Provider.ID, modelID: ID) => {
|
|
139
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
140
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
141
|
+
readonly name: string;
|
|
142
|
+
readonly api: {
|
|
143
|
+
readonly type: "aisdk";
|
|
144
|
+
readonly package: string;
|
|
145
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
146
|
+
readonly url?: string;
|
|
147
|
+
readonly settings?: {
|
|
148
|
+
readonly [x: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
} | {
|
|
151
|
+
readonly type: "native";
|
|
152
|
+
readonly settings: {
|
|
153
|
+
readonly [x: string]: unknown;
|
|
154
|
+
};
|
|
155
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
156
|
+
readonly url?: string;
|
|
157
|
+
};
|
|
158
|
+
readonly capabilities: {
|
|
159
|
+
readonly tools: boolean;
|
|
160
|
+
readonly input: readonly string[];
|
|
161
|
+
readonly output: readonly string[];
|
|
162
|
+
};
|
|
163
|
+
readonly request: {
|
|
164
|
+
readonly headers: {
|
|
165
|
+
readonly [x: string]: string;
|
|
166
|
+
};
|
|
167
|
+
readonly body: {
|
|
168
|
+
readonly [x: string]: Schema.Json;
|
|
169
|
+
};
|
|
170
|
+
readonly variant?: string;
|
|
171
|
+
};
|
|
172
|
+
readonly variants: readonly {
|
|
173
|
+
readonly headers: {
|
|
174
|
+
readonly [x: string]: string;
|
|
175
|
+
};
|
|
176
|
+
readonly body: {
|
|
177
|
+
readonly [x: string]: Schema.Json;
|
|
178
|
+
};
|
|
179
|
+
readonly id: string & import("effect/Brand").Brand<"VariantID">;
|
|
180
|
+
}[];
|
|
181
|
+
readonly time: {
|
|
182
|
+
readonly released: number;
|
|
183
|
+
};
|
|
184
|
+
readonly cost: readonly {
|
|
185
|
+
readonly input: number;
|
|
186
|
+
readonly output: number;
|
|
187
|
+
readonly cache: {
|
|
188
|
+
readonly read: number;
|
|
189
|
+
readonly write: number;
|
|
190
|
+
};
|
|
191
|
+
readonly tier?: {
|
|
192
|
+
readonly type: "context";
|
|
193
|
+
readonly size: number;
|
|
194
|
+
};
|
|
195
|
+
}[];
|
|
196
|
+
readonly status: "alpha" | "beta" | "deprecated" | "active";
|
|
197
|
+
readonly enabled: boolean;
|
|
198
|
+
readonly limit: {
|
|
199
|
+
readonly context: number;
|
|
200
|
+
readonly output: number;
|
|
201
|
+
readonly input?: number;
|
|
202
|
+
};
|
|
203
|
+
readonly family?: string & import("effect/Brand").Brand<"Family">;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAGrC,eAAO,MAAM,EAAE,2CAAiD,CAAA;AAChE,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAA;AAE/B,eAAO,MAAM,SAAS,0CAAgD,CAAA;AACtE,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;EAIwB,CAAA;AACxC,MAAM,WAAW,GAAI,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC;CAAG;AAE9D,eAAO,MAAM,MAAM,uCAA6C,CAAA;AAChE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC;CAAG;AAChF,eAAO,MAAM,YAAY;;;;EAIwB,CAAA;AAEjD,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAChE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;EAWwB,CAAA;AAEzC,eAAO,MAAM,GAAG;;;;;;;;;;;IAWwB,CAAA;AACxC,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,IAAI,CAAA;AAEjC,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAChE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8BS,QAAQ,CAAC,EAAE,WAAW,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAA"}
|
package/dist/model.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export * as Model from "./model";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { optional } from "./schema";
|
|
4
|
+
import { Provider } from "./provider";
|
|
5
|
+
import { statics } from "./schema";
|
|
6
|
+
export const ID = Schema.String.pipe(Schema.brand("ModelV2.ID"));
|
|
7
|
+
export const VariantID = Schema.String.pipe(Schema.brand("VariantID"));
|
|
8
|
+
export const Ref = Schema.Struct({
|
|
9
|
+
id: ID,
|
|
10
|
+
providerID: Provider.ID,
|
|
11
|
+
variant: VariantID.pipe(optional),
|
|
12
|
+
}).annotate({ identifier: "Model.Ref" });
|
|
13
|
+
export const Family = Schema.String.pipe(Schema.brand("Family"));
|
|
14
|
+
export const Capabilities = Schema.Struct({
|
|
15
|
+
tools: Schema.Boolean,
|
|
16
|
+
input: Schema.Array(Schema.String),
|
|
17
|
+
output: Schema.Array(Schema.String),
|
|
18
|
+
}).annotate({ identifier: "Model.Capabilities" });
|
|
19
|
+
export const Cost = Schema.Struct({
|
|
20
|
+
tier: Schema.Struct({
|
|
21
|
+
type: Schema.Literal("context"),
|
|
22
|
+
size: Schema.Int,
|
|
23
|
+
}).pipe(optional),
|
|
24
|
+
input: Schema.Finite,
|
|
25
|
+
output: Schema.Finite,
|
|
26
|
+
cache: Schema.Struct({
|
|
27
|
+
read: Schema.Finite,
|
|
28
|
+
write: Schema.Finite,
|
|
29
|
+
}),
|
|
30
|
+
}).annotate({ identifier: "Model.Cost" });
|
|
31
|
+
export const Api = Schema.Union([
|
|
32
|
+
Schema.Struct({
|
|
33
|
+
id: ID,
|
|
34
|
+
...Provider.AISDK.fields,
|
|
35
|
+
}),
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
id: ID,
|
|
38
|
+
...Provider.Native.fields,
|
|
39
|
+
}),
|
|
40
|
+
])
|
|
41
|
+
.pipe(Schema.toTaggedUnion("type"))
|
|
42
|
+
.annotate({ identifier: "Model.Api" });
|
|
43
|
+
export const Info = Schema.Struct({
|
|
44
|
+
id: ID,
|
|
45
|
+
providerID: Provider.ID,
|
|
46
|
+
family: Family.pipe(optional),
|
|
47
|
+
name: Schema.String,
|
|
48
|
+
api: Api,
|
|
49
|
+
capabilities: Capabilities,
|
|
50
|
+
request: Schema.Struct({
|
|
51
|
+
...Provider.Request.fields,
|
|
52
|
+
variant: Schema.String.pipe(optional),
|
|
53
|
+
}),
|
|
54
|
+
variants: Schema.Struct({
|
|
55
|
+
id: VariantID,
|
|
56
|
+
...Provider.Request.fields,
|
|
57
|
+
}).pipe(Schema.Array),
|
|
58
|
+
time: Schema.Struct({
|
|
59
|
+
released: Schema.Finite,
|
|
60
|
+
}),
|
|
61
|
+
cost: Schema.Array(Cost),
|
|
62
|
+
status: Schema.Literals(["alpha", "beta", "deprecated", "active"]),
|
|
63
|
+
enabled: Schema.Boolean,
|
|
64
|
+
limit: Schema.Struct({
|
|
65
|
+
context: Schema.Int,
|
|
66
|
+
input: Schema.Int.pipe(optional),
|
|
67
|
+
output: Schema.Int,
|
|
68
|
+
}),
|
|
69
|
+
})
|
|
70
|
+
.annotate({ identifier: "ModelV2.Info" })
|
|
71
|
+
.pipe(statics((schema) => ({
|
|
72
|
+
empty: (providerID, modelID) => schema.make({
|
|
73
|
+
id: modelID,
|
|
74
|
+
providerID,
|
|
75
|
+
name: modelID,
|
|
76
|
+
api: { id: modelID, type: "native", settings: {} },
|
|
77
|
+
capabilities: { tools: false, input: [], output: [] },
|
|
78
|
+
request: { headers: {}, body: {} },
|
|
79
|
+
variants: [],
|
|
80
|
+
time: { released: 0 },
|
|
81
|
+
cost: [],
|
|
82
|
+
status: "active",
|
|
83
|
+
enabled: true,
|
|
84
|
+
limit: { context: 0, output: 0 },
|
|
85
|
+
}),
|
|
86
|
+
})));
|
|
87
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export * as ModelsDev from "./models-dev";
|
|
2
|
+
export declare const Event: {
|
|
3
|
+
Refreshed: import("effect/Schema").Struct<{
|
|
4
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
+
};
|
|
7
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
8
|
+
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
9
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
11
|
+
readonly seq: import("effect/Schema").Int;
|
|
12
|
+
readonly version: import("effect/Schema").Int;
|
|
13
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
15
|
+
readonly seq: import("effect/Schema").Int;
|
|
16
|
+
readonly version: import("effect/Schema").Int;
|
|
17
|
+
}>>, never, never>;
|
|
18
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
21
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
22
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
24
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
25
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
+
}>, never, never>;
|
|
27
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
28
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
29
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
30
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
32
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
33
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
34
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
35
|
+
}>, never, never>;
|
|
36
|
+
}>>, never, never>;
|
|
37
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
38
|
+
}> & {
|
|
39
|
+
data: import("effect/Schema").Struct<{}>;
|
|
40
|
+
durable?: {
|
|
41
|
+
readonly version: number;
|
|
42
|
+
readonly aggregate: string;
|
|
43
|
+
};
|
|
44
|
+
type: "models-dev.refreshed";
|
|
45
|
+
};
|
|
46
|
+
Definitions: readonly [import("effect/Schema").Struct<{
|
|
47
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
48
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
49
|
+
};
|
|
50
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
51
|
+
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
52
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
53
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
54
|
+
readonly seq: import("effect/Schema").Int;
|
|
55
|
+
readonly version: import("effect/Schema").Int;
|
|
56
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
57
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
58
|
+
readonly seq: import("effect/Schema").Int;
|
|
59
|
+
readonly version: import("effect/Schema").Int;
|
|
60
|
+
}>>, never, never>;
|
|
61
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
62
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
63
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
64
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
65
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
66
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
67
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
68
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
69
|
+
}>, never, never>;
|
|
70
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
71
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
72
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
73
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
74
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
75
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
76
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
77
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
78
|
+
}>, never, never>;
|
|
79
|
+
}>>, never, never>;
|
|
80
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
81
|
+
}> & {
|
|
82
|
+
data: import("effect/Schema").Struct<{}>;
|
|
83
|
+
durable?: {
|
|
84
|
+
readonly version: number;
|
|
85
|
+
readonly aggregate: string;
|
|
86
|
+
};
|
|
87
|
+
type: "models-dev.refreshed";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=models-dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models-dev.d.ts","sourceRoot":"","sources":["../src/models-dev.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AAQzC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as ModelsDev from "./models-dev";
|
|
2
|
+
import { define, inventory } from "./event";
|
|
3
|
+
const Refreshed = define({
|
|
4
|
+
type: "models-dev.refreshed",
|
|
5
|
+
schema: {},
|
|
6
|
+
});
|
|
7
|
+
export const Event = { Refreshed, Definitions: inventory(Refreshed) };
|
|
8
|
+
//# sourceMappingURL=models-dev.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models-dev.js","sourceRoot":"","sources":["../src/models-dev.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,SAAS,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE,EAAE;CACX,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * as PermissionSaved from "./permission-saved";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const ID: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
4
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
5
|
+
};
|
|
6
|
+
export type ID = typeof ID.Type;
|
|
7
|
+
export declare const Info: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
9
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
10
|
+
};
|
|
11
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
12
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
13
|
+
};
|
|
14
|
+
readonly action: Schema.String;
|
|
15
|
+
readonly resource: Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=permission-saved.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-saved.d.ts","sourceRoot":"","sources":["../src/permission-saved.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,eAAO,MAAM,EAAE;;CAGd,CAAA;AACD,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAA;AAE/B,eAAO,MAAM,IAAI;;;;;;;;;EAKkC,CAAA;AACnD,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * as PermissionSaved from "./permission-saved";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { ascending } from "./identifier";
|
|
4
|
+
import { ProjectID } from "./project-id";
|
|
5
|
+
import { statics } from "./schema";
|
|
6
|
+
export const ID = Schema.String.pipe(Schema.brand("PermissionSaved.ID"), statics((schema) => ({ create: () => schema.make("psv_" + ascending()) })));
|
|
7
|
+
export const Info = Schema.Struct({
|
|
8
|
+
id: ID,
|
|
9
|
+
projectID: ProjectID,
|
|
10
|
+
action: Schema.String,
|
|
11
|
+
resource: Schema.String,
|
|
12
|
+
}).annotate({ identifier: "PermissionSaved.Info" });
|
|
13
|
+
//# sourceMappingURL=permission-saved.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-saved.js","sourceRoot":"","sources":["../src/permission-saved.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAClC,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAClC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAC3E,CAAA;AAGD,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,EAAE;IACN,SAAS,EAAE,SAAS;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC,MAAM;CACxB,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,sBAAsB,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-v1.d.ts","sourceRoot":"","sources":["../src/permission-v1.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-v1.js","sourceRoot":"","sources":["../src/permission-v1.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|