{
  "version": 3,
  "sources": ["../../../src/types/SpaceProperties.ts"],
  "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, DXN, Feed, Ref, Type } from '@dxos/echo';\n\n/**\n * Where do triggers get executed.\n */\nexport const ComputeEnvironment = Schema.Literal('disabled', 'local', 'edge');\nexport type ComputeEnvironment = Schema.Schema.Type<typeof ComputeEnvironment>;\n\nexport const SpacePropertiesSchema = Schema.Struct({\n  //\n  // System properties.\n  //\n\n  // TODO(burdon): Change to mode (no booleans?)\n  // TODO(wittjosiah): Make optional with default value.\n  edgeReplication: Schema.optional(Schema.Boolean),\n\n  /**\n   * @deprecated\n   */\n  invocationTraceFeed: Schema.optional(Ref.Ref(Feed.Feed)),\n\n  /**\n   * Preference for trigger execution.\n   * *disabled* - triggers do not run locally or on EDGE.\n   * *local* - triggers are executed locally on the client, edge is not running triggers.\n   * *edge* - triggers are executed on the edge, triggers are not run locally.\n   */\n  computeEnvironment: Schema.optional(ComputeEnvironment),\n\n  //\n  // User properties.\n  //\n\n  name: Schema.optional(Schema.String),\n  description: Schema.optional(Schema.String),\n  icon: Schema.optional(Schema.String),\n  iconHue: Schema.optional(Schema.String),\n  hue: Schema.optional(Schema.String),\n});\n\nexport type SpacePropertiesSchema = Schema.Schema.Type<typeof SpacePropertiesSchema>;\n\n// TODO(burdon): Pipe Schem.optional, or partial to entire struct to make everything optional?\n// TODO(burdon): Is separate schema def required for forms? Can it be extracted from SpaceProperties?\nexport class SpaceProperties extends Type.makeObject<SpaceProperties>(\n  DXN.make('org.dxos.type.spaceProperties', '0.1.0'),\n)(SpacePropertiesSchema.pipe(Annotation.HiddenAnnotation.set(true))) {}\n"],
  "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,KAAKC,MAAMC,KAAKC,YAAY;AAK1C,IAAMC,qBAA4BC,eAAQ,YAAY,SAAS,MAAA;AAG/D,IAAMC,wBAA+BC,cAAO;;;;;;EAOjDC,iBAAwBC,gBAAgBC,cAAO;;;;EAK/CC,qBAA4BF,gBAASP,IAAIA,IAAID,KAAKA,IAAI,CAAA;;;;;;;EAQtDW,oBAA2BH,gBAASL,kBAAAA;;;;EAMpCS,MAAaJ,gBAAgBK,aAAM;EACnCC,aAAoBN,gBAAgBK,aAAM;EAC1CE,MAAaP,gBAAgBK,aAAM;EACnCG,SAAgBR,gBAAgBK,aAAM;EACtCI,KAAYT,gBAAgBK,aAAM;AACpC,CAAA;AAMO,IAAMK,kBAAN,cAA8BhB,KAAKiB,WACxCpB,IAAIqB,KAAK,iCAAiC,OAAA,CAAA,EAC1Cf,sBAAsBgB,KAAKvB,WAAWwB,iBAAiBC,IAAI,IAAA,CAAA,CAAA,EAAA;AAAS;",
  "names": ["Schema", "Annotation", "DXN", "Feed", "Ref", "Type", "ComputeEnvironment", "Literal", "SpacePropertiesSchema", "Struct", "edgeReplication", "optional", "Boolean", "invocationTraceFeed", "computeEnvironment", "name", "String", "description", "icon", "iconHue", "hue", "SpaceProperties", "makeObject", "make", "pipe", "HiddenAnnotation", "set"]
}
