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