@soat/cli 0.4.4 → 0.4.6

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 (2) hide show
  1. package/dist/esm/index.js +40 -38
  2. package/package.json +5 -3
package/dist/esm/index.js CHANGED
@@ -16,7 +16,7 @@ import { program } from "commander";
16
16
  // package.json
17
17
  var package_default = {
18
18
  name: "@soat/cli",
19
- version: "0.4.4",
19
+ version: "0.4.6",
20
20
  type: "module",
21
21
  scripts: {
22
22
  generate: "tsx scripts/generate.ts",
@@ -45,7 +45,9 @@ var package_default = {
45
45
  type: "git",
46
46
  url: "https://github.com/ttoss/soat"
47
47
  },
48
- bin: "./bin/soat",
48
+ bin: {
49
+ soat: "./bin/soat"
50
+ },
49
51
  publishConfig: {
50
52
  access: "public",
51
53
  provenance: true
@@ -124,42 +126,42 @@ var routes = {
124
126
  serviceClass: "Actors",
125
127
  operationId: "getActor",
126
128
  description: "Get an actor by ID",
127
- pathParams: ["id"],
129
+ pathParams: ["actor_id"],
128
130
  queryParams: []
129
131
  },
130
132
  "update-actor": {
131
133
  serviceClass: "Actors",
132
134
  operationId: "updateActor",
133
135
  description: "Update an actor",
134
- pathParams: ["id"],
136
+ pathParams: ["actor_id"],
135
137
  queryParams: []
136
138
  },
137
139
  "delete-actor": {
138
140
  serviceClass: "Actors",
139
141
  operationId: "deleteActor",
140
142
  description: "Delete an actor",
141
- pathParams: ["id"],
143
+ pathParams: ["actor_id"],
142
144
  queryParams: []
143
145
  },
144
146
  "get-actor-tags": {
145
147
  serviceClass: "Actors",
146
148
  operationId: "getActorTags",
147
149
  description: "Get actor tags",
148
- pathParams: ["id"],
150
+ pathParams: ["actor_id"],
149
151
  queryParams: []
150
152
  },
151
153
  "replace-actor-tags": {
152
154
  serviceClass: "Actors",
153
155
  operationId: "replaceActorTags",
154
156
  description: "Replace actor tags",
155
- pathParams: ["id"],
157
+ pathParams: ["actor_id"],
156
158
  queryParams: []
157
159
  },
158
160
  "merge-actor-tags": {
159
161
  serviceClass: "Actors",
160
162
  operationId: "mergeActorTags",
161
163
  description: "Merge actor tags",
162
- pathParams: ["id"],
164
+ pathParams: ["actor_id"],
163
165
  queryParams: []
164
166
  },
165
167
  "list-agent-tools": {
@@ -313,21 +315,21 @@ var routes = {
313
315
  serviceClass: "APIKeys",
314
316
  operationId: "getApiKey",
315
317
  description: "Get an API key",
316
- pathParams: ["id"],
318
+ pathParams: ["api_key_id"],
317
319
  queryParams: []
318
320
  },
319
321
  "update-api-key": {
320
322
  serviceClass: "APIKeys",
321
323
  operationId: "updateApiKey",
322
324
  description: "Update an API key",
323
- pathParams: ["id"],
325
+ pathParams: ["api_key_id"],
324
326
  queryParams: []
325
327
  },
326
328
  "delete-api-key": {
327
329
  serviceClass: "APIKeys",
328
330
  operationId: "deleteApiKey",
329
331
  description: "Delete an API key",
330
- pathParams: ["id"],
332
+ pathParams: ["api_key_id"],
331
333
  queryParams: []
332
334
  },
333
335
  "list-chats": {
@@ -397,77 +399,77 @@ var routes = {
397
399
  serviceClass: "Conversations",
398
400
  operationId: "getConversation",
399
401
  description: "Get a conversation by ID",
400
- pathParams: ["id"],
402
+ pathParams: ["conversation_id"],
401
403
  queryParams: []
402
404
  },
403
405
  "update-conversation": {
404
406
  serviceClass: "Conversations",
405
407
  operationId: "updateConversation",
406
408
  description: "Update a conversation",
407
- pathParams: ["id"],
409
+ pathParams: ["conversation_id"],
408
410
  queryParams: []
409
411
  },
410
412
  "delete-conversation": {
411
413
  serviceClass: "Conversations",
412
414
  operationId: "deleteConversation",
413
415
  description: "Delete a conversation",
414
- pathParams: ["id"],
416
+ pathParams: ["conversation_id"],
415
417
  queryParams: []
416
418
  },
417
419
  "list-conversation-messages": {
418
420
  serviceClass: "Conversations",
419
421
  operationId: "listConversationMessages",
420
422
  description: "List conversation messages",
421
- pathParams: ["id"],
423
+ pathParams: ["conversation_id"],
422
424
  queryParams: ["limit", "offset"]
423
425
  },
424
426
  "add-conversation-message": {
425
427
  serviceClass: "Conversations",
426
428
  operationId: "addConversationMessage",
427
429
  description: "Add a message to a conversation",
428
- pathParams: ["id"],
430
+ pathParams: ["conversation_id"],
429
431
  queryParams: []
430
432
  },
431
433
  "generate-conversation-message": {
432
434
  serviceClass: "Conversations",
433
435
  operationId: "generateConversationMessage",
434
436
  description: "Generate the next message in a conversation",
435
- pathParams: ["id"],
437
+ pathParams: ["conversation_id"],
436
438
  queryParams: []
437
439
  },
438
440
  "list-conversation-actors": {
439
441
  serviceClass: "Conversations",
440
442
  operationId: "listConversationActors",
441
443
  description: "List actors in a conversation",
442
- pathParams: ["id"],
444
+ pathParams: ["conversation_id"],
443
445
  queryParams: []
444
446
  },
445
447
  "remove-conversation-message": {
446
448
  serviceClass: "Conversations",
447
449
  operationId: "removeConversationMessage",
448
450
  description: "Remove a message from a conversation",
449
- pathParams: ["id", "document_id"],
451
+ pathParams: ["conversation_id", "document_id"],
450
452
  queryParams: []
451
453
  },
452
454
  "get-conversation-tags": {
453
455
  serviceClass: "Conversations",
454
456
  operationId: "getConversationTags",
455
457
  description: "Get conversation tags",
456
- pathParams: ["id"],
458
+ pathParams: ["conversation_id"],
457
459
  queryParams: []
458
460
  },
459
461
  "replace-conversation-tags": {
460
462
  serviceClass: "Conversations",
461
463
  operationId: "replaceConversationTags",
462
464
  description: "Replace conversation tags",
463
- pathParams: ["id"],
465
+ pathParams: ["conversation_id"],
464
466
  queryParams: []
465
467
  },
466
468
  "merge-conversation-tags": {
467
469
  serviceClass: "Conversations",
468
470
  operationId: "mergeConversationTags",
469
471
  description: "Merge conversation tags",
470
- pathParams: ["id"],
472
+ pathParams: ["conversation_id"],
471
473
  queryParams: []
472
474
  },
473
475
  "list-documents": {
@@ -488,42 +490,42 @@ var routes = {
488
490
  serviceClass: "Documents",
489
491
  operationId: "getDocument",
490
492
  description: "Get a document by ID",
491
- pathParams: ["id"],
493
+ pathParams: ["document_id"],
492
494
  queryParams: []
493
495
  },
494
496
  "update-document": {
495
497
  serviceClass: "Documents",
496
498
  operationId: "updateDocument",
497
499
  description: "Update a document",
498
- pathParams: ["id"],
500
+ pathParams: ["document_id"],
499
501
  queryParams: []
500
502
  },
501
503
  "delete-document": {
502
504
  serviceClass: "Documents",
503
505
  operationId: "deleteDocument",
504
506
  description: "Delete a document",
505
- pathParams: ["id"],
507
+ pathParams: ["document_id"],
506
508
  queryParams: []
507
509
  },
508
510
  "get-document-tags": {
509
511
  serviceClass: "Documents",
510
512
  operationId: "getDocumentTags",
511
513
  description: "Get document tags",
512
- pathParams: ["id"],
514
+ pathParams: ["document_id"],
513
515
  queryParams: []
514
516
  },
515
517
  "replace-document-tags": {
516
518
  serviceClass: "Documents",
517
519
  operationId: "replaceDocumentTags",
518
520
  description: "Replace document tags",
519
- pathParams: ["id"],
521
+ pathParams: ["document_id"],
520
522
  queryParams: []
521
523
  },
522
524
  "merge-document-tags": {
523
525
  serviceClass: "Documents",
524
526
  operationId: "mergeDocumentTags",
525
527
  description: "Merge document tags",
526
- pathParams: ["id"],
528
+ pathParams: ["document_id"],
527
529
  queryParams: []
528
530
  },
529
531
  "search-documents": {
@@ -565,56 +567,56 @@ var routes = {
565
567
  serviceClass: "Files",
566
568
  operationId: "getFile",
567
569
  description: "Get a file by ID",
568
- pathParams: ["id"],
570
+ pathParams: ["file_id"],
569
571
  queryParams: []
570
572
  },
571
573
  "delete-file": {
572
574
  serviceClass: "Files",
573
575
  operationId: "deleteFile",
574
576
  description: "Delete a file",
575
- pathParams: ["id"],
577
+ pathParams: ["file_id"],
576
578
  queryParams: []
577
579
  },
578
580
  "download-file": {
579
581
  serviceClass: "Files",
580
582
  operationId: "downloadFile",
581
583
  description: "Download a file",
582
- pathParams: ["id"],
584
+ pathParams: ["file_id"],
583
585
  queryParams: []
584
586
  },
585
587
  "update-file-metadata": {
586
588
  serviceClass: "Files",
587
589
  operationId: "updateFileMetadata",
588
590
  description: "Update file metadata",
589
- pathParams: ["id"],
591
+ pathParams: ["file_id"],
590
592
  queryParams: []
591
593
  },
592
594
  "download-file-base64": {
593
595
  serviceClass: "Files",
594
596
  operationId: "downloadFileBase64",
595
597
  description: "Download file as base64",
596
- pathParams: ["id"],
598
+ pathParams: ["file_id"],
597
599
  queryParams: []
598
600
  },
599
601
  "get-file-tags": {
600
602
  serviceClass: "Files",
601
603
  operationId: "getFileTags",
602
604
  description: "Get file tags",
603
- pathParams: ["id"],
605
+ pathParams: ["file_id"],
604
606
  queryParams: []
605
607
  },
606
608
  "replace-file-tags": {
607
609
  serviceClass: "Files",
608
610
  operationId: "replaceFileTags",
609
611
  description: "Replace file tags",
610
- pathParams: ["id"],
612
+ pathParams: ["file_id"],
611
613
  queryParams: []
612
614
  },
613
615
  "merge-file-tags": {
614
616
  serviceClass: "Files",
615
617
  operationId: "mergeFileTags",
616
618
  description: "Merge file tags",
617
- pathParams: ["id"],
619
+ pathParams: ["file_id"],
618
620
  queryParams: []
619
621
  },
620
622
  "list-policies": {
@@ -810,14 +812,14 @@ var routes = {
810
812
  serviceClass: "Users",
811
813
  operationId: "getUser",
812
814
  description: "Get a user by ID",
813
- pathParams: ["id"],
815
+ pathParams: ["user_id"],
814
816
  queryParams: []
815
817
  },
816
818
  "delete-user": {
817
819
  serviceClass: "Users",
818
820
  operationId: "deleteUser",
819
821
  description: "Delete a user by ID",
820
- pathParams: ["id"],
822
+ pathParams: ["user_id"],
821
823
  queryParams: []
822
824
  },
823
825
  "bootstrap-user": {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@inquirer/input": "^5.0.12",
7
7
  "@inquirer/password": "^5.0.12",
8
8
  "@ttoss/logger": "^0.8.10",
9
9
  "commander": "^14.0.3",
10
- "@soat/sdk": "0.4.4"
10
+ "@soat/sdk": "0.4.6"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@ttoss/config": "^1.37.10",
@@ -26,7 +26,9 @@
26
26
  "type": "git",
27
27
  "url": "https://github.com/ttoss/soat"
28
28
  },
29
- "bin": "./bin/soat",
29
+ "bin": {
30
+ "soat": "./bin/soat"
31
+ },
30
32
  "publishConfig": {
31
33
  "access": "public",
32
34
  "provenance": true