@imbue-ai/detent 1.0.1

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.
Files changed (104) hide show
  1. package/README.md +246 -0
  2. package/dist/src/builtinPatterns/any.json +3 -0
  3. package/dist/src/builtinPatterns/builtinPatterns/any.json +3 -0
  4. package/dist/src/builtinPatterns.d.ts +5 -0
  5. package/dist/src/builtinPatterns.d.ts.map +1 -0
  6. package/dist/src/builtinPatterns.js +50 -0
  7. package/dist/src/builtinPatterns.js.map +1 -0
  8. package/dist/src/check.d.ts +2 -0
  9. package/dist/src/check.d.ts.map +1 -0
  10. package/dist/src/check.js +8 -0
  11. package/dist/src/check.js.map +1 -0
  12. package/dist/src/cli.d.ts +3 -0
  13. package/dist/src/cli.d.ts.map +1 -0
  14. package/dist/src/cli.js +64 -0
  15. package/dist/src/cli.js.map +1 -0
  16. package/dist/src/config.d.ts +18 -0
  17. package/dist/src/config.d.ts.map +1 -0
  18. package/dist/src/config.js +157 -0
  19. package/dist/src/config.js.map +1 -0
  20. package/dist/src/curl.d.ts +5 -0
  21. package/dist/src/curl.d.ts.map +1 -0
  22. package/dist/src/curl.js +394 -0
  23. package/dist/src/curl.js.map +1 -0
  24. package/dist/src/decomposedRequest.d.ts +24 -0
  25. package/dist/src/decomposedRequest.d.ts.map +1 -0
  26. package/dist/src/decomposedRequest.js +51 -0
  27. package/dist/src/decomposedRequest.js.map +1 -0
  28. package/dist/src/detentConfig.d.ts +15 -0
  29. package/dist/src/detentConfig.d.ts.map +1 -0
  30. package/dist/src/detentConfig.js +169 -0
  31. package/dist/src/detentConfig.js.map +1 -0
  32. package/dist/src/dump.d.ts +6 -0
  33. package/dist/src/dump.d.ts.map +1 -0
  34. package/dist/src/dump.js +14 -0
  35. package/dist/src/dump.js.map +1 -0
  36. package/dist/src/environment.d.ts +3 -0
  37. package/dist/src/environment.d.ts.map +1 -0
  38. package/dist/src/environment.js +15 -0
  39. package/dist/src/environment.js.map +1 -0
  40. package/dist/src/index.d.ts +9 -0
  41. package/dist/src/index.d.ts.map +1 -0
  42. package/dist/src/index.js +7 -0
  43. package/dist/src/index.js.map +1 -0
  44. package/dist/src/patterns/builtin/any.json +3 -0
  45. package/dist/src/patterns/builtin/builtin/any.json +3 -0
  46. package/dist/src/patterns/builtin/builtin/aws.json +326 -0
  47. package/dist/src/patterns/builtin/builtin/calendly.json +274 -0
  48. package/dist/src/patterns/builtin/builtin/coolify.json +238 -0
  49. package/dist/src/patterns/builtin/builtin/discord.json +157 -0
  50. package/dist/src/patterns/builtin/builtin/dropbox.json +115 -0
  51. package/dist/src/patterns/builtin/builtin/figma.json +228 -0
  52. package/dist/src/patterns/builtin/builtin/github.json +248 -0
  53. package/dist/src/patterns/builtin/builtin/gitlab.json +262 -0
  54. package/dist/src/patterns/builtin/builtin/google-analytics.json +155 -0
  55. package/dist/src/patterns/builtin/builtin/google-calendar.json +227 -0
  56. package/dist/src/patterns/builtin/builtin/google-directions.json +67 -0
  57. package/dist/src/patterns/builtin/builtin/google-docs.json +102 -0
  58. package/dist/src/patterns/builtin/builtin/google-drive.json +162 -0
  59. package/dist/src/patterns/builtin/builtin/google-gmail.json +257 -0
  60. package/dist/src/patterns/builtin/builtin/google-people.json +142 -0
  61. package/dist/src/patterns/builtin/builtin/google-sheets.json +115 -0
  62. package/dist/src/patterns/builtin/builtin/linear.json +12 -0
  63. package/dist/src/patterns/builtin/builtin/mailchimp.json +263 -0
  64. package/dist/src/patterns/builtin/builtin/notion.json +230 -0
  65. package/dist/src/patterns/builtin/builtin/sentry.json +172 -0
  66. package/dist/src/patterns/builtin/builtin/slack.json +221 -0
  67. package/dist/src/patterns/builtin/builtin/stripe.json +347 -0
  68. package/dist/src/patterns/builtin/builtin/telegram.json +89 -0
  69. package/dist/src/patterns/builtin/builtin/umami.json +172 -0
  70. package/dist/src/patterns/builtin/builtin/yelp.json +147 -0
  71. package/dist/src/patterns/builtin/builtin/zoom.json +192 -0
  72. package/dist/src/patterns/requestPattern.d.ts +33 -0
  73. package/dist/src/patterns/requestPattern.d.ts.map +1 -0
  74. package/dist/src/patterns/requestPattern.js +157 -0
  75. package/dist/src/patterns/requestPattern.js.map +1 -0
  76. package/dist/src/requestPattern.d.ts +15 -0
  77. package/dist/src/requestPattern.d.ts.map +1 -0
  78. package/dist/src/requestPattern.js +35 -0
  79. package/dist/src/requestPattern.js.map +1 -0
  80. package/dist/tests/builtinPatterns.test.d.ts +2 -0
  81. package/dist/tests/builtinPatterns.test.d.ts.map +1 -0
  82. package/dist/tests/builtinPatterns.test.js +1293 -0
  83. package/dist/tests/builtinPatterns.test.js.map +1 -0
  84. package/dist/tests/check.test.d.ts +2 -0
  85. package/dist/tests/check.test.d.ts.map +1 -0
  86. package/dist/tests/check.test.js +671 -0
  87. package/dist/tests/check.test.js.map +1 -0
  88. package/dist/tests/cli.test.d.ts +2 -0
  89. package/dist/tests/cli.test.d.ts.map +1 -0
  90. package/dist/tests/cli.test.js +77 -0
  91. package/dist/tests/cli.test.js.map +1 -0
  92. package/dist/tests/codeQuality.test.d.ts +2 -0
  93. package/dist/tests/codeQuality.test.d.ts.map +1 -0
  94. package/dist/tests/codeQuality.test.js +15 -0
  95. package/dist/tests/codeQuality.test.js.map +1 -0
  96. package/dist/tests/curl.test.d.ts +2 -0
  97. package/dist/tests/curl.test.d.ts.map +1 -0
  98. package/dist/tests/curl.test.js +241 -0
  99. package/dist/tests/curl.test.js.map +1 -0
  100. package/dist/tests/dump.test.d.ts +2 -0
  101. package/dist/tests/dump.test.d.ts.map +1 -0
  102. package/dist/tests/dump.test.js +154 -0
  103. package/dist/tests/dump.test.js.map +1 -0
  104. package/package.json +67 -0
