@mhome/app-facade-protocol 1.27.2 → 1.28.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.
- package/fixtures/actor-link-code-create.request.json +8 -1
- package/fixtures/actor-link-code-create.response.json +12 -1
- package/fixtures/identity-code-event.response.json +33 -0
- package/fixtures/identity-code-failed.response.json +32 -0
- package/fixtures/identity-code-status.request.json +1 -0
- package/fixtures/identity-code-status.response.json +33 -0
- package/fixtures/shared-code-link-create.request.json +1 -4
- package/fixtures/surface-bind-code-create.request.json +9 -1
- package/fixtures/surface-bind-code-create.response.json +12 -1
- package/manifest/app-facade.v1.json +1 -1
- package/manifest/hub-targets.v1.json +4 -2
- package/manifest/routing.v1.json +1 -1
- package/manifest/targets.v1.json +4 -6
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/messaging-frame.v3.schema.json +39 -133
- package/fixtures/actor-link-claim-confirm.request.json +0 -1
- package/fixtures/actor-link-claim-confirm.response.json +0 -1
- package/fixtures/actor-link-claim-event.response.json +0 -1
- package/fixtures/actor-link-claim-status.request.json +0 -1
- package/fixtures/actor-link-claim-status.response.json +0 -1
|
@@ -1 +1,8 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/actor/link-code/create",
|
|
3
|
+
"direction": "request",
|
|
4
|
+
"body": {
|
|
5
|
+
"provider": "telegram",
|
|
6
|
+
"placement": "local"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/actor/link-code/create",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"challenge": {
|
|
6
|
+
"challengeId": "challenge_01",
|
|
7
|
+
"code": "P4V8N6",
|
|
8
|
+
"command": "/link P4V8N6",
|
|
9
|
+
"expiresAtMs": 1720000300000
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/identity-code/changed",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"status": {
|
|
6
|
+
"challengeId": "challenge_01",
|
|
7
|
+
"provider": "telegram",
|
|
8
|
+
"placement": "local",
|
|
9
|
+
"accountId": "bot_a",
|
|
10
|
+
"expiresAtMs": 1720000300000,
|
|
11
|
+
"lifecycle": {
|
|
12
|
+
"state": "completed",
|
|
13
|
+
"receipt": {
|
|
14
|
+
"actor": {
|
|
15
|
+
"provider": "telegram",
|
|
16
|
+
"accountId": "bot_a",
|
|
17
|
+
"externalUserId": "tg_42",
|
|
18
|
+
"displayName": "Alice"
|
|
19
|
+
},
|
|
20
|
+
"address": {
|
|
21
|
+
"provider": "telegram",
|
|
22
|
+
"accountId": "bot_a",
|
|
23
|
+
"conversationId": "family",
|
|
24
|
+
"audience": "shared"
|
|
25
|
+
},
|
|
26
|
+
"eventId": "update_99"
|
|
27
|
+
},
|
|
28
|
+
"linkId": "link_42"
|
|
29
|
+
},
|
|
30
|
+
"kind": "link"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/identity-code/status",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"status": {
|
|
6
|
+
"challengeId": "challenge_01",
|
|
7
|
+
"provider": "telegram",
|
|
8
|
+
"placement": "local",
|
|
9
|
+
"accountId": "bot_a",
|
|
10
|
+
"expiresAtMs": 1720000300000,
|
|
11
|
+
"lifecycle": {
|
|
12
|
+
"state": "failed",
|
|
13
|
+
"receipt": {
|
|
14
|
+
"actor": {
|
|
15
|
+
"provider": "telegram",
|
|
16
|
+
"accountId": "bot_a",
|
|
17
|
+
"externalUserId": "tg_42",
|
|
18
|
+
"displayName": "Alice"
|
|
19
|
+
},
|
|
20
|
+
"address": {
|
|
21
|
+
"provider": "telegram",
|
|
22
|
+
"accountId": "bot_a",
|
|
23
|
+
"conversationId": "family",
|
|
24
|
+
"audience": "shared"
|
|
25
|
+
},
|
|
26
|
+
"eventId": "update_99"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"kind": "link"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"target":"/app/messaging/identity-code/status","direction":"request","body":{"provider":"telegram","placement":"local","challengeId":"challenge_01"}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/identity-code/status",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"status": {
|
|
6
|
+
"challengeId": "challenge_01",
|
|
7
|
+
"provider": "telegram",
|
|
8
|
+
"placement": "local",
|
|
9
|
+
"accountId": "bot_a",
|
|
10
|
+
"expiresAtMs": 1720000300000,
|
|
11
|
+
"lifecycle": {
|
|
12
|
+
"state": "completed",
|
|
13
|
+
"receipt": {
|
|
14
|
+
"actor": {
|
|
15
|
+
"provider": "telegram",
|
|
16
|
+
"accountId": "bot_a",
|
|
17
|
+
"externalUserId": "tg_42",
|
|
18
|
+
"displayName": "Alice"
|
|
19
|
+
},
|
|
20
|
+
"address": {
|
|
21
|
+
"provider": "telegram",
|
|
22
|
+
"accountId": "bot_a",
|
|
23
|
+
"conversationId": "family",
|
|
24
|
+
"audience": "shared"
|
|
25
|
+
},
|
|
26
|
+
"eventId": "update_99"
|
|
27
|
+
},
|
|
28
|
+
"linkId": "link_42"
|
|
29
|
+
},
|
|
30
|
+
"kind": "link"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/surface/bind-code/create",
|
|
3
|
+
"direction": "request",
|
|
4
|
+
"body": {
|
|
5
|
+
"provider": "feishu",
|
|
6
|
+
"placement": "local",
|
|
7
|
+
"scopeId": "scope_a"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"target": "/app/messaging/surface/bind-code/create",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"challenge": {
|
|
6
|
+
"code": "M7K9Q2",
|
|
7
|
+
"command": "/bind M7K9Q2",
|
|
8
|
+
"expiresAtMs": 1720000300000,
|
|
9
|
+
"challengeId": "challenge_01"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.hub.targets.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.28.0",
|
|
4
4
|
"appTargets": [
|
|
5
5
|
"/app/hub/get",
|
|
6
6
|
"/app/hub/remove",
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
"/local/hub/setup/status",
|
|
15
15
|
"/local/hub/setup/cancel"
|
|
16
16
|
],
|
|
17
|
-
"appInvocationModes": [
|
|
17
|
+
"appInvocationModes": [
|
|
18
|
+
"direct"
|
|
19
|
+
],
|
|
18
20
|
"localPayload": "domainInput",
|
|
19
21
|
"localForwardable": false
|
|
20
22
|
}
|
package/manifest/routing.v1.json
CHANGED
package/manifest/targets.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.messaging.targets.v1",
|
|
3
|
-
"contractVersion": "1.
|
|
3
|
+
"contractVersion": "1.28.0",
|
|
4
4
|
"requestTargets": [
|
|
5
5
|
"/app/messaging/provider/list",
|
|
6
6
|
"/app/messaging/provider-account/list",
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
"/app/messaging/surface/dismiss",
|
|
22
22
|
"/app/messaging/surface/bind-code/create",
|
|
23
23
|
"/app/messaging/actor/link-code/create",
|
|
24
|
-
"/app/messaging/
|
|
25
|
-
"/app/messaging/actor/link-claim/confirm",
|
|
24
|
+
"/app/messaging/identity-code/status",
|
|
26
25
|
"/app/messaging/actor/link/list",
|
|
27
26
|
"/app/messaging/actor/link/delete"
|
|
28
27
|
],
|
|
@@ -46,12 +45,11 @@
|
|
|
46
45
|
"/app/messaging/surface/dismiss",
|
|
47
46
|
"/app/messaging/surface/bind-code/create",
|
|
48
47
|
"/app/messaging/actor/link-code/create",
|
|
49
|
-
"/app/messaging/
|
|
50
|
-
"/app/messaging/actor/link-claim/confirm",
|
|
48
|
+
"/app/messaging/identity-code/status",
|
|
51
49
|
"/app/messaging/actor/link/list",
|
|
52
50
|
"/app/messaging/actor/link/delete"
|
|
53
51
|
],
|
|
54
52
|
"eventTargets": [
|
|
55
|
-
"/app/messaging/
|
|
53
|
+
"/app/messaging/identity-code/changed"
|
|
56
54
|
]
|
|
57
55
|
}
|
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -195,8 +195,7 @@
|
|
|
195
195
|
"surface.dismiss",
|
|
196
196
|
"surface.bind_code.create",
|
|
197
197
|
"actor.link_code.create",
|
|
198
|
-
"
|
|
199
|
-
"actor.link_claim.confirm",
|
|
198
|
+
"identity_code.status",
|
|
200
199
|
"actor.link.list",
|
|
201
200
|
"actor.link.delete"
|
|
202
201
|
]
|
|
@@ -651,7 +650,8 @@
|
|
|
651
650
|
"required": [
|
|
652
651
|
"code",
|
|
653
652
|
"command",
|
|
654
|
-
"expiresAtMs"
|
|
653
|
+
"expiresAtMs",
|
|
654
|
+
"challengeId"
|
|
655
655
|
],
|
|
656
656
|
"properties": {
|
|
657
657
|
"code": {
|
|
@@ -1066,9 +1066,6 @@
|
|
|
1066
1066
|
"placement": {
|
|
1067
1067
|
"$ref": "#/$defs/placement"
|
|
1068
1068
|
},
|
|
1069
|
-
"surfaceId": {
|
|
1070
|
-
"$ref": "#/$defs/id"
|
|
1071
|
-
},
|
|
1072
1069
|
"scopeId": {
|
|
1073
1070
|
"$ref": "#/$defs/id"
|
|
1074
1071
|
}
|
|
@@ -1079,8 +1076,7 @@
|
|
|
1079
1076
|
"additionalProperties": false,
|
|
1080
1077
|
"required": [
|
|
1081
1078
|
"provider",
|
|
1082
|
-
"placement"
|
|
1083
|
-
"target"
|
|
1079
|
+
"placement"
|
|
1084
1080
|
],
|
|
1085
1081
|
"properties": {
|
|
1086
1082
|
"provider": {
|
|
@@ -1088,12 +1084,6 @@
|
|
|
1088
1084
|
},
|
|
1089
1085
|
"placement": {
|
|
1090
1086
|
"$ref": "#/$defs/placement"
|
|
1091
|
-
},
|
|
1092
|
-
"accountId": {
|
|
1093
|
-
"$ref": "#/$defs/id"
|
|
1094
|
-
},
|
|
1095
|
-
"target": {
|
|
1096
|
-
"$ref": "#/$defs/actorLinkTarget"
|
|
1097
1087
|
}
|
|
1098
1088
|
}
|
|
1099
1089
|
},
|
|
@@ -2189,10 +2179,7 @@
|
|
|
2189
2179
|
"$ref": "#/$defs/actorLinkCodeCreateRequest"
|
|
2190
2180
|
},
|
|
2191
2181
|
{
|
|
2192
|
-
"$ref": "#/$defs/
|
|
2193
|
-
},
|
|
2194
|
-
{
|
|
2195
|
-
"$ref": "#/$defs/actorLinkClaimConfirmRequest"
|
|
2182
|
+
"$ref": "#/$defs/identityCodeStatusRequest"
|
|
2196
2183
|
},
|
|
2197
2184
|
{
|
|
2198
2185
|
"$ref": "#/$defs/actorLinkListRequest"
|
|
@@ -2262,13 +2249,10 @@
|
|
|
2262
2249
|
"$ref": "#/$defs/actorLinkCodeCreateResponse"
|
|
2263
2250
|
},
|
|
2264
2251
|
{
|
|
2265
|
-
"$ref": "#/$defs/
|
|
2266
|
-
},
|
|
2267
|
-
{
|
|
2268
|
-
"$ref": "#/$defs/actorLinkClaimConfirmResponse"
|
|
2252
|
+
"$ref": "#/$defs/identityCodeStatusResponse"
|
|
2269
2253
|
},
|
|
2270
2254
|
{
|
|
2271
|
-
"$ref": "#/$defs/
|
|
2255
|
+
"$ref": "#/$defs/identityCodeStatusEventResponse"
|
|
2272
2256
|
},
|
|
2273
2257
|
{
|
|
2274
2258
|
"$ref": "#/$defs/actorLinkListResponse"
|
|
@@ -2288,37 +2272,6 @@
|
|
|
2288
2272
|
}
|
|
2289
2273
|
]
|
|
2290
2274
|
},
|
|
2291
|
-
"actorLinkTarget": {
|
|
2292
|
-
"oneOf": [
|
|
2293
|
-
{
|
|
2294
|
-
"type": "object",
|
|
2295
|
-
"additionalProperties": false,
|
|
2296
|
-
"required": [
|
|
2297
|
-
"audience"
|
|
2298
|
-
],
|
|
2299
|
-
"properties": {
|
|
2300
|
-
"audience": {
|
|
2301
|
-
"const": "personal"
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
},
|
|
2305
|
-
{
|
|
2306
|
-
"type": "object",
|
|
2307
|
-
"additionalProperties": false,
|
|
2308
|
-
"required": [
|
|
2309
|
-
"audience"
|
|
2310
|
-
],
|
|
2311
|
-
"properties": {
|
|
2312
|
-
"audience": {
|
|
2313
|
-
"const": "shared"
|
|
2314
|
-
},
|
|
2315
|
-
"surfaceId": {
|
|
2316
|
-
"$ref": "#/$defs/id"
|
|
2317
|
-
}
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
]
|
|
2321
|
-
},
|
|
2322
2275
|
"messagingAddress": {
|
|
2323
2276
|
"type": "object",
|
|
2324
2277
|
"additionalProperties": false,
|
|
@@ -2369,7 +2322,7 @@
|
|
|
2369
2322
|
}
|
|
2370
2323
|
}
|
|
2371
2324
|
},
|
|
2372
|
-
"
|
|
2325
|
+
"identityCodeReceipt": {
|
|
2373
2326
|
"type": "object",
|
|
2374
2327
|
"additionalProperties": false,
|
|
2375
2328
|
"required": [
|
|
@@ -2389,16 +2342,16 @@
|
|
|
2389
2342
|
}
|
|
2390
2343
|
}
|
|
2391
2344
|
},
|
|
2392
|
-
"
|
|
2345
|
+
"identityCodeStatus": {
|
|
2393
2346
|
"type": "object",
|
|
2394
2347
|
"additionalProperties": false,
|
|
2395
2348
|
"required": [
|
|
2396
2349
|
"challengeId",
|
|
2397
2350
|
"provider",
|
|
2398
2351
|
"placement",
|
|
2399
|
-
"target",
|
|
2400
2352
|
"expiresAtMs",
|
|
2401
|
-
"lifecycle"
|
|
2353
|
+
"lifecycle",
|
|
2354
|
+
"kind"
|
|
2402
2355
|
],
|
|
2403
2356
|
"properties": {
|
|
2404
2357
|
"challengeId": {
|
|
@@ -2413,15 +2366,12 @@
|
|
|
2413
2366
|
"accountId": {
|
|
2414
2367
|
"$ref": "#/$defs/id"
|
|
2415
2368
|
},
|
|
2416
|
-
"target": {
|
|
2417
|
-
"$ref": "#/$defs/actorLinkTarget"
|
|
2418
|
-
},
|
|
2419
2369
|
"expiresAtMs": {
|
|
2420
2370
|
"type": "integer",
|
|
2421
2371
|
"minimum": 0
|
|
2422
2372
|
},
|
|
2423
2373
|
"lifecycle": {
|
|
2424
|
-
"$ref": "#/$defs/
|
|
2374
|
+
"$ref": "#/$defs/identityCodeLifecycle"
|
|
2425
2375
|
},
|
|
2426
2376
|
"kind": {
|
|
2427
2377
|
"enum": [
|
|
@@ -2438,7 +2388,6 @@
|
|
|
2438
2388
|
"challengeId",
|
|
2439
2389
|
"code",
|
|
2440
2390
|
"command",
|
|
2441
|
-
"target",
|
|
2442
2391
|
"expiresAtMs"
|
|
2443
2392
|
],
|
|
2444
2393
|
"properties": {
|
|
@@ -2451,16 +2400,13 @@
|
|
|
2451
2400
|
"command": {
|
|
2452
2401
|
"$ref": "#/$defs/id"
|
|
2453
2402
|
},
|
|
2454
|
-
"target": {
|
|
2455
|
-
"$ref": "#/$defs/actorLinkTarget"
|
|
2456
|
-
},
|
|
2457
2403
|
"expiresAtMs": {
|
|
2458
2404
|
"type": "integer",
|
|
2459
2405
|
"minimum": 0
|
|
2460
2406
|
}
|
|
2461
2407
|
}
|
|
2462
2408
|
},
|
|
2463
|
-
"
|
|
2409
|
+
"identityCodeStatusBody": {
|
|
2464
2410
|
"type": "object",
|
|
2465
2411
|
"additionalProperties": false,
|
|
2466
2412
|
"required": [
|
|
@@ -2480,59 +2426,19 @@
|
|
|
2480
2426
|
}
|
|
2481
2427
|
}
|
|
2482
2428
|
},
|
|
2483
|
-
"
|
|
2484
|
-
"type": "object",
|
|
2485
|
-
"additionalProperties": false,
|
|
2486
|
-
"required": [
|
|
2487
|
-
"claim"
|
|
2488
|
-
],
|
|
2489
|
-
"properties": {
|
|
2490
|
-
"claim": {
|
|
2491
|
-
"$ref": "#/$defs/actorLinkClaim"
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
},
|
|
2495
|
-
"actorLinkClaimStatusRequest": {
|
|
2429
|
+
"identityCodeStatusResponseBody": {
|
|
2496
2430
|
"type": "object",
|
|
2497
2431
|
"additionalProperties": false,
|
|
2498
2432
|
"required": [
|
|
2499
|
-
"
|
|
2500
|
-
"direction",
|
|
2501
|
-
"body"
|
|
2433
|
+
"status"
|
|
2502
2434
|
],
|
|
2503
2435
|
"properties": {
|
|
2504
|
-
"
|
|
2505
|
-
"
|
|
2506
|
-
},
|
|
2507
|
-
"direction": {
|
|
2508
|
-
"const": "request"
|
|
2509
|
-
},
|
|
2510
|
-
"body": {
|
|
2511
|
-
"$ref": "#/$defs/actorLinkClaimBody"
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
},
|
|
2515
|
-
"actorLinkClaimStatusResponse": {
|
|
2516
|
-
"type": "object",
|
|
2517
|
-
"additionalProperties": false,
|
|
2518
|
-
"required": [
|
|
2519
|
-
"target",
|
|
2520
|
-
"direction",
|
|
2521
|
-
"body"
|
|
2522
|
-
],
|
|
2523
|
-
"properties": {
|
|
2524
|
-
"target": {
|
|
2525
|
-
"const": "/app/messaging/actor/link-claim/status"
|
|
2526
|
-
},
|
|
2527
|
-
"direction": {
|
|
2528
|
-
"const": "response"
|
|
2529
|
-
},
|
|
2530
|
-
"body": {
|
|
2531
|
-
"$ref": "#/$defs/actorLinkClaimResponseBody"
|
|
2436
|
+
"status": {
|
|
2437
|
+
"$ref": "#/$defs/identityCodeStatus"
|
|
2532
2438
|
}
|
|
2533
2439
|
}
|
|
2534
2440
|
},
|
|
2535
|
-
"
|
|
2441
|
+
"identityCodeStatusRequest": {
|
|
2536
2442
|
"type": "object",
|
|
2537
2443
|
"additionalProperties": false,
|
|
2538
2444
|
"required": [
|
|
@@ -2542,17 +2448,17 @@
|
|
|
2542
2448
|
],
|
|
2543
2449
|
"properties": {
|
|
2544
2450
|
"target": {
|
|
2545
|
-
"const": "/app/messaging/
|
|
2451
|
+
"const": "/app/messaging/identity-code/status"
|
|
2546
2452
|
},
|
|
2547
2453
|
"direction": {
|
|
2548
2454
|
"const": "request"
|
|
2549
2455
|
},
|
|
2550
2456
|
"body": {
|
|
2551
|
-
"$ref": "#/$defs/
|
|
2457
|
+
"$ref": "#/$defs/identityCodeStatusBody"
|
|
2552
2458
|
}
|
|
2553
2459
|
}
|
|
2554
2460
|
},
|
|
2555
|
-
"
|
|
2461
|
+
"identityCodeStatusResponse": {
|
|
2556
2462
|
"type": "object",
|
|
2557
2463
|
"additionalProperties": false,
|
|
2558
2464
|
"required": [
|
|
@@ -2562,17 +2468,17 @@
|
|
|
2562
2468
|
],
|
|
2563
2469
|
"properties": {
|
|
2564
2470
|
"target": {
|
|
2565
|
-
"const": "/app/messaging/
|
|
2471
|
+
"const": "/app/messaging/identity-code/status"
|
|
2566
2472
|
},
|
|
2567
2473
|
"direction": {
|
|
2568
2474
|
"const": "response"
|
|
2569
2475
|
},
|
|
2570
2476
|
"body": {
|
|
2571
|
-
"$ref": "#/$defs/
|
|
2477
|
+
"$ref": "#/$defs/identityCodeStatusResponseBody"
|
|
2572
2478
|
}
|
|
2573
2479
|
}
|
|
2574
2480
|
},
|
|
2575
|
-
"
|
|
2481
|
+
"identityCodeStatusEventResponse": {
|
|
2576
2482
|
"type": "object",
|
|
2577
2483
|
"additionalProperties": false,
|
|
2578
2484
|
"required": [
|
|
@@ -2582,17 +2488,17 @@
|
|
|
2582
2488
|
],
|
|
2583
2489
|
"properties": {
|
|
2584
2490
|
"target": {
|
|
2585
|
-
"const": "/app/messaging/
|
|
2491
|
+
"const": "/app/messaging/identity-code/changed"
|
|
2586
2492
|
},
|
|
2587
2493
|
"direction": {
|
|
2588
2494
|
"const": "response"
|
|
2589
2495
|
},
|
|
2590
2496
|
"body": {
|
|
2591
|
-
"$ref": "#/$defs/
|
|
2497
|
+
"$ref": "#/$defs/identityCodeStatusResponseBody"
|
|
2592
2498
|
}
|
|
2593
2499
|
}
|
|
2594
2500
|
},
|
|
2595
|
-
"
|
|
2501
|
+
"identityCodeLifecycle": {
|
|
2596
2502
|
"oneOf": [
|
|
2597
2503
|
{
|
|
2598
2504
|
"type": "object",
|
|
@@ -2635,14 +2541,14 @@
|
|
|
2635
2541
|
"additionalProperties": false,
|
|
2636
2542
|
"required": [
|
|
2637
2543
|
"state",
|
|
2638
|
-
"
|
|
2544
|
+
"receipt"
|
|
2639
2545
|
],
|
|
2640
2546
|
"properties": {
|
|
2641
2547
|
"state": {
|
|
2642
|
-
"const": "
|
|
2548
|
+
"const": "processing"
|
|
2643
2549
|
},
|
|
2644
|
-
"
|
|
2645
|
-
"$ref": "#/$defs/
|
|
2550
|
+
"receipt": {
|
|
2551
|
+
"$ref": "#/$defs/identityCodeReceipt"
|
|
2646
2552
|
}
|
|
2647
2553
|
}
|
|
2648
2554
|
},
|
|
@@ -2651,14 +2557,14 @@
|
|
|
2651
2557
|
"additionalProperties": false,
|
|
2652
2558
|
"required": [
|
|
2653
2559
|
"state",
|
|
2654
|
-
"
|
|
2560
|
+
"receipt"
|
|
2655
2561
|
],
|
|
2656
2562
|
"properties": {
|
|
2657
2563
|
"state": {
|
|
2658
|
-
"const": "
|
|
2564
|
+
"const": "failed"
|
|
2659
2565
|
},
|
|
2660
|
-
"
|
|
2661
|
-
"$ref": "#/$defs/
|
|
2566
|
+
"receipt": {
|
|
2567
|
+
"$ref": "#/$defs/identityCodeReceipt"
|
|
2662
2568
|
}
|
|
2663
2569
|
}
|
|
2664
2570
|
},
|
|
@@ -2667,17 +2573,17 @@
|
|
|
2667
2573
|
"additionalProperties": false,
|
|
2668
2574
|
"required": [
|
|
2669
2575
|
"state",
|
|
2670
|
-
"
|
|
2576
|
+
"receipt"
|
|
2671
2577
|
],
|
|
2672
2578
|
"properties": {
|
|
2673
2579
|
"state": {
|
|
2674
2580
|
"const": "completed"
|
|
2675
2581
|
},
|
|
2676
|
-
"candidate": {
|
|
2677
|
-
"$ref": "#/$defs/actorLinkCandidate"
|
|
2678
|
-
},
|
|
2679
2582
|
"linkId": {
|
|
2680
2583
|
"$ref": "#/$defs/id"
|
|
2584
|
+
},
|
|
2585
|
+
"receipt": {
|
|
2586
|
+
"$ref": "#/$defs/identityCodeReceipt"
|
|
2681
2587
|
}
|
|
2682
2588
|
}
|
|
2683
2589
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/actor/link-claim/confirm","direction":"request","body":{"provider":"telegram","placement":"local","challengeId":"challenge_01"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/actor/link-claim/confirm","direction":"response","body":{"claim":{"challengeId":"challenge_01","provider":"telegram","placement":"local","accountId":"bot_a","target":{"audience":"shared","surfaceId":"mg:telegram:bot_a:family"},"expiresAtMs":1720000300000,"lifecycle":{"state":"completed","candidate":{"actor":{"provider":"telegram","accountId":"bot_a","externalUserId":"tg_42","displayName":"Alice"},"address":{"provider":"telegram","accountId":"bot_a","conversationId":"family","audience":"shared"},"eventId":"update_99"},"linkId":"link_42"}}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/actor/link-claim/changed","direction":"response","body":{"claim":{"challengeId":"challenge_01","provider":"telegram","placement":"local","accountId":"bot_a","target":{"audience":"shared","surfaceId":"mg:telegram:bot_a:family"},"expiresAtMs":1720000300000,"lifecycle":{"state":"awaiting_confirmation","candidate":{"actor":{"provider":"telegram","accountId":"bot_a","externalUserId":"tg_42","displayName":"Alice"},"address":{"provider":"telegram","accountId":"bot_a","conversationId":"family","audience":"shared"},"eventId":"update_99"}}}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/actor/link-claim/status","direction":"request","body":{"provider":"telegram","placement":"local","challengeId":"challenge_01"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"target":"/app/messaging/actor/link-claim/status","direction":"response","body":{"claim":{"challengeId":"challenge_01","provider":"telegram","placement":"local","accountId":"bot_a","target":{"audience":"shared","surfaceId":"mg:telegram:bot_a:family"},"expiresAtMs":1720000300000,"lifecycle":{"state":"awaiting_confirmation","candidate":{"actor":{"provider":"telegram","accountId":"bot_a","externalUserId":"tg_42","displayName":"Alice"},"address":{"provider":"telegram","accountId":"bot_a","conversationId":"family","audience":"shared"},"eventId":"update_99"}}}}}
|