@mdbase-dev/connect-protocol 0.1.0-beta.125 → 0.1.0-beta.147

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.
@@ -93,6 +93,46 @@
93
93
  }
94
94
  }
95
95
  },
96
+ {
97
+ "type": "object",
98
+ "additionalProperties": false,
99
+ "required": [
100
+ "problem_version",
101
+ "code",
102
+ "category",
103
+ "recovery",
104
+ "message"
105
+ ],
106
+ "properties": {
107
+ "problem_version": {
108
+ "const": 1
109
+ },
110
+ "code": {
111
+ "const": "application_authorization_issuance_disabled"
112
+ },
113
+ "category": {
114
+ "const": "authorization"
115
+ },
116
+ "recovery": {
117
+ "const": "reauthorize"
118
+ },
119
+ "message": {
120
+ "type": "string",
121
+ "minLength": 1
122
+ },
123
+ "operation_outcome": {
124
+ "enum": [
125
+ "not_sent",
126
+ "rejected",
127
+ "unknown"
128
+ ]
129
+ },
130
+ "trace_id": {
131
+ "type": "string",
132
+ "minLength": 1
133
+ }
134
+ }
135
+ },
96
136
  {
97
137
  "type": "object",
98
138
  "additionalProperties": false,
@@ -173,6 +213,86 @@
173
213
  }
174
214
  }
175
215
  },
216
+ {
217
+ "type": "object",
218
+ "additionalProperties": false,
219
+ "required": [
220
+ "problem_version",
221
+ "code",
222
+ "category",
223
+ "recovery",
224
+ "message"
225
+ ],
226
+ "properties": {
227
+ "problem_version": {
228
+ "const": 1
229
+ },
230
+ "code": {
231
+ "const": "application_reauthorization_required"
232
+ },
233
+ "category": {
234
+ "const": "authorization"
235
+ },
236
+ "recovery": {
237
+ "const": "reauthorize"
238
+ },
239
+ "message": {
240
+ "type": "string",
241
+ "minLength": 1
242
+ },
243
+ "operation_outcome": {
244
+ "enum": [
245
+ "not_sent",
246
+ "rejected",
247
+ "unknown"
248
+ ]
249
+ },
250
+ "trace_id": {
251
+ "type": "string",
252
+ "minLength": 1
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "required": [
260
+ "problem_version",
261
+ "code",
262
+ "category",
263
+ "recovery",
264
+ "message"
265
+ ],
266
+ "properties": {
267
+ "problem_version": {
268
+ "const": 1
269
+ },
270
+ "code": {
271
+ "const": "application_semantic_version_mismatch"
272
+ },
273
+ "category": {
274
+ "const": "authorization"
275
+ },
276
+ "recovery": {
277
+ "const": "reauthorize"
278
+ },
279
+ "message": {
280
+ "type": "string",
281
+ "minLength": 1
282
+ },
283
+ "operation_outcome": {
284
+ "enum": [
285
+ "not_sent",
286
+ "rejected",
287
+ "unknown"
288
+ ]
289
+ },
290
+ "trace_id": {
291
+ "type": "string",
292
+ "minLength": 1
293
+ }
294
+ }
295
+ },
176
296
  {
177
297
  "type": "object",
178
298
  "additionalProperties": false,
@@ -710,6 +830,46 @@
710
830
  }
711
831
  }
712
832
  },
833
+ {
834
+ "type": "object",
835
+ "additionalProperties": false,
836
+ "required": [
837
+ "problem_version",
838
+ "code",
839
+ "category",
840
+ "recovery",
841
+ "message"
842
+ ],
843
+ "properties": {
844
+ "problem_version": {
845
+ "const": 1
846
+ },
847
+ "code": {
848
+ "const": "collection_claimed_by_newer_runtime"
849
+ },
850
+ "category": {
851
+ "const": "compatibility"
852
+ },
853
+ "recovery": {
854
+ "const": "upgrade_connector"
855
+ },
856
+ "message": {
857
+ "type": "string",
858
+ "minLength": 1
859
+ },
860
+ "operation_outcome": {
861
+ "enum": [
862
+ "not_sent",
863
+ "rejected",
864
+ "unknown"
865
+ ]
866
+ },
867
+ "trace_id": {
868
+ "type": "string",
869
+ "minLength": 1
870
+ }
871
+ }
872
+ },
713
873
  {
714
874
  "type": "object",
715
875
  "additionalProperties": false,
@@ -1187,6 +1347,59 @@
1187
1347
  }
1188
1348
  }
1189
1349
  },