@@ -0,0 +1,262 @@
1
+ {
2
+ "gitlab-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "gitlab.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "gitlab-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "gitlab-write-all": {
23
+ "properties": {
24
+ "method": {
25
+ "enum": [
26
+ "POST",
27
+ "PUT",
28
+ "PATCH",
29
+ "DELETE"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "method"
35
+ ]
36
+ },
37
+ "gitlab-read-projects": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/api/v[0-9]+/projects(/[^/]+)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "gitlab-write-projects": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/api/v[0-9]+/projects(/[^/]+)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "gitlab-read-repository": {
73
+ "properties": {
74
+ "method": {
75
+ "const": "GET"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "pattern": "^/api/v[0-9]+/projects/[^/]+/repository(/.*)?$"
80
+ }
81
+ },
82
+ "required": [
83
+ "method",
84
+ "path"
85
+ ]
86
+ },
87
+ "gitlab-write-repository": {
88
+ "properties": {
89
+ "method": {
90
+ "enum": [
91
+ "POST",
92
+ "PUT",
93
+ "PATCH",
94
+ "DELETE"
95
+ ]
96
+ },
97
+ "path": {
98
+ "type": "string",
99
+ "pattern": "^/api/v[0-9]+/projects/[^/]+/repository(/.*)?$"
100
+ }
101
+ },
102
+ "required": [
103
+ "method",
104
+ "path"
105
+ ]
106
+ },
107
+ "gitlab-read-merge-requests": {
108
+ "properties": {
109
+ "method": {
110
+ "const": "GET"
111
+ },
112
+ "path": {
113
+ "type": "string",
114
+ "pattern": "^/api/v[0-9]+/(projects/[^/]+/)?merge_requests(/.*)?$"
115
+ }
116
+ },
117
+ "required": [
118
+ "method",
119
+ "path"
120
+ ]
121
+ },
122
+ "gitlab-write-merge-requests": {
123
+ "properties": {
124
+ "method": {
125
+ "enum": [
126
+ "POST",
127
+ "PUT",
128
+ "PATCH",
129
+ "DELETE"
130
+ ]
131
+ },
132
+ "path": {
133
+ "type": "string",
134
+ "pattern": "^/api/v[0-9]+/(projects/[^/]+/)?merge_requests(/.*)?$"
135
+ }
136
+ },
137
+ "required": [
138
+ "method",
139
+ "path"
140
+ ]
141
+ },
142
+ "gitlab-read-issues": {
143
+ "properties": {
144
+ "method": {
145
+ "const": "GET"
146
+ },
147
+ "path": {
148
+ "type": "string",
149
+ "pattern": "^/api/v[0-9]+/((projects|groups)/[^/]+/)?issues(/.*)?$"
150
+ }
151
+ },
152
+ "required": [
153
+ "method",
154
+ "path"
155
+ ]
156
+ },
157
+ "gitlab-write-issues": {
158
+ "properties": {
159
+ "method": {
160
+ "enum": [
161
+ "POST",
162
+ "PUT",
163
+ "PATCH",
164
+ "DELETE"
165
+ ]
166
+ },
167
+ "path": {
168
+ "type": "string",
169
+ "pattern": "^/api/v[0-9]+/((projects|groups)/[^/]+/)?issues(/.*)?$"
170
+ }
171
+ },
172
+ "required": [
173
+ "method",
174
+ "path"
175
+ ]
176
+ },
177
+ "gitlab-read-pipelines": {
178
+ "properties": {
179
+ "method": {
180
+ "const": "GET"
181
+ },
182
+ "path": {
183
+ "type": "string",
184
+ "pattern": "^/api/v[0-9]+/projects/[^/]+/(pipelines|jobs)(/.*)?$"
185
+ }
186
+ },
187
+ "required": [
188
+ "method",
189
+ "path"
190
+ ]
191
+ },
192
+ "gitlab-write-pipelines": {
193
+ "properties": {
194
+ "method": {
195
+ "enum": [
196
+ "POST",
197
+ "PUT",
198
+ "PATCH",
199
+ "DELETE"
200
+ ]
201
+ },
202
+ "path": {
203
+ "type": "string",
204
+ "pattern": "^/api/v[0-9]+/projects/[^/]+/(pipelines|jobs)(/.*)?$"
205
+ }
206
+ },
207
+ "required": [
208
+ "method",
209
+ "path"
210
+ ]
211
+ },
212
+ "gitlab-read-users": {
213
+ "properties": {
214
+ "method": {
215
+ "const": "GET"
216
+ },
217
+ "path": {
218
+ "type": "string",
219
+ "pattern": "^/api/v[0-9]+/users?(/.*)?$"
220
+ }
221
+ },
222
+ "required": [
223
+ "method",
224
+ "path"
225
+ ]
226
+ },
227
+ "gitlab-read-groups": {
228
+ "properties": {
229
+ "method": {
230
+ "const": "GET"
231
+ },
232
+ "path": {
233
+ "type": "string",
234
+ "pattern": "^/api/v[0-9]+/groups(/.*)?$"
235
+ }
236
+ },
237
+ "required": [
238
+ "method",
239
+ "path"
240
+ ]
241
+ },
242
+ "gitlab-write-groups": {
243
+ "properties": {
244
+ "method": {
245
+ "enum": [
246
+ "POST",
247
+ "PUT",
248
+ "PATCH",
249
+ "DELETE"
250
+ ]
251
+ },
252
+ "path": {
253
+ "type": "string",
254
+ "pattern": "^/api/v[0-9]+/groups(/.*)?$"
255
+ }
256
+ },
257
+ "required": [
258
+ "method",
259
+ "path"
260
+ ]
261
+ }
262
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "google-analytics-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "enum": [
6
+ "analyticsdata.googleapis.com",
7
+ "analyticsadmin.googleapis.com"
8
+ ]
9
+ }
10
+ },
11
+ "required": [
12
+ "domain"
13
+ ]
14
+ },
15
+ "google-analytics-read-all": {
16
+ "properties": {
17
+ "method": {
18
+ "const": "GET"
19
+ }
20
+ },
21
+ "required": [
22
+ "method"
23
+ ]
24
+ },
25
+ "google-analytics-write-all": {
26
+ "properties": {
27
+ "method": {
28
+ "enum": [
29
+ "POST",
30
+ "PUT",
31
+ "PATCH",
32
+ "DELETE"
33
+ ]
34
+ }
35
+ },
36
+ "required": [
37
+ "method"
38
+ ]
39
+ },
40
+ "google-analytics-run-reports": {
41
+ "properties": {
42
+ "method": {
43
+ "const": "POST"
44
+ },
45
+ "path": {
46
+ "type": "string",
47
+ "pattern": "^/v[0-9]+[a-z]*/(properties|accounts)/[^/]+:(runReport|batchRunReports|runPivotReport|batchRunPivotReports|runRealtimeReport|checkCompatibility|runAccessReport)$"
48
+ }
49
+ },
50
+ "required": [
51
+ "method",
52
+ "path"
53
+ ]
54
+ },
55
+ "google-analytics-read-metadata": {
56
+ "properties": {
57
+ "method": {
58
+ "const": "GET"
59
+ },
60
+ "path": {
61
+ "type": "string",
62
+ "pattern": "^/v[0-9]+[a-z]*/properties/[^/]+/metadata$"
63
+ }
64
+ },
65
+ "required": [
66
+ "method",
67
+ "path"
68
+ ]
69
+ },
70
+ "google-analytics-read-accounts": {
71
+ "properties": {
72
+ "method": {
73
+ "const": "GET"
74
+ },
75
+ "path": {
76
+ "type": "string",
77
+ "pattern": "^/v[0-9]+[a-z]*/(accounts|accountSummaries)(/.*)?$"
78
+ }
79
+ },
80
+ "required": [
81
+ "method",
82
+ "path"
83
+ ]
84
+ },
85
+ "google-analytics-read-properties": {
86
+ "properties": {
87
+ "method": {
88
+ "const": "GET"
89
+ },
90
+ "path": {
91
+ "type": "string",
92
+ "pattern": "^/v[0-9]+[a-z]*/properties(/[^/]+)?$"
93
+ }
94
+ },
95
+ "required": [
96
+ "method",
97
+ "path"
98
+ ]
99
+ },
100
+ "google-analytics-write-properties": {
101
+ "properties": {
102
+ "method": {
103
+ "enum": [
104
+ "POST",
105
+ "PUT",
106
+ "PATCH",
107
+ "DELETE"
108
+ ]
109
+ },
110
+ "path": {
111
+ "type": "string",
112
+ "pattern": "^/v[0-9]+[a-z]*/properties(/[^/]+)?$"
113
+ }
114
+ },
115
+ "required": [
116
+ "method",
117
+ "path"
118
+ ]
119
+ },
120
+ "google-analytics-read-data-streams": {
121
+ "properties": {
122
+ "method": {
123
+ "const": "GET"
124
+ },
125
+ "path": {
126
+ "type": "string",
127
+ "pattern": "^/v[0-9]+[a-z]*/properties/[^/]+/dataStreams(/.*)?$"
128
+ }
129
+ },
130
+ "required": [
131
+ "method",
132
+ "path"
133
+ ]
134
+ },
135
+ "google-analytics-write-data-streams": {
136
+ "properties": {
137
+ "method": {
138
+ "enum": [
139
+ "POST",
140
+ "PUT",
141
+ "PATCH",
142
+ "DELETE"
143
+ ]
144
+ },
145
+ "path": {
146
+ "type": "string",
147
+ "pattern": "^/v[0-9]+[a-z]*/properties/[^/]+/dataStreams(/.*)?$"
148
+ }
149
+ },
150
+ "required": [
151
+ "method",
152
+ "path"
153
+ ]
154
+ }
155
+ }
@@ -0,0 +1,227 @@
1
+ {
2
+ "google-calendar-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "www.googleapis.com"
6
+ },
7
+ "path": {
8
+ "type": "string",
9
+ "pattern": "^/calendar/"
10
+ }
11
+ },
12
+ "required": [
13
+ "domain",
14
+ "path"
15
+ ]
16
+ },
17
+ "google-calendar-read-all": {
18
+ "properties": {
19
+ "method": {
20
+ "const": "GET"
21
+ }
22
+ },
23
+ "required": [
24
+ "method"
25
+ ]
26
+ },
27
+ "google-calendar-write-all": {
28
+ "properties": {
29
+ "method": {
30
+ "enum": [
31
+ "POST",
32
+ "PUT",
33
+ "PATCH",
34
+ "DELETE"
35
+ ]
36
+ }
37
+ },
38
+ "required": [
39
+ "method"
40
+ ]
41
+ },
42
+ "google-calendar-read-events": {
43
+ "properties": {
44
+ "method": {
45
+ "const": "GET"
46
+ },
47
+ "path": {
48
+ "type": "string",
49
+ "pattern": "^/calendar/v[0-9]+/calendars/[^/]+/events(/.*)?$"
50
+ }
51
+ },
52
+ "required": [
53
+ "method",
54
+ "path"
55
+ ]
56
+ },
57
+ "google-calendar-write-events": {
58
+ "properties": {
59
+ "method": {
60
+ "enum": [
61
+ "POST",
62
+ "PUT",
63
+ "PATCH",
64
+ "DELETE"
65
+ ]
66
+ },
67
+ "path": {
68
+ "type": "string",
69
+ "pattern": "^/calendar/v[0-9]+/calendars/[^/]+/events(/.*)?$"
70
+ }
71
+ },
72
+ "required": [
73
+ "method",
74
+ "path"
75
+ ]
76
+ },
77
+ "google-calendar-read-calendars": {
78
+ "properties": {
79
+ "method": {
80
+ "const": "GET"
81
+ },
82
+ "path": {
83
+ "type": "string",
84
+ "pattern": "^/calendar/v[0-9]+/calendars/[^/]+$"
85
+ }
86
+ },
87
+ "required": [
88
+ "method",
89
+ "path"
90
+ ]
91
+ },
92
+ "google-calendar-write-calendars": {
93
+ "properties": {
94
+ "method": {
95
+ "enum": [
96
+ "POST",
97
+ "PUT",
98
+ "PATCH",
99
+ "DELETE"
100
+ ]
101
+ },
102
+ "path": {
103
+ "type": "string",
104
+ "pattern": "^/calendar/v[0-9]+/calendars(/[^/]+(/clear)?)?$"
105
+ }
106
+ },
107
+ "required": [
108
+ "method",
109
+ "path"
110
+ ]
111
+ },
112
+ "google-calendar-read-calendar-list": {
113
+ "properties": {
114
+ "method": {
115
+ "const": "GET"
116
+ },
117
+ "path": {
118
+ "type": "string",
119
+ "pattern": "^/calendar/v[0-9]+/users/me/calendarList(/.*)?$"
120
+ }
121
+ },
122
+ "required": [
123
+ "method",
124
+ "path"
125
+ ]
126
+ },
127
+ "google-calendar-write-calendar-list": {
128
+ "properties": {
129
+ "method": {
130
+ "enum": [
131
+ "POST",
132
+ "PUT",
133
+ "PATCH",
134
+ "DELETE"
135
+ ]
136
+ },
137
+ "path": {
138
+ "type": "string",
139
+ "pattern": "^/calendar/v[0-9]+/users/me/calendarList(/.*)?$"
140
+ }
141
+ },
142
+ "required": [
143
+ "method",
144
+ "path"
145
+ ]
146
+ },
147
+ "google-calendar-read-settings": {
148
+ "properties": {
149
+ "method": {
150
+ "const": "GET"
151
+ },
152
+ "path": {
153
+ "type": "string",
154
+ "pattern": "^/calendar/v[0-9]+/users/me/settings(/.*)?$"
155
+ }
156
+ },
157
+ "required": [
158
+ "method",
159
+ "path"
160
+ ]
161
+ },
162
+ "google-calendar-read-acl": {
163
+ "properties": {
164
+ "method": {
165
+ "const": "GET"
166
+ },
167
+ "path": {
168
+ "type": "string",
169
+ "pattern": "^/calendar/v[0-9]+/calendars/[^/]+/acl(/.*)?$"
170
+ }
171
+ },
172
+ "required": [
173
+ "method",
174
+ "path"
175
+ ]
176
+ },
177
+ "google-calendar-write-acl": {
178
+ "properties": {
179
+ "method": {
180
+ "enum": [
181
+ "POST",
182
+ "PUT",
183
+ "PATCH",
184
+ "DELETE"
185
+ ]
186
+ },
187
+ "path": {
188
+ "type": "string",
189
+ "pattern": "^/calendar/v[0-9]+/calendars/[^/]+/acl(/.*)?$"
190
+ }
191
+ },
192
+ "required": [
193
+ "method",
194
+ "path"
195
+ ]
196
+ },
197
+ "google-calendar-query-freebusy": {
198
+ "properties": {
199
+ "method": {
200
+ "const": "POST"
201
+ },
202
+ "path": {
203
+ "type": "string",
204
+ "pattern": "^/calendar/v[0-9]+/freeBusy$"
205
+ }
206
+ },
207
+ "required": [
208
+ "method",
209
+ "path"
210
+ ]
211
+ },
212
+ "google-calendar-read-colors": {
213
+ "properties": {
214
+ "method": {
215
+ "const": "GET"
216
+ },
217
+ "path": {
218
+ "type": "string",
219
+ "pattern": "^/calendar/v[0-9]+/colors$"
220
+ }
221
+ },
222
+ "required": [
223
+ "method",
224
+ "path"
225
+ ]
226
+ }
227
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "google-directions-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "routes.googleapis.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "google-directions-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "google-directions-write-all": {
23
+ "properties": {
24
+ "method": {
25
+ "enum": [
26
+ "POST",
27
+ "PUT",
28
+ "PATCH",
29
+ "DELETE"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "method"
35
+ ]
36
+ },
37
+ "google-directions-compute-routes": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "POST"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/directions/v[0-9]+:computeRoutes$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "google-directions-compute-route-matrix": {
53
+ "properties": {
54
+ "method": {
55
+ "const": "POST"
56
+ },
57
+ "path": {
58
+ "type": "string",
59
+ "pattern": "^/distanceMatrix/v[0-9]+:computeRouteMatrix$"
60
+ }
61
+ },
62
+ "required": [
63
+ "method",
64
+ "path"
65
+ ]
66
+ }
67
+ }