@myronsi/messenger-api 2.1.0-alpha.24.next.106 → 2.1.0-alpha.25.next.107

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  Contract changes only. The backend changelog is `CHANGELOG.md` in the repository root. Rules: `docs/api-compatibility.md`.
4
4
 
5
+ ## 2.1.0-alpha.25
6
+
7
+ - Archive: `PUT` and `DELETE /chats/{chat_id}/archive` archive a chat for the caller and move it back. `Chat` gains
8
+ the required `is_archived`; `GET /chats?archived=true|false` lists only archived or only other chats (without the
9
+ parameter, every chat as before). Archiving unpins; an archived chat stays archived when new messages arrive;
10
+ pinning a chat unarchives it.
11
+ - Pin order: `Chat` gains the required, nullable `pin_position` (lowest first) and pinned chats are listed in that
12
+ order. A newly pinned chat goes to the top. `PUT /chats/pins/order` (`PinOrderRequest`) sets the order of all
13
+ pinned chats at once.
14
+ - Saved Messages: `POST /chats` accepts the caller's own `user_id` and opens a direct chat whose only member and
15
+ `peer` is the caller.
16
+
5
17
  ## 2.1.0-alpha.24
6
18
 
7
19
  - `PrivacySettings` gains the required `last_seen_visibility`, also accepted by `PATCH /me/privacy` and as a
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.24. Do not edit. */
2
- export declare const API_VERSION: "2.1.0-alpha.24";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.25. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.25";
3
3
  export type { paths, components, operations } from "./schema.js";
4
4
  export * from "./ws-events.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export const API_VERSION = "2.1.0-alpha.24";
1
+ export const API_VERSION = "2.1.0-alpha.25";
package/dist/openapi.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.1.0
2
2
  info:
3
3
  title: Messenger API
4
- version: 2.1.0-alpha.24
4
+ version: 2.1.0-alpha.25
5
5
  summary: REST contract of the Messenger backend (v2).
6
6
  description: |
7
7
  Contract for the Go backend. The WebSocket protocol is described in `websocket/` and
@@ -1006,13 +1006,18 @@ paths:
1006
1006
  summary: My chats with last message and unread count
1007
1007
  description: |
1008
1008
  One request replaces `GET /chats/list/{username}` and `GET /groups/list/{username}`.
1009
- Pinned chats come first (most recently pinned first), then the others by their last
1009
+ Pinned chats come first (by `pin_position`), then the others by their last
1010
1010
  message (newest first). `last_message` is the newest message the caller can see; in
1011
1011
  direct chats its `read_by` holds the other user once they read it (with read receipts
1012
1012
  on), in groups it is empty. `unread_count` stops at 999.
1013
1013
  parameters:
1014
1014
  - $ref: "#/components/parameters/Limit"
1015
1015
  - $ref: "#/components/parameters/After"
1016
+ - name: archived
1017
+ in: query
1018
+ required: false
1019
+ description: "`true`: only archived chats, `false`: only chats that are not archived. Without it, every chat."
1020
+ schema: { type: boolean }
1016
1021
  responses:
1017
1022
  "426": { $ref: "#/components/responses/ClientOutdated" }
1018
1023
  "400": { $ref: "#/components/responses/BadRequest" }
@@ -1029,7 +1034,9 @@ paths:
1029
1034
  description: |
1030
1035
  Respects the other user's `direct_messages` privacy setting. When approval is needed
1031
1036
  the answer is `202` with the pending request instead of a chat. Returns the existing
1032
- chat (`200`) if there already is one.
1037
+ chat (`200`) if there already is one. `user_id` may be the caller's own id: that opens
1038
+ their "Saved Messages" chat, a direct chat with the caller as its only member and as
1039
+ its `peer`.
1033
1040
  requestBody:
1034
1041
  required: true
1035
1042
  content:
@@ -1102,7 +1109,9 @@ paths:
1102
1109
  tags: [chats]
1103
1110
  operationId: pinChat
1104
1111
  summary: Pin a chat
1105
- description: At most 10 chats can be pinned (`409` beyond that). Pinning a pinned chat changes nothing.
1112
+ description: |
1113
+ At most 10 chats can be pinned (`409` beyond that). A newly pinned chat goes to the top of the pinned
1114
+ chats and leaves the archive. Pinning a pinned chat changes nothing.
1106
1115
  responses:
1107
1116
  "426": { $ref: "#/components/responses/ClientOutdated" }
1108
1117
  "400": { $ref: "#/components/responses/BadRequest" }
@@ -1122,6 +1131,60 @@ paths:
1122
1131
  description: Unpinned
