@unifyport/sdk-node 0.2.0 → 0.4.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.
@@ -388,7 +388,7 @@ export const deviceOperations = {
388
388
  "mutability": "write",
389
389
  "retryable": false,
390
390
  "secretInput": true,
391
- "secretOutput": false,
391
+ "secretOutput": true,
392
392
  "mcpExposure": "never",
393
393
  "inputSchema": {
394
394
  "type": "object",
@@ -456,10 +456,9 @@ export const deviceOperations = {
456
456
  "twitter",
457
457
  "x",
458
458
  "zalo",
459
- "tiktok",
460
- "whatsapp_protocol"
459
+ "tiktok"
461
460
  ],
462
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
461
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
463
462
  },
464
463
  "RuntimeStatus": {
465
464
  "type": "string",
@@ -591,7 +590,7 @@ export const deviceOperations = {
591
590
  "$ref": "#/$defs/FreeFormObject"
592
591
  },
593
592
  "provider_profile": {
594
- "$ref": "#/$defs/FreeFormObject"
593
+ "$ref": "#/$defs/ProviderProfile"
595
594
  }
596
595
  }
597
596
  },
@@ -604,10 +603,9 @@ export const deviceOperations = {
604
603
  "twitter",
605
604
  "x",
606
605
  "zalo",
607
- "tiktok",
608
- "whatsapp_protocol"
606
+ "tiktok"
609
607
  ],
610
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
608
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
611
609
  },
612
610
  "RuntimeStatus": {
613
611
  "type": "string",
@@ -625,6 +623,40 @@ export const deviceOperations = {
625
623
  "FreeFormObject": {
626
624
  "type": "object",
627
625
  "additionalProperties": true
626
+ },
627
+ "ProviderProfile": {
628
+ "type": "object",
629
+ "description": "账号在 provider 侧的公开资料。下列为标准字段,其他字段可能因 provider 而异。",
630
+ "properties": {
631
+ "id": {
632
+ "type": "string",
633
+ "description": "provider 侧账号标识。WhatsApp 在资料同步完成后返回 canonical LID(格式为 `{account}@lid`);其他渠道在取得稳定账号标识后返回。该字段在同步完成前可能缺失。"
634
+ },
635
+ "phone": {
636
+ "type": "string",
637
+ "description": "已归一化的账号手机号。"
638
+ },
639
+ "username": {
640
+ "type": "string"
641
+ },
642
+ "display_name": {
643
+ "type": "string"
644
+ },
645
+ "first_name": {
646
+ "type": "string"
647
+ },
648
+ "last_name": {
649
+ "type": "string"
650
+ },
651
+ "avatar_url": {
652
+ "type": "string",
653
+ "description": "账号头像 URL。"
654
+ },
655
+ "bio": {
656
+ "type": "string"
657
+ }
658
+ },
659
+ "additionalProperties": true
628
660
  }
629
661
  }
630
662
  }