1350
+ {
1351
+ "type": "object",
1352
+ "additionalProperties": false,
1353
+ "required": [
1354
+ "problem_version",
1355
+ "code",
1356
+ "category",
1357
+ "recovery",
1358
+ "message",
1359
+ "details"
1360
+ ],
1361
+ "properties": {
1362
+ "problem_version": {
1363
+ "const": 1
1364
+ },
1365
+ "code": {
1366
+ "const": "collection_unavailable"
1367
+ },
1368
+ "category": {
1369
+ "const": "availability"
1370
+ },
1371
+ "recovery": {
1372
+ "const": "choose_collection"
1373
+ },
1374
+ "message": {
1375
+ "type": "string",
1376
+ "minLength": 1
1377
+ },
1378
+ "operation_outcome": {
1379
+ "enum": [
1380
+ "not_sent",
1381
+ "rejected",
1382
+ "unknown"
1383
+ ]
1384
+ },
1385
+ "trace_id": {
1386
+ "type": "string",
1387
+ "minLength": 1
1388
+ },
1389
+ "details": {
1390
+ "type": "object",
1391
+ "additionalProperties": false,
1392
+ "required": [
1393
+ "reason"
1394
+ ],
1395
+ "properties": {
1396
+ "reason": {
1397
+ "type": "string"
1398
+ }
1399
+ }
1400
+ }
1401
+ }
1402
+ },
1190
1403
  {
1191
1404
  "type": "object",
1192
1405
  "additionalProperties": false,
@@ -2915,6 +3128,46 @@
2915
3128
  }
2916
3129
  }
2917
3130
  },
3131
+ {
3132
+ "type": "object",
3133
+ "additionalProperties": false,
3134
+ "required": [
3135
+ "problem_version",
3136
+ "code",
3137
+ "category",
3138
+ "recovery",
3139
+ "message"
3140
+ ],
3141
+ "properties": {
3142
+ "problem_version": {
3143
+ "const": 1
3144
+ },
3145
+ "code": {
3146
+ "const": "invalid_replica"
3147
+ },
3148
+ "category": {
3149
+ "const": "authorization"
3150
+ },
3151
+ "recovery": {
3152
+ "const": "reauthorize"
3153
+ },
3154
+ "message": {
3155
+ "type": "string",
3156
+ "minLength": 1
3157
+ },
3158
+ "operation_outcome": {
3159
+ "enum": [
3160
+ "not_sent",
3161
+ "rejected",
3162
+ "unknown"
3163
+ ]
3164
+ },
3165
+ "trace_id": {
3166
+ "type": "string",
3167
+ "minLength": 1
3168
+ }
3169
+ }
3170
+ },
2918
3171
  {
2919
3172
  "type": "object",
2920
3173
  "additionalProperties": false,
@@ -3448,6 +3701,46 @@
3448
3701
  }
3449
3702
  }
3450
3703
  },
3704
+ {
3705
+ "type": "object",
3706
+ "additionalProperties": false,
3707
+ "required": [
3708
+ "problem_version",
3709
+ "code",
3710
+ "category",
3711
+ "recovery",
3712
+ "message"
3713
+ ],
3714
+ "properties": {
3715
+ "problem_version": {
3716
+ "const": 1
3717
+ },
3718
+ "code": {
3719
+ "const": "notification_grant_reauthorization_required"
3720
+ },
3721
+ "category": {
3722
+ "const": "authorization"
3723
+ },
3724
+ "recovery": {
3725
+ "const": "reauthorize"
3726
+ },
3727
+ "message": {
3728
+ "type": "string",
3729
+ "minLength": 1
3730
+ },
3731
+ "operation_outcome": {
3732
+ "enum": [
3733
+ "not_sent",
3734
+ "rejected",
3735
+ "unknown"
3736
+ ]
3737
+ },
3738
+ "trace_id": {
3739
+ "type": "string",
3740
+ "minLength": 1
3741
+ }
3742
+ }
3743
+ },
3451
3744
  {
3452
3745
  "type": "object",
3453
3746
  "additionalProperties": false,
@@ -3838,6 +4131,46 @@
3838
4131
  }
3839
4132
  }
3840
4133
  },
