initiative-plugin-sdk 2.1.0 → 4.0.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Generated by scripts/generate-plugin-api.mjs from Initiative 0.74.0's plug-in API
3
- * (a checkout at 3b06e3609). Do not edit: regenerate.
3
+ * (a checkout at 0492f28bb). Do not edit: regenerate.
4
4
  */
5
5
  import type { Scope } from "./contract.js";
6
6
  /**
@@ -31,7 +31,7 @@ export interface PluginApiSchemas {
31
31
  /**
32
32
  * Things that can be archived.
33
33
  */
34
- ArchivableType: "project" | "document" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "initiative";
34
+ ArchivableType: "project" | "file" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "initiative";
35
35
  /**
36
36
  * What archiving or unarchiving answers with.
37
37
  */
@@ -40,6 +40,14 @@ export interface PluginApiSchemas {
40
40
  entity_id: number;
41
41
  archived_at?: string | null;
42
42
  };
43
+ Body_upload_gallery_image: {
44
+ file: string;
45
+ title?: string | null;
46
+ caption?: string | null;
47
+ };
48
+ Body_upload_gallery_image_version: {
49
+ file: string;
50
+ };
43
51
  CalendarCreate: {
44
52
  properties?: PluginApiSchemas["PropertyValueInput"][];
45
53
  name: string;
@@ -63,17 +71,12 @@ export interface PluginApiSchemas {
63
71
  start_at: string;
64
72
  end_at: string;
65
73
  all_day?: boolean;
74
+ rsvp_open?: boolean;
66
75
  recurrence?: string | null;
67
76
  calendar_id: number;
68
77
  tz?: string | null;
69
78
  attendee_ids?: string[] | null;
70
79
  tag_ids?: number[] | null;
71
- document_ids?: number[] | null;
72
- };
73
- CalendarEventDocumentRead: {
74
- document_id: number;
75
- name?: string;
76
- attached_at: string;
77
80
  };
78
81
  CalendarEventRead: {
79
82
  title: string;
@@ -82,6 +85,7 @@ export interface PluginApiSchemas {
82
85
  start_at: string;
83
86
  end_at: string;
84
87
  all_day: boolean;
88
+ rsvp_open: boolean;
85
89
  recurrence: string | null;
86
90
  id: number;
87
91
  recurrence_shift: number;
@@ -91,16 +95,12 @@ export interface PluginApiSchemas {
91
95
  initiative_id: number | null;
92
96
  community_id: string;
93
97
  created_by: string | null;
94
- attendee_count: number;
95
- attendee_names: string[];
96
- attendee_previews: PluginApiSchemas["PluginPerson"][];
97
98
  properties: PluginApiSchemas["PropertySummary"][];
98
99
  tags: PluginApiSchemas["TagSummary"][];
99
100
  can: PluginApiSchemas["ContentCan"];
100
101
  created_at: string;
101
102
  updated_at: string;
102
103
  attendees: PluginApiSchemas["CalendarEventAttendeeRead"][];
103
- documents: PluginApiSchemas["CalendarEventDocumentRead"][];
104
104
  overridden_fields: string[];
105
105
  skipped_starts: string[];
106
106
  extra_starts: string[];
@@ -113,6 +113,7 @@ export interface PluginApiSchemas {
113
113
  start_at?: string | null;
114
114
  end_at?: string | null;
115
115
  all_day?: boolean | null;
116
+ rsvp_open?: boolean | null;
116
117
  recurrence?: string | null;
117
118
  tz?: string | null;
118
119
  calendar_id?: number | null;
@@ -220,8 +221,8 @@ export interface PluginApiSchemas {
220
221
  content: string;
221
222
  task_id?: number | null;
222
223
  wiki_page_id?: number | null;
223
- document_id?: number | null;
224
224
  project_id?: number | null;
225
+ file_id?: number | null;
225
226
  queue_id?: number | null;
226
227
  counter_group_id?: number | null;
227
228
  calendar_id?: number | null;
@@ -240,6 +241,10 @@ export interface PluginApiSchemas {
240
241
  comments: PluginApiSchemas["CommentRead"][];
241
242
  next_cursor: string | null;
242
243
  };
244
+ /**
245
+ * One comment. `project_id` is its own for a comment on a project and the
246
+ * task's for a task comment (filled by the service's serializer).
247
+ */
243
248
  CommentRead: {
244
249
  /**
245
250
  * A person is mentioned as `@[](<reference>)`, by your reference for them,
@@ -248,11 +253,10 @@ export interface PluginApiSchemas {
248
253
  * `![alt]()`, `[name]()`.
249
254
  */
250
255
  content: string;
251
- id: number;
252
- created_by: string | null;
253
256
  task_id: number | null;
254
257
  wiki_page_id: number | null;
255
- document_id: number | null;
258
+ project_id: number | null;
259
+ file_id: number | null;
256
260
  queue_id: number | null;
257
261
  counter_group_id: number | null;
258
262
  calendar_id: number | null;
@@ -260,12 +264,13 @@ export interface PluginApiSchemas {
260
264
  post_id: number | null;
261
265
  gallery_id: number | null;
262
266
  wiki_id: number | null;
267
+ id: number;
268
+ created_by: string | null;
263
269
  parent_comment_id: number | null;
264
270
  created_at: string;
265
271
  updated_at: string | null;
266
272
  author: PluginApiSchemas["PluginPerson"] | null;
267
273
  imported_author_name: string | null;
268
- project_id: number | null;
269
274
  reactions: PluginApiSchemas["ReactionGroup"][];
270
275
  can_remove: boolean;
271
276
  audience: PluginApiSchemas["CommentAudience"];
@@ -277,6 +282,18 @@ export interface PluginApiSchemas {
277
282
  ContentCan: {
278
283
  edit: boolean;
279
284
  };
285
+ CounterCreate: {
286
+ properties?: PluginApiSchemas["PropertyValueInput"][];
287
+ name: string;
288
+ color?: string | null;
289
+ count?: number | string;
290
+ min?: number | string | null;
291
+ max?: number | string | null;
292
+ step?: number | string;
293
+ initial_count?: number | string;
294
+ view_mode?: PluginApiSchemas["CounterViewMode"];
295
+ position?: number | string;
296
+ };
280
297
  CounterGroupCreate: {
281
298
  properties?: PluginApiSchemas["PropertyValueInput"][];
282
299
  name: string;
@@ -345,9 +362,8 @@ export interface PluginApiSchemas {
345
362
  count: string;
346
363
  };
347
364
  /**
348
- * Serialized counter. Numeric fields are returned as plain decimal strings
349
- * (e.g. "0", "12.5") rather than `Decimal` so JSON never emits PostgreSQL's
350
- * exponent notation (`0E-10`) from `Numeric(20, 10)` columns.
365
+ * Serialized counter. Numeric fields are plain decimal strings (e.g. "0",
366
+ * "12.5"), never exponent notation.
351
367
  */
352
368
  CounterRead: {
353
369
  id: number;
@@ -369,6 +385,12 @@ export interface PluginApiSchemas {
369
385
  CounterSetCountRequest: {
370
386
  count: number | string;
371
387
  };
388
+ CounterSortDirection: "asc" | "desc";
389
+ CounterSortField: "name" | "count";
390
+ CounterSortRequest: {
391
+ field: PluginApiSchemas["CounterSortField"];
392
+ direction?: PluginApiSchemas["CounterSortDirection"];
393
+ };
372
394
  /**
373
395
  * Move a counter up or down. `amount` left out moves it by the counter's own
374
396
  * `step`; given, it must be more than nothing, since which way the counter
@@ -378,35 +400,36 @@ export interface PluginApiSchemas {
378
400
  direction: "up" | "down";
379
401
  amount?: number | string | null;
380
402
  };
403
+ CounterUpdate: {
404
+ name?: string | null;
405
+ color?: string | null;
406
+ min?: number | string | null;
407
+ max?: number | string | null;
408
+ step?: number | string | null;
409
+ initial_count?: number | string | null;
410
+ view_mode?: PluginApiSchemas["CounterViewMode"] | null;
411
+ position?: number | string | null;
412
+ };
381
413
  CounterViewMode: "number" | "progress_bar" | "segmented_clock";
382
- DocumentCreate: {
414
+ FileCreate: {
383
415
  properties?: PluginApiSchemas["PropertyValueInput"][];
384
416
  name: string;
385
417
  initiative_id: number;
386
418
  featured_image_url?: string | null;
387
419
  is_template?: boolean;
388
420
  content?: Record<string, unknown> | null;
389
- document_type?: "native" | "whiteboard" | "smart_link" | "spreadsheet";
421
+ file_type?: "native" | "whiteboard" | "smart_link" | "spreadsheet";
390
422
  grants?: PluginApiSchemas["ResourceGrantSchema"][];
391
423
  };
392
- DocumentListResponse: {
424
+ FileListResponse: {
393
425
  total_count: number;
394
426
  page: number;
395
427
  page_size: number;
396
428
  has_next: boolean;
397
429
  has_prev: boolean;
398
- items: PluginApiSchemas["DocumentSummary"][];
399
- sort_by: string | null;
400
- sort_dir: string | null;
401
- };
402
- DocumentProjectLink: {
403
- project_id: number;
404
- project_name?: string | null;
405
- project_icon?: string | null;
406
- project_initiative_id?: number | null;
407
- attached_at: string;
430
+ items: PluginApiSchemas["FileSummary"][];
408
431
  };
409
- DocumentRead: {
432
+ FileRead: {
410
433
  archived_at: string | null;
411
434
  can: PluginApiSchemas["ToolCan"];
412
435
  id: number;
@@ -429,9 +452,8 @@ export interface PluginApiSchemas {
429
452
  initiative: PluginApiSchemas["InitiativeSummary"] | null;
430
453
  owner: PluginApiSchemas["PluginPerson"] | null;
431
454
  owner_plugin: PluginApiSchemas["OwnerPluginSummary"] | null;
432
- projects: PluginApiSchemas["DocumentProjectLink"][];
433
455
  comment_count: number;
434
- document_type: PluginApiSchemas["DocumentType"];
456
+ file_type: PluginApiSchemas["FileType"];
435
457
  /**
436
458
  * A stored file comes as an empty string, without its path. A URL from
437
459
  * elsewhere comes as it is.
@@ -441,7 +463,6 @@ export interface PluginApiSchemas {
441
463
  file_size: number | null;
442
464
  original_filename: string | null;
443
465
  smart_link_url: string | null;
444
- yjs_updated_at: string | null;
445
466
  /**
446
467
  * A Lexical editor state. A person is mentioned by a node whose
447
468
  * `mentionUserId` is your reference for them, with `mentionName` and `text`
@@ -452,7 +473,7 @@ export interface PluginApiSchemas {
452
473
  content: Record<string, unknown>;
453
474
  content_version: string | null;
454
475
  };
455
- DocumentSummary: {
476
+ FileSummary: {
456
477
  archived_at: string | null;
457
478
  can: PluginApiSchemas["ToolCan"];
458
479
  id: number;
@@ -475,9 +496,8 @@ export interface PluginApiSchemas {
475
496
  initiative: PluginApiSchemas["InitiativeSummary"] | null;
476
497
  owner: PluginApiSchemas["PluginPerson"] | null;
477
498
  owner_plugin: PluginApiSchemas["OwnerPluginSummary"] | null;
478
- projects: PluginApiSchemas["DocumentProjectLink"][];
479
499
  comment_count: number;
480
- document_type: PluginApiSchemas["DocumentType"];
500
+ file_type: PluginApiSchemas["FileType"];
481
501
  /**
482
502
  * A stored file comes as an empty string, without its path. A URL from
483
503
  * elsewhere comes as it is.
@@ -487,13 +507,12 @@ export interface PluginApiSchemas {
487
507
  file_size: number | null;
488
508
  original_filename: string | null;
489
509
  smart_link_url: string | null;
490
- yjs_updated_at: string | null;
491
510
  };
492
511
  /**
493
- * Discriminator for document type.
512
+ * Discriminator for file type.
494
513
  */
495
- DocumentType: "native" | "file" | "whiteboard" | "smart_link" | "spreadsheet";
496
- DocumentUpdate: {
514
+ FileType: "native" | "file" | "whiteboard" | "smart_link" | "spreadsheet";
515
+ FileUpdate: {
497
516
  name?: string | null;
498
517
  content?: Record<string, unknown> | null;
499
518
  content_version?: string | null;
@@ -576,7 +595,7 @@ export interface PluginApiSchemas {
576
595
  original_filename: string | null;
577
596
  width: number | null;
578
597
  height: number | null;
579
- created_by: string;
598
+ created_by: string | null;
580
599
  uploader: PluginApiSchemas["PluginPerson"] | null;
581
600
  created_at: string;
582
601
  updated_at: string;
@@ -584,6 +603,37 @@ export interface PluginApiSchemas {
584
603
  tags: PluginApiSchemas["TagSummary"][];
585
604
  properties: PluginApiSchemas["PropertySummary"][];
586
605
  };
606
+ GalleryImageUpdate: {
607
+ properties?: PluginApiSchemas["PropertyValueInput"][] | null;
608
+ title?: string | null;
609
+ caption?: string | null;
610
+ tag_ids?: number[] | null;
611
+ };
612
+ /**
613
+ * One stored rendition of a picture.
614
+ */
615
+ GalleryImageVersionRead: {
616
+ id: number;
617
+ version_number: number;
618
+ /**
619
+ * A stored file comes as an empty string, without its path. A URL from
620
+ * elsewhere comes as it is.
621
+ */
622
+ file_url: string;
623
+ /**
624
+ * A stored file comes as an empty string, without its path. A URL from
625
+ * elsewhere comes as it is.
626
+ */
627
+ thumbnail_url: string | null;
628
+ file_content_type: string | null;
629
+ file_size: number | null;
630
+ original_filename: string | null;
631
+ width: number | null;
632
+ height: number | null;
633
+ created_by: string | null;
634
+ created_at: string;
635
+ is_current: boolean;
636
+ };
587
637
  GalleryListResponse: {
588
638
  total_count: number;
589
639
  page: number;
@@ -668,7 +718,7 @@ export interface PluginApiSchemas {
668
718
  */
669
719
  InitiativeRead: {
670
720
  projects_enabled: boolean;
671
- documents_enabled: boolean;
721
+ files_enabled: boolean;
672
722
  queues_enabled: boolean;
673
723
  counter_groups_enabled: boolean;
674
724
  calendars_enabled: boolean;
@@ -879,12 +929,6 @@ export interface PluginApiSchemas {
879
929
  template_id?: number | null;
880
930
  grants?: PluginApiSchemas["ResourceGrantSchema"][];
881
931
  };
882
- ProjectDocumentSummary: {
883
- document_id: number;
884
- name: string;
885
- updated_at: string;
886
- attached_at: string;
887
- };
888
932
  ProjectListResponse: {
889
933
  total_count: number;
890
934
  page: number;
@@ -896,33 +940,32 @@ export interface PluginApiSchemas {
896
940
  ProjectRead: {
897
941
  archived_at: string | null;
898
942
  can: PluginApiSchemas["ProjectCan"];
943
+ id: number;
944
+ initiative_id: number;
945
+ community_id: string;
946
+ created_by: string | null;
947
+ created_at: string;
948
+ updated_at: string;
949
+ comments_enabled: boolean;
950
+ tags: PluginApiSchemas["TagSummary"][];
951
+ properties: PluginApiSchemas["PropertySummary"][];
952
+ grants: PluginApiSchemas["ResourceGrantSchema"][];
899
953
  name: string;
900
954
  description: string | null;
901
955
  icon: string | null;
902
956
  start_date: string | null;
903
957
  end_date: string | null;
904
- id: number;
905
958
  owner_id: string | null;
906
- initiative_id: number;
907
- community_id: string | null;
908
- created_at: string;
909
- updated_at: string;
910
959
  is_template: boolean;
911
960
  pinned_at: string | null;
912
- default_view_mode: string | null;
961
+ default_view_mode: "table" | "kanban" | "calendar" | null;
913
962
  owner: PluginApiSchemas["PluginPerson"] | null;
914
963
  owner_plugin: PluginApiSchemas["OwnerPluginSummary"] | null;
915
964
  initiative: PluginApiSchemas["InitiativeSummary"] | null;
916
- sort_order: number | null;
917
965
  is_favorited: boolean;
918
966
  last_viewed_at: string | null;
919
- documents: PluginApiSchemas["ProjectDocumentSummary"][];
920
967
  task_summary: PluginApiSchemas["ProjectTaskSummary"];
921
968
  task_statuses: PluginApiSchemas["TaskStatusRead"][];
922
- comments_enabled: boolean;
923
- tags: PluginApiSchemas["TagSummary"][];
924
- properties: PluginApiSchemas["PropertySummary"][];
925
- grants: PluginApiSchemas["ResourceGrantSchema"][];
926
969
  };
927
970
  ProjectTaskSummary: {
928
971
  total: number;
@@ -938,6 +981,14 @@ export interface PluginApiSchemas {
938
981
  start_date?: string | null;
939
982
  end_date?: string | null;
940
983
  };
984
+ PropertyDefinitionCreate: {
985
+ name: string;
986
+ type: PluginApiSchemas["PropertyType"];
987
+ position?: number;
988
+ color?: string | null;
989
+ options?: PluginApiSchemas["PropertyOption"][] | null;
990
+ initiative_id: number;
991
+ };
941
992
  PropertyDefinitionRead: {
942
993
  name: string;
943
994
  type: PluginApiSchemas["PropertyType"];
@@ -949,6 +1000,22 @@ export interface PluginApiSchemas {
949
1000
  created_at: string;
950
1001
  updated_at: string;
951
1002
  };
1003
+ /**
1004
+ * Mutable fields on a property definition.
1005
+ */
1006
+ PropertyDefinitionUpdate: {
1007
+ name?: string | null;
1008
+ position?: number | null;
1009
+ color?: string | null;
1010
+ options?: PluginApiSchemas["PropertyOption"][] | null;
1011
+ };
1012
+ /**
1013
+ * Envelope for PATCH /property-definitions/{id}.
1014
+ */
1015
+ PropertyDefinitionUpdateResponse: {
1016
+ definition: PluginApiSchemas["PropertyDefinitionRead"];
1017
+ orphaned_value_count: number;
1018
+ };
952
1019
  /**
953
1020
  * One option entry for select / multi_select property definitions.
954
1021
  */
@@ -975,7 +1042,7 @@ export interface PluginApiSchemas {
975
1042
  /**
976
1043
  * What can carry custom property values: every tool and sub-tool.
977
1044
  */
978
- PropertyTarget: "project" | "document" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "queue_item" | "calendar_event" | "counter" | "gallery_image" | "wiki_page";
1045
+ PropertyTarget: "project" | "file" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "queue_item" | "calendar_event" | "counter" | "gallery_image" | "wiki_page";
979
1046
  /**
980
1047
  * Supported value types for a property definition.
981
1048
  */
@@ -1000,10 +1067,16 @@ export interface PluginApiSchemas {
1000
1067
  initiative_id: number;
1001
1068
  grants?: PluginApiSchemas["ResourceGrantSchema"][];
1002
1069
  };
1003
- QueueItemDocumentRead: {
1004
- document_id: number;
1005
- name?: string;
1006
- attached_at: string;
1070
+ QueueItemCreate: {
1071
+ properties?: PluginApiSchemas["PropertyValueInput"][];
1072
+ label: string;
1073
+ position?: number;
1074
+ color?: string | null;
1075
+ notes?: string | null;
1076
+ is_visible?: boolean;
1077
+ user_id?: string | null;
1078
+ tag_ids?: number[] | null;
1079
+ task_ids?: number[] | null;
1007
1080
  };
1008
1081
  QueueItemRead: {
1009
1082
  label: string;
@@ -1017,17 +1090,10 @@ export interface PluginApiSchemas {
1017
1090
  user: PluginApiSchemas["PluginPerson"] | null;
1018
1091
  tags: PluginApiSchemas["TagSummary"][];
1019
1092
  properties: PluginApiSchemas["PropertySummary"][];
1020
- documents: PluginApiSchemas["QueueItemDocumentRead"][];
1021
- tasks: PluginApiSchemas["QueueItemTaskRead"][];
1022
1093
  attachment_count: number;
1023
1094
  held_at_round: number | null;
1024
1095
  created_at: string;
1025
1096
  };
1026
- QueueItemTaskRead: {
1027
- task_id: number;
1028
- title?: string;
1029
- attached_at: string;
1030
- };
1031
1097
  QueueItemUpdate: {
1032
1098
  properties?: PluginApiSchemas["PropertyValueInput"][] | null;
1033
1099
  label?: string | null;
@@ -1065,7 +1131,7 @@ export interface PluginApiSchemas {
1065
1131
  is_active: boolean;
1066
1132
  preview: PluginApiSchemas["QueueTurnPreview"][] | null;
1067
1133
  items: PluginApiSchemas["QueueItemRead"][];
1068
- current_item: PluginApiSchemas["QueueItemRead"] | null;
1134
+ current_item_id: number | null;
1069
1135
  };
1070
1136
  /**
1071
1137
  * Options for releasing a held queue item back into the rotation.
@@ -1130,7 +1196,7 @@ export interface PluginApiSchemas {
1130
1196
  all_initiative_members?: boolean;
1131
1197
  plugin_install_id?: number | null;
1132
1198
  };
1133
- SearchEntityType: "calendar" | "calendar_event" | "comment" | "counter" | "counter_group" | "dashboard" | "document" | "gallery" | "gallery_image" | "post" | "project" | "queue" | "queue_item" | "tag" | "task" | "wiki" | "wiki_page";
1199
+ SearchEntityType: "calendar" | "calendar_event" | "comment" | "counter" | "counter_group" | "dashboard" | "file" | "gallery" | "gallery_image" | "post" | "project" | "queue" | "queue_item" | "tag" | "task" | "wiki" | "wiki_page";
1134
1200
  /**
1135
1201
  * A jump-to target for the command palette: enough to render and route.
1136
1202
  */
@@ -1187,7 +1253,7 @@ export interface PluginApiSchemas {
1187
1253
  /**
1188
1254
  * Entity types a bulk tag edit can address.
1189
1255
  */
1190
- TagTarget: "project" | "document" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "queue_item" | "calendar_event" | "gallery_image" | "wiki_page";
1256
+ TagTarget: "project" | "file" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki" | "task" | "queue_item" | "calendar_event" | "gallery_image" | "wiki_page";
1191
1257
  TaskCreate: {
1192
1258
  properties?: PluginApiSchemas["PropertyValueInput"][];
1193
1259
  title: string;
@@ -1324,7 +1390,19 @@ export interface PluginApiSchemas {
1324
1390
  checklist?: PluginApiSchemas["ChecklistItemInput"][] | null;
1325
1391
  scope?: "this" | "following" | "all" | null;
1326
1392
  };
1327
- Tool: "project" | "document" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki";
1393
+ /**
1394
+ * One period on the rail.
1395
+ */
1396
+ TimelineBucket: {
1397
+ period: string;
1398
+ count: number;
1399
+ anchor: string;
1400
+ anchor_oldest: string;
1401
+ };
1402
+ TimelineResponse: {
1403
+ buckets: PluginApiSchemas["TimelineBucket"][];
1404
+ };
1405
+ Tool: "project" | "file" | "queue" | "counter_group" | "calendar" | "dashboard" | "post" | "gallery" | "wiki";
1328
1406
  /**
1329
1407
  * What the caller may do to one of a tool's rows
1330
1408
  * (`permissions.client_access`).
@@ -1406,6 +1484,14 @@ export interface PluginApiSchemas {
1406
1484
  has_prev: boolean;
1407
1485
  items: PluginApiSchemas["WikiSummary"][];
1408
1486
  };
1487
+ WikiPageCreate: {
1488
+ properties?: PluginApiSchemas["PropertyValueInput"][];
1489
+ title?: string | null;
1490
+ parent_page_id?: number | null;
1491
+ is_draft?: boolean;
1492
+ content?: Record<string, unknown> | null;
1493
+ tag_ids?: number[] | null;
1494
+ };
1409
1495
  /**
1410
1496
  * One heading written on a page.
1411
1497
  */
@@ -1417,7 +1503,14 @@ export interface PluginApiSchemas {
1417
1503
  /**
1418
1504
  * What a row in a wiki's navigation actually is.
1419
1505
  */
1420
- WikiPageKind: "page" | "document";
1506
+ WikiPageKind: "page" | "file";
1507
+ /**
1508
+ * Where a page should sit after a drag — two facts, sent together.
1509
+ */
1510
+ WikiPageMove: {
1511
+ parent_page_id?: number | null;
1512
+ position?: number;
1513
+ };
1421
1514
  /**
1422
1515
  * How a wiki's page tree is sorted.
1423
1516
  */
@@ -1441,7 +1534,7 @@ export interface PluginApiSchemas {
1441
1534
  headings: PluginApiSchemas["WikiPageHeading"][];
1442
1535
  tags: PluginApiSchemas["TagSummary"][];
1443
1536
  properties: PluginApiSchemas["PropertySummary"][];
1444
- document_type: string | null;
1537
+ file_type: string | null;
1445
1538
  file_content_type: string | null;
1446
1539
  original_filename: string | null;
1447
1540
  smart_link_url: string | null;
@@ -1454,7 +1547,6 @@ export interface PluginApiSchemas {
1454
1547
  */
1455
1548
  content: Record<string, unknown>;
1456
1549
  content_version: string | null;
1457
- comment_count: number;
1458
1550
  };
1459
1551
  /**
1460
1552
  * One page as the navigation draws it — no body.
@@ -1475,7 +1567,7 @@ export interface PluginApiSchemas {
1475
1567
  headings: PluginApiSchemas["WikiPageHeading"][];
1476
1568
  tags: PluginApiSchemas["TagSummary"][];
1477
1569
  properties: PluginApiSchemas["PropertySummary"][];
1478
- document_type: string | null;
1570
+ file_type: string | null;
1479
1571
  file_content_type: string | null;
1480
1572
  original_filename: string | null;
1481
1573
  smart_link_url: string | null;
@@ -1487,6 +1579,17 @@ export interface PluginApiSchemas {
1487
1579
  WikiPageTree: {
1488
1580
  items: PluginApiSchemas["WikiPageSummary"][];
1489
1581
  };
1582
+ /**
1583
+ * A change to one page.
1584
+ */
1585
+ WikiPageUpdate: {
1586
+ properties?: PluginApiSchemas["PropertyValueInput"][] | null;
1587
+ title?: string | null;
1588
+ is_draft?: boolean | null;
1589
+ content?: Record<string, unknown> | null;
1590
+ content_version?: string | null;
1591
+ tag_ids?: number[] | null;
1592
+ };
1490
1593
  /**
1491
1594
  * A wiki on its own page. The same shape as its summary: the pages are
1492
1595
  * fetched as a tree of their own, because a wiki is navigated rather than
@@ -1596,7 +1699,7 @@ export interface PluginApiOperations {
1596
1699
  initiative_id?: number | null;
1597
1700
  /**
1598
1701
  * Return a lightweight projection (id, name, icon, initiative_id, can)
1599
- * without documents, grants, tags, or the nested initiative. For project
1702
+ * without files, grants, tags, or the nested initiative. For project
1600
1703
  * pickers and other list-only callers.
1601
1704
  */
1602
1705
  slim?: boolean;
@@ -1632,14 +1735,9 @@ export interface PluginApiOperations {
1632
1735
  body: PluginApiSchemas["ProjectCreate"];
1633
1736
  answer: PluginApiSchemas["ProjectRead"];
1634
1737
  };
1635
- list_documents: {
1738
+ list_files: {
1636
1739
  query: {
1637
1740
  initiative_id?: number | null;
1638
- /**
1639
- * Filter to specific document IDs — for hydrating a known set of
1640
- * documents without walking a collection. Maximum 100 IDs.
1641
- */
1642
- ids?: number[] | null;
1643
1741
  search?: string | null;
1644
1742
  /**
1645
1743
  * Filter by tag IDs
@@ -1651,18 +1749,18 @@ export interface PluginApiOperations {
1651
1749
  */
1652
1750
  property_filters?: string | null;
1653
1751
  /**
1654
- * Filter to documents with no tags
1752
+ * Filter to files with no tags
1655
1753
  */
1656
1754
  untagged?: boolean | null;
1657
1755
  /**
1658
- * Only templates (true) or only documents that are not templates (false).
1756
+ * Only templates (true) or only files that are not templates (false).
1659
1757
  * Omit for both.
1660
1758
  */
1661
1759
  is_template?: boolean | null;
1662
1760
  /**
1663
- * Filter by document type
1761
+ * Filter by file type
1664
1762
  */
1665
- document_type?: PluginApiSchemas["DocumentType"] | null;
1763
+ file_type?: PluginApiSchemas["FileType"] | null;
1666
1764
  page?: number;
1667
1765
  page_size?: number;
1668
1766
  /**
@@ -1679,11 +1777,11 @@ export interface PluginApiOperations {
1679
1777
  */
1680
1778
  archived?: boolean | null;
1681
1779
  };
1682
- answer: PluginApiSchemas["DocumentListResponse"];
1780
+ answer: PluginApiSchemas["FileListResponse"];
1683
1781
  };
1684
- create_document: {
1685
- body: PluginApiSchemas["DocumentCreate"];
1686
- answer: PluginApiSchemas["DocumentRead"];
1782
+ create_file: {
1783
+ body: PluginApiSchemas["FileCreate"];
1784
+ answer: PluginApiSchemas["FileRead"];
1687
1785
  };
1688
1786
  list_queues: {
1689
1787
  query: {
@@ -1910,6 +2008,11 @@ export interface PluginApiOperations {
1910
2008
  * live list, which is what every other view shows.
1911
2009
  */
1912
2010
  archived?: boolean | null;
2011
+ /**
2012
+ * Also send what each row's card shows of what is inside it, read for the
2013
+ * whole page at once.
2014
+ */
2015
+ include_preview?: boolean;
1913
2016
  page?: number;
1914
2017
  page_size?: number;
1915
2018
  };
@@ -2073,9 +2176,12 @@ export interface PluginApiOperations {
2073
2176
  };
2074
2177
  list_comments: {
2075
2178
  query: {
2179
+ limit?: number;
2180
+ cursor?: string | null;
2076
2181
  task_id?: number | null;
2077
- document_id?: number | null;
2182
+ wiki_page_id?: number | null;
2078
2183
  project_id?: number | null;
2184
+ file_id?: number | null;
2079
2185
  queue_id?: number | null;
2080
2186
  counter_group_id?: number | null;
2081
2187
  calendar_id?: number | null;
@@ -2083,9 +2189,6 @@ export interface PluginApiOperations {
2083
2189
  post_id?: number | null;
2084
2190
  gallery_id?: number | null;
2085
2191
  wiki_id?: number | null;
2086
- wiki_page_id?: number | null;
2087
- limit?: number;
2088
- cursor?: string | null;
2089
2192
  };
2090
2193
  answer: PluginApiSchemas["CommentListResponse"];
2091
2194
  };
@@ -2127,16 +2230,16 @@ export interface PluginApiOperations {
2127
2230
  };
2128
2231
  answer: PluginApiSchemas["InitiativeRead"];
2129
2232
  };
2130
- read_document: {
2233
+ read_file: {
2131
2234
  path: {
2132
- document_id: number;
2235
+ file_id: number;
2133
2236
  };
2134
2237
  query: {
2135
2238
  /**
2136
- * Include the document body. Pass false for the metadata alone — a
2137
- * document's body is the largest thing this API returns, and a caller
2138
- * reacting to a change (a name, a tag, a property) does not need it.
2139
- * Everything else is unchanged.
2239
+ * Include the file body. Pass false for the metadata alone — a file's
2240
+ * body is the largest thing this API returns, and a caller reacting to a
2241
+ * change (a name, a tag, a property) does not need it. Everything else is
2242
+ * unchanged.
2140
2243
  */
2141
2244
  include_content?: boolean;
2142
2245
  /**
@@ -2146,14 +2249,14 @@ export interface PluginApiOperations {
2146
2249
  */
2147
2250
  include_deleted?: boolean;
2148
2251
  };
2149
- answer: PluginApiSchemas["DocumentRead"];
2252
+ answer: PluginApiSchemas["FileRead"];
2150
2253
  };
2151
- update_document: {
2254
+ update_file: {
2152
2255
  path: {
2153
- document_id: number;
2256
+ file_id: number;
2154
2257
  };
2155
- body: PluginApiSchemas["DocumentUpdate"];
2156
- answer: PluginApiSchemas["DocumentRead"];
2258
+ body: PluginApiSchemas["FileUpdate"];
2259
+ answer: PluginApiSchemas["FileRead"];
2157
2260
  };
2158
2261
  read_queue: {
2159
2262
  path: {
@@ -2176,6 +2279,13 @@ export interface PluginApiOperations {
2176
2279
  body: PluginApiSchemas["QueueUpdate"];
2177
2280
  answer: PluginApiSchemas["QueueRead"];
2178
2281
  };
2282
+ add_queue_item: {
2283
+ path: {
2284
+ queue_id: number;
2285
+ };
2286
+ body: PluginApiSchemas["QueueItemCreate"];
2287
+ answer: PluginApiSchemas["QueueItemRead"];
2288
+ };
2179
2289
  start_queue: {
2180
2290
  path: {
2181
2291
  queue_id: number;
@@ -2275,6 +2385,26 @@ export interface PluginApiOperations {
2275
2385
  body: PluginApiSchemas["CounterGroupUpdate"];
2276
2386
  answer: PluginApiSchemas["CounterGroupRead"];
2277
2387
  };
2388
+ add_counter: {
2389
+ path: {
2390
+ group_id: number;
2391
+ };
2392
+ body: PluginApiSchemas["CounterCreate"];
2393
+ answer: PluginApiSchemas["CounterRead"];
2394
+ };
2395
+ reset_all_counters: {
2396
+ path: {
2397
+ group_id: number;
2398
+ };
2399
+ answer: PluginApiSchemas["CounterGroupRead"];
2400
+ };
2401
+ sort_counters: {
2402
+ path: {
2403
+ group_id: number;
2404
+ };
2405
+ body: PluginApiSchemas["CounterSortRequest"];
2406
+ answer: PluginApiSchemas["CounterGroupRead"];
2407
+ };
2278
2408
  read_counter: {
2279
2409
  path: {
2280
2410
  counter_id: number;
@@ -2289,6 +2419,13 @@ export interface PluginApiOperations {
2289
2419
  };
2290
2420
  answer: PluginApiSchemas["CounterRead"];
2291
2421
  };
2422
+ update_counter: {
2423
+ path: {
2424
+ counter_id: number;
2425
+ };
2426
+ body: PluginApiSchemas["CounterUpdate"];
2427
+ answer: PluginApiSchemas["CounterRead"];
2428
+ };
2292
2429
  duplicate_counter: {
2293
2430
  path: {
2294
2431
  counter_id: number;
@@ -2416,6 +2553,66 @@ export interface PluginApiOperations {
2416
2553
  };
2417
2554
  answer: PluginApiSchemas["GalleryImageListResponse"];
2418
2555
  };
2556
+ upload_gallery_image: {
2557
+ path: {
2558
+ gallery_id: number;
2559
+ };
2560
+ body: FormData;
2561
+ answer: PluginApiSchemas["GalleryImageRead"];
2562
+ };
2563
+ get_gallery_image_timeline: {
2564
+ path: {
2565
+ gallery_id: number;
2566
+ };
2567
+ query: {
2568
+ tag_ids?: number[] | null;
2569
+ search?: string | null;
2570
+ /**
2571
+ * IANA zone the month boundaries are cut in, e.g. Pacific/Auckland.
2572
+ * Defaults to UTC.
2573
+ */
2574
+ tz?: string | null;
2575
+ };
2576
+ answer: PluginApiSchemas["TimelineResponse"];
2577
+ };
2578
+ read_gallery_image: {
2579
+ path: {
2580
+ gallery_id: number;
2581
+ image_id: number;
2582
+ };
2583
+ answer: PluginApiSchemas["GalleryImageRead"];
2584
+ };
2585
+ update_gallery_image: {
2586
+ path: {
2587
+ gallery_id: number;
2588
+ image_id: number;
2589
+ };
2590
+ body: PluginApiSchemas["GalleryImageUpdate"];
2591
+ answer: PluginApiSchemas["GalleryImageRead"];
2592
+ };
2593
+ list_gallery_image_versions: {
2594
+ path: {
2595
+ gallery_id: number;
2596
+ image_id: number;
2597
+ };
2598
+ answer: PluginApiSchemas["GalleryImageVersionRead"][];
2599
+ };
2600
+ upload_gallery_image_version: {
2601
+ path: {
2602
+ gallery_id: number;
2603
+ image_id: number;
2604
+ };
2605
+ body: FormData;
2606
+ answer: PluginApiSchemas["GalleryImageVersionRead"];
2607
+ };
2608
+ delete_gallery_image_version: {
2609
+ path: {
2610
+ gallery_id: number;
2611
+ image_id: number;
2612
+ version_id: number;
2613
+ };
2614
+ answer: void;
2615
+ };
2419
2616
  read_wiki: {
2420
2617
  path: {
2421
2618
  wiki_id: number;
@@ -2435,18 +2632,39 @@ export interface PluginApiOperations {
2435
2632
  };
2436
2633
  answer: PluginApiSchemas["WikiPageTree"];
2437
2634
  };
2635
+ create_wiki_page: {
2636
+ path: {
2637
+ wiki_id: number;
2638
+ };
2639
+ body: PluginApiSchemas["WikiPageCreate"];
2640
+ answer: PluginApiSchemas["WikiPageRead"];
2641
+ };
2438
2642
  read_wiki_page: {
2439
2643
  path: {
2440
2644
  page_id: number;
2441
2645
  };
2442
2646
  answer: PluginApiSchemas["WikiPageRead"];
2443
2647
  };
2648
+ update_wiki_page: {
2649
+ path: {
2650
+ page_id: number;
2651
+ };
2652
+ body: PluginApiSchemas["WikiPageUpdate"];
2653
+ answer: PluginApiSchemas["WikiPageRead"];
2654
+ };
2444
2655
  duplicate_wiki_page: {
2445
2656
  path: {
2446
2657
  page_id: number;
2447
2658
  };
2448
2659
  answer: PluginApiSchemas["WikiPageRead"];
2449
2660
  };
2661
+ move_wiki_page: {
2662
+ path: {
2663
+ page_id: number;
2664
+ };
2665
+ body: PluginApiSchemas["WikiPageMove"];
2666
+ answer: PluginApiSchemas["WikiPageRead"];
2667
+ };
2450
2668
  read_calendar_event: {
2451
2669
  path: {
2452
2670
  event_id: number;
@@ -2541,12 +2759,12 @@ export interface PluginApiOperations {
2541
2759
  body: PluginApiSchemas["ResourceGrantSchema"][];
2542
2760
  answer: PluginApiSchemas["ProjectRead"];
2543
2761
  };
2544
- set_document_grants: {
2762
+ set_file_grants: {
2545
2763
  path: {
2546
- document_id: number;
2764
+ file_id: number;
2547
2765
  };
2548
2766
  body: PluginApiSchemas["ResourceGrantSchema"][];
2549
- answer: PluginApiSchemas["DocumentRead"];
2767
+ answer: PluginApiSchemas["FileRead"];
2550
2768
  };
2551
2769
  set_queue_grants: {
2552
2770
  path: {
@@ -2597,12 +2815,12 @@ export interface PluginApiOperations {
2597
2815
  body: PluginApiSchemas["ToolDuplicateRequest"] | null;
2598
2816
  answer: PluginApiSchemas["ProjectRead"];
2599
2817
  };
2600
- duplicate_document: {
2818
+ duplicate_file: {
2601
2819
  path: {
2602
- document_id: number;
2820
+ file_id: number;
2603
2821
  };
2604
2822
  body: PluginApiSchemas["ToolDuplicateRequest"] | null;
2605
- answer: PluginApiSchemas["DocumentRead"];
2823
+ answer: PluginApiSchemas["FileRead"];
2606
2824
  };
2607
2825
  duplicate_queue: {
2608
2826
  path: {
@@ -2654,7 +2872,7 @@ export interface PluginApiOperations {
2654
2872
  search: string;
2655
2873
  /**
2656
2874
  * Restrict to these entity types. Omit for the default scope (calendar,
2657
- * calendar_event, counter, counter_group, dashboard, document, gallery,
2875
+ * calendar_event, counter, counter_group, dashboard, file, gallery,
2658
2876
  * gallery_image, post, project, queue, queue_item, tag, task, wiki,
2659
2877
  * wiki_page); naming a type reaches it explicitly.
2660
2878
  */
@@ -2669,9 +2887,9 @@ export interface PluginApiOperations {
2669
2887
  */
2670
2888
  is_template?: boolean | null;
2671
2889
  /**
2672
- * The thing being written in, as a reference (`document:12`). It is left
2673
- * out of the answer: a thing does not point at itself. A reference that
2674
- * names nothing narrows nothing.
2890
+ * The thing being written in, as a reference (`file:12`). It is left out
2891
+ * of the answer: a thing does not point at itself. A reference that names
2892
+ * nothing narrows nothing.
2675
2893
  */
2676
2894
  subject?: string | null;
2677
2895
  limit?: number;
@@ -2684,6 +2902,23 @@ export interface PluginApiOperations {
2684
2902
  };
2685
2903
  answer: PluginApiSchemas["PropertyDefinitionRead"][];
2686
2904
  };
2905
+ create_property_definition: {
2906
+ body: PluginApiSchemas["PropertyDefinitionCreate"];
2907
+ answer: PluginApiSchemas["PropertyDefinitionRead"];
2908
+ };
2909
+ delete_property_definition: {
2910
+ path: {
2911
+ definition_id: number;
2912
+ };
2913
+ answer: void;
2914
+ };
2915
+ update_property_definition: {
2916
+ path: {
2917
+ definition_id: number;
2918
+ };
2919
+ body: PluginApiSchemas["PropertyDefinitionUpdate"];
2920
+ answer: PluginApiSchemas["PropertyDefinitionUpdateResponse"];
2921
+ };
2687
2922
  set_properties: {
2688
2923
  path: {
2689
2924
  target: PluginApiSchemas["PropertyTarget"];
@@ -2750,7 +2985,7 @@ export declare const pluginApiOperations: {
2750
2985
  readonly path: "/webhooks/subscriptions";
2751
2986
  readonly scope: {
2752
2987
  readonly per: "event_type";
2753
- readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "documents:read", "galleries:read", "initiatives:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
2988
+ readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "files:read", "galleries:read", "initiatives:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
2754
2989
  };
2755
2990
  };
2756
2991
  readonly delete_subscription: {
@@ -2758,7 +2993,7 @@ export declare const pluginApiOperations: {
2758
2993
  readonly path: "/webhooks/subscriptions/{subscription_id}";
2759
2994
  readonly scope: {
2760
2995
  readonly per: "event_type";
2761
- readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "documents:read", "galleries:read", "initiatives:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
2996
+ readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "files:read", "galleries:read", "initiatives:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
2762
2997
  };
2763
2998
  };
2764
2999
  readonly list_projects: {
@@ -2771,15 +3006,15 @@ export declare const pluginApiOperations: {
2771
3006
  readonly path: "/projects/";
2772
3007
  readonly scope: "projects:write";
2773
3008
  };
2774
- readonly list_documents: {
3009
+ readonly list_files: {
2775
3010
  readonly method: "GET";
2776
- readonly path: "/documents/";
2777
- readonly scope: "documents:read";
3011
+ readonly path: "/files/";
3012
+ readonly scope: "files:read";
2778
3013
  };
2779
- readonly create_document: {
3014
+ readonly create_file: {
2780
3015
  readonly method: "POST";
2781
- readonly path: "/documents/";
2782
- readonly scope: "documents:write";
3016
+ readonly path: "/files/";
3017
+ readonly scope: "files:write";
2783
3018
  };
2784
3019
  readonly list_queues: {
2785
3020
  readonly method: "GET";
@@ -2927,15 +3162,15 @@ export declare const pluginApiOperations: {
2927
3162
  readonly path: "/initiatives/{initiative_id}";
2928
3163
  readonly scope: "initiatives:read";
2929
3164
  };
2930
- readonly read_document: {
3165
+ readonly read_file: {
2931
3166
  readonly method: "GET";
2932
- readonly path: "/documents/{document_id}";
2933
- readonly scope: "documents:read";
3167
+ readonly path: "/files/{file_id}";
3168
+ readonly scope: "files:read";
2934
3169
  };
2935
- readonly update_document: {
3170
+ readonly update_file: {
2936
3171
  readonly method: "PATCH";
2937
- readonly path: "/documents/{document_id}";
2938
- readonly scope: "documents:write";
3172
+ readonly path: "/files/{file_id}";
3173
+ readonly scope: "files:write";
2939
3174
  };
2940
3175
  readonly read_queue: {
2941
3176
  readonly method: "GET";
@@ -2947,6 +3182,11 @@ export declare const pluginApiOperations: {
2947
3182
  readonly path: "/queues/{queue_id}";
2948
3183
  readonly scope: "queues:write";
2949
3184
  };
3185
+ readonly add_queue_item: {
3186
+ readonly method: "POST";
3187
+ readonly path: "/queues/{queue_id}/items";
3188
+ readonly scope: "queues:write";
3189
+ };
2950
3190
  readonly start_queue: {
2951
3191
  readonly method: "POST";
2952
3192
  readonly path: "/queues/{queue_id}/start";
@@ -3012,11 +3252,31 @@ export declare const pluginApiOperations: {
3012
3252
  readonly path: "/counter-groups/{group_id}";
3013
3253
  readonly scope: "counter_groups:write";
3014
3254
  };
3255
+ readonly add_counter: {
3256
+ readonly method: "POST";
3257
+ readonly path: "/counter-groups/{group_id}/counters";
3258
+ readonly scope: "counter_groups:write";
3259
+ };
3260
+ readonly reset_all_counters: {
3261
+ readonly method: "POST";
3262
+ readonly path: "/counter-groups/{group_id}/reset-all";
3263
+ readonly scope: "counter_groups:write";
3264
+ };
3265
+ readonly sort_counters: {
3266
+ readonly method: "POST";
3267
+ readonly path: "/counter-groups/{group_id}/sort";
3268
+ readonly scope: "counter_groups:write";
3269
+ };
3015
3270
  readonly read_counter: {
3016
3271
  readonly method: "GET";
3017
3272
  readonly path: "/counters/{counter_id}";
3018
3273
  readonly scope: "counter_groups:read";
3019
3274
  };
3275
+ readonly update_counter: {
3276
+ readonly method: "PATCH";
3277
+ readonly path: "/counters/{counter_id}";
3278
+ readonly scope: "counter_groups:write";
3279
+ };
3020
3280
  readonly duplicate_counter: {
3021
3281
  readonly method: "POST";
3022
3282
  readonly path: "/counters/{counter_id}/duplicate";
@@ -3077,6 +3337,41 @@ export declare const pluginApiOperations: {
3077
3337
  readonly path: "/galleries/{gallery_id}/images";
3078
3338
  readonly scope: "galleries:read";
3079
3339
  };
3340
+ readonly upload_gallery_image: {
3341
+ readonly method: "POST";
3342
+ readonly path: "/galleries/{gallery_id}/images";
3343
+ readonly scope: "galleries:write";
3344
+ };
3345
+ readonly get_gallery_image_timeline: {
3346
+ readonly method: "GET";
3347
+ readonly path: "/galleries/{gallery_id}/images/timeline";
3348
+ readonly scope: "galleries:read";
3349
+ };
3350
+ readonly read_gallery_image: {
3351
+ readonly method: "GET";
3352
+ readonly path: "/galleries/{gallery_id}/images/{image_id}";
3353
+ readonly scope: "galleries:read";
3354
+ };
3355
+ readonly update_gallery_image: {
3356
+ readonly method: "PATCH";
3357
+ readonly path: "/galleries/{gallery_id}/images/{image_id}";
3358
+ readonly scope: "galleries:write";
3359
+ };
3360
+ readonly list_gallery_image_versions: {
3361
+ readonly method: "GET";
3362
+ readonly path: "/galleries/{gallery_id}/images/{image_id}/versions";
3363
+ readonly scope: "galleries:read";
3364
+ };
3365
+ readonly upload_gallery_image_version: {
3366
+ readonly method: "POST";
3367
+ readonly path: "/galleries/{gallery_id}/images/{image_id}/versions";
3368
+ readonly scope: "galleries:write";
3369
+ };
3370
+ readonly delete_gallery_image_version: {
3371
+ readonly method: "DELETE";
3372
+ readonly path: "/galleries/{gallery_id}/images/{image_id}/versions/{version_id}";
3373
+ readonly scope: "galleries:write";
3374
+ };
3080
3375
  readonly read_wiki: {
3081
3376
  readonly method: "GET";
3082
3377
  readonly path: "/wikis/{wiki_id}";
@@ -3092,16 +3387,31 @@ export declare const pluginApiOperations: {
3092
3387
  readonly path: "/wikis/{wiki_id}/pages";
3093
3388
  readonly scope: "wikis:read";
3094
3389
  };
3390
+ readonly create_wiki_page: {
3391
+ readonly method: "POST";
3392
+ readonly path: "/wikis/{wiki_id}/pages";
3393
+ readonly scope: "wikis:write";
3394
+ };
3095
3395
  readonly read_wiki_page: {
3096
3396
  readonly method: "GET";
3097
3397
  readonly path: "/wiki-pages/{page_id}";
3098
3398
  readonly scope: "wikis:read";
3099
3399
  };
3400
+ readonly update_wiki_page: {
3401
+ readonly method: "PATCH";
3402
+ readonly path: "/wiki-pages/{page_id}";
3403
+ readonly scope: "wikis:write";
3404
+ };
3100
3405
  readonly duplicate_wiki_page: {
3101
3406
  readonly method: "POST";
3102
3407
  readonly path: "/wiki-pages/{page_id}/duplicate";
3103
3408
  readonly scope: "wikis:write";
3104
3409
  };
3410
+ readonly move_wiki_page: {
3411
+ readonly method: "POST";
3412
+ readonly path: "/wiki-pages/{page_id}/move";
3413
+ readonly scope: "wikis:write";
3414
+ };
3105
3415
  readonly read_calendar_event: {
3106
3416
  readonly method: "GET";
3107
3417
  readonly path: "/calendar-events/{event_id}";
@@ -3162,9 +3472,9 @@ export declare const pluginApiOperations: {
3162
3472
  readonly path: "/projects/{project_id}/grants";
3163
3473
  readonly scope: "sharing:write";
3164
3474
  };
3165
- readonly set_document_grants: {
3475
+ readonly set_file_grants: {
3166
3476
  readonly method: "PUT";
3167
- readonly path: "/documents/{document_id}/grants";
3477
+ readonly path: "/files/{file_id}/grants";
3168
3478
  readonly scope: "sharing:write";
3169
3479
  };
3170
3480
  readonly set_queue_grants: {
@@ -3202,10 +3512,10 @@ export declare const pluginApiOperations: {
3202
3512
  readonly path: "/projects/{project_id}/duplicate";
3203
3513
  readonly scope: "projects:write";
3204
3514
  };
3205
- readonly duplicate_document: {
3515
+ readonly duplicate_file: {
3206
3516
  readonly method: "POST";
3207
- readonly path: "/documents/{document_id}/duplicate";
3208
- readonly scope: "documents:write";
3517
+ readonly path: "/files/{file_id}/duplicate";
3518
+ readonly scope: "files:write";
3209
3519
  };
3210
3520
  readonly duplicate_queue: {
3211
3521
  readonly method: "POST";
@@ -3242,13 +3552,31 @@ export declare const pluginApiOperations: {
3242
3552
  readonly path: "/search/suggest";
3243
3553
  readonly scope: {
3244
3554
  readonly per: "entity_type";
3245
- readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "documents:read", "galleries:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
3555
+ readonly any_of: readonly ["calendars:read", "comments:read", "counter_groups:read", "dashboards:read", "files:read", "galleries:read", "posts:read", "projects:read", "queues:read", "tags:read", "wikis:read"];
3246
3556
  };
3247
3557
  };
3248
3558
  readonly list_property_definitions: {
3249
3559
  readonly method: "GET";
3250
3560
  readonly path: "/property-definitions/";
3251
- readonly scope: "initiatives:read";
3561
+ readonly scope: {
3562
+ readonly per: "tool";
3563
+ readonly any_of: readonly ["calendars:read", "counter_groups:read", "dashboards:read", "files:read", "galleries:read", "posts:read", "projects:read", "properties:read", "queues:read", "wikis:read"];
3564
+ };
3565
+ };
3566
+ readonly create_property_definition: {
3567
+ readonly method: "POST";
3568
+ readonly path: "/property-definitions/";
3569
+ readonly scope: "properties:write";
3570
+ };
3571
+ readonly delete_property_definition: {
3572
+ readonly method: "DELETE";
3573
+ readonly path: "/property-definitions/{definition_id}";
3574
+ readonly scope: "properties:write";
3575
+ };
3576
+ readonly update_property_definition: {
3577
+ readonly method: "PATCH";
3578
+ readonly path: "/property-definitions/{definition_id}";
3579
+ readonly scope: "properties:write";
3252
3580
  };
3253
3581
  readonly set_properties: {
3254
3582
  readonly method: "PUT";
@@ -3261,7 +3589,7 @@ export declare const pluginApiOperations: {
3261
3589
  readonly counter: "counter_groups:write";
3262
3590
  readonly counter_group: "counter_groups:write";
3263
3591
  readonly dashboard: "dashboards:write";
3264
- readonly document: "documents:write";
3592
+ readonly file: "files:write";
3265
3593
  readonly gallery: "galleries:write";
3266
3594
  readonly gallery_image: "galleries:write";
3267
3595
  readonly post: "posts:write";
@@ -3283,7 +3611,7 @@ export declare const pluginApiOperations: {
3283
3611
  readonly calendar: "calendars:write";
3284
3612
  readonly counter_group: "counter_groups:write";
3285
3613
  readonly dashboard: "dashboards:write";
3286
- readonly document: "documents:write";
3614
+ readonly file: "files:write";
3287
3615
  readonly gallery: "galleries:write";
3288
3616
  readonly post: "posts:write";
3289
3617
  readonly project: "projects:write";
@@ -3312,7 +3640,7 @@ export declare class PluginApi {
3312
3640
  /**
3313
3641
  * Register a new webhook subscription.
3314
3642
  *
3315
- * `POST /webhooks/subscriptions`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `documents:read`, `galleries:read`, `initiatives:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
3643
+ * `POST /webhooks/subscriptions`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `files:read`, `galleries:read`, `initiatives:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
3316
3644
  */
3317
3645
  createSubscription(args: {
3318
3646
  body: PluginApiOperations["create_subscription"]["body"];
@@ -3323,7 +3651,7 @@ export declare class PluginApi {
3323
3651
  * installed plug-in reaches only the subscriptions it registered, and any
3324
3652
  * other is a 404.
3325
3653
  *
3326
- * `DELETE /webhooks/subscriptions/{subscription_id}`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `documents:read`, `galleries:read`, `initiatives:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
3654
+ * `DELETE /webhooks/subscriptions/{subscription_id}`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `files:read`, `galleries:read`, `initiatives:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
3327
3655
  */
3328
3656
  deleteSubscription(args: {
3329
3657
  path: PluginApiOperations["delete_subscription"]["path"];
@@ -3345,23 +3673,23 @@ export declare class PluginApi {
3345
3673
  body: PluginApiOperations["create_project"]["body"];
3346
3674
  }): Promise<PluginApiOperations["create_project"]["answer"]>;
3347
3675
  /**
3348
- * List documents in the active guild visible to the current user.
3676
+ * List files in the active guild visible to the current user.
3349
3677
  *
3350
- * `GET /documents/`, needs `documents:read`.
3678
+ * `GET /files/`, needs `files:read`.
3351
3679
  */
3352
- listDocuments(args?: {
3353
- query?: PluginApiOperations["list_documents"]["query"];
3354
- }): Promise<PluginApiOperations["list_documents"]["answer"]>;
3680
+ listFiles(args?: {
3681
+ query?: PluginApiOperations["list_files"]["query"];
3682
+ }): Promise<PluginApiOperations["list_files"]["answer"]>;
3355
3683
  /**
3356
- * Create Document
3684
+ * Create File
3357
3685
  *
3358
- * `POST /documents/`, needs `documents:write`.
3686
+ * `POST /files/`, needs `files:write`.
3359
3687
  */
3360
- createDocument(args: {
3361
- body: PluginApiOperations["create_document"]["body"];
3362
- }): Promise<PluginApiOperations["create_document"]["answer"]>;
3688
+ createFile(args: {
3689
+ body: PluginApiOperations["create_file"]["body"];
3690
+ }): Promise<PluginApiOperations["create_file"]["answer"]>;
3363
3691
  /**
3364
- * List queues visible to the current user.
3692
+ * List queues visible to the current user (guild admins see all).
3365
3693
  *
3366
3694
  * `GET /queues/`, needs `queues:read`.
3367
3695
  */
@@ -3608,23 +3936,23 @@ export declare class PluginApi {
3608
3936
  query?: PluginApiOperations["get_initiative"]["query"];
3609
3937
  }): Promise<PluginApiOperations["get_initiative"]["answer"]>;
3610
3938
  /**
3611
- * Read Document
3939
+ * Read File
3612
3940
  *
3613
- * `GET /documents/{document_id}`, needs `documents:read`.
3941
+ * `GET /files/{file_id}`, needs `files:read`.
3614
3942
  */
3615
- readDocument(args: {
3616
- path: PluginApiOperations["read_document"]["path"];
3617
- query?: PluginApiOperations["read_document"]["query"];
3618
- }): Promise<PluginApiOperations["read_document"]["answer"]>;
3943
+ readFile(args: {
3944
+ path: PluginApiOperations["read_file"]["path"];
3945
+ query?: PluginApiOperations["read_file"]["query"];
3946
+ }): Promise<PluginApiOperations["read_file"]["answer"]>;
3619
3947
  /**
3620
- * Update Document
3948
+ * Update File
3621
3949
  *
3622
- * `PATCH /documents/{document_id}`, needs `documents:write`.
3950
+ * `PATCH /files/{file_id}`, needs `files:write`.
3623
3951
  */
3624
- updateDocument(args: {
3625
- path: PluginApiOperations["update_document"]["path"];
3626
- body: PluginApiOperations["update_document"]["body"];
3627
- }): Promise<PluginApiOperations["update_document"]["answer"]>;
3952
+ updateFile(args: {
3953
+ path: PluginApiOperations["update_file"]["path"];
3954
+ body: PluginApiOperations["update_file"]["body"];
3955
+ }): Promise<PluginApiOperations["update_file"]["answer"]>;
3628
3956
  /**
3629
3957
  * Read Queue
3630
3958
  *
@@ -3643,6 +3971,15 @@ export declare class PluginApi {
3643
3971
  path: PluginApiOperations["update_queue"]["path"];
3644
3972
  body: PluginApiOperations["update_queue"]["body"];
3645
3973
  }): Promise<PluginApiOperations["update_queue"]["answer"]>;
3974
+ /**
3975
+ * Add an item to a queue. Requires write access.
3976
+ *
3977
+ * `POST /queues/{queue_id}/items`, needs `queues:write`.
3978
+ */
3979
+ addQueueItem(args: {
3980
+ path: PluginApiOperations["add_queue_item"]["path"];
3981
+ body: PluginApiOperations["add_queue_item"]["body"];
3982
+ }): Promise<PluginApiOperations["add_queue_item"]["answer"]>;
3646
3983
  /**
3647
3984
  * Start the queue: set active, reset to first item, round 1.
3648
3985
  *
@@ -3753,6 +4090,32 @@ export declare class PluginApi {
3753
4090
  path: PluginApiOperations["update_counter_group"]["path"];
3754
4091
  body: PluginApiOperations["update_counter_group"]["body"];
3755
4092
  }): Promise<PluginApiOperations["update_counter_group"]["answer"]>;
4093
+ /**
4094
+ * Add Counter
4095
+ *
4096
+ * `POST /counter-groups/{group_id}/counters`, needs `counter_groups:write`.
4097
+ */
4098
+ addCounter(args: {
4099
+ path: PluginApiOperations["add_counter"]["path"];
4100
+ body: PluginApiOperations["add_counter"]["body"];
4101
+ }): Promise<PluginApiOperations["add_counter"]["answer"]>;
4102
+ /**
4103
+ * Reset All Counters
4104
+ *
4105
+ * `POST /counter-groups/{group_id}/reset-all`, needs `counter_groups:write`.
4106
+ */
4107
+ resetAllCounters(args: {
4108
+ path: PluginApiOperations["reset_all_counters"]["path"];
4109
+ }): Promise<PluginApiOperations["reset_all_counters"]["answer"]>;
4110
+ /**
4111
+ * Sort Counters
4112
+ *
4113
+ * `POST /counter-groups/{group_id}/sort`, needs `counter_groups:write`.
4114
+ */
4115
+ sortCounters(args: {
4116
+ path: PluginApiOperations["sort_counters"]["path"];
4117
+ body: PluginApiOperations["sort_counters"]["body"];
4118
+ }): Promise<PluginApiOperations["sort_counters"]["answer"]>;
3756
4119
  /**
3757
4120
  * One counter by id — the read-back for a `counters.*` event.
3758
4121
  *
@@ -3763,8 +4126,17 @@ export declare class PluginApi {
3763
4126
  query?: PluginApiOperations["read_counter"]["query"];
3764
4127
  }): Promise<PluginApiOperations["read_counter"]["answer"]>;
3765
4128
  /**
3766
- * Copy the counter to the end of its group as "<name> (Copy)", with its
3767
- * count, tags and properties.
4129
+ * Update Counter
4130
+ *
4131
+ * `PATCH /counters/{counter_id}`, needs `counter_groups:write`.
4132
+ */
4133
+ updateCounter(args: {
4134
+ path: PluginApiOperations["update_counter"]["path"];
4135
+ body: PluginApiOperations["update_counter"]["body"];
4136
+ }): Promise<PluginApiOperations["update_counter"]["answer"]>;
4137
+ /**
4138
+ * Copy the counter to the end of its group as "<name> (Copy)", with its count
4139
+ * and properties.
3768
4140
  *
3769
4141
  * `POST /counters/{counter_id}/duplicate`, needs `counter_groups:write`.
3770
4142
  */
@@ -3873,6 +4245,72 @@ export declare class PluginApi {
3873
4245
  path: PluginApiOperations["list_gallery_images"]["path"];
3874
4246
  query?: PluginApiOperations["list_gallery_images"]["query"];
3875
4247
  }): Promise<PluginApiOperations["list_gallery_images"]["answer"]>;
4248
+ /**
4249
+ * Add one picture to a gallery. Requires write access.
4250
+ *
4251
+ * `POST /galleries/{gallery_id}/images`, needs `galleries:write`.
4252
+ */
4253
+ uploadGalleryImage(args: {
4254
+ path: PluginApiOperations["upload_gallery_image"]["path"];
4255
+ body: PluginApiOperations["upload_gallery_image"]["body"];
4256
+ }): Promise<PluginApiOperations["upload_gallery_image"]["answer"]>;
4257
+ /**
4258
+ * The months this gallery has pictures in, newest first — what the timeline
4259
+ * rail is drawn from. Takes the same filters the list does, so the rail is a
4260
+ * picture of the list as it currently stands.
4261
+ *
4262
+ * `GET /galleries/{gallery_id}/images/timeline`, needs `galleries:read`.
4263
+ */
4264
+ getGalleryImageTimeline(args: {
4265
+ path: PluginApiOperations["get_gallery_image_timeline"]["path"];
4266
+ query?: PluginApiOperations["get_gallery_image_timeline"]["query"];
4267
+ }): Promise<PluginApiOperations["get_gallery_image_timeline"]["answer"]>;
4268
+ /**
4269
+ * Read Gallery Image
4270
+ *
4271
+ * `GET /galleries/{gallery_id}/images/{image_id}`, needs `galleries:read`.
4272
+ */
4273
+ readGalleryImage(args: {
4274
+ path: PluginApiOperations["read_gallery_image"]["path"];
4275
+ }): Promise<PluginApiOperations["read_gallery_image"]["answer"]>;
4276
+ /**
4277
+ * Retitle, caption, retag or set the properties of a picture. Requires write
4278
+ * access on the gallery.
4279
+ *
4280
+ * `PATCH /galleries/{gallery_id}/images/{image_id}`, needs `galleries:write`.
4281
+ */
4282
+ updateGalleryImage(args: {
4283
+ path: PluginApiOperations["update_gallery_image"]["path"];
4284
+ body: PluginApiOperations["update_gallery_image"]["body"];
4285
+ }): Promise<PluginApiOperations["update_gallery_image"]["answer"]>;
4286
+ /**
4287
+ * Every stored rendition of a picture, newest first.
4288
+ *
4289
+ * `GET /galleries/{gallery_id}/images/{image_id}/versions`, needs `galleries:read`.
4290
+ */
4291
+ listGalleryImageVersions(args: {
4292
+ path: PluginApiOperations["list_gallery_image_versions"]["path"];
4293
+ }): Promise<PluginApiOperations["list_gallery_image_versions"]["answer"]>;
4294
+ /**
4295
+ * Replace a picture with a new rendition, keeping the old one as history.
4296
+ * Requires write access on the gallery.
4297
+ *
4298
+ * `POST /galleries/{gallery_id}/images/{image_id}/versions`, needs `galleries:write`.
4299
+ */
4300
+ uploadGalleryImageVersion(args: {
4301
+ path: PluginApiOperations["upload_gallery_image_version"]["path"];
4302
+ body: PluginApiOperations["upload_gallery_image_version"]["body"];
4303
+ }): Promise<PluginApiOperations["upload_gallery_image_version"]["answer"]>;
4304
+ /**
4305
+ * Delete one rendition of a picture. Owner only. Deleting the current one
4306
+ * promotes the previous; deleting the last is refused — remove the picture
4307
+ * instead.
4308
+ *
4309
+ * `DELETE /galleries/{gallery_id}/images/{image_id}/versions/{version_id}`, needs `galleries:write`.
4310
+ */
4311
+ deleteGalleryImageVersion(args: {
4312
+ path: PluginApiOperations["delete_gallery_image_version"]["path"];
4313
+ }): Promise<PluginApiOperations["delete_gallery_image_version"]["answer"]>;
3876
4314
  /**
3877
4315
  * Read Wiki
3878
4316
  *
@@ -3898,6 +4336,16 @@ export declare class PluginApi {
3898
4336
  listWikiPages(args: {
3899
4337
  path: PluginApiOperations["list_wiki_pages"]["path"];
3900
4338
  }): Promise<PluginApiOperations["list_wiki_pages"]["answer"]>;
4339
+ /**
4340
+ * Add a page. Write access on the wiki is the whole gate — a page is the
4341
+ * wiki's content.
4342
+ *
4343
+ * `POST /wikis/{wiki_id}/pages`, needs `wikis:write`.
4344
+ */
4345
+ createWikiPage(args: {
4346
+ path: PluginApiOperations["create_wiki_page"]["path"];
4347
+ body: PluginApiOperations["create_wiki_page"]["body"];
4348
+ }): Promise<PluginApiOperations["create_wiki_page"]["answer"]>;
3901
4349
  /**
3902
4350
  * One page by its own id, which is all a link to it, a mention or a stored
3903
4351
  * notification names.
@@ -3907,6 +4355,15 @@ export declare class PluginApi {
3907
4355
  readWikiPage(args: {
3908
4356
  path: PluginApiOperations["read_wiki_page"]["path"];
3909
4357
  }): Promise<PluginApiOperations["read_wiki_page"]["answer"]>;
4358
+ /**
4359
+ * Update Wiki Page
4360
+ *
4361
+ * `PATCH /wiki-pages/{page_id}`, needs `wikis:write`.
4362
+ */
4363
+ updateWikiPage(args: {
4364
+ path: PluginApiOperations["update_wiki_page"]["path"];
4365
+ body: PluginApiOperations["update_wiki_page"]["body"];
4366
+ }): Promise<PluginApiOperations["update_wiki_page"]["answer"]>;
3910
4367
  /**
3911
4368
  * Copy the page, without the pages under it, to the end of where it is filed,
3912
4369
  * as "<title> (Copy)", with its tags, links and properties.
@@ -3916,6 +4373,15 @@ export declare class PluginApi {
3916
4373
  duplicateWikiPage(args: {
3917
4374
  path: PluginApiOperations["duplicate_wiki_page"]["path"];
3918
4375
  }): Promise<PluginApiOperations["duplicate_wiki_page"]["answer"]>;
4376
+ /**
4377
+ * File a page and place it there in one request — what a drag is.
4378
+ *
4379
+ * `POST /wiki-pages/{page_id}/move`, needs `wikis:write`.
4380
+ */
4381
+ moveWikiPage(args: {
4382
+ path: PluginApiOperations["move_wiki_page"]["path"];
4383
+ body: PluginApiOperations["move_wiki_page"]["body"];
4384
+ }): Promise<PluginApiOperations["move_wiki_page"]["answer"]>;
3919
4385
  /**
3920
4386
  * Read Calendar Event
3921
4387
  *
@@ -4031,16 +4497,16 @@ export declare class PluginApi {
4031
4497
  body: PluginApiOperations["set_project_grants"]["body"];
4032
4498
  }): Promise<PluginApiOperations["set_project_grants"]["answer"]>;
4033
4499
  /**
4034
- * Replace the document's entire sharing state in one call — the body is the
4035
- * full list of grants (all-initiative-members / per-user / per-role). Every
4500
+ * Replace the file's entire sharing state in one call — the body is the full
4501
+ * list of grants (all-initiative-members / per-user / per-role). Every
4036
4502
  * non-owner grant is rebuilt from it; the owner is always preserved.
4037
4503
  *
4038
- * `PUT /documents/{document_id}/grants`, needs `sharing:write`.
4504
+ * `PUT /files/{file_id}/grants`, needs `sharing:write`.
4039
4505
  */
4040
- setDocumentGrants(args: {
4041
- path: PluginApiOperations["set_document_grants"]["path"];
4042
- body: PluginApiOperations["set_document_grants"]["body"];
4043
- }): Promise<PluginApiOperations["set_document_grants"]["answer"]>;
4506
+ setFileGrants(args: {
4507
+ path: PluginApiOperations["set_file_grants"]["path"];
4508
+ body: PluginApiOperations["set_file_grants"]["body"];
4509
+ }): Promise<PluginApiOperations["set_file_grants"]["answer"]>;
4044
4510
  /**
4045
4511
  * Replace the queue's entire sharing state in one call — the body is the full
4046
4512
  * list of grants (all-initiative-members / per-user / per-role). Every
@@ -4087,8 +4553,8 @@ export declare class PluginApi {
4087
4553
  }): Promise<PluginApiOperations["set_post_grants"]["answer"]>;
4088
4554
  /**
4089
4555
  * Replace the gallery's entire sharing state in one call — the body is the
4090
- * full list of grants. Every non-owner grant is rebuilt from it; the owner is
4091
- * always preserved.
4556
+ * full list of grants (all-initiative-members / per-user / per-role). Every
4557
+ * non-owner grant is rebuilt from it; the owner is always preserved.
4092
4558
  *
4093
4559
  * `PUT /galleries/{gallery_id}/grants`, needs `sharing:write`.
4094
4560
  */
@@ -4097,7 +4563,9 @@ export declare class PluginApi {
4097
4563
  body: PluginApiOperations["set_gallery_grants"]["body"];
4098
4564
  }): Promise<PluginApiOperations["set_gallery_grants"]["answer"]>;
4099
4565
  /**
4100
- * Set Wiki Grants
4566
+ * Replace the wiki's entire sharing state in one call — the body is the full
4567
+ * list of grants (all-initiative-members / per-user / per-role). Every
4568
+ * non-owner grant is rebuilt from it; the owner is always preserved.
4101
4569
  *
4102
4570
  * `PUT /wikis/{wiki_id}/grants`, needs `sharing:write`.
4103
4571
  */
@@ -4125,12 +4593,12 @@ export declare class PluginApi {
4125
4593
  * initiative, and carries the tags its maker may set: an installed plug-in's
4126
4594
  * copy carries them only when it holds the scope to tag.
4127
4595
  *
4128
- * `POST /documents/{document_id}/duplicate`, needs `documents:write`.
4596
+ * `POST /files/{file_id}/duplicate`, needs `files:write`.
4129
4597
  */
4130
- duplicateDocument(args: {
4131
- path: PluginApiOperations["duplicate_document"]["path"];
4132
- body?: PluginApiOperations["duplicate_document"]["body"];
4133
- }): Promise<PluginApiOperations["duplicate_document"]["answer"]>;
4598
+ duplicateFile(args: {
4599
+ path: PluginApiOperations["duplicate_file"]["path"];
4600
+ body?: PluginApiOperations["duplicate_file"]["body"];
4601
+ }): Promise<PluginApiOperations["duplicate_file"]["answer"]>;
4134
4602
  /**
4135
4603
  * Copy it, with everything inside it, into an initiative: its own unless the
4136
4604
  * body names another. Read is enough to copy a template; anything else needs
@@ -4212,7 +4680,7 @@ export declare class PluginApi {
4212
4680
  /**
4213
4681
  * Titles for the command palette — a way to reach one thing quickly.
4214
4682
  *
4215
- * `GET /search/suggest`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `documents:read`, `galleries:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
4683
+ * `GET /search/suggest`, needs one of `calendars:read`, `comments:read`, `counter_groups:read`, `dashboards:read`, `files:read`, `galleries:read`, `posts:read`, `projects:read`, `queues:read`, `tags:read`, `wikis:read`.
4216
4684
  */
4217
4685
  suggestCommunity(args: {
4218
4686
  query: PluginApiOperations["suggest_community"]["query"];
@@ -4220,11 +4688,36 @@ export declare class PluginApi {
4220
4688
  /**
4221
4689
  * List property definitions.
4222
4690
  *
4223
- * `GET /property-definitions/`, needs `initiatives:read`.
4691
+ * `GET /property-definitions/`, needs one of `calendars:read`, `counter_groups:read`, `dashboards:read`, `files:read`, `galleries:read`, `posts:read`, `projects:read`, `properties:read`, `queues:read`, `wikis:read`.
4224
4692
  */
4225
4693
  listPropertyDefinitions(args?: {
4226
4694
  query?: PluginApiOperations["list_property_definitions"]["query"];
4227
4695
  }): Promise<PluginApiOperations["list_property_definitions"]["answer"]>;
4696
+ /**
4697
+ * Create a new property definition on an initiative.
4698
+ *
4699
+ * `POST /property-definitions/`, needs `properties:write`.
4700
+ */
4701
+ createPropertyDefinition(args: {
4702
+ body: PluginApiOperations["create_property_definition"]["body"];
4703
+ }): Promise<PluginApiOperations["create_property_definition"]["answer"]>;
4704
+ /**
4705
+ * Delete a property definition. Cascades to remove all attached values.
4706
+ *
4707
+ * `DELETE /property-definitions/{definition_id}`, needs `properties:write`.
4708
+ */
4709
+ deletePropertyDefinition(args: {
4710
+ path: PluginApiOperations["delete_property_definition"]["path"];
4711
+ }): Promise<PluginApiOperations["delete_property_definition"]["answer"]>;
4712
+ /**
4713
+ * Update a property definition.
4714
+ *
4715
+ * `PATCH /property-definitions/{definition_id}`, needs `properties:write`.
4716
+ */
4717
+ updatePropertyDefinition(args: {
4718
+ path: PluginApiOperations["update_property_definition"]["path"];
4719
+ body: PluginApiOperations["update_property_definition"]["body"];
4720
+ }): Promise<PluginApiOperations["update_property_definition"]["answer"]>;
4228
4721
  /**
4229
4722
  * Replace the custom property values on one tool or sub-tool.
4230
4723
  *