Skip to content

Commit a0396d9

Browse files
committed
fix: updated schema
1 parent c34290a commit a0396d9

File tree

2 files changed

+65
-21
lines changed

2 files changed

+65
-21
lines changed

lib/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,10 @@ export interface TeamAppCollaborator {
34323432
* unique identifier of collaborator
34333433
*/
34343434
id?: string
3435+
/**
3436+
* array of permissions for the collaborator (only applicable if the app is on a team)
3437+
*/
3438+
permissions?: TeamAppPermission[]
34353439
/**
34363440
* role in the team
34373441
*/

schema.json

Lines changed: 61 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,23 @@
16591659
"integer"
16601660
]
16611661
},
1662+
"config": {
1663+
"additionalProperties": false,
1664+
"description": "custom add-on provisioning options",
1665+
"example": {
1666+
"db-version": "1.2.3"
1667+
},
1668+
"patternProperties": {
1669+
"^\\w+$": {
1670+
"type": [
1671+
"string"
1672+
]
1673+
}
1674+
},
1675+
"type": [
1676+
"object"
1677+
]
1678+
},
16621679
"config_vars": {
16631680
"description": "config vars exposed to the owning app by this add-on",
16641681
"example": [
@@ -1816,21 +1833,7 @@
18161833
]
18171834
},
18181835
"config": {
1819-
"additionalProperties": false,
1820-
"description": "custom add-on provisioning options",
1821-
"example": {
1822-
"db-version": "1.2.3"
1823-
},
1824-
"patternProperties": {
1825-
"^\\w+$": {
1826-
"type": [
1827-
"string"
1828-
]
1829-
}
1830-
},
1831-
"type": [
1832-
"object"
1833-
]
1836+
"$ref": "#/definitions/add-on/definitions/config"
18341837
},
18351838
"confirm": {
18361839
"$ref": "#/definitions/add-on/definitions/confirm"
@@ -13300,6 +13303,15 @@
1330013303
"id": {
1330113304
"$ref": "#/definitions/collaborator/definitions/id"
1330213305
},
13306+
"permissions": {
13307+
"type": [
13308+
"array"
13309+
],
13310+
"items": {
13311+
"$ref": "#/definitions/team-app-permission"
13312+
},
13313+
"description": "array of permissions for the collaborator (only applicable if the app is on a team)"
13314+
},
1330313315
"role": {
1330413316
"$ref": "#/definitions/team/definitions/role"
1330513317
},
@@ -14668,6 +14680,22 @@
1466814680
}
1466914681
]
1467014682
},
14683+
"device_data": {
14684+
"type": [
14685+
"string",
14686+
"null"
14687+
],
14688+
"description": "Device data string generated by the client",
14689+
"example": "VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ=="
14690+
},
14691+
"nonce": {
14692+
"type": [
14693+
"string",
14694+
"null"
14695+
],
14696+
"description": "Nonce generated by Braintree hosted fields form",
14697+
"example": "VGhpcyBpcyBhIGdvb2QgZGF5IHRvIGRpZQ=="
14698+
},
1467114699
"address_1": {
1467214700
"type": [
1467314701
"string"
@@ -14677,14 +14705,16 @@
1467714705
},
1467814706
"address_2": {
1467914707
"type": [
14680-
"string"
14708+
"string",
14709+
"null"
1468114710
],
1468214711
"description": "street address line 2",
1468314712
"example": "Suite 103"
1468414713
},
1468514714
"card_number": {
1468614715
"type": [
14687-
"string"
14716+
"string",
14717+
"null"
1468814718
],
1468914719
"description": "encrypted card number of payment method",
1469014720
"example": "encrypted-card-number"
@@ -14705,21 +14735,24 @@
1470514735
},
1470614736
"cvv": {
1470714737
"type": [
14708-
"string"
14738+
"string",
14739+
"null"
1470914740
],
1471014741
"description": "card verification value",
1471114742
"example": "123"
1471214743
},
1471314744
"expiration_month": {
1471414745
"type": [
14715-
"string"
14746+
"string",
14747+
"null"
1471614748
],
1471714749
"description": "expiration month",
1471814750
"example": "11"
1471914751
},
1472014752
"expiration_year": {
1472114753
"type": [
14722-
"string"
14754+
"string",
14755+
"null"
1472314756
],
1472414757
"description": "expiration year",
1472514758
"example": "2014"
@@ -14740,7 +14773,8 @@
1474014773
},
1474114774
"other": {
1474214775
"type": [
14743-
"string"
14776+
"string",
14777+
"null"
1474414778
],
1474514779
"description": "metadata",
1474614780
"example": "Additional information for payment method"
@@ -14916,6 +14950,12 @@
1491614950
},
1491714951
"state": {
1491814952
"$ref": "#/definitions/team/definitions/state"
14953+
},
14954+
"nonce": {
14955+
"$ref": "#/definitions/team/definitions/nonce"
14956+
},
14957+
"device_data": {
14958+
"$ref": "#/definitions/team/definitions/device_data"
1491914959
}
1492014960
},
1492114961
"required": [

0 commit comments

Comments
 (0)