4134
+ {
4135
+ "type": "object",
4136
+ "additionalProperties": false,
4137
+ "required": [
4138
+ "problem_version",
4139
+ "code",
4140
+ "category",
4141
+ "recovery",
4142
+ "message"
4143
+ ],
4144
+ "properties": {
4145
+ "problem_version": {
4146
+ "const": 1
4147
+ },
4148
+ "code": {
4149
+ "const": "origin_denied"
4150
+ },
4151
+ "category": {
4152
+ "const": "authorization"
4153
+ },
4154
+ "recovery": {
4155
+ "const": "reauthorize"
4156
+ },
4157
+ "message": {
4158
+ "type": "string",
4159
+ "minLength": 1
4160
+ },
4161
+ "operation_outcome": {
4162
+ "enum": [
4163
+ "not_sent",
4164
+ "rejected",
4165
+ "unknown"
4166
+ ]
4167
+ },
4168
+ "trace_id": {
4169
+ "type": "string",
4170
+ "minLength": 1
4171
+ }
4172
+ }
4173
+ },
3841
4174
  {
3842
4175
  "type": "object",
3843
4176
  "additionalProperties": false,
@@ -4408,6 +4741,46 @@
4408
4741
  }
4409
4742
  }
4410
4743
  },
4744
+ {
4745
+ "type": "object",
4746
+ "additionalProperties": false,
4747
+ "required": [
4748
+ "problem_version",
4749
+ "code",
4750
+ "category",
4751
+ "recovery",
4752
+ "message"
4753
+ ],
4754
+ "properties": {
4755
+ "problem_version": {
4756
+ "const": 1
4757
+ },
4758
+ "code": {
4759
+ "const": "replica_scope_denied"
4760
+ },
4761
+ "category": {
4762
+ "const": "authorization"
4763
+ },
4764
+ "recovery": {
4765
+ "const": "reauthorize"
4766
+ },
4767
+ "message": {
4768
+ "type": "string",
4769
+ "minLength": 1
4770
+ },
4771
+ "operation_outcome": {
4772
+ "enum": [
4773
+ "not_sent",
4774
+ "rejected",
4775
+ "unknown"
4776
+ ]
4777
+ },
4778
+ "trace_id": {
4779
+ "type": "string",
4780
+ "minLength": 1
4781
+ }
4782
+ }
4783
+ },
4411
4784
  {
4412
4785
  "type": "object",
4413
4786
  "additionalProperties": false,
@@ -4448,6 +4821,46 @@
4448
4821
  }
4449
4822
  }
4450
4823
  },
4824
+ {
4825
+ "type": "object",
4826
+ "additionalProperties": false,
4827
+ "required": [
4828
+ "problem_version",
4829
+ "code",
4830
+ "category",
4831
+ "recovery",
4832
+ "message"
4833
+ ],
4834
+ "properties": {
4835
+ "problem_version": {
4836
+ "const": 1
4837
+ },
4838
+ "code": {
4839
+ "const": "scope_changed"
4840
+ },
4841
+ "category": {
4842
+ "const": "authorization"
4843
+ },
4844
+ "recovery": {
4845
+ "const": "reauthorize"
4846
+ },
4847
+ "message": {
4848
+ "type": "string",
4849
+ "minLength": 1
4850
+ },
4851
+ "operation_outcome": {
4852
+ "enum": [
4853
+ "not_sent",
4854
+ "rejected",
4855
+ "unknown"
4856
+ ]
4857
+ },
4858
+ "trace_id": {
4859
+ "type": "string",
4860
+ "minLength": 1
4861
+ }
4862
+ }
4863
+ },
4451
4864
  {
4452
4865
  "type": "object",
4453
4866
  "additionalProperties": false,
@@ -4488,6 +4901,46 @@
4488
4901
  }
4489
4902
  }
4490
4903
  },
4904
+ {
4905
+ "type": "object",
4906
+ "additionalProperties": false,
4907
+ "required": [
4908
+ "problem_version",
4909
+ "code",
4910
+ "category",
4911
+ "recovery",
4912
+ "message"
4913
+ ],
4914
+ "properties": {
4915
+ "problem_version": {
4916
+ "const": 1
4917
+ },
4918
+ "code": {
4919
+ "const": "scope_epoch_stale"
4920
+ },
4921
+ "category": {
4922
+ "const": "authorization"
4923
+ },
4924
+ "recovery": {
4925
+ "const": "reauthorize"
4926
+ },
4927
+ "message": {
4928
+ "type": "string",
4929
+ "minLength": 1
4930
+ },
4931
+ "operation_outcome": {
4932
+ "enum": [
4933
+ "not_sent",
4934
+ "rejected",
4935
+ "unknown"
4936
+ ]
4937
+ },
4938
+ "trace_id": {
4939
+ "type": "string",
4940
+ "minLength": 1
4941
+ }
4942
+ }
4943
+ },
4491
4944
  {
4492
4945
  "type": "object",
4493
4946
  "additionalProperties": false,
@@ -4808,6 +5261,46 @@
4808
5261
  }
4809
5262
  }
4810
5263
  },