1123
1132
  "401": { $ref: "#/components/responses/Unauthorized" }
1124
1133
  "404": { $ref: "#/components/responses/NotFound" }
1134
+ /chats/{chat_id}/archive:
1135
+ parameters:
1136
+ - $ref: "#/components/parameters/ClientVersion"
1137
+ - $ref: "#/components/parameters/ClientApiVersion"
1138
+ - $ref: "#/components/parameters/ChatId"
1139
+ put:
1140
+ tags: [chats]
1141
+ operationId: archiveChat
1142
+ summary: Archive a chat
1143
+ description: |
1144
+ Only for the caller. The chat leaves the pinned chats and stays archived when new messages arrive,
1145
+ until `DELETE` unarchives it. Archiving an archived chat changes nothing. The caller's devices get
1146
+ `chat_list_update`.
1147
+ responses:
1148
+ "426": { $ref: "#/components/responses/ClientOutdated" }
1149
+ "400": { $ref: "#/components/responses/BadRequest" }
1150
+ "204":
1151
+ description: Archived
1152
+ "401": { $ref: "#/components/responses/Unauthorized" }
1153
+ "404": { $ref: "#/components/responses/NotFound" }
1154
+ delete:
1155
+ tags: [chats]
1156
+ operationId: unarchiveChat
1157
+ summary: Move a chat out of the archive
1158
+ responses:
1159
+ "426": { $ref: "#/components/responses/ClientOutdated" }
1160
+ "400": { $ref: "#/components/responses/BadRequest" }
1161
+ "204":
1162
+ description: Not archived
1163
+ "401": { $ref: "#/components/responses/Unauthorized" }
1164
+ "404": { $ref: "#/components/responses/NotFound" }
1165
+ /chats/pins/order:
1166
+ parameters:
1167
+ - $ref: "#/components/parameters/ClientVersion"
1168
+ - $ref: "#/components/parameters/ClientApiVersion"
1169
+ put:
1170
+ tags: [chats]
1171
+ operationId: reorderPinnedChats
1172
+ summary: Order the pinned chats
1173
+ description: |
1174
+ `chat_ids` must name every pinned chat of the caller exactly once (`422` otherwise), in the new order,
1175
+ top first. The caller's devices get `chat_list_update` for each pinned chat.
1176
+ requestBody:
1177
+ required: true
1178
+ content:
1179
+ application/json:
1180
+ schema: { $ref: "#/components/schemas/PinOrderRequest" }
1181
+ responses:
1182
+ "426": { $ref: "#/components/responses/ClientOutdated" }
1183
+ "400": { $ref: "#/components/responses/BadRequest" }
1184
+ "204":
1185
+ description: Reordered
1186
+ "401": { $ref: "#/components/responses/Unauthorized" }
1187
+ "422": { $ref: "#/components/responses/ValidationFailed" }
1125
1188
  /chats/{chat_id}/read:
1126
1189
  parameters:
1127
1190
  - $ref: "#/components/parameters/ClientVersion"
@@ -5486,6 +5549,8 @@ components:
5486
5549
  - avatar_url
5487
5550
  - peer
5488
5551
  - is_pinned
5552
+ - pin_position
5553
+ - is_archived
5489
5554
  - unread_count
5490
5555
  - first_unread_message_id
5491
5556
  - last_read_message_id
@@ -5499,11 +5564,17 @@ components:
5499
5564
  description: Display name of the peer or the group
5500
5565
  avatar_url: { type: [string, "null"] }
5501
5566
  peer:
5502
- description: The other user of a direct chat; `null` for groups.
5567
+ description: The other user of a direct chat (the caller in their "Saved Messages" chat); `null` for groups.
5503
5568
  oneOf:
5504
5569
  - $ref: "#/components/schemas/User"
5505
5570
  - type: "null"
5506
5571
  is_pinned: { type: boolean }
5572
+ pin_position:
5573
+ description: Order of a pinned chat among the caller's pinned chats, lowest first; `null` when not pinned.
5574
+ type: [integer, "null"]
5575
+ is_archived:
5576
+ type: boolean
5577
+ description: Whether the caller archived the chat (only for the caller).
5507
5578
  unread_count: { type: integer, minimum: 0 }
5508
5579
  first_unread_message_id:
5509
5580
  description: |
@@ -5536,6 +5607,15 @@ components:
5536
5607
  type: array
5537
5608
  items: { $ref: "#/components/schemas/Chat" }
5538
5609
  next_cursor: { $ref: "#/components/schemas/Cursor" }