@@ -983,6 +1015,7 @@ export const deviceOperations = {
983
1015
  "StandardEventType": {
984
1016
  "type": "string",
985
1017
  "enum": [
1018
+ "*",
986
1019
  "message.received",
987
1020
  "message.updated",
988
1021
  "message.deleted",
@@ -992,10 +1025,12 @@ export const deviceOperations = {
992
1025
  "conversation.updated",
993
1026
  "conversation.deleted",
994
1027
  "conversation.cleared",
1028
+ "conversation.history",
995
1029
  "group.updated",
996
1030
  "group.join_request",
997
1031
  "account.status.updated",
998
1032
  "account.started",
1033
+ "account.history.synced",
999
1034
  "account.auth.required",
1000
1035
  "account.auth.succeeded",
1001
1036
  "account.auth.failed"
@@ -1101,6 +1136,7 @@ export const deviceOperations = {
1101
1136
  "StandardEventType": {
1102
1137
  "type": "string",
1103
1138
  "enum": [
1139
+ "*",
1104
1140
  "message.received",
1105
1141
  "message.updated",
1106
1142
  "message.deleted",
@@ -1110,10 +1146,12 @@ export const deviceOperations = {
1110
1146
  "conversation.updated",
1111
1147
  "conversation.deleted",
1112
1148
  "conversation.cleared",
1149
+ "conversation.history",
1113
1150
  "group.updated",
1114
1151
  "group.join_request",
1115
1152
  "account.status.updated",
1116
1153
  "account.started",
1154
+ "account.history.synced",
1117
1155
  "account.auth.required",
1118
1156
  "account.auth.succeeded",
1119
1157
  "account.auth.failed"
@@ -1266,6 +1304,7 @@ export const deviceOperations = {
1266
1304
  "StandardEventType": {
1267
1305
  "type": "string",
1268
1306
  "enum": [
1307
+ "*",
1269
1308
  "message.received",
1270
1309
  "message.updated",
1271
1310
  "message.deleted",
@@ -1275,10 +1314,12 @@ export const deviceOperations = {
1275
1314
  "conversation.updated",
1276
1315
  "conversation.deleted",
1277
1316
  "conversation.cleared",
1317
+ "conversation.history",
1278
1318
  "group.updated",
1279
1319
  "group.join_request",
1280
1320
  "account.status.updated",
1281
1321
  "account.started",
1322
+ "account.history.synced",
1282
1323
  "account.auth.required",
1283
1324
  "account.auth.succeeded",
1284
1325
  "account.auth.failed"
@@ -1867,7 +1908,7 @@ export const deviceOperations = {
1867
1908
  "$ref": "#/$defs/FreeFormObject"
1868
1909
  },
1869
1910
  "provider_profile": {
1870
- "$ref": "#/$defs/FreeFormObject"
1911
+ "$ref": "#/$defs/ProviderProfile"
1871
1912
  }
1872
1913
  }
1873
1914
  },
@@ -1880,10 +1921,9 @@ export const deviceOperations = {
1880
1921
  "twitter",
1881
1922
  "x",
1882
1923
  "zalo",
1883
- "tiktok",
1884
- "whatsapp_protocol"
1924
+ "tiktok"
1885
1925
  ],
1886
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
1926
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
1887
1927
  },
1888
1928
  "RuntimeStatus": {
1889
1929
  "type": "string",
@@ -1901,6 +1941,40 @@ export const deviceOperations = {
1901
1941
  "FreeFormObject": {
1902
1942
  "type": "object",
1903
1943
  "additionalProperties": true
1944
+ },
1945
+ "ProviderProfile": {
1946
+ "type": "object",
1947
+ "description": "账号在 provider 侧的公开资料。下列为标准字段,其他字段可能因 provider 而异。",
1948
+ "properties": {
1949
+ "id": {
1950
+ "type": "string",
1951
+ "description": "provider 侧账号标识。WhatsApp 在资料同步完成后返回 canonical LID(格式为 `{account}@lid`);其他渠道在取得稳定账号标识后返回。该字段在同步完成前可能缺失。"
1952
+ },
1953
+ "phone": {
1954
+ "type": "string",
1955
+ "description": "已归一化的账号手机号。"
1956
+ },
1957
+ "username": {
1958
+ "type": "string"
1959
+ },
1960
+ "display_name": {
1961
+ "type": "string"
1962
+ },
1963
+ "first_name": {
1964
+ "type": "string"
1965
+ },
1966
+ "last_name": {
1967
+ "type": "string"
1968
+ },
1969
+ "avatar_url": {
1970
+ "type": "string",
1971
+ "description": "账号头像 URL。"
1972
+ },
1973
+ "bio": {
1974
+ "type": "string"
1975
+ }
1976
+ },
1977
+ "additionalProperties": true
1904
1978
  }
1905
1979
  }
1906
1980
  }
@@ -2911,6 +2985,7 @@ export const deviceOperations = {
2911
2985
  "StandardEventType": {
2912
2986
  "type": "string",
2913
2987
  "enum": [
2988
+ "*",
2914
2989
  "message.received",
2915
2990
  "message.updated",
2916
2991
  "message.deleted",
@@ -2920,10 +2995,12 @@ export const deviceOperations = {
2920
2995
  "conversation.updated",
2921
2996
  "conversation.deleted",
2922
2997
  "conversation.cleared",
2998
+ "conversation.history",
2923
2999
  "group.updated",
2924
3000
  "group.join_request",
2925
3001
  "account.status.updated",
2926
3002
  "account.started",
3003
+ "account.history.synced",
2927
3004
  "account.auth.required",
2928
3005
  "account.auth.succeeded",
2929
3006
  "account.auth.failed"
@@ -3324,7 +3401,7 @@ export const deviceOperations = {
3324
3401
  "mutability": "read",
3325
3402
  "retryable": true,
3326
3403
  "secretInput": false,
3327
- "secretOutput": false,
3404
+ "secretOutput": true,
3328
3405
  "mcpExposure": "never",
3329
3406
  "inputSchema": {
3330
3407
  "type": "object",
@@ -3445,7 +3522,7 @@ export const deviceOperations = {
3445
3522
  "$ref": "#/$defs/FreeFormObject"
3446
3523
  },
3447
3524
  "provider_profile": {
3448
- "$ref": "#/$defs/FreeFormObject"
3525
+ "$ref": "#/$defs/ProviderProfile"
3449
3526
  }
3450
3527
  }
3451
3528
  },
@@ -3458,10 +3535,9 @@ export const deviceOperations = {
3458
3535
  "twitter",
3459
3536
  "x",
3460
3537
  "zalo",
3461
- "tiktok",
3462
- "whatsapp_protocol"
3538
+ "tiktok"
3463
3539
  ],
3464
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
3540
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
3465
3541
  },
3466
3542
  "RuntimeStatus": {
3467
3543
  "type": "string",
@@ -3479,6 +3555,40 @@ export const deviceOperations = {
3479
3555
  "FreeFormObject": {
3480
3556
  "type": "object",
3481
3557
  "additionalProperties": true
3558
+ },
3559
+ "ProviderProfile": {
3560
+ "type": "object",
3561
+ "description": "账号在 provider 侧的公开资料。下列为标准字段,其他字段可能因 provider 而异。",
3562
+ "properties": {
3563
+ "id": {
3564
+ "type": "string",
3565
+ "description": "provider 侧账号标识。WhatsApp 在资料同步完成后返回 canonical LID(格式为 `{account}@lid`);其他渠道在取得稳定账号标识后返回。该字段在同步完成前可能缺失。"
3566
+ },
3567
+ "phone": {
3568
+ "type": "string",
3569
+ "description": "已归一化的账号手机号。"
3570
+ },
3571
+ "username": {
3572
+ "type": "string"
3573
+ },
3574
+ "display_name": {
3575
+ "type": "string"
3576
+ },
3577
+ "first_name": {
3578
+ "type": "string"
3579
+ },
3580
+ "last_name": {
3581
+ "type": "string"
3582
+ },
3583
+ "avatar_url": {
3584
+ "type": "string",
3585
+ "description": "账号头像 URL。"
3586
+ },
3587
+ "bio": {
3588
+ "type": "string"
3589
+ }
3590
+ },
3591
+ "additionalProperties": true
3482
3592
  }
3483
3593
  }
3484
3594
  }
@@ -4937,10 +5047,9 @@ export const deviceOperations = {
4937
5047
  "twitter",
4938
5048
  "x",
4939
5049
  "zalo",
4940
- "tiktok",
4941
- "whatsapp_protocol"
5050
+ "tiktok"
4942
5051
  ],
4943
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
5052
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
4944
5053
  }
4945
5054
  }
4946
5055
  },
@@ -5029,10 +5138,9 @@ export const deviceOperations = {
5029
5138
  "twitter",
5030
5139
  "x",
5031
5140
  "zalo",
5032
- "tiktok",
5033
- "whatsapp_protocol"
5141
+ "tiktok"
5034
5142
  ],
5035
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
5143
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
5036
5144
  },
5037
5145
  "RegionAvailability": {
5038
5146
  "type": "object",
@@ -5173,6 +5281,7 @@ export const deviceOperations = {
5173
5281
  "StandardEventType": {
5174
5282
  "type": "string",
5175
5283
  "enum": [
5284
+ "*",
5176
5285
  "message.received",
5177
5286
  "message.updated",
5178
5287
  "message.deleted",
@@ -5182,10 +5291,12 @@ export const deviceOperations = {
5182
5291
  "conversation.updated",
5183
5292
  "conversation.deleted",
5184
5293
  "conversation.cleared",
5294
+ "conversation.history",
5185
5295
  "group.updated",
5186
5296
  "group.join_request",
5187
5297
  "account.status.updated",
5188
5298
  "account.started",
5299
+ "account.history.synced",
5189
5300
  "account.auth.required",
5190
5301
  "account.auth.succeeded",
5191
5302
  "account.auth.failed"
@@ -6243,10 +6354,9 @@ export const deviceOperations = {
6243
6354
  "twitter",
6244
6355
  "x",
6245
6356
  "zalo",
6246
- "tiktok",
6247
- "whatsapp_protocol"
6357
+ "tiktok"
6248
6358
  ],
6249
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
6359
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
6250
6360
  },
6251
6361
  "RuntimeStatus": {
6252
6362
  "type": "string",
@@ -6426,10 +6536,9 @@ export const deviceOperations = {
6426
6536
  "twitter",
6427
6537
  "x",
6428
6538
  "zalo",
6429
- "tiktok",
6430
- "whatsapp_protocol"
6539
+ "tiktok"
6431
6540
  ],
6432
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
6541
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
6433
6542
  },
6434
6543
  "RuntimeStatus": {
6435
6544
  "type": "string",
@@ -6763,7 +6872,7 @@ export const deviceOperations = {
6763
6872
  "mutability": "write",
6764
6873
  "retryable": false,
6765
6874
  "secretInput": true,
6766
- "secretOutput": false,
6875
+ "secretOutput": true,
6767
6876
  "mcpExposure": "never",
6768
6877
  "inputSchema": {
6769
6878
  "type": "object",
@@ -6879,7 +6988,7 @@ export const deviceOperations = {
6879
6988
  "properties": {
6880
6989
  "reply_token": {
6881
6990
  "type": "string",
6882
- "description": "来自入站事件 `data.message.reply_token` 的不透明句柄。"
6991
+ "description": "来自入站事件 `data.message.reply_token` 或发送成功后 `SendMessageResult.reply_token` 的不透明句柄;调用时应原样回传。"
6883
6992
  }
6884
6993
  }
6885
6994
  },
@@ -7042,6 +7151,10 @@ export const deviceOperations = {
7042
7151
  },
7043
7152
  "provider_ref": {
7044
7153
  "type": "string"
7154
+ },
7155
+ "reply_token": {
7156
+ "type": "string",
7157
+ "description": "WhatsApp 发送成功后可能同步返回不透明引用句柄;无法生成稳定句柄时省略。该值按敏感数据处理,不要写入日志。"
7045
7158
  }
7046
7159
  }
7047
7160
  }
@@ -7897,10 +8010,9 @@ export const deviceOperations = {
7897
8010
  "twitter",
7898
8011
  "x",
7899
8012
  "zalo",
7900
- "tiktok",
7901
- "whatsapp_protocol"
8013
+ "tiktok"
7902
8014
  ],
7903
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
8015
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
7904
8016
  },
7905
8017
  "RuntimeStatus": {
7906
8018
  "type": "string",
@@ -8080,10 +8192,9 @@ export const deviceOperations = {
8080
8192
  "twitter",
8081
8193
  "x",
8082
8194
  "zalo",
8083
- "tiktok",
8084
- "whatsapp_protocol"
8195
+ "tiktok"
8085
8196
  ],
8086
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
8197
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
8087
8198
  },
8088
8199
  "RuntimeStatus": {
8089
8200
  "type": "string",
@@ -8762,7 +8873,7 @@ export const deviceOperations = {
8762
8873
  "mutability": "write",
8763
8874
  "retryable": false,
8764
8875
  "secretInput": true,
8765
- "secretOutput": false,
8876
+ "secretOutput": true,
8766
8877
  "mcpExposure": "never",
8767
8878
  "inputSchema": {
8768
8879
  "type": "object",
@@ -8853,10 +8964,9 @@ export const deviceOperations = {
8853
8964
  "twitter",
8854
8965
  "x",
8855
8966
  "zalo",
8856
- "tiktok",
8857
- "whatsapp_protocol"
8967
+ "tiktok"
8858
8968
  ],
8859
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
8969
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
8860
8970
  },
8861
8971
  "RuntimeStatus": {
8862
8972
  "type": "string",
@@ -8988,7 +9098,7 @@ export const deviceOperations = {
8988
9098
  "$ref": "#/$defs/FreeFormObject"
8989
9099
  },
8990
9100
  "provider_profile": {
8991
- "$ref": "#/$defs/FreeFormObject"
9101
+ "$ref": "#/$defs/ProviderProfile"
8992
9102
  }
8993
9103
  }
8994
9104
  },
@@ -9001,10 +9111,9 @@ export const deviceOperations = {
9001
9111
  "twitter",
9002
9112
  "x",
9003
9113
  "zalo",
9004
- "tiktok",
9005
- "whatsapp_protocol"
9114
+ "tiktok"
9006
9115
  ],
9007
- "description": "provider 名称;实际可用范围以当前账号能力为准。"
9116
+ "description": "正式对外开放的 provider 名称;实际可分配区域以 provider regions 接口为准。"
9008
9117
  },
9009
9118
  "RuntimeStatus": {
9010
9119
  "type": "string",
@@ -9022,6 +9131,40 @@ export const deviceOperations = {
9022
9131
  "FreeFormObject": {
9023
9132
  "type": "object",
9024
9133
  "additionalProperties": true
9134
+ },
9135
+ "ProviderProfile": {
9136
+ "type": "object",
9137
+ "description": "账号在 provider 侧的公开资料。下列为标准字段,其他字段可能因 provider 而异。",
9138
+ "properties": {
9139
+ "id": {
9140
+ "type": "string",
9141
+ "description": "provider 侧账号标识。WhatsApp 在资料同步完成后返回 canonical LID(格式为 `{account}@lid`);其他渠道在取得稳定账号标识后返回。该字段在同步完成前可能缺失。"
9142
+ },
9143
+ "phone": {
9144
+ "type": "string",
9145
+ "description": "已归一化的账号手机号。"
9146
+ },
9147
+ "username": {
9148
+ "type": "string"
9149
+ },
9150
+ "display_name": {
9151
+ "type": "string"
9152
+ },
9153
+ "first_name": {
9154
+ "type": "string"
9155
+ },
9156
+ "last_name": {
9157
+ "type": "string"
9158
+ },
9159
+ "avatar_url": {
9160
+ "type": "string",
9161
+ "description": "账号头像 URL。"
9162
+ },
9163
+ "bio": {
9164
+ "type": "string"
9165
+ }
9166
+ },
9167
+ "additionalProperties": true
9025
9168
  }
9026
9169
  }
9027
9170
  }
@@ -9718,6 +9861,7 @@ export const deviceOperations = {
9718
9861
  "StandardEventType": {
9719
9862
  "type": "string",
9720
9863
  "enum": [
9864
+ "*",
9721
9865
  "message.received",
9722
9866
  "message.updated",
9723
9867
  "message.deleted",
@@ -9727,10 +9871,12 @@ export const deviceOperations = {
9727
9871
  "conversation.updated",
9728
9872
  "conversation.deleted",
9729
9873
  "conversation.cleared",
9874
+ "conversation.history",
9730
9875
  "group.updated",
9731
9876
  "group.join_request",
9732
9877
  "account.status.updated",
9733
9878
  "account.started",
9879
+ "account.history.synced",
9734
9880
  "account.auth.required",
9735
9881
  "account.auth.succeeded",
9736
9882
  "account.auth.failed"
@@ -9836,6 +9982,7 @@ export const deviceOperations = {
9836
9982
  "StandardEventType": {
9837
9983
  "type": "string",
9838
9984
  "enum": [
9985
+ "*",
9839
9986
  "message.received",
9840
9987
  "message.updated",
9841
9988
  "message.deleted",
@@ -9845,10 +9992,12 @@ export const deviceOperations = {
9845
9992
  "conversation.updated",
9846
9993
  "conversation.deleted",
9847
9994
  "conversation.cleared",
9995
+ "conversation.history",
9848
9996
  "group.updated",
9849
9997
  "group.join_request",
9850
9998
  "account.status.updated",
9851
9999
  "account.started",
10000
+ "account.history.synced",
9852
10001
  "account.auth.required",
9853
10002
  "account.auth.succeeded",
9854
10003
  "account.auth.failed"