5264
+ {
5265
+ "type": "object",
5266
+ "additionalProperties": false,
5267
+ "required": [
5268
+ "problem_version",
5269
+ "code",
5270
+ "category",
5271
+ "recovery",
5272
+ "message"
5273
+ ],
5274
+ "properties": {
5275
+ "problem_version": {
5276
+ "const": 1
5277
+ },
5278
+ "code": {
5279
+ "const": "timer_grant_unavailable"
5280
+ },
5281
+ "category": {
5282
+ "const": "authorization"
5283
+ },
5284
+ "recovery": {
5285
+ "const": "reauthorize"
5286
+ },
5287
+ "message": {
5288
+ "type": "string",
5289
+ "minLength": 1
5290
+ },
5291
+ "operation_outcome": {
5292
+ "enum": [
5293
+ "not_sent",
5294
+ "rejected",
5295
+ "unknown"
5296
+ ]
5297
+ },
5298
+ "trace_id": {
5299
+ "type": "string",
5300
+ "minLength": 1
5301
+ }
5302
+ }
5303
+ },
4811
5304
  {
4812
5305
  "type": "object",
4813
5306
  "additionalProperties": false,
@@ -37,8 +37,11 @@
37
37
  }
38
38
  },
39
39
  "access_paused": { "category": "availability", "recovery": "resume_connector_access" },
40
+ "application_authorization_issuance_disabled": { "category": "authorization", "recovery": "reauthorize" },
40
41
  "application_declaration_mismatch": { "category": "authorization", "recovery": "reauthorize" },
41
42
  "application_identity_unavailable": { "category": "compatibility", "recovery": "upgrade_application" },
43
+ "application_reauthorization_required": { "category": "authorization", "recovery": "reauthorize" },
44
+ "application_semantic_version_mismatch": { "category": "authorization", "recovery": "reauthorize" },
42
45
  "approval_window_blocked": {
43
46
  "category": "authorization",
44
47
  "recovery": "reauthorize",
@@ -89,6 +92,7 @@
89
92
  },
90
93
  "change_cursor_reset": { "category": "conflict", "recovery": "refresh" },
91
94
  "collection_access_denied": { "category": "authorization", "recovery": "reauthorize" },
95
+ "collection_claimed_by_newer_runtime": { "category": "compatibility", "recovery": "upgrade_connector" },
92
96
  "collection_configuration_invalid": {
93
97
  "category": "validation",
94
98
  "recovery": "repair_collection",
@@ -145,6 +149,16 @@
145
149
  }
146
150
  }
147
151
  },
152
+ "collection_unavailable": {
153
+ "category": "availability",
154
+ "recovery": "choose_collection",
155
+ "details": {
156
+ "required": ["reason"],
157
+ "properties": {
158
+ "reason": { "type": "string" }
159
+ }
160
+ }
161
+ },
148
162
  "collection_version_unsupported": {
149
163
  "category": "compatibility",
150
164
  "recovery": "upgrade_collection",
@@ -249,6 +263,7 @@
249
263
  "invalid_push_payload": { "category": "validation", "recovery": "fix_request" },
250
264
  "invalid_push_subscription": { "category": "validation", "recovery": "fix_request" },
251
265
  "invalid_read_cursor": { "category": "validation", "recovery": "fix_request" },
266
+ "invalid_replica": { "category": "authorization", "recovery": "reauthorize" },
252
267
  "invalid_request": { "category": "validation", "recovery": "fix_request" },
253
268
  "invalid_token_response": { "category": "integrity", "recovery": "contact_support" },
254
269
  "legacy_scope_reauthorization_required": { "category": "authorization", "recovery": "reauthorize" },
@@ -269,6 +284,7 @@
269
284
  "not_authorized": { "category": "authorization", "recovery": "reauthorize" },
270
285
  "not_remote_authority": { "category": "compatibility", "recovery": "choose_collection" },
271
286
  "notification_criterion_not_declared": { "category": "validation", "recovery": "fix_request" },
287
+ "notification_grant_reauthorization_required": { "category": "authorization", "recovery": "reauthorize" },
272
288
  "notification_reauthorization_required": { "category": "authorization", "recovery": "reauthorize" },
273
289
  "notification_registration_failed": { "category": "availability", "recovery": "retry" },
274
290
  "notification_unregistration_failed": { "category": "availability", "recovery": "retry" },
@@ -295,6 +311,7 @@
295
311
  "properties": { "request_id": { "type": "string" } }
296
312
  }
297
313
  },
314
+ "origin_denied": { "category": "authorization", "recovery": "reauthorize" },
298
315
  "path_occupied": { "category": "conflict", "recovery": "resolve_conflict" },
