initiative-plugin-sdk 9.0.0 → 9.0.1
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/README.md +35 -11
- package/dist/contract.d.ts +64 -22
- package/dist/contract.js +4 -2
- package/dist/contract.js.map +1 -1
- package/dist/plugin-api.generated.d.ts +71 -75
- package/dist/plugin-api.generated.js +23 -23
- package/dist/plugin-api.generated.js.map +1 -1
- package/dist/validate.d.ts +4 -3
- package/dist/validate.js +14 -6
- package/dist/validate.js.map +1 -1
- package/manifest.contract.json +116 -10
- package/package.json +1 -1
- package/schemas/plugin-api.json +196 -174
- package/schemas/plugin-manifest.json +115 -10
package/schemas/plugin-api.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Initiative plug-in API",
|
|
5
|
-
"version": "9.0.
|
|
5
|
+
"version": "9.0.1",
|
|
6
6
|
"x-initiative-source": {
|
|
7
7
|
"version": "0.77.1",
|
|
8
|
-
"commit": "
|
|
8
|
+
"commit": "efa16ee25a363fd946adac3d4a3626d322922156"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"servers": [
|
|
@@ -5172,7 +5172,7 @@
|
|
|
5172
5172
|
"files"
|
|
5173
5173
|
],
|
|
5174
5174
|
"summary": "List Collection Shapes",
|
|
5175
|
-
"description": "The ready-made shapes a new collection can start as, grouped, in the\nreader's language: the lists each shows and opens on, and its
|
|
5175
|
+
"description": "The ready-made shapes a new collection can start as, grouped, in the\nreader's language: the lists each shows and opens on, and its metadata.",
|
|
5176
5176
|
"operationId": "list_collection_shapes",
|
|
5177
5177
|
"security": [
|
|
5178
5178
|
{
|
|
@@ -5313,7 +5313,7 @@
|
|
|
5313
5313
|
"files"
|
|
5314
5314
|
],
|
|
5315
5315
|
"summary": "Create Collection",
|
|
5316
|
-
"description": "Make a collection of files. It starts with the files named, each one a\nfile of the initiative the reader can open. Takes the initiative role's\nright to create files. It starts blank, as a ready-made ``shape`` with\nits words in the maker's language, or with the
|
|
5316
|
+
"description": "Make a collection of files. It starts with the files named, each one a\nfile of the initiative the reader can open. Takes the initiative role's\nright to create files. It starts blank, as a ready-made ``shape`` with\nits words in the maker's language, or with the metadata and lists of\n``shape_from``, a collection of the same initiative the maker sees.",
|
|
5317
5317
|
"operationId": "create_collection",
|
|
5318
5318
|
"security": [
|
|
5319
5319
|
{
|
|
@@ -5566,14 +5566,14 @@
|
|
|
5566
5566
|
]
|
|
5567
5567
|
}
|
|
5568
5568
|
},
|
|
5569
|
-
"/collections/{collection_id}/files/{file_id}/
|
|
5569
|
+
"/collections/{collection_id}/files/{file_id}/metadata": {
|
|
5570
5570
|
"get": {
|
|
5571
5571
|
"tags": [
|
|
5572
5572
|
"files"
|
|
5573
5573
|
],
|
|
5574
|
-
"summary": "Get Collection File
|
|
5575
|
-
"description": "One file's values of the collection's
|
|
5576
|
-
"operationId": "
|
|
5574
|
+
"summary": "Get Collection File Metadata",
|
|
5575
|
+
"description": "One file's values of the collection's metadata, for a file in the\ncollection the reader can open.",
|
|
5576
|
+
"operationId": "get_collection_file_metadata",
|
|
5577
5577
|
"security": [
|
|
5578
5578
|
{
|
|
5579
5579
|
"PluginToken": []
|
|
@@ -5589,7 +5589,7 @@
|
|
|
5589
5589
|
"items": {
|
|
5590
5590
|
"$ref": "#/components/schemas/PropertySummary"
|
|
5591
5591
|
},
|
|
5592
|
-
"title": "Response Get Collection File
|
|
5592
|
+
"title": "Response Get Collection File Metadata"
|
|
5593
5593
|
}
|
|
5594
5594
|
}
|
|
5595
5595
|
}
|
|
@@ -5647,9 +5647,9 @@
|
|
|
5647
5647
|
"tags": [
|
|
5648
5648
|
"files"
|
|
5649
5649
|
],
|
|
5650
|
-
"summary": "Set Collection File
|
|
5651
|
-
"description": "Replace one file's values of the collection's
|
|
5652
|
-
"operationId": "
|
|
5650
|
+
"summary": "Set Collection File Metadata",
|
|
5651
|
+
"description": "Replace one file's values of the collection's metadata, or with\n``merge`` write only the ones named, as ``PUT /properties`` does for a\nproperty. The file is one in the collection the reader can open, and the\nvalues are the collection's: they take the right to change the\ncollection, not to edit the file. An empty list clears them all.",
|
|
5652
|
+
"operationId": "set_collection_file_metadata",
|
|
5653
5653
|
"security": [
|
|
5654
5654
|
{
|
|
5655
5655
|
"PluginToken": []
|
|
@@ -5675,7 +5675,7 @@
|
|
|
5675
5675
|
"items": {
|
|
5676
5676
|
"$ref": "#/components/schemas/PropertySummary"
|
|
5677
5677
|
},
|
|
5678
|
-
"title": "Response Set Collection File
|
|
5678
|
+
"title": "Response Set Collection File Metadata"
|
|
5679
5679
|
}
|
|
5680
5680
|
}
|
|
5681
5681
|
}
|
|
@@ -10600,7 +10600,7 @@
|
|
|
10600
10600
|
"property-definitions"
|
|
10601
10601
|
],
|
|
10602
10602
|
"summary": "List Property Definitions",
|
|
10603
|
-
"description": "List property definitions.\n\nWith ``initiative_id``, returns definitions for that initiative only\n(filtered explicitly and subject to RLS). Without it, RLS returns the\nunion across every initiative the caller can see — used by global\nviews (My Tasks, Created Tasks, global Files list). A
|
|
10603
|
+
"description": "List property definitions, or a project's or a collection's metadata.\n\nWith ``initiative_id``, returns definitions for that initiative only\n(filtered explicitly and subject to RLS). Without it, RLS returns the\nunion across every initiative the caller can see — used by global\nviews (My Tasks, Created Tasks, global Files list). A project's metadata\nis listed only with its ``project_id``, and only to whoever can open the\nproject; a collection's only with its ``collection_id``, and only to\nwhoever sees the collection.",
|
|
10604
10604
|
"operationId": "list_property_definitions",
|
|
10605
10605
|
"security": [
|
|
10606
10606
|
{
|
|
@@ -10664,6 +10664,24 @@
|
|
|
10664
10664
|
"title": "Initiative Id"
|
|
10665
10665
|
}
|
|
10666
10666
|
},
|
|
10667
|
+
{
|
|
10668
|
+
"name": "project_id",
|
|
10669
|
+
"in": "query",
|
|
10670
|
+
"required": false,
|
|
10671
|
+
"schema": {
|
|
10672
|
+
"anyOf": [
|
|
10673
|
+
{
|
|
10674
|
+
"type": "integer"
|
|
10675
|
+
},
|
|
10676
|
+
{
|
|
10677
|
+
"type": "null"
|
|
10678
|
+
}
|
|
10679
|
+
],
|
|
10680
|
+
"description": "List this project's metadata instead of properties.",
|
|
10681
|
+
"title": "Project Id"
|
|
10682
|
+
},
|
|
10683
|
+
"description": "List this project's metadata instead of properties."
|
|
10684
|
+
},
|
|
10667
10685
|
{
|
|
10668
10686
|
"name": "collection_id",
|
|
10669
10687
|
"in": "query",
|
|
@@ -10677,10 +10695,10 @@
|
|
|
10677
10695
|
"type": "null"
|
|
10678
10696
|
}
|
|
10679
10697
|
],
|
|
10680
|
-
"description": "List this collection's
|
|
10698
|
+
"description": "List this collection's metadata instead of properties.",
|
|
10681
10699
|
"title": "Collection Id"
|
|
10682
10700
|
},
|
|
10683
|
-
"description": "List this collection's
|
|
10701
|
+
"description": "List this collection's metadata instead of properties."
|
|
10684
10702
|
},
|
|
10685
10703
|
{
|
|
10686
10704
|
"name": "session_token",
|
|
@@ -10705,7 +10723,7 @@
|
|
|
10705
10723
|
"property-definitions"
|
|
10706
10724
|
],
|
|
10707
10725
|
"summary": "Create Property Definition",
|
|
10708
|
-
"description": "Create a new property definition on an initiative, or with\n``collection_id``
|
|
10726
|
+
"description": "Create a new property definition on an initiative, or with\n``project_id`` or ``collection_id`` that project's or collection's\nmetadata.\n\nA property requires the caller to be in the target initiative (or a guild\nadmin); an installed plug-in also needs ``properties:write``. A project's\nmetadata requires the right to write the project's tasks (and\n``projects:write`` of a plug-in); a collection's the right to change the\ncollection (and ``files:write`` of a plug-in).",
|
|
10709
10727
|
"operationId": "create_property_definition",
|
|
10710
10728
|
"security": [
|
|
10711
10729
|
{
|
|
@@ -10745,9 +10763,10 @@
|
|
|
10745
10763
|
}
|
|
10746
10764
|
},
|
|
10747
10765
|
"x-plugin-scope": {
|
|
10748
|
-
"per": "
|
|
10766
|
+
"per": "owner's_scope",
|
|
10749
10767
|
"any_of": [
|
|
10750
10768
|
"files:write",
|
|
10769
|
+
"projects:write",
|
|
10751
10770
|
"properties:write"
|
|
10752
10771
|
]
|
|
10753
10772
|
},
|
|
@@ -10777,7 +10796,7 @@
|
|
|
10777
10796
|
"property-definitions"
|
|
10778
10797
|
],
|
|
10779
10798
|
"summary": "Update Property Definition",
|
|
10780
|
-
"description": "Update a property definition.\n\nType changes are not allowed via this endpoint; callers should\ndelete the definition and re-create. Changing the option list on a\nselect / multi_select definition returns ``orphaned_value_count`` so\nthe SPA can warn about dangling values. A collection's
|
|
10799
|
+
"description": "Update a property definition.\n\nType changes are not allowed via this endpoint; callers should\ndelete the definition and re-create. Changing the option list on a\nselect / multi_select definition returns ``orphaned_value_count`` so\nthe SPA can warn about dangling values. A project's or a collection's\nmetadata is changed by whoever may define it.",
|
|
10781
10800
|
"operationId": "update_property_definition",
|
|
10782
10801
|
"security": [
|
|
10783
10802
|
{
|
|
@@ -10817,9 +10836,10 @@
|
|
|
10817
10836
|
}
|
|
10818
10837
|
},
|
|
10819
10838
|
"x-plugin-scope": {
|
|
10820
|
-
"per": "
|
|
10839
|
+
"per": "owner's_scope",
|
|
10821
10840
|
"any_of": [
|
|
10822
10841
|
"files:write",
|
|
10842
|
+
"projects:write",
|
|
10823
10843
|
"properties:write"
|
|
10824
10844
|
]
|
|
10825
10845
|
},
|
|
@@ -10856,7 +10876,7 @@
|
|
|
10856
10876
|
"property-definitions"
|
|
10857
10877
|
],
|
|
10858
10878
|
"summary": "Delete Property Definition",
|
|
10859
|
-
"description": "Delete a property definition. Cascades to remove all attached values.\nA collection's
|
|
10879
|
+
"description": "Delete a property definition. Cascades to remove all attached values.\nA project's or a collection's metadata is removed by whoever may define\nit.",
|
|
10860
10880
|
"operationId": "delete_property_definition",
|
|
10861
10881
|
"security": [
|
|
10862
10882
|
{
|
|
@@ -10879,9 +10899,10 @@
|
|
|
10879
10899
|
}
|
|
10880
10900
|
},
|
|
10881
10901
|
"x-plugin-scope": {
|
|
10882
|
-
"per": "
|
|
10902
|
+
"per": "owner's_scope",
|
|
10883
10903
|
"any_of": [
|
|
10884
10904
|
"files:write",
|
|
10905
|
+
"projects:write",
|
|
10885
10906
|
"properties:write"
|
|
10886
10907
|
]
|
|
10887
10908
|
},
|
|
@@ -11906,13 +11927,6 @@
|
|
|
11906
11927
|
},
|
|
11907
11928
|
"type": "array",
|
|
11908
11929
|
"title": "Extra Starts"
|
|
11909
|
-
},
|
|
11910
|
-
"plugin_values": {
|
|
11911
|
-
"items": {
|
|
11912
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
11913
|
-
},
|
|
11914
|
-
"type": "array",
|
|
11915
|
-
"title": "Plugin Values"
|
|
11916
11930
|
}
|
|
11917
11931
|
},
|
|
11918
11932
|
"type": "object",
|
|
@@ -11941,8 +11955,7 @@
|
|
|
11941
11955
|
"attendees",
|
|
11942
11956
|
"overridden_fields",
|
|
11943
11957
|
"skipped_starts",
|
|
11944
|
-
"extra_starts"
|
|
11945
|
-
"plugin_values"
|
|
11958
|
+
"extra_starts"
|
|
11946
11959
|
],
|
|
11947
11960
|
"title": "CalendarEventRead"
|
|
11948
11961
|
},
|
|
@@ -12781,7 +12794,7 @@
|
|
|
12781
12794
|
"name"
|
|
12782
12795
|
],
|
|
12783
12796
|
"title": "CollectionCreate",
|
|
12784
|
-
"description": "A new collection, made with the files it starts with: a collection is\nnever empty. It starts blank (its grid and table, and no
|
|
12797
|
+
"description": "A new collection, made with the files it starts with: a collection is\nnever empty. It starts blank (its grid and table, and no metadata of its\nown), as a ready-made ``shape``, or with the metadata and lists of another\ncollection in the initiative (``shape_from``), none of its values."
|
|
12785
12798
|
},
|
|
12786
12799
|
"CollectionFileListResponse": {
|
|
12787
12800
|
"properties": {
|
|
@@ -13060,12 +13073,12 @@
|
|
|
13060
13073
|
"format": "date-time",
|
|
13061
13074
|
"title": "Added At"
|
|
13062
13075
|
},
|
|
13063
|
-
"
|
|
13076
|
+
"metadata": {
|
|
13064
13077
|
"items": {
|
|
13065
13078
|
"$ref": "#/components/schemas/PropertySummary"
|
|
13066
13079
|
},
|
|
13067
13080
|
"type": "array",
|
|
13068
|
-
"title": "
|
|
13081
|
+
"title": "Metadata"
|
|
13069
13082
|
},
|
|
13070
13083
|
"kind": {
|
|
13071
13084
|
"$ref": "#/components/schemas/FileKind",
|
|
@@ -13104,11 +13117,11 @@
|
|
|
13104
13117
|
"height",
|
|
13105
13118
|
"smart_link_url",
|
|
13106
13119
|
"added_at",
|
|
13107
|
-
"
|
|
13120
|
+
"metadata",
|
|
13108
13121
|
"kind"
|
|
13109
13122
|
],
|
|
13110
13123
|
"title": "CollectionFileSummary",
|
|
13111
|
-
"description": "A file as its collection lists it: with when it was added there, and\nits values of the collection's
|
|
13124
|
+
"description": "A file as its collection lists it: with when it was added there, and\nits values of the collection's metadata."
|
|
13112
13125
|
},
|
|
13113
13126
|
"CollectionFiles": {
|
|
13114
13127
|
"properties": {
|
|
@@ -13276,12 +13289,12 @@
|
|
|
13276
13289
|
"type": "array",
|
|
13277
13290
|
"title": "Properties"
|
|
13278
13291
|
},
|
|
13279
|
-
"
|
|
13292
|
+
"metadata": {
|
|
13280
13293
|
"items": {
|
|
13281
13294
|
"$ref": "#/components/schemas/PropertyDefinitionRead"
|
|
13282
13295
|
},
|
|
13283
13296
|
"type": "array",
|
|
13284
|
-
"title": "
|
|
13297
|
+
"title": "Metadata"
|
|
13285
13298
|
},
|
|
13286
13299
|
"can": {
|
|
13287
13300
|
"$ref": "#/components/schemas/CollectionCan"
|
|
@@ -13307,7 +13320,7 @@
|
|
|
13307
13320
|
"comment_count",
|
|
13308
13321
|
"tags",
|
|
13309
13322
|
"properties",
|
|
13310
|
-
"
|
|
13323
|
+
"metadata",
|
|
13311
13324
|
"can"
|
|
13312
13325
|
],
|
|
13313
13326
|
"title": "CollectionRead",
|
|
@@ -13342,12 +13355,12 @@
|
|
|
13342
13355
|
"type": "array",
|
|
13343
13356
|
"title": "Lists"
|
|
13344
13357
|
},
|
|
13345
|
-
"
|
|
13358
|
+
"metadata": {
|
|
13346
13359
|
"items": {
|
|
13347
|
-
"$ref": "#/components/schemas/
|
|
13360
|
+
"$ref": "#/components/schemas/CollectionShapeMetadata"
|
|
13348
13361
|
},
|
|
13349
13362
|
"type": "array",
|
|
13350
|
-
"title": "
|
|
13363
|
+
"title": "Metadata"
|
|
13351
13364
|
}
|
|
13352
13365
|
},
|
|
13353
13366
|
"type": "object",
|
|
@@ -13356,18 +13369,54 @@
|
|
|
13356
13369
|
"name",
|
|
13357
13370
|
"hint",
|
|
13358
13371
|
"lists",
|
|
13359
|
-
"
|
|
13372
|
+
"metadata"
|
|
13360
13373
|
],
|
|
13361
13374
|
"title": "CollectionShapeEntry"
|
|
13362
13375
|
},
|
|
13363
|
-
"
|
|
13376
|
+
"CollectionShapeGroup": {
|
|
13377
|
+
"properties": {
|
|
13378
|
+
"key": {
|
|
13379
|
+
"type": "string",
|
|
13380
|
+
"title": "Key"
|
|
13381
|
+
},
|
|
13382
|
+
"name": {
|
|
13383
|
+
"type": "string",
|
|
13384
|
+
"title": "Name"
|
|
13385
|
+
},
|
|
13386
|
+
"entries": {
|
|
13387
|
+
"items": {
|
|
13388
|
+
"$ref": "#/components/schemas/CollectionShapeEntry"
|
|
13389
|
+
},
|
|
13390
|
+
"type": "array",
|
|
13391
|
+
"title": "Entries"
|
|
13392
|
+
}
|
|
13393
|
+
},
|
|
13394
|
+
"type": "object",
|
|
13395
|
+
"required": [
|
|
13396
|
+
"key",
|
|
13397
|
+
"name",
|
|
13398
|
+
"entries"
|
|
13399
|
+
],
|
|
13400
|
+
"title": "CollectionShapeGroup"
|
|
13401
|
+
},
|
|
13402
|
+
"CollectionShapeKey": {
|
|
13403
|
+
"type": "string",
|
|
13404
|
+
"enum": [
|
|
13405
|
+
"gallery",
|
|
13406
|
+
"catalog",
|
|
13407
|
+
"log"
|
|
13408
|
+
],
|
|
13409
|
+
"title": "CollectionShapeKey",
|
|
13410
|
+
"description": "A ready-made shape a collection can start as."
|
|
13411
|
+
},
|
|
13412
|
+
"CollectionShapeMetadata": {
|
|
13364
13413
|
"properties": {
|
|
13365
13414
|
"name": {
|
|
13366
13415
|
"type": "string",
|
|
13367
13416
|
"title": "Name"
|
|
13368
13417
|
},
|
|
13369
13418
|
"type": {
|
|
13370
|
-
"$ref": "#/components/schemas/
|
|
13419
|
+
"$ref": "#/components/schemas/MetadataType"
|
|
13371
13420
|
},
|
|
13372
13421
|
"display": {
|
|
13373
13422
|
"anyOf": [
|
|
@@ -13403,44 +13452,8 @@
|
|
|
13403
13452
|
"display",
|
|
13404
13453
|
"currency"
|
|
13405
13454
|
],
|
|
13406
|
-
"title": "
|
|
13407
|
-
"description": "
|
|
13408
|
-
},
|
|
13409
|
-
"CollectionShapeGroup": {
|
|
13410
|
-
"properties": {
|
|
13411
|
-
"key": {
|
|
13412
|
-
"type": "string",
|
|
13413
|
-
"title": "Key"
|
|
13414
|
-
},
|
|
13415
|
-
"name": {
|
|
13416
|
-
"type": "string",
|
|
13417
|
-
"title": "Name"
|
|
13418
|
-
},
|
|
13419
|
-
"entries": {
|
|
13420
|
-
"items": {
|
|
13421
|
-
"$ref": "#/components/schemas/CollectionShapeEntry"
|
|
13422
|
-
},
|
|
13423
|
-
"type": "array",
|
|
13424
|
-
"title": "Entries"
|
|
13425
|
-
}
|
|
13426
|
-
},
|
|
13427
|
-
"type": "object",
|
|
13428
|
-
"required": [
|
|
13429
|
-
"key",
|
|
13430
|
-
"name",
|
|
13431
|
-
"entries"
|
|
13432
|
-
],
|
|
13433
|
-
"title": "CollectionShapeGroup"
|
|
13434
|
-
},
|
|
13435
|
-
"CollectionShapeKey": {
|
|
13436
|
-
"type": "string",
|
|
13437
|
-
"enum": [
|
|
13438
|
-
"gallery",
|
|
13439
|
-
"catalog",
|
|
13440
|
-
"log"
|
|
13441
|
-
],
|
|
13442
|
-
"title": "CollectionShapeKey",
|
|
13443
|
-
"description": "A ready-made shape a collection can start as."
|
|
13455
|
+
"title": "CollectionShapeMetadata",
|
|
13456
|
+
"description": "Metadata a ready-made shape brings, in the reader's language."
|
|
13444
13457
|
},
|
|
13445
13458
|
"CollectionUpdate": {
|
|
13446
13459
|
"properties": {
|
|
@@ -14694,13 +14707,6 @@
|
|
|
14694
14707
|
"type": "array",
|
|
14695
14708
|
"title": "Properties"
|
|
14696
14709
|
},
|
|
14697
|
-
"plugin_values": {
|
|
14698
|
-
"items": {
|
|
14699
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
14700
|
-
},
|
|
14701
|
-
"type": "array",
|
|
14702
|
-
"title": "Plugin Values"
|
|
14703
|
-
},
|
|
14704
14710
|
"created_at": {
|
|
14705
14711
|
"type": "string",
|
|
14706
14712
|
"format": "date-time",
|
|
@@ -14727,7 +14733,6 @@
|
|
|
14727
14733
|
"view_mode",
|
|
14728
14734
|
"position",
|
|
14729
14735
|
"properties",
|
|
14730
|
-
"plugin_values",
|
|
14731
14736
|
"created_at",
|
|
14732
14737
|
"updated_at"
|
|
14733
14738
|
],
|
|
@@ -16554,6 +16559,27 @@
|
|
|
16554
16559
|
"title": "InitiativeTaskStatusRead",
|
|
16555
16560
|
"description": "A status column as it appears across one initiative's projects.\n\nEntries are aggregated by ``(name, category)``, so the same column\nconfigured in several projects collapses to a single row; ``color`` and\n``icon`` come from the first project that defines it. ``project_count`` is\nhow many of the projects the caller can read carry the column, out of\n``projects_total``."
|
|
16556
16561
|
},
|
|
16562
|
+
"MetadataType": {
|
|
16563
|
+
"type": "string",
|
|
16564
|
+
"enum": [
|
|
16565
|
+
"text",
|
|
16566
|
+
"number",
|
|
16567
|
+
"checkbox",
|
|
16568
|
+
"date",
|
|
16569
|
+
"datetime",
|
|
16570
|
+
"url",
|
|
16571
|
+
"select",
|
|
16572
|
+
"multi_select",
|
|
16573
|
+
"user_reference",
|
|
16574
|
+
"currency",
|
|
16575
|
+
"scale",
|
|
16576
|
+
"link",
|
|
16577
|
+
"badge",
|
|
16578
|
+
"json"
|
|
16579
|
+
],
|
|
16580
|
+
"title": "MetadataType",
|
|
16581
|
+
"description": "What a metadata definition's values are.\n\nThe property types, which every owner may define, and beside them the\nkinds only a plug-in's definitions take: ``link`` and ``badge``, and\n``json`` for a key its manifest declares no field for."
|
|
16582
|
+
},
|
|
16557
16583
|
"OccurrenceRequest": {
|
|
16558
16584
|
"properties": {
|
|
16559
16585
|
"start": {
|
|
@@ -16663,29 +16689,6 @@
|
|
|
16663
16689
|
"title": "PluginPerson",
|
|
16664
16690
|
"type": "object"
|
|
16665
16691
|
},
|
|
16666
|
-
"PluginValueSummary": {
|
|
16667
|
-
"properties": {
|
|
16668
|
-
"plugin_id": {
|
|
16669
|
-
"type": "integer",
|
|
16670
|
-
"title": "Plugin Id"
|
|
16671
|
-
},
|
|
16672
|
-
"key": {
|
|
16673
|
-
"type": "string",
|
|
16674
|
-
"title": "Key"
|
|
16675
|
-
},
|
|
16676
|
-
"value": {
|
|
16677
|
-
"title": "Value"
|
|
16678
|
-
}
|
|
16679
|
-
},
|
|
16680
|
-
"type": "object",
|
|
16681
|
-
"required": [
|
|
16682
|
-
"plugin_id",
|
|
16683
|
-
"key",
|
|
16684
|
-
"value"
|
|
16685
|
-
],
|
|
16686
|
-
"title": "PluginValueSummary",
|
|
16687
|
-
"description": "One value an installed plug-in shows on an item: a key its pinned\nversion declares as a field there. A list field's value is an array of its\nelements, newest first, each with its ``ref``."
|
|
16688
|
-
},
|
|
16689
16692
|
"PollOptionRead": {
|
|
16690
16693
|
"properties": {
|
|
16691
16694
|
"id": {
|
|
@@ -17269,13 +17272,6 @@
|
|
|
17269
17272
|
"type": "null"
|
|
17270
17273
|
}
|
|
17271
17274
|
]
|
|
17272
|
-
},
|
|
17273
|
-
"plugin_values": {
|
|
17274
|
-
"items": {
|
|
17275
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
17276
|
-
},
|
|
17277
|
-
"type": "array",
|
|
17278
|
-
"title": "Plugin Values"
|
|
17279
17275
|
}
|
|
17280
17276
|
},
|
|
17281
17277
|
"type": "object",
|
|
@@ -17309,8 +17305,7 @@
|
|
|
17309
17305
|
"comment_count",
|
|
17310
17306
|
"reactions",
|
|
17311
17307
|
"body",
|
|
17312
|
-
"poll"
|
|
17313
|
-
"plugin_values"
|
|
17308
|
+
"poll"
|
|
17314
17309
|
],
|
|
17315
17310
|
"title": "PostRead"
|
|
17316
17311
|
},
|
|
@@ -17908,7 +17903,7 @@
|
|
|
17908
17903
|
"title": "Name"
|
|
17909
17904
|
},
|
|
17910
17905
|
"type": {
|
|
17911
|
-
"$ref": "#/components/schemas/
|
|
17906
|
+
"$ref": "#/components/schemas/MetadataType"
|
|
17912
17907
|
},
|
|
17913
17908
|
"position": {
|
|
17914
17909
|
"type": "number",
|
|
@@ -17955,6 +17950,17 @@
|
|
|
17955
17950
|
"type": "integer",
|
|
17956
17951
|
"title": "Initiative Id"
|
|
17957
17952
|
},
|
|
17953
|
+
"project_id": {
|
|
17954
|
+
"anyOf": [
|
|
17955
|
+
{
|
|
17956
|
+
"type": "integer"
|
|
17957
|
+
},
|
|
17958
|
+
{
|
|
17959
|
+
"type": "null"
|
|
17960
|
+
}
|
|
17961
|
+
],
|
|
17962
|
+
"title": "Project Id"
|
|
17963
|
+
},
|
|
17958
17964
|
"collection_id": {
|
|
17959
17965
|
"anyOf": [
|
|
17960
17966
|
{
|
|
@@ -17984,7 +17990,7 @@
|
|
|
17984
17990
|
"title": "Name"
|
|
17985
17991
|
},
|
|
17986
17992
|
"type": {
|
|
17987
|
-
"$ref": "#/components/schemas/
|
|
17993
|
+
"$ref": "#/components/schemas/MetadataType"
|
|
17988
17994
|
},
|
|
17989
17995
|
"position": {
|
|
17990
17996
|
"type": "number",
|
|
@@ -18035,6 +18041,17 @@
|
|
|
18035
18041
|
"type": "integer",
|
|
18036
18042
|
"title": "Initiative Id"
|
|
18037
18043
|
},
|
|
18044
|
+
"project_id": {
|
|
18045
|
+
"anyOf": [
|
|
18046
|
+
{
|
|
18047
|
+
"type": "integer"
|
|
18048
|
+
},
|
|
18049
|
+
{
|
|
18050
|
+
"type": "null"
|
|
18051
|
+
}
|
|
18052
|
+
],
|
|
18053
|
+
"title": "Project Id"
|
|
18054
|
+
},
|
|
18038
18055
|
"collection_id": {
|
|
18039
18056
|
"anyOf": [
|
|
18040
18057
|
{
|
|
@@ -18067,6 +18084,7 @@
|
|
|
18067
18084
|
"currency",
|
|
18068
18085
|
"id",
|
|
18069
18086
|
"initiative_id",
|
|
18087
|
+
"project_id",
|
|
18070
18088
|
"collection_id",
|
|
18071
18089
|
"created_at",
|
|
18072
18090
|
"updated_at"
|
|
@@ -18236,7 +18254,51 @@
|
|
|
18236
18254
|
"title": "Name"
|
|
18237
18255
|
},
|
|
18238
18256
|
"type": {
|
|
18239
|
-
"$ref": "#/components/schemas/
|
|
18257
|
+
"$ref": "#/components/schemas/MetadataType"
|
|
18258
|
+
},
|
|
18259
|
+
"project_id": {
|
|
18260
|
+
"anyOf": [
|
|
18261
|
+
{
|
|
18262
|
+
"type": "integer"
|
|
18263
|
+
},
|
|
18264
|
+
{
|
|
18265
|
+
"type": "null"
|
|
18266
|
+
}
|
|
18267
|
+
],
|
|
18268
|
+
"title": "Project Id"
|
|
18269
|
+
},
|
|
18270
|
+
"collection_id": {
|
|
18271
|
+
"anyOf": [
|
|
18272
|
+
{
|
|
18273
|
+
"type": "integer"
|
|
18274
|
+
},
|
|
18275
|
+
{
|
|
18276
|
+
"type": "null"
|
|
18277
|
+
}
|
|
18278
|
+
],
|
|
18279
|
+
"title": "Collection Id"
|
|
18280
|
+
},
|
|
18281
|
+
"install_id": {
|
|
18282
|
+
"anyOf": [
|
|
18283
|
+
{
|
|
18284
|
+
"type": "integer"
|
|
18285
|
+
},
|
|
18286
|
+
{
|
|
18287
|
+
"type": "null"
|
|
18288
|
+
}
|
|
18289
|
+
],
|
|
18290
|
+
"title": "Install Id"
|
|
18291
|
+
},
|
|
18292
|
+
"key": {
|
|
18293
|
+
"anyOf": [
|
|
18294
|
+
{
|
|
18295
|
+
"type": "string"
|
|
18296
|
+
},
|
|
18297
|
+
{
|
|
18298
|
+
"type": "null"
|
|
18299
|
+
}
|
|
18300
|
+
],
|
|
18301
|
+
"title": "Key"
|
|
18240
18302
|
},
|
|
18241
18303
|
"options": {
|
|
18242
18304
|
"anyOf": [
|
|
@@ -18264,7 +18326,7 @@
|
|
|
18264
18326
|
},
|
|
18265
18327
|
"value": {
|
|
18266
18328
|
"title": "Value",
|
|
18267
|
-
"description": "Shaped by the
|
|
18329
|
+
"description": "Shaped by the definition's type. For user_reference, a person: id, username, discriminator, display_name and avatar_url, or an PluginPerson when the reader is an installed plug-in. A plug-in's value is as the plug-in wrote it: a list field's an array of its elements, newest first, each with its ref, and a value with a state the state beside it."
|
|
18268
18330
|
}
|
|
18269
18331
|
},
|
|
18270
18332
|
"type": "object",
|
|
@@ -18272,6 +18334,10 @@
|
|
|
18272
18334
|
"property_id",
|
|
18273
18335
|
"name",
|
|
18274
18336
|
"type",
|
|
18337
|
+
"project_id",
|
|
18338
|
+
"collection_id",
|
|
18339
|
+
"install_id",
|
|
18340
|
+
"key",
|
|
18275
18341
|
"options",
|
|
18276
18342
|
"currency",
|
|
18277
18343
|
"value"
|
|
@@ -18300,24 +18366,6 @@
|
|
|
18300
18366
|
"title": "PropertyTarget",
|
|
18301
18367
|
"description": "What can carry custom property values: every tool and sub-tool."
|
|
18302
18368
|
},
|
|
18303
|
-
"PropertyType": {
|
|
18304
|
-
"type": "string",
|
|
18305
|
-
"enum": [
|
|
18306
|
-
"text",
|
|
18307
|
-
"number",
|
|
18308
|
-
"checkbox",
|
|
18309
|
-
"date",
|
|
18310
|
-
"datetime",
|
|
18311
|
-
"url",
|
|
18312
|
-
"select",
|
|
18313
|
-
"multi_select",
|
|
18314
|
-
"user_reference",
|
|
18315
|
-
"currency",
|
|
18316
|
-
"rating"
|
|
18317
|
-
],
|
|
18318
|
-
"title": "PropertyType",
|
|
18319
|
-
"description": "Supported value types for a property definition."
|
|
18320
|
-
},
|
|
18321
18369
|
"PropertyValueInput": {
|
|
18322
18370
|
"properties": {
|
|
18323
18371
|
"property_id": {
|
|
@@ -18631,13 +18679,6 @@
|
|
|
18631
18679
|
"type": "string",
|
|
18632
18680
|
"format": "date-time",
|
|
18633
18681
|
"title": "Created At"
|
|
18634
|
-
},
|
|
18635
|
-
"plugin_values": {
|
|
18636
|
-
"items": {
|
|
18637
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
18638
|
-
},
|
|
18639
|
-
"type": "array",
|
|
18640
|
-
"title": "Plugin Values"
|
|
18641
18682
|
}
|
|
18642
18683
|
},
|
|
18643
18684
|
"type": "object",
|
|
@@ -18656,8 +18697,7 @@
|
|
|
18656
18697
|
"attachment_count",
|
|
18657
18698
|
"held_at_round",
|
|
18658
18699
|
"created_by",
|
|
18659
|
-
"created_at"
|
|
18660
|
-
"plugin_values"
|
|
18700
|
+
"created_at"
|
|
18661
18701
|
],
|
|
18662
18702
|
"title": "QueueItemRead"
|
|
18663
18703
|
},
|
|
@@ -20104,14 +20144,6 @@
|
|
|
20104
20144
|
"type": "array",
|
|
20105
20145
|
"title": "Properties",
|
|
20106
20146
|
"default": []
|
|
20107
|
-
},
|
|
20108
|
-
"plugin_values": {
|
|
20109
|
-
"items": {
|
|
20110
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
20111
|
-
},
|
|
20112
|
-
"type": "array",
|
|
20113
|
-
"title": "Plugin Values",
|
|
20114
|
-
"default": []
|
|
20115
20147
|
}
|
|
20116
20148
|
},
|
|
20117
20149
|
"type": "object",
|
|
@@ -20155,8 +20187,7 @@
|
|
|
20155
20187
|
"parent",
|
|
20156
20188
|
"subtask_progress",
|
|
20157
20189
|
"tags",
|
|
20158
|
-
"properties"
|
|
20159
|
-
"plugin_values"
|
|
20190
|
+
"properties"
|
|
20160
20191
|
],
|
|
20161
20192
|
"title": "TaskListRead",
|
|
20162
20193
|
"description": "Lightweight schema for task list endpoints - excludes heavy nested data"
|
|
@@ -20629,14 +20660,6 @@
|
|
|
20629
20660
|
"type": "array",
|
|
20630
20661
|
"title": "Properties",
|
|
20631
20662
|
"default": []
|
|
20632
|
-
},
|
|
20633
|
-
"plugin_values": {
|
|
20634
|
-
"items": {
|
|
20635
|
-
"$ref": "#/components/schemas/PluginValueSummary"
|
|
20636
|
-
},
|
|
20637
|
-
"type": "array",
|
|
20638
|
-
"title": "Plugin Values",
|
|
20639
|
-
"default": []
|
|
20640
20663
|
}
|
|
20641
20664
|
},
|
|
20642
20665
|
"type": "object",
|
|
@@ -20678,8 +20701,7 @@
|
|
|
20678
20701
|
"parent",
|
|
20679
20702
|
"subtask_progress",
|
|
20680
20703
|
"tags",
|
|
20681
|
-
"properties"
|
|
20682
|
-
"plugin_values"
|
|
20704
|
+
"properties"
|
|
20683
20705
|
],
|
|
20684
20706
|
"title": "TaskRead"
|
|
20685
20707
|
},
|