OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

flag.get

Get a feature flag by key.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.feature-flags
  • Tags: feature-flags, get
  • File: packages/libs/feature-flags/src/contracts/index.ts
  • field.key.label
    flag.get
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    flag.get
    field.description.label

    Get a feature flag by key.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.feature-flags
  • Tags: feature-flags, get
  • File: packages/libs/feature-flags/src/contracts/index.ts
  • field.tags.label
    feature-flags,get
    field.owners.label
    platform.feature-flags
    field.stability.label
    stable

    Get a feature flag by key.

    Goal

    Retrieve flag configuration.

    Context

    Called to inspect flag details.

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
    
    export const GetFlagContract = defineQuery({
    	meta: {
    		key: 'flag.get',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['platform.feature-flags'],
    		tags: ['feature-flags', 'get'],
    		description: 'Get a feature flag by key.',
    		goal: 'Retrieve flag configuration.',
    		context: 'Called to inspect flag details.',
    	},
    	io: {
    		input: GetFlagInput,
    		output: FeatureFlagModel,
    		errors: {
    			FLAG_NOT_FOUND: {
    				description: 'Flag does not exist',
    				http: 404,
    				gqlCode: 'FLAG_NOT_FOUND',
    				when: 'Flag key is invalid',
    			},
    		},
    	},
    	policy: {
    		auth: 'user',
    	},
    });