299
316
  "pending_mutation_unresolved": { "category": "conflict", "recovery": "resolve_outcome" },
300
317
  "query_snapshot_changed": { "category": "conflict", "recovery": "refresh" },
@@ -318,8 +335,11 @@
318
335
  "registry_schema_incompatible": { "category": "compatibility", "recovery": "upgrade_connector" },
319
336
  "relay_authorization_expired": { "category": "authorization", "recovery": "reauthorize" },
320
337
  "relay_unavailable": { "category": "availability", "recovery": "retry" },
338
+ "replica_scope_denied": { "category": "authorization", "recovery": "reauthorize" },
321
339
  "sandbox_unsupported": { "category": "compatibility", "recovery": "fix_request" },
340
+ "scope_changed": { "category": "authorization", "recovery": "reauthorize" },
322
341
  "scope_denied": { "category": "authorization", "recovery": "reauthorize" },
342
+ "scope_epoch_stale": { "category": "authorization", "recovery": "reauthorize" },
323
343
  "session_destroyed": { "category": "cancellation", "recovery": "none" },
324
344
  "session_not_started": { "category": "validation", "recovery": "fix_request" },
325
345
  "session_starting": { "category": "availability", "recovery": "retry" },
@@ -328,6 +348,7 @@
328
348
  "sync_failed": { "category": "availability", "recovery": "retry" },
329
349
  "temporarily_unavailable": { "category": "availability", "recovery": "retry" },
330
350
  "timeout": { "category": "availability", "recovery": "retry" },
351
+ "timer_grant_unavailable": { "category": "authorization", "recovery": "reauthorize" },
331
352
  "token_exchange_failed": { "category": "availability", "recovery": "retry" },
332
353
  "transport_protocol_incompatible": {
333
354
  "category": "compatibility",
@@ -247,6 +247,7 @@
247
247
  "additionalProperties": false,
248
248
  "required": ["id", "application_id", "collection_id", "operations", "scope", "application_name", "application_distribution", "application_homepage", "application_origin", "collection_name", "created_at", "encryption", "application_authorization"],
249
249
  "properties": {
250
+ "account_id": { "$ref": "#/$defs/uuid" },
250
251
  "id": { "$ref": "#/$defs/uuid" },
251
252
  "application_id": { "$ref": "#/$defs/uuid" },
252
253
  "collection_id": { "$ref": "#/$defs/uuid" },
@@ -19,6 +19,7 @@
19
19
  "description": "Stable reverse-domain application identifier. This is presentation metadata, not publisher authentication."
20
20
  },
21
21
  "name": { "type": "string", "minLength": 1, "maxLength": 100 },
22
+ "platform": { "const": "native", "description": "Unverified native app; permits literal IPv4 loopback HTTP on any port." },
22
23
  "homepage": { "type": "string", "format": "uri", "pattern": "^https://" },
23
24
  "project_url": { "type": "string", "format": "uri", "pattern": "^https://" },
24
25
  "icon": { "type": "string", "format": "uri", "pattern": "^https://" },
@@ -33,6 +34,15 @@
33
34
  "description": "An HTTPS URI on the homepage origin or a private-use scheme derived from the application ID."
34
35
  }
35
36
  },
37
+ "installation_origins": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "lab": { "$ref": "#/$defs/installationOriginPolicy" },
42
+ "staging": { "$ref": "#/$defs/installationOriginPolicy" },
43
+ "production": { "$ref": "#/$defs/installationOriginPolicy" }
44
+ }
45
+ },
36
46
  "requirements": { "$ref": "#/$defs/requirements" },
37
47
  "provisions": {
38
48
  "type": "object",
@@ -79,12 +89,27 @@
79
89
  "required": ["distribution"],
80
90
  "properties": {
81
91
  "distribution": { "const": "portable" },
92
+ "platform": false,
82
93
  "homepage": false,
83
94
  "redirect_uris": false
84
95
  }
85
96
  }
86
97
  ],
87
98
  "$defs": {
99
+ "installationOriginPolicy": {
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "properties": {
103
+ "app-runtime": { "$ref": "#/$defs/installationOrigins" },
104
+ "mobile": { "$ref": "#/$defs/installationOrigins" }
105
+ }
106
+ },
107
+ "installationOrigins": {
108
+ "type": "array",
109
+ "maxItems": 16,
110
+ "uniqueItems": true,
111
+ "items": { "type": "string", "minLength": 1, "maxLength": 255, "format": "uri" }
112
+ },
88
113
  "identifier": {
89
114
  "type": "string",
90
115
  "minLength": 1,