@twin.org/identity-service 0.9.2-next.6 → 0.9.2-next.7
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/dist/es/identityProfileRoutes.js +278 -1
- package/dist/es/identityProfileRoutes.js.map +1 -1
- package/dist/es/identityProfileService.js +25 -1
- package/dist/es/identityProfileService.js.map +1 -1
- package/dist/types/identityProfileRoutes.d.ts +33 -1
- package/dist/types/identityProfileService.d.ts +29 -0
- package/docs/changelog.md +16 -0
- package/docs/open-api/spec.json +681 -0
- package/docs/reference/classes/IdentityProfileService.md +56 -0
- package/docs/reference/functions/identitiesAdminList.md +31 -0
- package/docs/reference/functions/identityProfileAdminGet.md +31 -0
- package/docs/reference/functions/identityProfileAdminRemove.md +31 -0
- package/docs/reference/functions/identityProfileAdminUpdate.md +31 -0
- package/docs/reference/index.md +4 -0
- package/locales/en.json +2 -1
- package/package.json +2 -2
package/docs/open-api/spec.json
CHANGED
|
@@ -2847,6 +2847,463 @@
|
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
},
|
|
2850
|
+
"/identity/profile/{userIdentity}": {
|
|
2851
|
+
"get": {
|
|
2852
|
+
"operationId": "identityProfileAdminGet",
|
|
2853
|
+
"summary": "Get the identity profile properties of another user",
|
|
2854
|
+
"tags": [
|
|
2855
|
+
"Identity Profile"
|
|
2856
|
+
],
|
|
2857
|
+
"parameters": [
|
|
2858
|
+
{
|
|
2859
|
+
"name": "userIdentity",
|
|
2860
|
+
"description": "The identity of the user whose profile is to be retrieved.",
|
|
2861
|
+
"in": "path",
|
|
2862
|
+
"required": true,
|
|
2863
|
+
"schema": {
|
|
2864
|
+
"type": "string"
|
|
2865
|
+
},
|
|
2866
|
+
"style": "simple",
|
|
2867
|
+
"example": "did:iota:tst:0xc57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
"name": "publicPropertyNames",
|
|
2871
|
+
"description": "The public properties to get for the profile, defaults to all, should be a comma separated list.",
|
|
2872
|
+
"in": "query",
|
|
2873
|
+
"required": false,
|
|
2874
|
+
"schema": {
|
|
2875
|
+
"type": "string"
|
|
2876
|
+
},
|
|
2877
|
+
"example": "name,jobTitle"
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
"name": "privatePropertyNames",
|
|
2881
|
+
"description": "The private properties to get for the profile, defaults to all, should be a comma separated list.",
|
|
2882
|
+
"in": "query",
|
|
2883
|
+
"required": false,
|
|
2884
|
+
"schema": {
|
|
2885
|
+
"type": "string"
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
],
|
|
2889
|
+
"security": [
|
|
2890
|
+
{
|
|
2891
|
+
"jwtBearerAuthScheme": []
|
|
2892
|
+
}
|
|
2893
|
+
],
|
|
2894
|
+
"responses": {
|
|
2895
|
+
"200": {
|
|
2896
|
+
"description": "Response to get an identity details.",
|
|
2897
|
+
"content": {
|
|
2898
|
+
"application/json": {
|
|
2899
|
+
"schema": {
|
|
2900
|
+
"$ref": "#/components/schemas/IdentityProfileGetResponse"
|
|
2901
|
+
},
|
|
2902
|
+
"examples": {
|
|
2903
|
+
"identityProfileAdminGetResponseExample": {
|
|
2904
|
+
"value": {
|
|
2905
|
+
"identity": "did:iota:tst:0xc57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
2906
|
+
"publicProfile": {
|
|
2907
|
+
"@context": "https://schema.org",
|
|
2908
|
+
"@type": "Person",
|
|
2909
|
+
"jobTitle": "Professor",
|
|
2910
|
+
"name": "Jane Doe"
|
|
2911
|
+
}
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2917
|
+
},
|
|
2918
|
+
"400": {
|
|
2919
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
2920
|
+
"content": {
|
|
2921
|
+
"application/json": {
|
|
2922
|
+
"schema": {
|
|
2923
|
+
"$ref": "#/components/schemas/Error"
|
|
2924
|
+
},
|
|
2925
|
+
"examples": {
|
|
2926
|
+
"exampleResponse": {
|
|
2927
|
+
"value": {
|
|
2928
|
+
"name": "GeneralError",
|
|
2929
|
+
"message": "errorMessage",
|
|
2930
|
+
"properties": {
|
|
2931
|
+
"foo": "bar"
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
},
|
|
2939
|
+
"401": {
|
|
2940
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
2941
|
+
"content": {
|
|
2942
|
+
"application/json": {
|
|
2943
|
+
"schema": {
|
|
2944
|
+
"$ref": "#/components/schemas/Error"
|
|
2945
|
+
},
|
|
2946
|
+
"examples": {
|
|
2947
|
+
"exampleResponse": {
|
|
2948
|
+
"value": {
|
|
2949
|
+
"name": "UnauthorizedError",
|
|
2950
|
+
"message": "errorMessage"
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
"403": {
|
|
2958
|
+
"description": "The operation that you tried to perform is not possible, see the content for more details.",
|
|
2959
|
+
"content": {
|
|
2960
|
+
"application/json": {
|
|
2961
|
+
"schema": {
|
|
2962
|
+
"$ref": "#/components/schemas/Error"
|
|
2963
|
+
},
|
|
2964
|
+
"examples": {
|
|
2965
|
+
"exampleResponse": {
|
|
2966
|
+
"value": {
|
|
2967
|
+
"name": "ForbiddenError",
|
|
2968
|
+
"message": "errorMessage",
|
|
2969
|
+
"properties": {
|
|
2970
|
+
"foo": "bar"
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"404": {
|
|
2979
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
2980
|
+
"content": {
|
|
2981
|
+
"application/json": {
|
|
2982
|
+
"schema": {
|
|
2983
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
2984
|
+
},
|
|
2985
|
+
"examples": {
|
|
2986
|
+
"exampleResponse": {
|
|
2987
|
+
"value": {
|
|
2988
|
+
"name": "NotFoundError",
|
|
2989
|
+
"message": "errorMessage",
|
|
2990
|
+
"properties": {
|
|
2991
|
+
"notFoundId": "1"
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
}
|
|
2998
|
+
},
|
|
2999
|
+
"500": {
|
|
3000
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3001
|
+
"content": {
|
|
3002
|
+
"application/json": {
|
|
3003
|
+
"schema": {
|
|
3004
|
+
"$ref": "#/components/schemas/Error"
|
|
3005
|
+
},
|
|
3006
|
+
"examples": {
|
|
3007
|
+
"exampleResponse": {
|
|
3008
|
+
"value": {
|
|
3009
|
+
"name": "InternalServerError",
|
|
3010
|
+
"message": "errorMessage"
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"put": {
|
|
3020
|
+
"operationId": "identityProfileAdminUpdate",
|
|
3021
|
+
"summary": "Update the identity profile properties of another user",
|
|
3022
|
+
"tags": [
|
|
3023
|
+
"Identity Profile"
|
|
3024
|
+
],
|
|
3025
|
+
"parameters": [
|
|
3026
|
+
{
|
|
3027
|
+
"name": "userIdentity",
|
|
3028
|
+
"description": "The identity of the user whose profile is to be updated.",
|
|
3029
|
+
"in": "path",
|
|
3030
|
+
"required": true,
|
|
3031
|
+
"schema": {
|
|
3032
|
+
"type": "string"
|
|
3033
|
+
},
|
|
3034
|
+
"style": "simple",
|
|
3035
|
+
"example": "did:iota:tst:0xc57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70"
|
|
3036
|
+
}
|
|
3037
|
+
],
|
|
3038
|
+
"security": [
|
|
3039
|
+
{
|
|
3040
|
+
"jwtBearerAuthScheme": []
|
|
3041
|
+
}
|
|
3042
|
+
],
|
|
3043
|
+
"requestBody": {
|
|
3044
|
+
"description": "Request to update the profile of another user as an admin.",
|
|
3045
|
+
"required": true,
|
|
3046
|
+
"content": {
|
|
3047
|
+
"application/json": {
|
|
3048
|
+
"schema": {
|
|
3049
|
+
"$ref": "#/components/schemas/IdentityProfileAdminUpdateRequest"
|
|
3050
|
+
},
|
|
3051
|
+
"examples": {
|
|
3052
|
+
"identityProfileAdminUpdateRequestExample": {
|
|
3053
|
+
"value": {
|
|
3054
|
+
"publicProfile": {
|
|
3055
|
+
"@context": "https://schema.org",
|
|
3056
|
+
"@type": "Person",
|
|
3057
|
+
"jobTitle": "Professor",
|
|
3058
|
+
"name": "Jane Doe"
|
|
3059
|
+
},
|
|
3060
|
+
"privateProfile": {
|
|
3061
|
+
"@context": "https://schema.org",
|
|
3062
|
+
"@type": "Person",
|
|
3063
|
+
"telephone": "(425) 123-4567",
|
|
3064
|
+
"url": "http://www.janedoe.com"
|
|
3065
|
+
}
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
},
|
|
3072
|
+
"responses": {
|
|
3073
|
+
"204": {
|
|
3074
|
+
"description": "The rest request ended in success with no data."
|
|
3075
|
+
},
|
|
3076
|
+
"400": {
|
|
3077
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
3078
|
+
"content": {
|
|
3079
|
+
"application/json": {
|
|
3080
|
+
"schema": {
|
|
3081
|
+
"$ref": "#/components/schemas/Error"
|
|
3082
|
+
},
|
|
3083
|
+
"examples": {
|
|
3084
|
+
"exampleResponse": {
|
|
3085
|
+
"value": {
|
|
3086
|
+
"name": "GeneralError",
|
|
3087
|
+
"message": "errorMessage",
|
|
3088
|
+
"properties": {
|
|
3089
|
+
"foo": "bar"
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
"401": {
|
|
3098
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
3099
|
+
"content": {
|
|
3100
|
+
"application/json": {
|
|
3101
|
+
"schema": {
|
|
3102
|
+
"$ref": "#/components/schemas/Error"
|
|
3103
|
+
},
|
|
3104
|
+
"examples": {
|
|
3105
|
+
"exampleResponse": {
|
|
3106
|
+
"value": {
|
|
3107
|
+
"name": "UnauthorizedError",
|
|
3108
|
+
"message": "errorMessage"
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
},
|
|
3115
|
+
"403": {
|
|
3116
|
+
"description": "The operation that you tried to perform is not possible, see the content for more details.",
|
|
3117
|
+
"content": {
|
|
3118
|
+
"application/json": {
|
|
3119
|
+
"schema": {
|
|
3120
|
+
"$ref": "#/components/schemas/Error"
|
|
3121
|
+
},
|
|
3122
|
+
"examples": {
|
|
3123
|
+
"exampleResponse": {
|
|
3124
|
+
"value": {
|
|
3125
|
+
"name": "ForbiddenError",
|
|
3126
|
+
"message": "errorMessage",
|
|
3127
|
+
"properties": {
|
|
3128
|
+
"foo": "bar"
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
"404": {
|
|
3137
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
3138
|
+
"content": {
|
|
3139
|
+
"application/json": {
|
|
3140
|
+
"schema": {
|
|
3141
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
3142
|
+
},
|
|
3143
|
+
"examples": {
|
|
3144
|
+
"exampleResponse": {
|
|
3145
|
+
"value": {
|
|
3146
|
+
"name": "NotFoundError",
|
|
3147
|
+
"message": "errorMessage",
|
|
3148
|
+
"properties": {
|
|
3149
|
+
"notFoundId": "1"
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
3156
|
+
},
|
|
3157
|
+
"500": {
|
|
3158
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3159
|
+
"content": {
|
|
3160
|
+
"application/json": {
|
|
3161
|
+
"schema": {
|
|
3162
|
+
"$ref": "#/components/schemas/Error"
|
|
3163
|
+
},
|
|
3164
|
+
"examples": {
|
|
3165
|
+
"exampleResponse": {
|
|
3166
|
+
"value": {
|
|
3167
|
+
"name": "InternalServerError",
|
|
3168
|
+
"message": "errorMessage"
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
"delete": {
|
|
3178
|
+
"operationId": "identityProfileAdminRemove",
|
|
3179
|
+
"summary": "Remove the identity profile of another user",
|
|
3180
|
+
"tags": [
|
|
3181
|
+
"Identity Profile"
|
|
3182
|
+
],
|
|
3183
|
+
"parameters": [
|
|
3184
|
+
{
|
|
3185
|
+
"name": "userIdentity",
|
|
3186
|
+
"description": "The identity of the user whose profile is to be removed.",
|
|
3187
|
+
"in": "path",
|
|
3188
|
+
"required": true,
|
|
3189
|
+
"schema": {
|
|
3190
|
+
"type": "string"
|
|
3191
|
+
},
|
|
3192
|
+
"style": "simple",
|
|
3193
|
+
"example": "did:iota:tst:0xc57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70"
|
|
3194
|
+
}
|
|
3195
|
+
],
|
|
3196
|
+
"security": [
|
|
3197
|
+
{
|
|
3198
|
+
"jwtBearerAuthScheme": []
|
|
3199
|
+
}
|
|
3200
|
+
],
|
|
3201
|
+
"responses": {
|
|
3202
|
+
"204": {
|
|
3203
|
+
"description": "The rest request ended in success with no data."
|
|
3204
|
+
},
|
|
3205
|
+
"400": {
|
|
3206
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
3207
|
+
"content": {
|
|
3208
|
+
"application/json": {
|
|
3209
|
+
"schema": {
|
|
3210
|
+
"$ref": "#/components/schemas/Error"
|
|
3211
|
+
},
|
|
3212
|
+
"examples": {
|
|
3213
|
+
"exampleResponse": {
|
|
3214
|
+
"value": {
|
|
3215
|
+
"name": "GeneralError",
|
|
3216
|
+
"message": "errorMessage",
|
|
3217
|
+
"properties": {
|
|
3218
|
+
"foo": "bar"
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
"401": {
|
|
3227
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
3228
|
+
"content": {
|
|
3229
|
+
"application/json": {
|
|
3230
|
+
"schema": {
|
|
3231
|
+
"$ref": "#/components/schemas/Error"
|
|
3232
|
+
},
|
|
3233
|
+
"examples": {
|
|
3234
|
+
"exampleResponse": {
|
|
3235
|
+
"value": {
|
|
3236
|
+
"name": "UnauthorizedError",
|
|
3237
|
+
"message": "errorMessage"
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
},
|
|
3244
|
+
"403": {
|
|
3245
|
+
"description": "The operation that you tried to perform is not possible, see the content for more details.",
|
|
3246
|
+
"content": {
|
|
3247
|
+
"application/json": {
|
|
3248
|
+
"schema": {
|
|
3249
|
+
"$ref": "#/components/schemas/Error"
|
|
3250
|
+
},
|
|
3251
|
+
"examples": {
|
|
3252
|
+
"exampleResponse": {
|
|
3253
|
+
"value": {
|
|
3254
|
+
"name": "ForbiddenError",
|
|
3255
|
+
"message": "errorMessage",
|
|
3256
|
+
"properties": {
|
|
3257
|
+
"foo": "bar"
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3265
|
+
"404": {
|
|
3266
|
+
"description": "The resource you tried to access does not exist, see the content for more details.",
|
|
3267
|
+
"content": {
|
|
3268
|
+
"application/json": {
|
|
3269
|
+
"schema": {
|
|
3270
|
+
"$ref": "#/components/schemas/NotFoundResponse"
|
|
3271
|
+
},
|
|
3272
|
+
"examples": {
|
|
3273
|
+
"exampleResponse": {
|
|
3274
|
+
"value": {
|
|
3275
|
+
"name": "NotFoundError",
|
|
3276
|
+
"message": "errorMessage",
|
|
3277
|
+
"properties": {
|
|
3278
|
+
"notFoundId": "1"
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
"500": {
|
|
3287
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3288
|
+
"content": {
|
|
3289
|
+
"application/json": {
|
|
3290
|
+
"schema": {
|
|
3291
|
+
"$ref": "#/components/schemas/Error"
|
|
3292
|
+
},
|
|
3293
|
+
"examples": {
|
|
3294
|
+
"exampleResponse": {
|
|
3295
|
+
"value": {
|
|
3296
|
+
"name": "InternalServerError",
|
|
3297
|
+
"message": "errorMessage"
|
|
3298
|
+
}
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
},
|
|
2850
3307
|
"/identity/profile/{identity}/public": {
|
|
2851
3308
|
"get": {
|
|
2852
3309
|
"operationId": "identityProfileGetPublic",
|
|
@@ -3130,6 +3587,189 @@
|
|
|
3130
3587
|
}
|
|
3131
3588
|
}
|
|
3132
3589
|
}
|
|
3590
|
+
},
|
|
3591
|
+
"/identity/profile/admin/query": {
|
|
3592
|
+
"get": {
|
|
3593
|
+
"operationId": "identitiesProfileAdminList",
|
|
3594
|
+
"summary": "Get the list of profile data for identities including private properties",
|
|
3595
|
+
"tags": [
|
|
3596
|
+
"Identity Profile"
|
|
3597
|
+
],
|
|
3598
|
+
"parameters": [
|
|
3599
|
+
{
|
|
3600
|
+
"name": "publicFilters",
|
|
3601
|
+
"description": "The public filters to apply to the list, comma separated list with colon between key and value for each pair e.g. prop1:value1,prop2:value2.",
|
|
3602
|
+
"in": "query",
|
|
3603
|
+
"required": false,
|
|
3604
|
+
"schema": {
|
|
3605
|
+
"type": "string"
|
|
3606
|
+
}
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "privateFilters",
|
|
3610
|
+
"description": "The private filters to apply to the list, comma separated list with colon between key and value for each pair e.g. prop1:value1,prop2:value2.",
|
|
3611
|
+
"in": "query",
|
|
3612
|
+
"required": false,
|
|
3613
|
+
"schema": {
|
|
3614
|
+
"type": "string"
|
|
3615
|
+
}
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
"name": "publicPropertyNames",
|
|
3619
|
+
"description": "The public properties to get for the profile, defaults to all, should be a comma separated list.",
|
|
3620
|
+
"in": "query",
|
|
3621
|
+
"required": false,
|
|
3622
|
+
"schema": {
|
|
3623
|
+
"type": "string"
|
|
3624
|
+
}
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"name": "privatePropertyNames",
|
|
3628
|
+
"description": "The private properties to get for the profile, defaults to none, should be a comma separated list.",
|
|
3629
|
+
"in": "query",
|
|
3630
|
+
"required": false,
|
|
3631
|
+
"schema": {
|
|
3632
|
+
"type": "string"
|
|
3633
|
+
}
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
"name": "cursor",
|
|
3637
|
+
"description": "The cursor for paged requests.",
|
|
3638
|
+
"in": "query",
|
|
3639
|
+
"required": false,
|
|
3640
|
+
"schema": {
|
|
3641
|
+
"type": "string"
|
|
3642
|
+
}
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "limit",
|
|
3646
|
+
"description": "Number of items to return.",
|
|
3647
|
+
"in": "query",
|
|
3648
|
+
"required": false,
|
|
3649
|
+
"schema": {
|
|
3650
|
+
"type": "string"
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
],
|
|
3654
|
+
"security": [
|
|
3655
|
+
{
|
|
3656
|
+
"jwtBearerAuthScheme": []
|
|
3657
|
+
}
|
|
3658
|
+
],
|
|
3659
|
+
"responses": {
|
|
3660
|
+
"200": {
|
|
3661
|
+
"description": "Response to get an admin list of identities including private profile data.",
|
|
3662
|
+
"content": {
|
|
3663
|
+
"application/json": {
|
|
3664
|
+
"schema": {
|
|
3665
|
+
"$ref": "#/components/schemas/IdentityProfileAdminListResponse"
|
|
3666
|
+
},
|
|
3667
|
+
"examples": {
|
|
3668
|
+
"identitiesProfileAdminListResponseExample": {
|
|
3669
|
+
"value": {
|
|
3670
|
+
"items": [
|
|
3671
|
+
{
|
|
3672
|
+
"identity": "did:iota:tst:0xc57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
|
|
3673
|
+
"publicProfile": {
|
|
3674
|
+
"@context": "https://schema.org",
|
|
3675
|
+
"@type": "Person",
|
|
3676
|
+
"jobTitle": "Professor",
|
|
3677
|
+
"name": "Jane Doe"
|
|
3678
|
+
},
|
|
3679
|
+
"privateProfile": {
|
|
3680
|
+
"@context": "https://schema.org",
|
|
3681
|
+
"@type": "Person",
|
|
3682
|
+
"telephone": "(425) 123-4567"
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3685
|
+
],
|
|
3686
|
+
"cursor": "1"
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
},
|
|
3693
|
+
"400": {
|
|
3694
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
3695
|
+
"content": {
|
|
3696
|
+
"application/json": {
|
|
3697
|
+
"schema": {
|
|
3698
|
+
"$ref": "#/components/schemas/Error"
|
|
3699
|
+
},
|
|
3700
|
+
"examples": {
|
|
3701
|
+
"exampleResponse": {
|
|
3702
|
+
"value": {
|
|
3703
|
+
"name": "GeneralError",
|
|
3704
|
+
"message": "errorMessage",
|
|
3705
|
+
"properties": {
|
|
3706
|
+
"foo": "bar"
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
},
|
|
3714
|
+
"401": {
|
|
3715
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
3716
|
+
"content": {
|
|
3717
|
+
"application/json": {
|
|
3718
|
+
"schema": {
|
|
3719
|
+
"$ref": "#/components/schemas/Error"
|
|
3720
|
+
},
|
|
3721
|
+
"examples": {
|
|
3722
|
+
"exampleResponse": {
|
|
3723
|
+
"value": {
|
|
3724
|
+
"name": "UnauthorizedError",
|
|
3725
|
+
"message": "errorMessage"
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3731
|
+
},
|
|
3732
|
+
"403": {
|
|
3733
|
+
"description": "The operation that you tried to perform is not possible, see the content for more details.",
|
|
3734
|
+
"content": {
|
|
3735
|
+
"application/json": {
|
|
3736
|
+
"schema": {
|
|
3737
|
+
"$ref": "#/components/schemas/Error"
|
|
3738
|
+
},
|
|
3739
|
+
"examples": {
|
|
3740
|
+
"exampleResponse": {
|
|
3741
|
+
"value": {
|
|
3742
|
+
"name": "ForbiddenError",
|
|
3743
|
+
"message": "errorMessage",
|
|
3744
|
+
"properties": {
|
|
3745
|
+
"foo": "bar"
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
}
|
|
3751
|
+
}
|
|
3752
|
+
},
|
|
3753
|
+
"500": {
|
|
3754
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
3755
|
+
"content": {
|
|
3756
|
+
"application/json": {
|
|
3757
|
+
"schema": {
|
|
3758
|
+
"$ref": "#/components/schemas/Error"
|
|
3759
|
+
},
|
|
3760
|
+
"examples": {
|
|
3761
|
+
"exampleResponse": {
|
|
3762
|
+
"value": {
|
|
3763
|
+
"name": "InternalServerError",
|
|
3764
|
+
"message": "errorMessage"
|
|
3765
|
+
}
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3133
3773
|
}
|
|
3134
3774
|
},
|
|
3135
3775
|
"components": {
|
|
@@ -3191,6 +3831,47 @@
|
|
|
3191
3831
|
},
|
|
3192
3832
|
"description": "The data for the request."
|
|
3193
3833
|
},
|
|
3834
|
+
"IdentityProfileAdminListResponse": {
|
|
3835
|
+
"type": "object",
|
|
3836
|
+
"properties": {
|
|
3837
|
+
"items": {
|
|
3838
|
+
"type": "array",
|
|
3839
|
+
"items": {
|
|
3840
|
+
"type": "object",
|
|
3841
|
+
"properties": {
|
|
3842
|
+
"identity": {
|
|
3843
|
+
"type": "string",
|
|
3844
|
+
"description": "The identity."
|
|
3845
|
+
}
|
|
3846
|
+
},
|
|
3847
|
+
"required": [
|
|
3848
|
+
"identity"
|
|
3849
|
+
]
|
|
3850
|
+
},
|
|
3851
|
+
"description": "The identities."
|
|
3852
|
+
},
|
|
3853
|
+
"cursor": {
|
|
3854
|
+
"type": "string",
|
|
3855
|
+
"description": "An optional cursor, when defined can be used to call find to get more entities."
|
|
3856
|
+
}
|
|
3857
|
+
},
|
|
3858
|
+
"required": [
|
|
3859
|
+
"items"
|
|
3860
|
+
],
|
|
3861
|
+
"description": "The response payload."
|
|
3862
|
+
},
|
|
3863
|
+
"IdentityProfileAdminUpdateRequest": {
|
|
3864
|
+
"type": "object",
|
|
3865
|
+
"properties": {
|
|
3866
|
+
"publicProfile": {
|
|
3867
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
3868
|
+
},
|
|
3869
|
+
"privateProfile": {
|
|
3870
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdDocument"
|
|
3871
|
+
}
|
|
3872
|
+
},
|
|
3873
|
+
"description": "The data for the request."
|
|
3874
|
+
},
|
|
3194
3875
|
"IdentityProfileCreateRequest": {
|
|
3195
3876
|
"type": "object",
|
|
3196
3877
|
"properties": {
|