@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,102 @@
1
+ {
2
+ "google-docs-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "docs.googleapis.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "google-docs-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "google-docs-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-docs-read-documents": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/v[0-9]+/documents/[^/]+$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "google-docs-write-documents": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/v[0-9]+/documents(/.*)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "google-docs-create-documents": {
73
+ "properties": {
74
+ "method": {
75
+ "const": "POST"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "pattern": "^/v[0-9]+/documents$"
80
+ }
81
+ },
82
+ "required": [
83
+ "method",
84
+ "path"
85
+ ]
86
+ },
87
+ "google-docs-update-documents": {
88
+ "properties": {
89
+ "method": {
90
+ "const": "POST"
91
+ },
92
+ "path": {
93
+ "type": "string",
94
+ "pattern": "^/v[0-9]+/documents/[^/]+:batchUpdate$"
95
+ }
96
+ },
97
+ "required": [
98
+ "method",
99
+ "path"
100
+ ]
101
+ }
102
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "google-drive-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "www.googleapis.com"
6
+ },
7
+ "path": {
8
+ "type": "string",
9
+ "pattern": "^/(upload/)?drive/"
10
+ }
11
+ },
12
+ "required": [
13
+ "domain",
14
+ "path"
15
+ ]
16
+ },
17
+ "google-drive-read-all": {
18
+ "properties": {
19
+ "method": {
20
+ "const": "GET"
21
+ }
22
+ },
23
+ "required": [
24
+ "method"
25
+ ]
26
+ },
27
+ "google-drive-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-drive-read-files": {
43
+ "properties": {
44
+ "method": {
45
+ "const": "GET"
46
+ },
47
+ "path": {
48
+ "type": "string",
49
+ "pattern": "^/drive/v[0-9]+/files(/[^/]+)?$"
50
+ }
51
+ },
52
+ "required": [
53
+ "method",
54
+ "path"
55
+ ]
56
+ },
57
+ "google-drive-write-files": {
58
+ "properties": {
59
+ "method": {
60
+ "enum": [
61
+ "POST",
62
+ "PUT",
63
+ "PATCH",
64
+ "DELETE"
65
+ ]
66
+ },
67
+ "path": {
68
+ "type": "string",
69
+ "pattern": "^/(upload/)?drive/v[0-9]+/files(/[^/]+)?$"
70
+ }
71
+ },
72
+ "required": [
73
+ "method",
74
+ "path"
75
+ ]
76
+ },
77
+ "google-drive-read-permissions": {
78
+ "properties": {
79
+ "method": {
80
+ "const": "GET"
81
+ },
82
+ "path": {
83
+ "type": "string",
84
+ "pattern": "^/drive/v[0-9]+/files/[^/]+/permissions(/.*)?$"
85
+ }
86
+ },
87
+ "required": [
88
+ "method",
89
+ "path"
90
+ ]
91
+ },
92
+ "google-drive-write-permissions": {
93
+ "properties": {
94
+ "method": {
95
+ "enum": [
96
+ "POST",
97
+ "PUT",
98
+ "PATCH",
99
+ "DELETE"
100
+ ]
101
+ },
102
+ "path": {
103
+ "type": "string",
104
+ "pattern": "^/drive/v[0-9]+/files/[^/]+/permissions(/.*)?$"
105
+ }
106
+ },
107
+ "required": [
108
+ "method",
109
+ "path"
110
+ ]
111
+ },
112
+ "google-drive-read-comments": {
113
+ "properties": {
114
+ "method": {
115
+ "const": "GET"
116
+ },
117
+ "path": {
118
+ "type": "string",
119
+ "pattern": "^/drive/v[0-9]+/files/[^/]+/comments(/.*)?$"
120
+ }
121
+ },
122
+ "required": [
123
+ "method",
124
+ "path"
125
+ ]
126
+ },
127
+ "google-drive-write-comments": {
128
+ "properties": {
129
+ "method": {
130
+ "enum": [
131
+ "POST",
132
+ "PUT",
133
+ "PATCH",
134
+ "DELETE"
135
+ ]
136
+ },
137
+ "path": {
138
+ "type": "string",
139
+ "pattern": "^/drive/v[0-9]+/files/[^/]+/comments(/.*)?$"
140
+ }
141
+ },
142
+ "required": [
143
+ "method",
144
+ "path"
145
+ ]
146
+ },
147
+ "google-drive-read-about": {
148
+ "properties": {
149
+ "method": {
150
+ "const": "GET"
151
+ },
152
+ "path": {
153
+ "type": "string",
154
+ "pattern": "^/drive/v[0-9]+/about$"
155
+ }
156
+ },
157
+ "required": [
158
+ "method",
159
+ "path"
160
+ ]
161
+ }
162
+ }
@@ -0,0 +1,257 @@
1
+ {
2
+ "google-gmail-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "gmail.googleapis.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "google-gmail-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "google-gmail-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-gmail-read-messages": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/messages(/.*)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "google-gmail-write-messages": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/(upload/)?gmail/v[0-9]+/users/[^/]+/messages(/.*)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "google-gmail-send-messages": {
73
+ "properties": {
74
+ "method": {
75
+ "const": "POST"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "pattern": "^/(upload/)?gmail/v[0-9]+/users/[^/]+/messages/send$"
80
+ }
81
+ },
82
+ "required": [
83
+ "method",
84
+ "path"
85
+ ]
86
+ },
87
+ "google-gmail-read-threads": {
88
+ "properties": {
89
+ "method": {
90
+ "const": "GET"
91
+ },
92
+ "path": {
93
+ "type": "string",
94
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/threads(/.*)?$"
95
+ }
96
+ },
97
+ "required": [
98
+ "method",
99
+ "path"
100
+ ]
101
+ },
102
+ "google-gmail-write-threads": {
103
+ "properties": {
104
+ "method": {
105
+ "enum": [
106
+ "POST",
107
+ "PUT",
108
+ "PATCH",
109
+ "DELETE"
110
+ ]
111
+ },
112
+ "path": {
113
+ "type": "string",
114
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/threads(/.*)?$"
115
+ }
116
+ },
117
+ "required": [
118
+ "method",
119
+ "path"
120
+ ]
121
+ },
122
+ "google-gmail-read-labels": {
123
+ "properties": {
124
+ "method": {
125
+ "const": "GET"
126
+ },
127
+ "path": {
128
+ "type": "string",
129
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/labels(/.*)?$"
130
+ }
131
+ },
132
+ "required": [
133
+ "method",
134
+ "path"
135
+ ]
136
+ },
137
+ "google-gmail-write-labels": {
138
+ "properties": {
139
+ "method": {
140
+ "enum": [
141
+ "POST",
142
+ "PUT",
143
+ "PATCH",
144
+ "DELETE"
145
+ ]
146
+ },
147
+ "path": {
148
+ "type": "string",
149
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/labels(/.*)?$"
150
+ }
151
+ },
152
+ "required": [
153
+ "method",
154
+ "path"
155
+ ]
156
+ },
157
+ "google-gmail-read-drafts": {
158
+ "properties": {
159
+ "method": {
160
+ "const": "GET"
161
+ },
162
+ "path": {
163
+ "type": "string",
164
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/drafts(/.*)?$"
165
+ }
166
+ },
167
+ "required": [
168
+ "method",
169
+ "path"
170
+ ]
171
+ },
172
+ "google-gmail-write-drafts": {
173
+ "properties": {
174
+ "method": {
175
+ "enum": [
176
+ "POST",
177
+ "PUT",
178
+ "PATCH",
179
+ "DELETE"
180
+ ]
181
+ },
182
+ "path": {
183
+ "type": "string",
184
+ "pattern": "^/(upload/)?gmail/v[0-9]+/users/[^/]+/drafts(/.*)?$"
185
+ }
186
+ },
187
+ "required": [
188
+ "method",
189
+ "path"
190
+ ]
191
+ },
192
+ "google-gmail-read-settings": {
193
+ "properties": {
194
+ "method": {
195
+ "const": "GET"
196
+ },
197
+ "path": {
198
+ "type": "string",
199
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/settings(/.*)?$"
200
+ }
201
+ },
202
+ "required": [
203
+ "method",
204
+ "path"
205
+ ]
206
+ },
207
+ "google-gmail-write-settings": {
208
+ "properties": {
209
+ "method": {
210
+ "enum": [
211
+ "POST",
212
+ "PUT",
213
+ "PATCH",
214
+ "DELETE"
215
+ ]
216
+ },
217
+ "path": {
218
+ "type": "string",
219
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/settings(/.*)?$"
220
+ }
221
+ },
222
+ "required": [
223
+ "method",
224
+ "path"
225
+ ]
226
+ },
227
+ "google-gmail-read-history": {
228
+ "properties": {
229
+ "method": {
230
+ "const": "GET"
231
+ },
232
+ "path": {
233
+ "type": "string",
234
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/history$"
235
+ }
236
+ },
237
+ "required": [
238
+ "method",
239
+ "path"
240
+ ]
241
+ },
242
+ "google-gmail-read-profile": {
243
+ "properties": {
244
+ "method": {
245
+ "const": "GET"
246
+ },
247
+ "path": {
248
+ "type": "string",
249
+ "pattern": "^/gmail/v[0-9]+/users/[^/]+/profile$"
250
+ }
251
+ },
252
+ "required": [
253
+ "method",
254
+ "path"
255
+ ]
256
+ }
257
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "google-people-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "people.googleapis.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "google-people-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "google-people-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-people-read-contacts": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/v[0-9]+/people((/|:).*)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "google-people-write-contacts": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/v[0-9]+/people((/|:).*)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "google-people-read-contact-groups": {
73
+ "properties": {
74
+ "method": {
75
+ "const": "GET"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "pattern": "^/v[0-9]+/contactGroups((/|:).*)?$"
80
+ }
81
+ },
82
+ "required": [
83
+ "method",
84
+ "path"
85
+ ]
86
+ },
87
+ "google-people-write-contact-groups": {
88
+ "properties": {
89
+ "method": {
90
+ "enum": [
91
+ "POST",
92
+ "PUT",
93
+ "PATCH",
94
+ "DELETE"
95
+ ]
96
+ },
97
+ "path": {
98
+ "type": "string",
99
+ "pattern": "^/v[0-9]+/contactGroups((/|:).*)?$"
100
+ }
101
+ },
102
+ "required": [
103
+ "method",
104
+ "path"
105
+ ]
106
+ },
107
+ "google-people-read-other-contacts": {
108
+ "properties": {
109
+ "method": {
110
+ "const": "GET"
111
+ },
112
+ "path": {
113
+ "type": "string",
114
+ "pattern": "^/v[0-9]+/otherContacts((/|:).*)?$"
115
+ }
116
+ },
117
+ "required": [
118
+ "method",
119
+ "path"
120
+ ]
121
+ },
122
+ "google-people-write-other-contacts": {
123
+ "properties": {
124
+ "method": {
125
+ "enum": [
126
+ "POST",
127
+ "PUT",
128
+ "PATCH",
129
+ "DELETE"
130
+ ]
131
+ },
132
+ "path": {
133
+ "type": "string",
134
+ "pattern": "^/v[0-9]+/otherContacts((/|:).*)?$"
135
+ }
136
+ },
137
+ "required": [
138
+ "method",
139
+ "path"
140
+ ]
141
+ }
142
+ }