@greensecurity/javascript-sdk 0.37.5 → 0.37.8

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 (35) hide show
  1. package/bin/mcp-server.js +10 -10
  2. package/bin/mcp-server.js.map +6 -6
  3. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  4. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +4 -16
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/lib/config.d.ts +3 -3
  8. package/dist/commonjs/lib/config.js +3 -3
  9. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  10. package/dist/commonjs/mcp-server/server.js +1 -1
  11. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +4 -4
  12. package/dist/commonjs/models/operations/securityzonecheckin.js +4 -4
  13. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  14. package/dist/esm/__tests__/webhooks.test.js +1 -1
  15. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  16. package/dist/esm/__tests__/zones.test.js +4 -16
  17. package/dist/esm/__tests__/zones.test.js.map +1 -1
  18. package/dist/esm/lib/config.d.ts +3 -3
  19. package/dist/esm/lib/config.js +3 -3
  20. package/dist/esm/mcp-server/mcp-server.js +1 -1
  21. package/dist/esm/mcp-server/server.js +1 -1
  22. package/dist/esm/models/operations/securityzonecheckin.d.ts +4 -4
  23. package/dist/esm/models/operations/securityzonecheckin.js +4 -4
  24. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  25. package/examples/package-lock.json +643 -0
  26. package/examples/package.json +18 -0
  27. package/examples/vendorsCreateVendorRegistration.example.ts +29 -0
  28. package/jsr.json +1 -1
  29. package/package.json +2 -2
  30. package/src/__tests__/webhooks.test.ts +1 -1
  31. package/src/__tests__/zones.test.ts +4 -16
  32. package/src/lib/config.ts +3 -3
  33. package/src/mcp-server/mcp-server.ts +1 -1
  34. package/src/mcp-server/server.ts +1 -1
  35. package/src/models/operations/securityzonecheckin.ts +8 -8