5610
+ PinOrderRequest:
5611
+ type: object
5612
+ required: [chat_ids]
5613
+ properties:
5614
+ chat_ids:
5615
+ type: array
5616
+ maxItems: 10
5617
+ uniqueItems: true
5618
+ items: { $ref: "#/components/schemas/Id" }
5539
5619
  CreateChatRequest:
5540
5620
  type: object
5541
5621
  required: [user_id]
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.24. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.25. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -813,7 +813,7 @@ export interface paths {
813
813
  /**
814
814
  * My chats with last message and unread count
815
815
  * @description One request replaces `GET /chats/list/{username}` and `GET /groups/list/{username}`.
816
- * Pinned chats come first (most recently pinned first), then the others by their last
816
+ * Pinned chats come first (by `pin_position`), then the others by their last
817
817
  * message (newest first). `last_message` is the newest message the caller can see; in
818
818
  * direct chats its `read_by` holds the other user once they read it (with read receipts
819
819
  * on), in groups it is empty. `unread_count` stops at 999.
@@ -824,7 +824,9 @@ export interface paths {
824
824
  * Start a direct chat
825
825
  * @description Respects the other user's `direct_messages` privacy setting. When approval is needed
826
826
  * the answer is `202` with the pending request instead of a chat. Returns the existing
827
- * chat (`200`) if there already is one.
827
+ * chat (`200`) if there already is one. `user_id` may be the caller's own id: that opens
828
+ * their "Saved Messages" chat, a direct chat with the caller as its only member and as
829
+ * its `peer`.
828
830
  */
829
831
  post: operations["createChat"];
830
832
  delete?: never;
@@ -880,7 +882,8 @@ export interface paths {
880
882
  get?: never;
881
883
  /**
882
884
  * Pin a chat
883
- * @description At most 10 chats can be pinned (`409` beyond that). Pinning a pinned chat changes nothing.
885
+ * @description At most 10 chats can be pinned (`409` beyond that). A newly pinned chat goes to the top of the pinned
886
+ * chats and leaves the archive. Pinning a pinned chat changes nothing.
884
887
  */
885
888
  put: operations["pinChat"];
886
889
  post?: never;
@@ -891,6 +894,62 @@ export interface paths {
891
894
  patch?: never;
892
895
  trace?: never;
893
896
  };
897
+ "/chats/{chat_id}/archive": {
898
+ parameters: {
899
+ query?: never;
900
+ header?: {
901
+ /** @description Version of the client app, for logs and the per-client metric. */
902
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
903
+ /** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
904
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
905
+ };
906
+ path: {
907
+ chat_id: components["parameters"]["ChatId"];
908
+ };
909
+ cookie?: never;
910
+ };
911
+ get?: never;
912
+ /**
913
+ * Archive a chat
914
+ * @description Only for the caller. The chat leaves the pinned chats and stays archived when new messages arrive,
915
+ * until `DELETE` unarchives it. Archiving an archived chat changes nothing. The caller's devices get
916
+ * `chat_list_update`.
917
+ */
918
+ put: operations["archiveChat"];
919
+ post?: never;
920
+ /** Move a chat out of the archive */
921
+ delete: operations["unarchiveChat"];
922
+ options?: never;
923
+ head?: never;
924
+ patch?: never;
925
+ trace?: never;
926
+ };
927
+ "/chats/pins/order": {
928
+ parameters: {
929
+ query?: never;
930
+ header?: {
931
+ /** @description Version of the client app, for logs and the per-client metric. */
932
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
933
+ /** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
934
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
935
+ };
936
+ path?: never;
937
+ cookie?: never;
938
+ };
939
+ get?: never;
940
+ /**
941
+ * Order the pinned chats
942
+ * @description `chat_ids` must name every pinned chat of the caller exactly once (`422` otherwise), in the new order,
943
+ * top first. The caller's devices get `chat_list_update` for each pinned chat.
944
+ */
945
+ put: operations["reorderPinnedChats"];
946
+ post?: never;
947
+ delete?: never;
948
+ options?: never;
949
+ head?: never;
950
+ patch?: never;
951
+ trace?: never;
952
+ };
894
953
  "/chats/{chat_id}/read": {
895
954
  parameters: {
896
955
  query?: never;
@@ -3522,9 +3581,13 @@ export interface components {
3522
3581
  /** @description Display name of the peer or the group */
3523
3582
  name: string;
3524
3583
  avatar_url: string | null;
3525
- /** @description The other user of a direct chat; `null` for groups. */
3584
+ /** @description The other user of a direct chat (the caller in their "Saved Messages" chat); `null` for groups. */
3526
3585
  peer: components["schemas"]["User"] | null;
3527
3586
  is_pinned: boolean;
3587
+ /** @description Order of a pinned chat among the caller's pinned chats, lowest first; `null` when not pinned. */
3588
+ pin_position: number | null;
3589
+ /** @description Whether the caller archived the chat (only for the caller). */
3590
+ is_archived: boolean;
3528
3591
  unread_count: number;
3529
3592
  /**
3530
3593
  * @description The oldest message the caller has not read (the same messages `unread_count` counts: not their own,
@@ -3543,6 +3606,9 @@ export interface components {
3543
3606
  items: components["schemas"]["Chat"][];
3544
3607
  next_cursor: components["schemas"]["Cursor"];
3545
3608
  };
3609
+ PinOrderRequest: {
3610
+ chat_ids: components["schemas"]["Id"][];
3611
+ };
3546
3612
  CreateChatRequest: {
3547
3613
  user_id: components["schemas"]["Id"];
3548
3614
  initial_message?: string | null;
@@ -5383,6 +5449,8 @@ export interface operations {
5383
5449
  limit?: components["parameters"]["Limit"];
5384
5450
  /** @description Opaque `next_cursor` of the previous page */
5385
5451
  after?: components["parameters"]["After"];
5452
+ /** @description `true`: only archived chats, `false`: only chats that are not archived. Without it, every chat. */
5453
+ archived?: boolean;
5386
5454
  };
5387
5455
  header?: {
5388
5456
  /** @description Version of the client app, for logs and the per-client metric. */
@@ -5583,6 +5651,95 @@ export interface operations {
5583
5651
  426: components["responses"]["ClientOutdated"];
5584
5652
  };
5585
5653
  };
5654
+ archiveChat: {
5655
+ parameters: {
5656
+ query?: never;
5657
+ header?: {
5658
+ /** @description Version of the client app, for logs and the per-client metric. */
5659
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
5660
+ /** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
5661
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
5662
+ };
5663
+ path: {
5664
+ chat_id: components["parameters"]["ChatId"];
5665
+ };
5666
+ cookie?: never;
5667
+ };
5668
+ requestBody?: never;
5669
+ responses: {
5670
+ /** @description Archived */
5671
+ 204: {
5672
+ headers: {
5673
+ [name: string]: unknown;
5674
+ };
5675
+ content?: never;
5676
+ };
5677
+ 400: components["responses"]["BadRequest"];
5678
+ 401: components["responses"]["Unauthorized"];
5679
+ 404: components["responses"]["NotFound"];
5680
+ 426: components["responses"]["ClientOutdated"];
5681
+ };
5682
+ };
5683
+ unarchiveChat: {
5684
+ parameters: {
5685
+ query?: never;
5686
+ header?: {
5687
+ /** @description Version of the client app, for logs and the per-client metric. */
5688
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
5689
+ /** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
5690
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
5691
+ };
5692
+ path: {
5693
+ chat_id: components["parameters"]["ChatId"];
5694
+ };
5695
+ cookie?: never;
5696
+ };
5697
+ requestBody?: never;
5698
+ responses: {
5699
+ /** @description Not archived */
5700
+ 204: {
5701
+ headers: {
5702
+ [name: string]: unknown;
5703
+ };
5704
+ content?: never;
5705
+ };
5706
+ 400: components["responses"]["BadRequest"];
5707
+ 401: components["responses"]["Unauthorized"];
5708
+ 404: components["responses"]["NotFound"];
5709
+ 426: components["responses"]["ClientOutdated"];
5710
+ };
5711
+ };
5712
+ reorderPinnedChats: {
5713
+ parameters: {
5714
+ query?: never;
5715
+ header?: {
5716
+ /** @description Version of the client app, for logs and the per-client metric. */
5717
+ "X-Client-Version"?: components["parameters"]["ClientVersion"];
5718
+ /** @description Contract version the client was built with (`API_VERSION` of `@myronsi/messenger-api`). A different MAJOR or a version below `min_client_api_version` is answered with `426`; a malformed value with `400` (`invalid_client_version`). */
5719
+ "X-Client-Api-Version"?: components["parameters"]["ClientApiVersion"];
5720
+ };
5721
+ path?: never;
5722
+ cookie?: never;
5723
+ };
5724
+ requestBody: {
5725
+ content: {
5726
+ "application/json": components["schemas"]["PinOrderRequest"];
5727
+ };
5728
+ };
5729
+ responses: {
5730
+ /** @description Reordered */
5731
+ 204: {
5732
+ headers: {
5733
+ [name: string]: unknown;
5734
+ };
5735
+ content?: never;
5736
+ };
5737
+ 400: components["responses"]["BadRequest"];
5738
+ 401: components["responses"]["Unauthorized"];
5739
+ 422: components["responses"]["ValidationFailed"];
5740
+ 426: components["responses"]["ClientOutdated"];
5741
+ };
5742
+ };
5586
5743
  markChatRead: {
5587
5744
  parameters: {
5588
5745
  query?: never;
package/dist/ws-docs.json CHANGED
@@ -190,6 +190,8 @@
190
190
  "is_deleted": false
191
191
  },
192
192
  "is_pinned": false,
193
+ "pin_position": null,
194
+ "is_archived": false,
193
195
  "unread_count": 1,
194
196
  "first_unread_message_id": "7217400317439950001",
195
197
  "last_read_message_id": null,
@@ -250,6 +252,8 @@
250
252
  "is_deleted": false
251
253
  },
252
254
  "is_pinned": false,
255
+ "pin_position": null,
256
+ "is_archived": false,
253
257
  "unread_count": 1,
254
258
  "first_unread_message_id": "7217400317439950001",
255
259
  "last_read_message_id": null,
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.24. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.25. Do not edit. */
2
2
 
3
3
  /**
4
4
  * Any WebSocket event, in either direction.
@@ -415,10 +415,18 @@ export interface Chat {
415
415
  name: string;
416
416
  avatar_url: string | null;
417
417
  /**
418
- * The other user of a direct chat; `null` for groups.
418
+ * The other user of a direct chat (the caller in their "Saved Messages" chat); `null` for groups.
419
419
  */
420
420
  peer: User | null;
421
421
  is_pinned: boolean;
422
+ /**
423
+ * Order of a pinned chat among the caller's pinned chats, lowest first; `null` when not pinned.
424
+ */
425
+ pin_position: number | null;
426
+ /**
427
+ * Whether the caller archived the chat (only for the caller).
428
+ */
429
+ is_archived: boolean;
422
430
  unread_count: number;
423
431
  /**
424
432
  * The oldest message the caller has not read (the same messages `unread_count` counts: not their own,
@@ -2530,6 +2530,8 @@
2530
2530
  "avatar_url",
2531
2531
  "peer",
2532
2532
  "is_pinned",
2533
+ "pin_position",
2534
+ "is_archived",
2533
2535
  "unread_count",
2534
2536
  "first_unread_message_id",
2535
2537
  "last_read_message_id",
@@ -2554,7 +2556,7 @@
2554
2556
  ]
2555
2557
  },
2556
2558
  "peer": {
2557
- "description": "The other user of a direct chat; `null` for groups.",
2559
+ "description": "The other user of a direct chat (the caller in their \"Saved Messages\" chat); `null` for groups.",
2558
2560
  "oneOf": [
2559
2561
  {
2560
2562
  "$ref": "#/$defs/User"
@@ -2567,6 +2569,17 @@
2567
2569
  "is_pinned": {
2568
2570
  "type": "boolean"
2569
2571
  },
2572
+ "pin_position": {
2573
+ "description": "Order of a pinned chat among the caller's pinned chats, lowest first; `null` when not pinned.",
2574
+ "type": [
2575
+ "integer",
2576
+ "null"
2577
+ ]
2578
+ },
2579
+ "is_archived": {
2580
+ "type": "boolean",
2581
+ "description": "Whether the caller archived the chat (only for the caller)."
2582
+ },
2570
2583
  "unread_count": {
2571
2584
  "type": "integer",
2572
2585
  "minimum": 0
@@ -2637,6 +2650,22 @@
2637
2650
  }
2638
2651
  }
2639
2652
  },
2653
+ "PinOrderRequest": {
2654
+ "type": "object",
2655
+ "required": [
2656
+ "chat_ids"
2657
+ ],
2658
+ "properties": {
2659
+ "chat_ids": {
2660
+ "type": "array",
2661
+ "maxItems": 10,
2662
+ "uniqueItems": true,
2663
+ "items": {
2664
+ "$ref": "#/$defs/Id"
2665
+ }
2666
+ }
2667
+ }
2668
+ },
2640
2669
  "CreateChatRequest": {
2641
2670
  "type": "object",
2642
2671
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myronsi/messenger-api",
3
- "version": "2.1.0-alpha.24.next.106",
3
+ "version": "2.1.0-alpha.25.next.107",
4
4
  "description": "API contract of the Messenger backend: OpenAPI document, WebSocket event schemas and generated TypeScript types",
5
5
  "license": "MIT",
6
6
  "repository": {