Skip to content

Commit 3312861

Browse files
authored
chore: update oai specs (twilio#113)
1 parent cdd2964 commit 3312861

33 files changed

+8585
-13249
lines changed

src/services/twilio-api/twilio_accounts_v1.json

Lines changed: 46 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,19 @@
44
"accounts.v1.auth_token_promotion": {
55
"properties": {
66
"account_sid": {
7-
"maxLength": 34,
8-
"minLength": 34,
9-
"pattern": "^AC[0-9a-fA-F]{32}$",
10-
"type": "string"
7+
"$ref": "#/components/schemas/sid_AC"
118
},
129
"auth_token": {
13-
"type": "string"
10+
"$ref": "#/components/schemas/string"
1411
},
1512
"date_created": {
16-
"format": "date-time",
17-
"type": "string"
13+
"$ref": "#/components/schemas/date_time_iso8601"
1814
},
1915
"date_updated": {
20-
"format": "date-time",
21-
"type": "string"
16+
"$ref": "#/components/schemas/date_time_iso8601"
2217
},
2318
"url": {
24-
"format": "uri",
25-
"type": "string"
19+
"$ref": "#/components/schemas/url"
2620
}
2721
},
2822
"type": "object"
@@ -34,92 +28,91 @@
3428
"accounts.v1.credential.credential_aws": {
3529
"properties": {
3630
"account_sid": {
37-
"maxLength": 34,
38-
"minLength": 34,
39-
"pattern": "^AC[0-9a-fA-F]{32}$",
40-
"type": "string"
31+
"$ref": "#/components/schemas/sid_AC"
4132
},
4233
"date_created": {
43-
"format": "date-time",
44-
"type": "string"
34+
"$ref": "#/components/schemas/date_time_iso8601"
4535
},
4636
"date_updated": {
47-
"format": "date-time",
48-
"type": "string"
37+
"$ref": "#/components/schemas/date_time_iso8601"
4938
},
5039
"friendly_name": {
51-
"type": "string"
40+
"$ref": "#/components/schemas/string"
5241
},
5342
"sid": {
54-
"maxLength": 34,
55-
"minLength": 34,
56-
"pattern": "^CR[0-9a-fA-F]{32}$",
57-
"type": "string"
43+
"$ref": "#/components/schemas/sid_CR"
5844
},
5945
"url": {
60-
"format": "uri",
61-
"type": "string"
46+
"$ref": "#/components/schemas/url"
6247
}
6348
},
6449
"type": "object"
6550
},
6651
"accounts.v1.credential.credential_public_key": {
6752
"properties": {
6853
"account_sid": {
69-
"maxLength": 34,
70-
"minLength": 34,
71-
"pattern": "^AC[0-9a-fA-F]{32}$",
72-
"type": "string"
54+
"$ref": "#/components/schemas/sid_AC"
7355
},
7456
"date_created": {
75-
"format": "date-time",
76-
"type": "string"
57+
"$ref": "#/components/schemas/date_time_iso8601"
7758
},
7859
"date_updated": {
79-
"format": "date-time",
80-
"type": "string"
60+
"$ref": "#/components/schemas/date_time_iso8601"
8161
},
8262
"friendly_name": {
83-
"type": "string"
63+
"$ref": "#/components/schemas/string"
8464
},
8565
"sid": {
86-
"maxLength": 34,
87-
"minLength": 34,
88-
"pattern": "^CR[0-9a-fA-F]{32}$",
89-
"type": "string"
66+
"$ref": "#/components/schemas/sid_CR"
9067
},
9168
"url": {
92-
"format": "uri",
93-
"type": "string"
69+
"$ref": "#/components/schemas/url"
9470
}
9571
},
9672
"type": "object"
9773
},
9874
"accounts.v1.secondary_auth_token": {
9975
"properties": {
10076
"account_sid": {
101-
"maxLength": 34,
102-
"minLength": 34,
103-
"pattern": "^AC[0-9a-fA-F]{32}$",
104-
"type": "string"
77+
"$ref": "#/components/schemas/sid_AC"
10578
},
10679
"date_created": {
107-
"format": "date-time",
108-
"type": "string"
80+
"$ref": "#/components/schemas/date_time_iso8601"
10981
},
11082
"date_updated": {
111-
"format": "date-time",
112-
"type": "string"
83+
"$ref": "#/components/schemas/date_time_iso8601"
11384
},
11485
"secondary_auth_token": {
115-
"type": "string"
86+
"$ref": "#/components/schemas/string"
11687
},
11788
"url": {
118-
"format": "uri",
119-
"type": "string"
89+
"$ref": "#/components/schemas/url"
12090
}
12191
},
12292
"type": "object"
93+
},
94+
"date_time_iso8601": {
95+
"format": "date-time",
96+
"type": "string"
97+
},
98+
"sid_AC": {
99+
"maxLength": 34,
100+
"minLength": 34,
101+
"pattern": "^AC[0-9a-fA-F]{32}$",
102+
"type": "string"
103+
},
104+
"sid_CR": {
105+
"maxLength": 34,
106+
"minLength": 34,
107+
"pattern": "^CR[0-9a-fA-F]{32}$",
108+
"type": "string"
109+
},
110+
"string": {
111+
"type": "string"
112+
},
113+
"url": {
114+
"format": "uri",
115+
"type": "string"
123116
}
124117
},
125118
"securitySchemes": {
@@ -142,7 +135,7 @@
142135
},
143136
"termsOfService": "https://www.twilio.com/legal/tos",
144137
"title": "Twilio - Accounts",
145-
"version": "5.16.1"
138+
"version": "1.8.0"
146139
},
147140
"openapi": "3.0.1",
148141
"paths": {

0 commit comments

Comments
 (0)