@@ -0,0 +1,643 @@
1
+ {
2
+ "name": "@greensecurity/javascript-sdk-examples",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "@greensecurity/javascript-sdk-examples",
9
+ "version": "1.0.0",
10
+ "dependencies": {
11
+ "@greensecurity/javascript-sdk": "file:.."
12
+ },
13
+ "devDependencies": {
14
+ "@types/node": "^20.0.0",
15
+ "dotenv": "^16.4.5",
16
+ "tsx": "^4.19.2"
17
+ }
18
+ },
19
+ "..": {
20
+ "name": "@greensecurity/javascript-sdk",
21
+ "version": "0.37.8",
22
+ "bin": {
23
+ "mcp": "bin/mcp-server.js"
24
+ },
25
+ "devDependencies": {
26
+ "@eslint/js": "^9.19.0",
27
+ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
28
+ "@stricli/core": "^1.1.1",
29
+ "@tanstack/react-query": "^5.61.4",
30
+ "@types/express": "^4.17.21",
31
+ "@types/node": "^18.19.3",
32
+ "@types/react": "^18.3.12",
33
+ "bun": "1.2.17",
34
+ "bun-types": "1.2.17",
35
+ "eslint": "^9.19.0",
36
+ "express": "^4.21.2",
37
+ "globals": "^15.14.0",
38
+ "tshy": "^2.0.0",
39
+ "typescript": "^5.4.5",
40
+ "typescript-eslint": "^8.22.0",
41
+ "vitest": "^3.0.2",
42
+ "zod": "^3.25.17"
43
+ },
44
+ "peerDependencies": {
45
+ "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
46
+ "@tanstack/react-query": "^5",
47
+ "react": "^18 || ^19",
48
+ "react-dom": "^18 || ^19",
49
+ "zod": "^3"
50
+ },
51
+ "peerDependenciesMeta": {
52
+ "@modelcontextprotocol/sdk": {
53
+ "optional": true
54
+ },
55
+ "@tanstack/react-query": {
56
+ "optional": true
57
+ },
58
+ "react": {
59
+ "optional": true
60
+ },
61
+ "react-dom": {
62
+ "optional": true
63
+ }
64
+ }
65
+ },
66
+ "node_modules/@esbuild/aix-ppc64": {
67
+ "version": "0.25.6",
68
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz",
69
+ "integrity": "sha512-ShbM/3XxwuxjFiuVBHA+d3j5dyac0aEVVq1oluIDf71hUw0aRF59dV/efUsIwFnR6m8JNM2FjZOzmaZ8yG61kw==",
70
+ "cpu": [
71
+ "ppc64"
72
+ ],
73
+ "dev": true,
74
+ "license": "MIT",
75
+ "optional": true,
76
+ "os": [
77
+ "aix"
78
+ ],
79
+ "engines": {
80
+ "node": ">=18"
81
+ }
82
+ },
83
+ "node_modules/@esbuild/android-arm": {
84
+ "version": "0.25.6",
85
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.6.tgz",
86
+ "integrity": "sha512-S8ToEOVfg++AU/bHwdksHNnyLyVM+eMVAOf6yRKFitnwnbwwPNqKr3srzFRe7nzV69RQKb5DgchIX5pt3L53xg==",
87
+ "cpu": [
88
+ "arm"
89
+ ],
90
+ "dev": true,
91
+ "license": "MIT",
92
+ "optional": true,
93
+ "os": [
94
+ "android"
95
+ ],
96
+ "engines": {
97
+ "node": ">=18"
98
+ }
99
+ },
100
+ "node_modules/@esbuild/android-arm64": {
101
+ "version": "0.25.6",
102
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz",
103
+ "integrity": "sha512-hd5zdUarsK6strW+3Wxi5qWws+rJhCCbMiC9QZyzoxfk5uHRIE8T287giQxzVpEvCwuJ9Qjg6bEjcRJcgfLqoA==",
104
+ "cpu": [
105
+ "arm64"
106
+ ],
107
+ "dev": true,
108
+ "license": "MIT",
109
+ "optional": true,
110
+ "os": [
111
+ "android"
112
+ ],
113
+ "engines": {
114
+ "node": ">=18"
115
+ }
116
+ },
117
+ "node_modules/@esbuild/android-x64": {
118
+ "version": "0.25.6",
119
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.6.tgz",
120
+ "integrity": "sha512-0Z7KpHSr3VBIO9A/1wcT3NTy7EB4oNC4upJ5ye3R7taCc2GUdeynSLArnon5G8scPwaU866d3H4BCrE5xLW25A==",
121
+ "cpu": [
122
+ "x64"
123
+ ],
124
+ "dev": true,
125
+ "license": "MIT",
126
+ "optional": true,
127
+ "os": [
128
+ "android"
129
+ ],
130
+ "engines": {
131
+ "node": ">=18"
132
+ }
133
+ },
134
+ "node_modules/@esbuild/darwin-arm64": {
135
+ "version": "0.25.6",
136
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz",
137
+ "integrity": "sha512-FFCssz3XBavjxcFxKsGy2DYK5VSvJqa6y5HXljKzhRZ87LvEi13brPrf/wdyl/BbpbMKJNOr1Sd0jtW4Ge1pAA==",
138
+ "cpu": [
139
+ "arm64"
140
+ ],
141
+ "dev": true,
142
+ "license": "MIT",
143
+ "optional": true,
144
+ "os": [
145
+ "darwin"
146
+ ],
147
+ "engines": {
148
+ "node": ">=18"
149
+ }
150
+ },
151
+ "node_modules/@esbuild/darwin-x64": {
152
+ "version": "0.25.6",
153
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz",
154
+ "integrity": "sha512-GfXs5kry/TkGM2vKqK2oyiLFygJRqKVhawu3+DOCk7OxLy/6jYkWXhlHwOoTb0WqGnWGAS7sooxbZowy+pK9Yg==",
155
+ "cpu": [
156
+ "x64"
157
+ ],
158
+ "dev": true,
159
+ "license": "MIT",
160
+ "optional": true,
161
+ "os": [
162
+ "darwin"
163
+ ],
164
+ "engines": {
165
+ "node": ">=18"
166
+ }
167
+ },
168
+ "node_modules/@esbuild/freebsd-arm64": {
169
+ "version": "0.25.6",
170
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz",
171
+ "integrity": "sha512-aoLF2c3OvDn2XDTRvn8hN6DRzVVpDlj2B/F66clWd/FHLiHaG3aVZjxQX2DYphA5y/evbdGvC6Us13tvyt4pWg==",
172
+ "cpu": [
173
+ "arm64"
174
+ ],
175
+ "dev": true,
176
+ "license": "MIT",
177
+ "optional": true,
178
+ "os": [
179
+ "freebsd"
180
+ ],
181
+ "engines": {
182
+ "node": ">=18"
183
+ }
184
+ },
185
+ "node_modules/@esbuild/freebsd-x64": {
186
+ "version": "0.25.6",
187
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz",
188
+ "integrity": "sha512-2SkqTjTSo2dYi/jzFbU9Plt1vk0+nNg8YC8rOXXea+iA3hfNJWebKYPs3xnOUf9+ZWhKAaxnQNUf2X9LOpeiMQ==",
189
+ "cpu": [
190
+ "x64"
191
+ ],
192
+ "dev": true,
193
+ "license": "MIT",
194
+ "optional": true,
195
+ "os": [
196
+ "freebsd"
197
+ ],
198
+ "engines": {
199
+ "node": ">=18"
200
+ }
201
+ },
202
+ "node_modules/@esbuild/linux-arm": {
203
+ "version": "0.25.6",
204
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz",
205
+ "integrity": "sha512-SZHQlzvqv4Du5PrKE2faN0qlbsaW/3QQfUUc6yO2EjFcA83xnwm91UbEEVx4ApZ9Z5oG8Bxz4qPE+HFwtVcfyw==",
206
+ "cpu": [
207
+ "arm"
208
+ ],
209
+ "dev": true,
210
+ "license": "MIT",
211
+ "optional": true,
212
+ "os": [
213
+ "linux"
214
+ ],
215
+ "engines": {
216
+ "node": ">=18"
217
+ }
218
+ },
219
+ "node_modules/@esbuild/linux-arm64": {
220
+ "version": "0.25.6",
221
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz",
222
+ "integrity": "sha512-b967hU0gqKd9Drsh/UuAm21Khpoh6mPBSgz8mKRq4P5mVK8bpA+hQzmm/ZwGVULSNBzKdZPQBRT3+WuVavcWsQ==",
223
+ "cpu": [
224
+ "arm64"
225
+ ],
226
+ "dev": true,
227
+ "license": "MIT",
228
+ "optional": true,
229
+ "os": [
230
+ "linux"
231
+ ],
232
+ "engines": {
233
+ "node": ">=18"
234
+ }
235
+ },
236
+ "node_modules/@esbuild/linux-ia32": {
237
+ "version": "0.25.6",
238
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz",
239
+ "integrity": "sha512-aHWdQ2AAltRkLPOsKdi3xv0mZ8fUGPdlKEjIEhxCPm5yKEThcUjHpWB1idN74lfXGnZ5SULQSgtr5Qos5B0bPw==",
240
+ "cpu": [
241
+ "ia32"
242
+ ],
243
+ "dev": true,
244
+ "license": "MIT",
245
+ "optional": true,
246
+ "os": [
247
+ "linux"
248
+ ],
249
+ "engines": {
250
+ "node": ">=18"
251
+ }
252
+ },
253
+ "node_modules/@esbuild/linux-loong64": {
254
+ "version": "0.25.6",
255
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz",
256
+ "integrity": "sha512-VgKCsHdXRSQ7E1+QXGdRPlQ/e08bN6WMQb27/TMfV+vPjjTImuT9PmLXupRlC90S1JeNNW5lzkAEO/McKeJ2yg==",
257
+ "cpu": [
258
+ "loong64"
259
+ ],
260
+ "dev": true,
261
+ "license": "MIT",
262
+ "optional": true,
263
+ "os": [
264
+ "linux"
265
+ ],
266
+ "engines": {
267
+ "node": ">=18"
268
+ }
269
+ },
270
+ "node_modules/@esbuild/linux-mips64el": {
271
+ "version": "0.25.6",
272
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz",
273
+ "integrity": "sha512-WViNlpivRKT9/py3kCmkHnn44GkGXVdXfdc4drNmRl15zVQ2+D2uFwdlGh6IuK5AAnGTo2qPB1Djppj+t78rzw==",
274
+ "cpu": [
275
+ "mips64el"
276
+ ],
277
+ "dev": true,
278
+ "license": "MIT",
279
+ "optional": true,
280
+ "os": [
281
+ "linux"
282
+ ],
283
+ "engines": {
284
+ "node": ">=18"
285
+ }
286
+ },
287
+ "node_modules/@esbuild/linux-ppc64": {
288
+ "version": "0.25.6",
289
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz",
290
+ "integrity": "sha512-wyYKZ9NTdmAMb5730I38lBqVu6cKl4ZfYXIs31Baf8aoOtB4xSGi3THmDYt4BTFHk7/EcVixkOV2uZfwU3Q2Jw==",
291
+ "cpu": [
292
+ "ppc64"
293
+ ],
294
+ "dev": true,
295
+ "license": "MIT",
296
+ "optional": true,
297
+ "os": [
298
+ "linux"
299
+ ],
300
+ "engines": {
301
+ "node": ">=18"
302
+ }
303
+ },
304
+ "node_modules/@esbuild/linux-riscv64": {
305
+ "version": "0.25.6",
306
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz",
307
+ "integrity": "sha512-KZh7bAGGcrinEj4qzilJ4hqTY3Dg2U82c8bv+e1xqNqZCrCyc+TL9AUEn5WGKDzm3CfC5RODE/qc96OcbIe33w==",
308
+ "cpu": [
309
+ "riscv64"
310
+ ],
311
+ "dev": true,
312
+ "license": "MIT",
313
+ "optional": true,
314
+ "os": [
315
+ "linux"
316
+ ],
317
+ "engines": {
318
+ "node": ">=18"
319
+ }
320
+ },
321
+ "node_modules/@esbuild/linux-s390x": {
322
+ "version": "0.25.6",
323
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz",
324
+ "integrity": "sha512-9N1LsTwAuE9oj6lHMyyAM+ucxGiVnEqUdp4v7IaMmrwb06ZTEVCIs3oPPplVsnjPfyjmxwHxHMF8b6vzUVAUGw==",
325
+ "cpu": [
326
+ "s390x"
327
+ ],
328
+ "dev": true,
329
+ "license": "MIT",
330
+ "optional": true,
331
+ "os": [
332
+ "linux"
333
+ ],
334
+ "engines": {
335
+ "node": ">=18"
336
+ }
337
+ },
338
+ "node_modules/@esbuild/linux-x64": {
339
+ "version": "0.25.6",
340
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz",
341
+ "integrity": "sha512-A6bJB41b4lKFWRKNrWoP2LHsjVzNiaurf7wyj/XtFNTsnPuxwEBWHLty+ZE0dWBKuSK1fvKgrKaNjBS7qbFKig==",
342
+ "cpu": [
343
+ "x64"
344
+ ],
345
+ "dev": true,
346
+ "license": "MIT",
347
+ "optional": true,
348
+ "os": [
349
+ "linux"
350
+ ],
351
+ "engines": {
352
+ "node": ">=18"
353
+ }
354
+ },
355
+ "node_modules/@esbuild/netbsd-arm64": {
356
+ "version": "0.25.6",
357
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz",
358
+ "integrity": "sha512-IjA+DcwoVpjEvyxZddDqBY+uJ2Snc6duLpjmkXm/v4xuS3H+3FkLZlDm9ZsAbF9rsfP3zeA0/ArNDORZgrxR/Q==",
359
+ "cpu": [
360
+ "arm64"
361
+ ],
362
+ "dev": true,
363
+ "license": "MIT",
364
+ "optional": true,
365
+ "os": [
366
+ "netbsd"
367
+ ],
368
+ "engines": {
369
+ "node": ">=18"
370
+ }
371
+ },
372
+ "node_modules/@esbuild/netbsd-x64": {
373
+ "version": "0.25.6",
374
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz",
375
+ "integrity": "sha512-dUXuZr5WenIDlMHdMkvDc1FAu4xdWixTCRgP7RQLBOkkGgwuuzaGSYcOpW4jFxzpzL1ejb8yF620UxAqnBrR9g==",
376
+ "cpu": [
377
+ "x64"
378
+ ],
379
+ "dev": true,
380
+ "license": "MIT",
381
+ "optional": true,
382
+ "os": [
383
+ "netbsd"
384
+ ],
385
+ "engines": {
386
+ "node": ">=18"
387
+ }
388
+ },
389
+ "node_modules/@esbuild/openbsd-arm64": {
390
+ "version": "0.25.6",
391
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz",
392
+ "integrity": "sha512-l8ZCvXP0tbTJ3iaqdNf3pjaOSd5ex/e6/omLIQCVBLmHTlfXW3zAxQ4fnDmPLOB1x9xrcSi/xtCWFwCZRIaEwg==",
393
+ "cpu": [
394
+ "arm64"
395
+ ],
396
+ "dev": true,
397
+ "license": "MIT",
398
+ "optional": true,
399
+ "os": [
400
+ "openbsd"
401
+ ],
402
+ "engines": {
403
+ "node": ">=18"
404
+ }
405
+ },
406
+ "node_modules/@esbuild/openbsd-x64": {
407
+ "version": "0.25.6",
408
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz",
409
+ "integrity": "sha512-hKrmDa0aOFOr71KQ/19JC7az1P0GWtCN1t2ahYAf4O007DHZt/dW8ym5+CUdJhQ/qkZmI1HAF8KkJbEFtCL7gw==",
410
+ "cpu": [
411
+ "x64"
412
+ ],
413
+ "dev": true,
414
+ "license": "MIT",
415
+ "optional": true,
416
+ "os": [
417
+ "openbsd"
418
+ ],
419
+ "engines": {
420
+ "node": ">=18"
421
+ }
422
+ },
423
+ "node_modules/@esbuild/openharmony-arm64": {
424
+ "version": "0.25.6",
425
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz",
426
+ "integrity": "sha512-+SqBcAWoB1fYKmpWoQP4pGtx+pUUC//RNYhFdbcSA16617cchuryuhOCRpPsjCblKukAckWsV+aQ3UKT/RMPcA==",
427
+ "cpu": [
428
+ "arm64"
429
+ ],
430
+ "dev": true,
431
+ "license": "MIT",
432
+ "optional": true,
433
+ "os": [
434
+ "openharmony"
435
+ ],
436
+ "engines": {
437
+ "node": ">=18"
438
+ }
439
+ },
440
+ "node_modules/@esbuild/sunos-x64": {
441
+ "version": "0.25.6",
442
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz",
443
+ "integrity": "sha512-dyCGxv1/Br7MiSC42qinGL8KkG4kX0pEsdb0+TKhmJZgCUDBGmyo1/ArCjNGiOLiIAgdbWgmWgib4HoCi5t7kA==",
444
+ "cpu": [
445
+ "x64"
446
+ ],
447
+ "dev": true,
448
+ "license": "MIT",
449
+ "optional": true,
450
+ "os": [
451
+ "sunos"
452
+ ],
453
+ "engines": {
454
+ "node": ">=18"
455
+ }
456
+ },
457
+ "node_modules/@esbuild/win32-arm64": {
458
+ "version": "0.25.6",
459
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz",
460
+ "integrity": "sha512-42QOgcZeZOvXfsCBJF5Afw73t4veOId//XD3i+/9gSkhSV6Gk3VPlWncctI+JcOyERv85FUo7RxuxGy+z8A43Q==",
461
+ "cpu": [
462
+ "arm64"
463
+ ],
464
+ "dev": true,
465
+ "license": "MIT",
466
+ "optional": true,
467
+ "os": [
468
+ "win32"
469
+ ],
470
+ "engines": {
471
+ "node": ">=18"
472
+ }
473
+ },
474
+ "node_modules/@esbuild/win32-ia32": {
475
+ "version": "0.25.6",
476
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz",
477
+ "integrity": "sha512-4AWhgXmDuYN7rJI6ORB+uU9DHLq/erBbuMoAuB4VWJTu5KtCgcKYPynF0YI1VkBNuEfjNlLrFr9KZPJzrtLkrQ==",
478
+ "cpu": [
479
+ "ia32"
480
+ ],
481
+ "dev": true,
482
+ "license": "MIT",
483
+ "optional": true,
484
+ "os": [
485
+ "win32"
486
+ ],
487
+ "engines": {
488
+ "node": ">=18"
489
+ }
490
+ },
491
+ "node_modules/@esbuild/win32-x64": {
492
+ "version": "0.25.6",
493
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz",
494
+ "integrity": "sha512-NgJPHHbEpLQgDH2MjQu90pzW/5vvXIZ7KOnPyNBm92A6WgZ/7b6fJyUBjoumLqeOQQGqY2QjQxRo97ah4Sj0cA==",
495
+ "cpu": [
496
+ "x64"
497
+ ],
498
+ "dev": true,
499
+ "license": "MIT",
500
+ "optional": true,
501
+ "os": [
502
+ "win32"
503
+ ],
504
+ "engines": {
505
+ "node": ">=18"
506
+ }
507
+ },
508
+ "node_modules/@greensecurity/javascript-sdk": {
509
+ "resolved": "..",
510
+ "link": true
511
+ },
512
+ "node_modules/@types/node": {
513
+ "version": "20.19.6",
514
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.6.tgz",
515
+ "integrity": "sha512-uYssdp9z5zH5GQ0L4zEJ2ZuavYsJwkozjiUzCRfGtaaQcyjAMJ34aP8idv61QlqTozu6kudyr6JMq9Chf09dfA==",
516
+ "dev": true,
517
+ "license": "MIT",
518
+ "dependencies": {
519
+ "undici-types": "~6.21.0"
520
+ }
521
+ },
522
+ "node_modules/dotenv": {
523
+ "version": "16.6.1",
524
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
525
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
526
+ "dev": true,
527
+ "license": "BSD-2-Clause",
528
+ "engines": {
529
+ "node": ">=12"
530
+ },
531
+ "funding": {
532
+ "url": "https://dotenvx.com"
533
+ }
534
+ },
535
+ "node_modules/esbuild": {
536
+ "version": "0.25.6",
537
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.6.tgz",
538
+ "integrity": "sha512-GVuzuUwtdsghE3ocJ9Bs8PNoF13HNQ5TXbEi2AhvVb8xU1Iwt9Fos9FEamfoee+u/TOsn7GUWc04lz46n2bbTg==",
539
+ "dev": true,
540
+ "hasInstallScript": true,
541
+ "license": "MIT",
542
+ "bin": {
543
+ "esbuild": "bin/esbuild"
544
+ },
545
+ "engines": {
546
+ "node": ">=18"
547
+ },
548
+ "optionalDependencies": {
549
+ "@esbuild/aix-ppc64": "0.25.6",
550
+ "@esbuild/android-arm": "0.25.6",
551
+ "@esbuild/android-arm64": "0.25.6",
552
+ "@esbuild/android-x64": "0.25.6",
553
+ "@esbuild/darwin-arm64": "0.25.6",
554
+ "@esbuild/darwin-x64": "0.25.6",
555
+ "@esbuild/freebsd-arm64": "0.25.6",
556
+ "@esbuild/freebsd-x64": "0.25.6",
557
+ "@esbuild/linux-arm": "0.25.6",
558
+ "@esbuild/linux-arm64": "0.25.6",
559
+ "@esbuild/linux-ia32": "0.25.6",
560
+ "@esbuild/linux-loong64": "0.25.6",
561
+ "@esbuild/linux-mips64el": "0.25.6",
562
+ "@esbuild/linux-ppc64": "0.25.6",
563
+ "@esbuild/linux-riscv64": "0.25.6",
564
+ "@esbuild/linux-s390x": "0.25.6",
565
+ "@esbuild/linux-x64": "0.25.6",
566
+ "@esbuild/netbsd-arm64": "0.25.6",
567
+ "@esbuild/netbsd-x64": "0.25.6",
568
+ "@esbuild/openbsd-arm64": "0.25.6",
569
+ "@esbuild/openbsd-x64": "0.25.6",
570
+ "@esbuild/openharmony-arm64": "0.25.6",
571
+ "@esbuild/sunos-x64": "0.25.6",
572
+ "@esbuild/win32-arm64": "0.25.6",
573
+ "@esbuild/win32-ia32": "0.25.6",
574
+ "@esbuild/win32-x64": "0.25.6"
575
+ }
576
+ },
577
+ "node_modules/fsevents": {
578
+ "version": "2.3.3",
579
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
580
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
581
+ "dev": true,
582
+ "hasInstallScript": true,
583
+ "license": "MIT",
584
+ "optional": true,
585
+ "os": [
586
+ "darwin"
587
+ ],
588
+ "engines": {
589
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
590
+ }
591
+ },
592
+ "node_modules/get-tsconfig": {
593
+ "version": "4.10.1",
594
+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz",
595
+ "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==",
596
+ "dev": true,
597
+ "license": "MIT",
598
+ "dependencies": {
599
+ "resolve-pkg-maps": "^1.0.0"
600
+ },
601
+ "funding": {
602
+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
603
+ }
604
+ },
605
+ "node_modules/resolve-pkg-maps": {
606
+ "version": "1.0.0",
607
+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
608
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
609
+ "dev": true,
610
+ "license": "MIT",
611
+ "funding": {
612
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
613
+ }
614
+ },
615
+ "node_modules/tsx": {
616
+ "version": "4.20.3",
617
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.3.tgz",
618
+ "integrity": "sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==",
619
+ "dev": true,
620
+ "license": "MIT",
621
+ "dependencies": {
622
+ "esbuild": "~0.25.0",
623
+ "get-tsconfig": "^4.7.5"
624
+ },
625
+ "bin": {
626
+ "tsx": "dist/cli.mjs"
627
+ },
628
+ "engines": {
629
+ "node": ">=18.0.0"
630
+ },
631
+ "optionalDependencies": {
632
+ "fsevents": "~2.3.3"
633
+ }
634
+ },
635
+ "node_modules/undici-types": {
636
+ "version": "6.21.0",
637
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
638
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
639
+ "dev": true,
640
+ "license": "MIT"
641
+ }
642
+ }
643
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@greensecurity/javascript-sdk-examples",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "scripts": {
6
+ "build:parent": "cd .. && npm i && npm run build && cd -",
7
+ "build:examples": "npm i",
8
+ "build": "npm run build:parent && npm run build:examples"
9
+ },
10
+ "devDependencies": {
11
+ "@types/node": "^20.0.0",
12
+ "dotenv": "^16.4.5",
13
+ "tsx": "^4.19.2"
14
+ },
15
+ "dependencies": {
16
+ "@greensecurity/javascript-sdk": "file:.."
17
+ }
18
+ }
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ /**
6
+ * Example usage of the @greensecurity/javascript-sdk SDK
7
+ *
8
+ * To run this example from the examples directory:
9
+ * npm run build && npx tsx vendorsCreateVendorRegistration.ts
10
+ */
11
+
12
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
13
+
14
+ const greenSecurity = new GreenSecurity();
15
+
16
+ async function main() {
17
+ const result = await greenSecurity.createVendorRegistration({
18
+ email: "user@example.com",
19
+ password: "Abcdef123!",
20
+ timezone: "America/Chicago",
21
+ affiliateId: 123,
22
+ vendorGroupId: 123,
23
+ managingCompanyId: 123,
24
+ });
25
+
26
+ console.log(result);
27
+ }
28
+
29
+ main().catch(console.error);