Skip to content

place.stream.branding.importBundle

Lexicon Version: 1

Type: procedure

Apply a branding bundle (see exportBundle). By default the bundle replaces the node’s branding: keys it does not mention are removed. Every value is validated like updateBlob. Requires admin authorization.

Parameters:

NameTypeReq’dDescriptionConstraints
broadcasterstring❌DID of the broadcaster. Defaults to this node’s.Format: did
mergeboolean❌Keep keys the bundle does not mention instead of removing them.Default: false
dryRunboolean❌Report what would change without writing anything.Default: false

Input:

  • Encoding: application/zip
  • Schema:

Schema not defined. Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
appliedboolean✅False for a dry run.
changesArray of #change✅
warningsArray of string❌

Possible Errors:

  • Unauthorized: The caller is not an admin.
  • InvalidBundle: The zip, its branding.yaml or one of its values is not acceptable; the message names the key.

Type: object

Properties:

NameTypeReq’dDescriptionConstraints
keystring✅
actionstring✅Known Values: added, changed, removed, unchanged
detailstring❌The new text value, or the image’s type and size.

{
"lexicon": 1,
"id": "place.stream.branding.importBundle",
"defs": {
"main": {
"type": "procedure",
"description": "Apply a branding bundle (see exportBundle). By default the bundle replaces the node's branding: keys it does not mention are removed. Every value is validated like updateBlob. Requires admin authorization.",
"parameters": {
"type": "params",
"properties": {
"broadcaster": {
"type": "string",
"format": "did",
"description": "DID of the broadcaster. Defaults to this node's."
},
"merge": {
"type": "boolean",
"default": false,
"description": "Keep keys the bundle does not mention instead of removing them."
},
"dryRun": {
"type": "boolean",
"default": false,
"description": "Report what would change without writing anything."
}
}
},
"input": {
"encoding": "application/zip"
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["applied", "changes"],
"properties": {
"applied": {
"type": "boolean",
"description": "False for a dry run."
},
"changes": {
"type": "array",
"items": {
"type": "ref",
"ref": "#change"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"errors": [
{
"name": "Unauthorized",
"description": "The caller is not an admin."
},
{
"name": "InvalidBundle",
"description": "The zip, its branding.yaml or one of its values is not acceptable; the message names the key."
}
]
},
"change": {
"type": "object",
"required": ["key", "action"],
"properties": {
"key": {
"type": "string"
},
"action": {
"type": "string",
"knownValues": ["added", "changed", "removed", "unchanged"]
},
"detail": {
"type": "string",
"description": "The new text value, or the image's type and size."
}
}
}
}
}