@usenaive-sdk/blueprints 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -1
- package/dist/index.js +535 -425
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -174,6 +174,7 @@ declare const AgentDeclSchema: z.ZodObject<{
|
|
|
174
174
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
175
|
allowed_apps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
176
176
|
identity: z.ZodOptional<z.ZodString>;
|
|
177
|
+
handoffs: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"team">, z.ZodArray<z.ZodString>]>>;
|
|
177
178
|
schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
179
|
cron: z.ZodString;
|
|
179
180
|
timezone: z.ZodOptional<z.ZodString>;
|
|
@@ -533,6 +534,7 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
533
534
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
534
535
|
allowed_apps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
536
|
identity: z.ZodOptional<z.ZodString>;
|
|
537
|
+
handoffs: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"team">, z.ZodArray<z.ZodString>]>>;
|
|
536
538
|
schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
537
539
|
cron: z.ZodString;
|
|
538
540
|
timezone: z.ZodOptional<z.ZodString>;
|
|
@@ -777,6 +779,10 @@ declare const PLATFORM_ENV: {
|
|
|
777
779
|
readonly identity_id: "NAIVE_IDENTITY_ID";
|
|
778
780
|
/** The install's `project` — the row the app's own context lookup lands on (§31.8). */
|
|
779
781
|
readonly project: "NAIVE_PROJECT";
|
|
782
|
+
/** The base URL of the Studio that installed the app, so it can send a signed-out visitor back. */
|
|
783
|
+
readonly studio_url: "NAIVE_STUDIO_URL";
|
|
784
|
+
/** The app's own `app_…` id — the one known value learnt from the row, not from the apply. */
|
|
785
|
+
readonly app_id: "NAIVE_APP_ID";
|
|
780
786
|
/** A scoped organization API key minted for the app that asks for it. */
|
|
781
787
|
readonly api_key: "NAIVE_API_KEY";
|
|
782
788
|
};
|
|
@@ -807,6 +813,14 @@ interface PlatformEnv {
|
|
|
807
813
|
*/
|
|
808
814
|
minted?: Record<string, (app: string) => Promise<string>>;
|
|
809
815
|
}
|
|
816
|
+
/** A value nobody has: 256 bits, URL-safe, no alphabet an app secret or a header would mangle. */
|
|
817
|
+
declare const generatedSecret: () => string;
|
|
818
|
+
/**
|
|
819
|
+
* `kq7m-x2rt-8bvn-pz4h`: four groups of four from a 31-letter alphabet, 16·log2(31) ≈ 79 bits. Each
|
|
820
|
+
* character is drawn by rejection sampling so the alphabet is used evenly — a modulo over 256 would
|
|
821
|
+
* not be.
|
|
822
|
+
*/
|
|
823
|
+
declare function generatedPassword(): string;
|
|
810
824
|
|
|
811
825
|
/**
|
|
812
826
|
* The reconciler behind `naive up` (`workstreams/10-blueprints.md §2`): a pure client of the
|
|
@@ -970,4 +984,4 @@ declare function up(config: Readonly<ProjectConfig>, client: VettaClient, opts?:
|
|
|
970
984
|
*/
|
|
971
985
|
declare const PROJECT_CONTEXT_PREAMBLE: string;
|
|
972
986
|
|
|
973
|
-
export { type AgentDecl, type AppDecl, BLUEPRINTS, BlueprintRefusal, CONFIG_CANDIDATES, type ConfigLoad, type CredentialDecl, type CrewPerClientDecl, type DefineInput, type FileSource, type IdentityDecl, type MigrationFile, PLATFORM_ENV, PROJECT_CONTEXT_PREAMBLE, type PlatformEnv, type ProjectConfig, type ResourceAction, type ResourceReport, type ScheduleDecl, type SkillDecl, type Template, type TemplateChoice, type TemplateKind, type UpOptions, type UpReport, type VaultDecl, chooseTemplate, collectFiles, contentHash, defineProject, hasRoster, loadConfig, migrationFiles, parseProject, selectCrew, up };
|
|
987
|
+
export { type AgentDecl, type AppDecl, BLUEPRINTS, BlueprintRefusal, CONFIG_CANDIDATES, type ConfigLoad, type CredentialDecl, type CrewPerClientDecl, type DefineInput, type FileSource, type IdentityDecl, type MigrationFile, PLATFORM_ENV, PROJECT_CONTEXT_PREAMBLE, type PlatformEnv, type ProjectConfig, type ResourceAction, type ResourceReport, type ScheduleDecl, type SkillDecl, type Template, type TemplateChoice, type TemplateKind, type UpOptions, type UpReport, type VaultDecl, chooseTemplate, collectFiles, contentHash, defineProject, generatedPassword, generatedSecret, hasRoster, loadConfig, migrationFiles, parseProject, selectCrew, up };
|