losant_rest 2.1.2 → 2.2.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.
data/docs/_schemas.md CHANGED
@@ -316,6 +316,10 @@
316
316
  * [Time Series Data](#time-series-data)
317
317
  * [Time Series Query](#time-series-query)
318
318
  * [User Credentials](#user-credentials)
319
+ * [User OAuth Client](#user-oauth-client)
320
+ * [User OAuth Client Patch](#user-oauth-client-patch)
321
+ * [User OAuth Client Post](#user-oauth-client-post)
322
+ * [User OAuth Clients](#user-oauth-clients)
319
323
  * [User OAuth Token](#user-oauth-token)
320
324
  * [User OAuth Token Patch](#user-oauth-token-patch)
321
325
  * [User OAuth Token Post](#user-oauth-token-post)
@@ -17295,6 +17299,13 @@ Schema for the body of an API Token creation request
17295
17299
  "userOauthTokens.*",
17296
17300
  "userOauthTokens.get",
17297
17301
  "userOauthTokens.post",
17302
+ "userOauthClient.*",
17303
+ "userOauthClient.get",
17304
+ "userOauthClient.patch",
17305
+ "userOauthClient.delete",
17306
+ "userOauthClients.*",
17307
+ "userOauthClients.get",
17308
+ "userOauthClients.post",
17298
17309
  "applicationTemplate.*",
17299
17310
  "applicationTemplate.get",
17300
17311
  "applicationTemplates.*",
@@ -220938,6 +220949,13 @@ Schema for the body of a GitHub login request
220938
220949
  "userOauthTokens.*",
220939
220950
  "userOauthTokens.get",
220940
220951
  "userOauthTokens.post",
220952
+ "userOauthClient.*",
220953
+ "userOauthClient.get",
220954
+ "userOauthClient.patch",
220955
+ "userOauthClient.delete",
220956
+ "userOauthClients.*",
220957
+ "userOauthClients.get",
220958
+ "userOauthClients.post",
220941
220959
  "applicationTemplate.*",
220942
220960
  "applicationTemplate.get",
220943
220961
  "applicationTemplates.*",
@@ -230647,6 +230665,9 @@ Schema for information about a sandbox user within an instance domain
230647
230665
  "notebook": {
230648
230666
  "type": "integer"
230649
230667
  },
230668
+ "oauthclient": {
230669
+ "type": "integer"
230670
+ },
230650
230671
  "privatefile": {
230651
230672
  "type": "integer"
230652
230673
  },
@@ -230755,6 +230776,9 @@ Schema for information about a sandbox user within an instance domain
230755
230776
  "notebookCount": {
230756
230777
  "type": "integer"
230757
230778
  },
230779
+ "oauthClientCount": {
230780
+ "type": "integer"
230781
+ },
230758
230782
  "resourceJobCount": {
230759
230783
  "type": "integer"
230760
230784
  },
@@ -231226,6 +231250,9 @@ Schema for a collection of instance associated sandboxes
231226
231250
  "notebook": {
231227
231251
  "type": "integer"
231228
231252
  },
231253
+ "oauthclient": {
231254
+ "type": "integer"
231255
+ },
231229
231256
  "privatefile": {
231230
231257
  "type": "integer"
231231
231258
  },
@@ -231334,6 +231361,9 @@ Schema for a collection of instance associated sandboxes
231334
231361
  "notebookCount": {
231335
231362
  "type": "integer"
231336
231363
  },
231364
+ "oauthClientCount": {
231365
+ "type": "integer"
231366
+ },
231337
231367
  "resourceJobCount": {
231338
231368
  "type": "integer"
231339
231369
  },
@@ -236004,6 +236034,15 @@ Schema for information about the currently authenticated user
236004
236034
  "type": "string",
236005
236035
  "maxLength": 1024
236006
236036
  },
236037
+ "state": {
236038
+ "type": "string",
236039
+ "maxLength": 1024
236040
+ },
236041
+ "country": {
236042
+ "type": "string",
236043
+ "minLength": 1,
236044
+ "maxLength": 1024
236045
+ },
236007
236046
  "tokenCutoff": {
236008
236047
  "type": "string",
236009
236048
  "format": "date-time"
@@ -236094,6 +236133,9 @@ Schema for information about the currently authenticated user
236094
236133
  "notebook": {
236095
236134
  "type": "integer"
236096
236135
  },
236136
+ "oauthclient": {
236137
+ "type": "integer"
236138
+ },
236097
236139
  "privatefile": {
236098
236140
  "type": "integer"
236099
236141
  },
@@ -236913,6 +236955,9 @@ Schema for information about the currently authenticated user
236913
236955
  "notebookCount": {
236914
236956
  "type": "integer"
236915
236957
  },
236958
+ "oauthClientCount": {
236959
+ "type": "integer"
236960
+ },
236916
236961
  "resourceJobCount": {
236917
236962
  "type": "integer"
236918
236963
  },
@@ -237142,6 +237187,8 @@ Schema for information about the currently authenticated user
237142
237187
  "lastName": "Name",
237143
237188
  "companyName": "Example, Inc.",
237144
237189
  "url": "https://example.com",
237190
+ "state": "Ohio",
237191
+ "country": "United States",
237145
237192
  "emailVerified": true,
237146
237193
  "needsToVerifyEmail": false,
237147
237194
  "twoFactorAuthEnabled": false,
@@ -237432,6 +237479,15 @@ Schema for the body of request to modify the current user
237432
237479
  "type": "string",
237433
237480
  "maxLength": 1024
237434
237481
  },
237482
+ "state": {
237483
+ "type": "string",
237484
+ "maxLength": 1024
237485
+ },
237486
+ "country": {
237487
+ "type": "string",
237488
+ "minLength": 1,
237489
+ "maxLength": 1024
237490
+ },
237435
237491
  "password": {
237436
237492
  "type": "string",
237437
237493
  "minLength": 12,
@@ -250307,6 +250363,13 @@ SAML Response body for login
250307
250363
  "userOauthTokens.*",
250308
250364
  "userOauthTokens.get",
250309
250365
  "userOauthTokens.post",
250366
+ "userOauthClient.*",
250367
+ "userOauthClient.get",
250368
+ "userOauthClient.patch",
250369
+ "userOauthClient.delete",
250370
+ "userOauthClients.*",
250371
+ "userOauthClients.get",
250372
+ "userOauthClients.post",
250310
250373
  "applicationTemplate.*",
250311
250374
  "applicationTemplate.get",
250312
250375
  "applicationTemplates.*",
@@ -253796,6 +253859,13 @@ Schema for the body of a User authentication request
253796
253859
  "userOauthTokens.*",
253797
253860
  "userOauthTokens.get",
253798
253861
  "userOauthTokens.post",
253862
+ "userOauthClient.*",
253863
+ "userOauthClient.get",
253864
+ "userOauthClient.patch",
253865
+ "userOauthClient.delete",
253866
+ "userOauthClients.*",
253867
+ "userOauthClients.get",
253868
+ "userOauthClients.post",
253799
253869
  "applicationTemplate.*",
253800
253870
  "applicationTemplate.get",
253801
253871
  "applicationTemplates.*",
@@ -253858,6 +253928,685 @@ Schema for the body of a User authentication request
253858
253928
 
253859
253929
  <br/>
253860
253930
 
253931
+ ## User OAuth Client
253932
+
253933
+ Schema for a single private OAuth client
253934
+
253935
+ ### <a name="user-oauth-client-schema"></a> Schema
253936
+
253937
+ ```json
253938
+ {
253939
+ "$schema": "http://json-schema.org/draft-07/schema#",
253940
+ "type": "object",
253941
+ "properties": {
253942
+ "id": {
253943
+ "type": "string",
253944
+ "pattern": "^[A-Fa-f\\d]{24}$"
253945
+ },
253946
+ "creationDate": {
253947
+ "type": "string",
253948
+ "format": "date-time"
253949
+ },
253950
+ "lastUpdated": {
253951
+ "type": "string",
253952
+ "format": "date-time"
253953
+ },
253954
+ "client_id": {
253955
+ "type": "string",
253956
+ "description": "Unique client identifier"
253957
+ },
253958
+ "client_secret": {
253959
+ "type": "string",
253960
+ "description": "Client secret. Only ever included in the response to the initial creation request."
253961
+ },
253962
+ "client_name": {
253963
+ "type": "string",
253964
+ "minLength": 1,
253965
+ "maxLength": 255
253966
+ },
253967
+ "description": {
253968
+ "type": "string",
253969
+ "maxLength": 32767
253970
+ },
253971
+ "client_uri": {
253972
+ "type": "string",
253973
+ "format": "uri",
253974
+ "maxLength": 1024
253975
+ },
253976
+ "logo_uri": {
253977
+ "type": "string",
253978
+ "format": "uri",
253979
+ "maxLength": 32768,
253980
+ "description": "URL of the client's logo. May be an http(s) URL or a data:image/* URI."
253981
+ },
253982
+ "redirect_uris": {
253983
+ "type": "array",
253984
+ "minItems": 1,
253985
+ "maxItems": 25,
253986
+ "items": {
253987
+ "type": "string",
253988
+ "format": "uri",
253989
+ "maxLength": 1024
253990
+ },
253991
+ "description": "Array of redirect URIs for use in redirect-based flows"
253992
+ },
253993
+ "grant_types": {
253994
+ "type": "array",
253995
+ "items": {
253996
+ "type": "string",
253997
+ "enum": [
253998
+ "authorization_code",
253999
+ "refresh_token"
254000
+ ]
254001
+ },
254002
+ "description": "Array of OAuth 2.0 grant types"
254003
+ },
254004
+ "response_types": {
254005
+ "type": "array",
254006
+ "items": {
254007
+ "type": "string",
254008
+ "enum": [
254009
+ "code"
254010
+ ]
254011
+ },
254012
+ "description": "Array of OAuth 2.0 response types"
254013
+ },
254014
+ "token_endpoint_auth_method": {
254015
+ "type": "string",
254016
+ "description": "Authentication method for the token endpoint",
254017
+ "enum": [
254018
+ "client_secret_basic",
254019
+ "client_secret_post",
254020
+ "none"
254021
+ ]
254022
+ },
254023
+ "scope": {
254024
+ "type": "array",
254025
+ "uniqueItems": true,
254026
+ "items": {
254027
+ "type": "string",
254028
+ "description": "OAuth-supported user-context API scope. See the `scopes_supported` field of the OAuth authorization server metadata document at /.well-known/oauth-authorization-server for the authoritative list.",
254029
+ "enum": [
254030
+ "all.Application.read",
254031
+ "all.Application.bounded",
254032
+ "only.Organization.read",
254033
+ "only.Organization.bounded",
254034
+ "all.Organization.read",
254035
+ "all.Organization.bounded",
254036
+ "only.User.read"
254037
+ ]
254038
+ },
254039
+ "description": "API scopes this client may request"
254040
+ },
254041
+ "contacts": {
254042
+ "type": "array",
254043
+ "maxItems": 10,
254044
+ "items": {
254045
+ "type": "string",
254046
+ "format": "email",
254047
+ "maxLength": 1024
254048
+ },
254049
+ "description": "Contact email addresses for this client"
254050
+ },
254051
+ "tos_uri": {
254052
+ "type": "string",
254053
+ "format": "uri",
254054
+ "maxLength": 1024
254055
+ },
254056
+ "policy_uri": {
254057
+ "type": "string",
254058
+ "format": "uri",
254059
+ "maxLength": 1024
254060
+ }
254061
+ }
254062
+ }
254063
+ ```
254064
+ ### <a name="user-oauth-client-example"></a> Example
254065
+
254066
+ ```json
254067
+ {
254068
+ "id": "575ec7417ae143cd83dc4a95",
254069
+ "creationDate": "2016-06-13T04:00:00.000Z",
254070
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
254071
+ "client_id": "575ec7417ae143cd83dc4a95",
254072
+ "client_secret": "8f14e45fceea167a5a36dedd4bea2543",
254073
+ "client_name": "My Private Client",
254074
+ "description": "Private OAuth client for automation",
254075
+ "client_uri": "https://example.com",
254076
+ "logo_uri": "https://example.com/logo.png",
254077
+ "redirect_uris": [
254078
+ "https://example.com/callback"
254079
+ ],
254080
+ "grant_types": [
254081
+ "authorization_code",
254082
+ "refresh_token"
254083
+ ],
254084
+ "response_types": [
254085
+ "code"
254086
+ ],
254087
+ "token_endpoint_auth_method": "client_secret_basic",
254088
+ "scope": [
254089
+ "only.User.read",
254090
+ "all.Application.read"
254091
+ ],
254092
+ "contacts": [
254093
+ "admin@example.com"
254094
+ ],
254095
+ "tos_uri": "https://example.com/tos",
254096
+ "policy_uri": "https://example.com/privacy"
254097
+ }
254098
+ ```
254099
+
254100
+ <br/>
254101
+
254102
+ ## User OAuth Client Patch
254103
+
254104
+ Schema for the body of a private OAuth client modification request
254105
+
254106
+ ### <a name="user-oauth-client-patch-schema"></a> Schema
254107
+
254108
+ ```json
254109
+ {
254110
+ "$schema": "http://json-schema.org/draft-07/schema#",
254111
+ "type": "object",
254112
+ "properties": {
254113
+ "client_name": {
254114
+ "type": "string",
254115
+ "minLength": 1,
254116
+ "maxLength": 255
254117
+ },
254118
+ "description": {
254119
+ "type": "string",
254120
+ "maxLength": 32767
254121
+ },
254122
+ "client_uri": {
254123
+ "oneOf": [
254124
+ {
254125
+ "type": "string",
254126
+ "format": "uri",
254127
+ "maxLength": 1024
254128
+ },
254129
+ {
254130
+ "type": "null"
254131
+ }
254132
+ ]
254133
+ },
254134
+ "logo_uri": {
254135
+ "oneOf": [
254136
+ {
254137
+ "type": "string",
254138
+ "format": "uri",
254139
+ "maxLength": 32768,
254140
+ "description": "URL of the client's logo. May be an http(s) URL or a data:image/* URI."
254141
+ },
254142
+ {
254143
+ "type": "null"
254144
+ }
254145
+ ]
254146
+ },
254147
+ "redirect_uris": {
254148
+ "type": "array",
254149
+ "minItems": 1,
254150
+ "maxItems": 25,
254151
+ "items": {
254152
+ "type": "string",
254153
+ "format": "uri",
254154
+ "maxLength": 1024
254155
+ },
254156
+ "description": "Array of redirect URIs for use in redirect-based flows"
254157
+ },
254158
+ "token_endpoint_auth_method": {
254159
+ "type": "string",
254160
+ "description": "Authentication method for the token endpoint",
254161
+ "enum": [
254162
+ "client_secret_basic",
254163
+ "client_secret_post",
254164
+ "none"
254165
+ ]
254166
+ },
254167
+ "scope": {
254168
+ "type": "array",
254169
+ "uniqueItems": true,
254170
+ "items": {
254171
+ "type": "string",
254172
+ "description": "OAuth-supported user-context API scope. See the `scopes_supported` field of the OAuth authorization server metadata document at /.well-known/oauth-authorization-server for the authoritative list.",
254173
+ "enum": [
254174
+ "all.Application.read",
254175
+ "all.Application.bounded",
254176
+ "only.Organization.read",
254177
+ "only.Organization.bounded",
254178
+ "all.Organization.read",
254179
+ "all.Organization.bounded",
254180
+ "only.User.read"
254181
+ ]
254182
+ },
254183
+ "description": "API scopes this client may request"
254184
+ },
254185
+ "contacts": {
254186
+ "type": "array",
254187
+ "maxItems": 10,
254188
+ "items": {
254189
+ "type": "string",
254190
+ "format": "email",
254191
+ "maxLength": 1024
254192
+ },
254193
+ "description": "Contact email addresses for this client"
254194
+ },
254195
+ "tos_uri": {
254196
+ "oneOf": [
254197
+ {
254198
+ "type": "string",
254199
+ "format": "uri",
254200
+ "maxLength": 1024
254201
+ },
254202
+ {
254203
+ "type": "null"
254204
+ }
254205
+ ]
254206
+ },
254207
+ "policy_uri": {
254208
+ "oneOf": [
254209
+ {
254210
+ "type": "string",
254211
+ "format": "uri",
254212
+ "maxLength": 1024
254213
+ },
254214
+ {
254215
+ "type": "null"
254216
+ }
254217
+ ]
254218
+ }
254219
+ },
254220
+ "additionalProperties": false
254221
+ }
254222
+ ```
254223
+ ### <a name="user-oauth-client-patch-example"></a> Example
254224
+
254225
+ ```json
254226
+ {
254227
+ "client_name": "Updated Private Client Name",
254228
+ "description": "Updated description",
254229
+ "redirect_uris": [
254230
+ "https://example.com/new-callback"
254231
+ ]
254232
+ }
254233
+ ```
254234
+
254235
+ <br/>
254236
+
254237
+ ## User OAuth Client Post
254238
+
254239
+ Schema for the body of a private OAuth client creation request
254240
+
254241
+ ### <a name="user-oauth-client-post-schema"></a> Schema
254242
+
254243
+ ```json
254244
+ {
254245
+ "$schema": "http://json-schema.org/draft-07/schema#",
254246
+ "type": "object",
254247
+ "properties": {
254248
+ "client_name": {
254249
+ "type": "string",
254250
+ "minLength": 1,
254251
+ "maxLength": 255
254252
+ },
254253
+ "description": {
254254
+ "type": "string",
254255
+ "maxLength": 32767
254256
+ },
254257
+ "client_uri": {
254258
+ "oneOf": [
254259
+ {
254260
+ "type": "string",
254261
+ "format": "uri",
254262
+ "maxLength": 1024
254263
+ },
254264
+ {
254265
+ "type": "null"
254266
+ }
254267
+ ]
254268
+ },
254269
+ "logo_uri": {
254270
+ "oneOf": [
254271
+ {
254272
+ "type": "string",
254273
+ "format": "uri",
254274
+ "maxLength": 32768,
254275
+ "description": "URL of the client's logo. May be an http(s) URL or a data:image/* URI."
254276
+ },
254277
+ {
254278
+ "type": "null"
254279
+ }
254280
+ ]
254281
+ },
254282
+ "redirect_uris": {
254283
+ "type": "array",
254284
+ "minItems": 1,
254285
+ "maxItems": 25,
254286
+ "items": {
254287
+ "type": "string",
254288
+ "format": "uri",
254289
+ "maxLength": 1024
254290
+ },
254291
+ "description": "Array of redirect URIs for use in redirect-based flows"
254292
+ },
254293
+ "token_endpoint_auth_method": {
254294
+ "type": "string",
254295
+ "description": "Authentication method for the token endpoint",
254296
+ "enum": [
254297
+ "client_secret_basic",
254298
+ "client_secret_post",
254299
+ "none"
254300
+ ]
254301
+ },
254302
+ "scope": {
254303
+ "type": "array",
254304
+ "uniqueItems": true,
254305
+ "items": {
254306
+ "type": "string",
254307
+ "description": "OAuth-supported user-context API scope. See the `scopes_supported` field of the OAuth authorization server metadata document at /.well-known/oauth-authorization-server for the authoritative list.",
254308
+ "enum": [
254309
+ "all.Application.read",
254310
+ "all.Application.bounded",
254311
+ "only.Organization.read",
254312
+ "only.Organization.bounded",
254313
+ "all.Organization.read",
254314
+ "all.Organization.bounded",
254315
+ "only.User.read"
254316
+ ]
254317
+ },
254318
+ "description": "API scopes this client may request"
254319
+ },
254320
+ "contacts": {
254321
+ "type": "array",
254322
+ "maxItems": 10,
254323
+ "items": {
254324
+ "type": "string",
254325
+ "format": "email",
254326
+ "maxLength": 1024
254327
+ },
254328
+ "description": "Contact email addresses for this client"
254329
+ },
254330
+ "tos_uri": {
254331
+ "oneOf": [
254332
+ {
254333
+ "type": "string",
254334
+ "format": "uri",
254335
+ "maxLength": 1024
254336
+ },
254337
+ {
254338
+ "type": "null"
254339
+ }
254340
+ ]
254341
+ },
254342
+ "policy_uri": {
254343
+ "oneOf": [
254344
+ {
254345
+ "type": "string",
254346
+ "format": "uri",
254347
+ "maxLength": 1024
254348
+ },
254349
+ {
254350
+ "type": "null"
254351
+ }
254352
+ ]
254353
+ }
254354
+ },
254355
+ "additionalProperties": false,
254356
+ "required": [
254357
+ "client_name",
254358
+ "redirect_uris"
254359
+ ]
254360
+ }
254361
+ ```
254362
+ ### <a name="user-oauth-client-post-example"></a> Example
254363
+
254364
+ ```json
254365
+ {
254366
+ "client_name": "My Private Client",
254367
+ "description": "Private OAuth client for automation",
254368
+ "client_uri": "https://example.com",
254369
+ "logo_uri": "https://example.com/logo.png",
254370
+ "redirect_uris": [
254371
+ "https://example.com/callback"
254372
+ ],
254373
+ "token_endpoint_auth_method": "client_secret_basic",
254374
+ "scope": [
254375
+ "only.User.read",
254376
+ "all.Application.read"
254377
+ ],
254378
+ "contacts": [
254379
+ "admin@example.com"
254380
+ ],
254381
+ "tos_uri": "https://example.com/tos",
254382
+ "policy_uri": "https://example.com/privacy"
254383
+ }
254384
+ ```
254385
+
254386
+ <br/>
254387
+
254388
+ ## User OAuth Clients
254389
+
254390
+ Schema for a collection of private OAuth clients
254391
+
254392
+ ### <a name="user-oauth-clients-schema"></a> Schema
254393
+
254394
+ ```json
254395
+ {
254396
+ "$schema": "http://json-schema.org/draft-07/schema#",
254397
+ "type": "object",
254398
+ "properties": {
254399
+ "items": {
254400
+ "type": "array",
254401
+ "items": {
254402
+ "title": "User OAuth Client",
254403
+ "description": "Schema for a single private OAuth client",
254404
+ "type": "object",
254405
+ "properties": {
254406
+ "id": {
254407
+ "type": "string",
254408
+ "pattern": "^[A-Fa-f\\d]{24}$"
254409
+ },
254410
+ "creationDate": {
254411
+ "type": "string",
254412
+ "format": "date-time"
254413
+ },
254414
+ "lastUpdated": {
254415
+ "type": "string",
254416
+ "format": "date-time"
254417
+ },
254418
+ "client_id": {
254419
+ "type": "string",
254420
+ "description": "Unique client identifier"
254421
+ },
254422
+ "client_secret": {
254423
+ "type": "string",
254424
+ "description": "Client secret. Only ever included in the response to the initial creation request."
254425
+ },
254426
+ "client_name": {
254427
+ "type": "string",
254428
+ "minLength": 1,
254429
+ "maxLength": 255
254430
+ },
254431
+ "description": {
254432
+ "type": "string",
254433
+ "maxLength": 32767
254434
+ },
254435
+ "client_uri": {
254436
+ "type": "string",
254437
+ "format": "uri",
254438
+ "maxLength": 1024
254439
+ },
254440
+ "logo_uri": {
254441
+ "type": "string",
254442
+ "format": "uri",
254443
+ "maxLength": 32768,
254444
+ "description": "URL of the client's logo. May be an http(s) URL or a data:image/* URI."
254445
+ },
254446
+ "redirect_uris": {
254447
+ "type": "array",
254448
+ "minItems": 1,
254449
+ "maxItems": 25,
254450
+ "items": {
254451
+ "type": "string",
254452
+ "format": "uri",
254453
+ "maxLength": 1024
254454
+ },
254455
+ "description": "Array of redirect URIs for use in redirect-based flows"
254456
+ },
254457
+ "grant_types": {
254458
+ "type": "array",
254459
+ "items": {
254460
+ "type": "string",
254461
+ "enum": [
254462
+ "authorization_code",
254463
+ "refresh_token"
254464
+ ]
254465
+ },
254466
+ "description": "Array of OAuth 2.0 grant types"
254467
+ },
254468
+ "response_types": {
254469
+ "type": "array",
254470
+ "items": {
254471
+ "type": "string",
254472
+ "enum": [
254473
+ "code"
254474
+ ]
254475
+ },
254476
+ "description": "Array of OAuth 2.0 response types"
254477
+ },
254478
+ "token_endpoint_auth_method": {
254479
+ "type": "string",
254480
+ "description": "Authentication method for the token endpoint",
254481
+ "enum": [
254482
+ "client_secret_basic",
254483
+ "client_secret_post",
254484
+ "none"
254485
+ ]
254486
+ },
254487
+ "scope": {
254488
+ "type": "array",
254489
+ "uniqueItems": true,
254490
+ "items": {
254491
+ "type": "string",
254492
+ "description": "OAuth-supported user-context API scope. See the `scopes_supported` field of the OAuth authorization server metadata document at /.well-known/oauth-authorization-server for the authoritative list.",
254493
+ "enum": [
254494
+ "all.Application.read",
254495
+ "all.Application.bounded",
254496
+ "only.Organization.read",
254497
+ "only.Organization.bounded",
254498
+ "all.Organization.read",
254499
+ "all.Organization.bounded",
254500
+ "only.User.read"
254501
+ ]
254502
+ },
254503
+ "description": "API scopes this client may request"
254504
+ },
254505
+ "contacts": {
254506
+ "type": "array",
254507
+ "maxItems": 10,
254508
+ "items": {
254509
+ "type": "string",
254510
+ "format": "email",
254511
+ "maxLength": 1024
254512
+ },
254513
+ "description": "Contact email addresses for this client"
254514
+ },
254515
+ "tos_uri": {
254516
+ "type": "string",
254517
+ "format": "uri",
254518
+ "maxLength": 1024
254519
+ },
254520
+ "policy_uri": {
254521
+ "type": "string",
254522
+ "format": "uri",
254523
+ "maxLength": 1024
254524
+ }
254525
+ }
254526
+ }
254527
+ },
254528
+ "count": {
254529
+ "type": "integer"
254530
+ },
254531
+ "totalCount": {
254532
+ "type": "integer"
254533
+ },
254534
+ "perPage": {
254535
+ "type": "integer"
254536
+ },
254537
+ "page": {
254538
+ "type": "integer"
254539
+ },
254540
+ "filter": {
254541
+ "type": "string"
254542
+ },
254543
+ "filterField": {
254544
+ "type": "string"
254545
+ },
254546
+ "sortField": {
254547
+ "type": "string"
254548
+ },
254549
+ "sortDirection": {
254550
+ "type": "string",
254551
+ "enum": [
254552
+ "asc",
254553
+ "desc",
254554
+ "ASC",
254555
+ "DESC",
254556
+ ""
254557
+ ]
254558
+ }
254559
+ }
254560
+ }
254561
+ ```
254562
+ ### <a name="user-oauth-clients-example"></a> Example
254563
+
254564
+ ```json
254565
+ {
254566
+ "items": [
254567
+ {
254568
+ "id": "575ec7417ae143cd83dc4a95",
254569
+ "creationDate": "2016-06-13T04:00:00.000Z",
254570
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
254571
+ "client_id": "575ec7417ae143cd83dc4a95",
254572
+ "client_secret": "8f14e45fceea167a5a36dedd4bea2543",
254573
+ "client_name": "My Private Client",
254574
+ "description": "Private OAuth client for automation",
254575
+ "client_uri": "https://example.com",
254576
+ "logo_uri": "https://example.com/logo.png",
254577
+ "redirect_uris": [
254578
+ "https://example.com/callback"
254579
+ ],
254580
+ "grant_types": [
254581
+ "authorization_code",
254582
+ "refresh_token"
254583
+ ],
254584
+ "response_types": [
254585
+ "code"
254586
+ ],
254587
+ "token_endpoint_auth_method": "client_secret_basic",
254588
+ "scope": [
254589
+ "only.User.read",
254590
+ "all.Application.read"
254591
+ ],
254592
+ "contacts": [
254593
+ "admin@example.com"
254594
+ ],
254595
+ "tos_uri": "https://example.com/tos",
254596
+ "policy_uri": "https://example.com/privacy"
254597
+ }
254598
+ ],
254599
+ "count": 1,
254600
+ "totalCount": 1,
254601
+ "perPage": 1000,
254602
+ "page": 0,
254603
+ "sortField": "client_name",
254604
+ "sortDirection": "asc"
254605
+ }
254606
+ ```
254607
+
254608
+ <br/>
254609
+
253861
254610
  ## User OAuth Token
253862
254611
 
253863
254612
  Schema for a single OAuth Token
@@ -254821,6 +255570,15 @@ Schema for the body of a User creation request
254821
255570
  "type": "string",
254822
255571
  "maxLength": 1024
254823
255572
  },
255573
+ "state": {
255574
+ "type": "string",
255575
+ "maxLength": 1024
255576
+ },
255577
+ "country": {
255578
+ "type": "string",
255579
+ "minLength": 1,
255580
+ "maxLength": 1024
255581
+ },
254824
255582
  "oauth": {
254825
255583
  "type": "object",
254826
255584
  "properties": {
@@ -255356,6 +256114,13 @@ Schema for the body of a User creation request
255356
256114
  "userOauthTokens.*",
255357
256115
  "userOauthTokens.get",
255358
256116
  "userOauthTokens.post",
256117
+ "userOauthClient.*",
256118
+ "userOauthClient.get",
256119
+ "userOauthClient.patch",
256120
+ "userOauthClient.delete",
256121
+ "userOauthClients.*",
256122
+ "userOauthClients.get",
256123
+ "userOauthClients.post",
255359
256124
  "applicationTemplate.*",
255360
256125
  "applicationTemplate.get",
255361
256126
  "applicationTemplates.*",
@@ -255438,6 +256203,8 @@ Schema for the body of a User creation request
255438
256203
  "lastName": "Name",
255439
256204
  "companyName": "Example, Inc.",
255440
256205
  "url": "https://example.com",
256206
+ "state": "Ohio",
256207
+ "country": "United States",
255441
256208
  "password": "The new password1!",
255442
256209
  "acceptTerms": "on"
255443
256210
  }