@renterra/sdk 0.2.0 → 0.2.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.
@@ -1,4 +1,582 @@
1
1
  export const toolSchemas = {
2
+ "list_members": {
3
+ "input": {
4
+ "$schema": "http://json-schema.org/draft-07/schema#",
5
+ "type": "object",
6
+ "properties": {
7
+ "page": {
8
+ "default": 0,
9
+ "type": "integer",
10
+ "minimum": 0,
11
+ "maximum": 9007199254740991
12
+ },
13
+ "page_size": {
14
+ "default": 10,
15
+ "type": "integer",
16
+ "minimum": 1,
17
+ "maximum": 50
18
+ },
19
+ "is_driver": {
20
+ "type": "string",
21
+ "enum": [
22
+ "true",
23
+ "false"
24
+ ]
25
+ },
26
+ "is_maintenance_staff": {
27
+ "type": "string",
28
+ "enum": [
29
+ "true",
30
+ "false"
31
+ ]
32
+ }
33
+ },
34
+ "additionalProperties": false
35
+ },
36
+ "output": {
37
+ "$schema": "http://json-schema.org/draft-07/schema#",
38
+ "type": "object",
39
+ "properties": {
40
+ "data": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "id": {
46
+ "type": "string",
47
+ "minLength": 12,
48
+ "maxLength": 12
49
+ },
50
+ "first_name": {
51
+ "type": [
52
+ "string",
53
+ "null"
54
+ ]
55
+ },
56
+ "last_name": {
57
+ "type": [
58
+ "string",
59
+ "null"
60
+ ]
61
+ },
62
+ "branch_id": {
63
+ "anyOf": [
64
+ {
65
+ "type": "string",
66
+ "minLength": 12,
67
+ "maxLength": 12
68
+ },
69
+ {
70
+ "type": "null"
71
+ }
72
+ ]
73
+ },
74
+ "is_driver": {
75
+ "type": "boolean"
76
+ },
77
+ "is_maintenance_staff": {
78
+ "type": "boolean"
79
+ }
80
+ },
81
+ "required": [
82
+ "id",
83
+ "first_name",
84
+ "last_name",
85
+ "branch_id",
86
+ "is_driver",
87
+ "is_maintenance_staff"
88
+ ]
89
+ }
90
+ },
91
+ "pagination": {
92
+ "type": "object",
93
+ "properties": {
94
+ "page": {
95
+ "type": "integer",
96
+ "minimum": -9007199254740991,
97
+ "maximum": 9007199254740991
98
+ },
99
+ "page_size": {
100
+ "type": "integer",
101
+ "minimum": -9007199254740991,
102
+ "maximum": 9007199254740991
103
+ },
104
+ "has_more": {
105
+ "type": "boolean"
106
+ }
107
+ },
108
+ "required": [
109
+ "page",
110
+ "page_size",
111
+ "has_more"
112
+ ]
113
+ }
114
+ },
115
+ "required": [
116
+ "data",
117
+ "pagination"
118
+ ]
119
+ }
120
+ },
121
+ "list_rental_intervals": {
122
+ "input": {
123
+ "$schema": "http://json-schema.org/draft-07/schema#",
124
+ "type": "object",
125
+ "properties": {
126
+ "page": {
127
+ "default": 0,
128
+ "type": "integer",
129
+ "minimum": 0,
130
+ "maximum": 9007199254740991
131
+ },
132
+ "page_size": {
133
+ "default": 10,
134
+ "type": "integer",
135
+ "minimum": 1,
136
+ "maximum": 50
137
+ }
138
+ },
139
+ "additionalProperties": false
140
+ },
141
+ "output": {
142
+ "$schema": "http://json-schema.org/draft-07/schema#",
143
+ "type": "object",
144
+ "properties": {
145
+ "data": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "object",
149
+ "properties": {
150
+ "id": {
151
+ "type": "string",
152
+ "minLength": 12,
153
+ "maxLength": 12
154
+ },
155
+ "name": {
156
+ "type": "string"
157
+ },
158
+ "duration": {
159
+ "type": "string",
160
+ "description": "Configured ISO 8601 rental duration, for example P1D or P1M. Calendar durations are not fixed hour counts."
161
+ },
162
+ "proration_duration": {
163
+ "type": [
164
+ "string",
165
+ "null"
166
+ ]
167
+ },
168
+ "proration_measurement_duration": {
169
+ "type": [
170
+ "string",
171
+ "null"
172
+ ]
173
+ },
174
+ "is_default": {
175
+ "type": "boolean"
176
+ },
177
+ "is_storefront_enabled": {
178
+ "type": "boolean"
179
+ }
180
+ },
181
+ "required": [
182
+ "id",
183
+ "name",
184
+ "duration",
185
+ "proration_duration",
186
+ "proration_measurement_duration",
187
+ "is_default",
188
+ "is_storefront_enabled"
189
+ ]
190
+ }
191
+ },
192
+ "pagination": {
193
+ "type": "object",
194
+ "properties": {
195
+ "page": {
196
+ "type": "integer",
197
+ "minimum": -9007199254740991,
198
+ "maximum": 9007199254740991
199
+ },
200
+ "page_size": {
201
+ "type": "integer",
202
+ "minimum": -9007199254740991,
203
+ "maximum": 9007199254740991
204
+ },
205
+ "has_more": {
206
+ "type": "boolean"
207
+ }
208
+ },
209
+ "required": [
210
+ "page",
211
+ "page_size",
212
+ "has_more"
213
+ ]
214
+ }
215
+ },
216
+ "required": [
217
+ "data",
218
+ "pagination"
219
+ ]
220
+ }
221
+ },
222
+ "list_special_rate_definitions": {
223
+ "input": {
224
+ "$schema": "http://json-schema.org/draft-07/schema#",
225
+ "type": "object",
226
+ "properties": {
227
+ "page": {
228
+ "default": 0,
229
+ "type": "integer",
230
+ "minimum": 0,
231
+ "maximum": 9007199254740991
232
+ },
233
+ "page_size": {
234
+ "default": 10,
235
+ "type": "integer",
236
+ "minimum": 1,
237
+ "maximum": 50
238
+ }
239
+ },
240
+ "additionalProperties": false
241
+ },
242
+ "output": {
243
+ "$schema": "http://json-schema.org/draft-07/schema#",
244
+ "type": "object",
245
+ "properties": {
246
+ "data": {
247
+ "type": "array",
248
+ "items": {
249
+ "type": "object",
250
+ "properties": {
251
+ "id": {
252
+ "type": "string",
253
+ "minLength": 12,
254
+ "maxLength": 12
255
+ },
256
+ "name": {
257
+ "type": "string"
258
+ },
259
+ "day_of_week_start": {
260
+ "type": "integer",
261
+ "minimum": 0,
262
+ "maximum": 6,
263
+ "description": "0 = Sunday, 6 = Saturday; interpreted in the organization's timezone."
264
+ },
265
+ "time_of_day_start": {
266
+ "type": "string",
267
+ "description": "Local start time in HH:MM:SS format."
268
+ },
269
+ "day_of_week_end": {
270
+ "type": "integer",
271
+ "minimum": 0,
272
+ "maximum": 6
273
+ },
274
+ "time_of_day_end": {
275
+ "type": "string",
276
+ "description": "Local end time in HH:MM:SS format."
277
+ },
278
+ "order_priority": {
279
+ "type": "integer",
280
+ "minimum": -9007199254740991,
281
+ "maximum": 9007199254740991
282
+ },
283
+ "is_default": {
284
+ "type": "boolean"
285
+ }
286
+ },
287
+ "required": [
288
+ "id",
289
+ "name",
290
+ "day_of_week_start",
291
+ "time_of_day_start",
292
+ "day_of_week_end",
293
+ "time_of_day_end",
294
+ "order_priority",
295
+ "is_default"
296
+ ]
297
+ }
298
+ },
299
+ "pagination": {
300
+ "type": "object",
301
+ "properties": {
302
+ "page": {
303
+ "type": "integer",
304
+ "minimum": -9007199254740991,
305
+ "maximum": 9007199254740991
306
+ },
307
+ "page_size": {
308
+ "type": "integer",
309
+ "minimum": -9007199254740991,
310
+ "maximum": 9007199254740991
311
+ },
312
+ "has_more": {
313
+ "type": "boolean"
314
+ }
315
+ },
316
+ "required": [
317
+ "page",
318
+ "page_size",
319
+ "has_more"
320
+ ]
321
+ }
322
+ },
323
+ "required": [
324
+ "data",
325
+ "pagination"
326
+ ]
327
+ }
328
+ },
329
+ "submit_feedback": {
330
+ "input": {
331
+ "$schema": "http://json-schema.org/draft-07/schema#",
332
+ "type": "object",
333
+ "properties": {
334
+ "message": {
335
+ "type": "string",
336
+ "minLength": 1,
337
+ "maxLength": 10000,
338
+ "description": "Feedback about Renterra or its MCP tools."
339
+ }
340
+ },
341
+ "required": [
342
+ "message"
343
+ ],
344
+ "additionalProperties": false
345
+ },
346
+ "output": {
347
+ "$schema": "http://json-schema.org/draft-07/schema#",
348
+ "type": "object",
349
+ "properties": {
350
+ "received": {
351
+ "type": "boolean",
352
+ "const": true
353
+ }
354
+ },
355
+ "required": [
356
+ "received"
357
+ ]
358
+ }
359
+ },
360
+ "list_inventory_categories": {
361
+ "input": {
362
+ "$schema": "http://json-schema.org/draft-07/schema#",
363
+ "type": "object",
364
+ "properties": {
365
+ "page": {
366
+ "default": 0,
367
+ "type": "integer",
368
+ "minimum": 0,
369
+ "maximum": 9007199254740991
370
+ },
371
+ "page_size": {
372
+ "default": 10,
373
+ "type": "integer",
374
+ "minimum": 1,
375
+ "maximum": 50
376
+ },
377
+ "include_archived": {
378
+ "default": "false",
379
+ "type": "string",
380
+ "enum": [
381
+ "true",
382
+ "false"
383
+ ]
384
+ },
385
+ "category": {
386
+ "type": "string",
387
+ "maxLength": 191
388
+ },
389
+ "class": {
390
+ "type": "string",
391
+ "maxLength": 191
392
+ },
393
+ "group": {
394
+ "type": "string",
395
+ "maxLength": 191
396
+ }
397
+ },
398
+ "additionalProperties": false
399
+ },
400
+ "output": {
401
+ "$schema": "http://json-schema.org/draft-07/schema#",
402
+ "type": "object",
403
+ "properties": {
404
+ "data": {
405
+ "type": "array",
406
+ "items": {
407
+ "type": "object",
408
+ "properties": {
409
+ "id": {
410
+ "type": "string",
411
+ "minLength": 12,
412
+ "maxLength": 12
413
+ },
414
+ "category": {
415
+ "type": "string"
416
+ },
417
+ "class": {
418
+ "type": "string"
419
+ },
420
+ "group": {
421
+ "type": "string"
422
+ },
423
+ "ara_code": {
424
+ "anyOf": [
425
+ {
426
+ "type": "integer",
427
+ "minimum": -9007199254740991,
428
+ "maximum": 9007199254740991
429
+ },
430
+ {
431
+ "type": "null"
432
+ }
433
+ ]
434
+ },
435
+ "created_at": {
436
+ "type": "string",
437
+ "format": "date-time",
438
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
439
+ },
440
+ "updated_at": {
441
+ "type": "string",
442
+ "format": "date-time",
443
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
444
+ },
445
+ "archived_at": {
446
+ "anyOf": [
447
+ {
448
+ "type": "string",
449
+ "format": "date-time",
450
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
451
+ },
452
+ {
453
+ "type": "null"
454
+ }
455
+ ]
456
+ }
457
+ },
458
+ "required": [
459
+ "id",
460
+ "category",
461
+ "class",
462
+ "group",
463
+ "ara_code",
464
+ "created_at",
465
+ "updated_at",
466
+ "archived_at"
467
+ ]
468
+ }
469
+ },
470
+ "pagination": {
471
+ "type": "object",
472
+ "properties": {
473
+ "page": {
474
+ "type": "integer",
475
+ "minimum": -9007199254740991,
476
+ "maximum": 9007199254740991
477
+ },
478
+ "page_size": {
479
+ "type": "integer",
480
+ "minimum": -9007199254740991,
481
+ "maximum": 9007199254740991
482
+ },
483
+ "has_more": {
484
+ "type": "boolean"
485
+ }
486
+ },
487
+ "required": [
488
+ "page",
489
+ "page_size",
490
+ "has_more"
491
+ ]
492
+ }
493
+ },
494
+ "required": [
495
+ "data",
496
+ "pagination"
497
+ ]
498
+ }
499
+ },
500
+ "get_inventory_category": {
501
+ "input": {
502
+ "$schema": "http://json-schema.org/draft-07/schema#",
503
+ "type": "object",
504
+ "properties": {
505
+ "id": {
506
+ "type": "string",
507
+ "minLength": 12,
508
+ "maxLength": 12
509
+ }
510
+ },
511
+ "required": [
512
+ "id"
513
+ ],
514
+ "additionalProperties": false
515
+ },
516
+ "output": {
517
+ "type": "object",
518
+ "properties": {
519
+ "id": {
520
+ "type": "string",
521
+ "minLength": 12,
522
+ "maxLength": 12
523
+ },
524
+ "category": {
525
+ "type": "string"
526
+ },
527
+ "class": {
528
+ "type": "string"
529
+ },
530
+ "group": {
531
+ "type": "string"
532
+ },
533
+ "ara_code": {
534
+ "anyOf": [
535
+ {
536
+ "type": "integer",
537
+ "minimum": -9007199254740991,
538
+ "maximum": 9007199254740991
539
+ },
540
+ {
541
+ "type": "null"
542
+ }
543
+ ]
544
+ },
545
+ "created_at": {
546
+ "type": "string",
547
+ "format": "date-time",
548
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
549
+ },
550
+ "updated_at": {
551
+ "type": "string",
552
+ "format": "date-time",
553
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
554
+ },
555
+ "archived_at": {
556
+ "anyOf": [
557
+ {
558
+ "type": "string",
559
+ "format": "date-time",
560
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
561
+ },
562
+ {
563
+ "type": "null"
564
+ }
565
+ ]
566
+ }
567
+ },
568
+ "required": [
569
+ "id",
570
+ "category",
571
+ "class",
572
+ "group",
573
+ "ara_code",
574
+ "created_at",
575
+ "updated_at",
576
+ "archived_at"
577
+ ]
578
+ }
579
+ },
2
580
  "search_customers": {
3
581
  "input": {
4
582
  "$schema": "http://json-schema.org/draft-07/schema#",
@@ -541,22 +1119,32 @@ export const toolSchemas = {
541
1119
  }
542
1120
  ]
543
1121
  },
544
- "job_number": {
545
- "type": [
546
- "string",
547
- "null"
548
- ]
549
- },
550
- "job_description": {
551
- "type": [
552
- "string",
553
- "null"
554
- ]
555
- },
556
- "po_number": {
557
- "type": [
558
- "string",
559
- "null"
1122
+ "metadata": {
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "po_number": {
1126
+ "type": [
1127
+ "string",
1128
+ "null"
1129
+ ]
1130
+ },
1131
+ "job_number": {
1132
+ "type": [
1133
+ "string",
1134
+ "null"
1135
+ ]
1136
+ },
1137
+ "job_description": {
1138
+ "type": [
1139
+ "string",
1140
+ "null"
1141
+ ]
1142
+ }
1143
+ },
1144
+ "required": [
1145
+ "po_number",
1146
+ "job_number",
1147
+ "job_description"
560
1148
  ]
561
1149
  },
562
1150
  "contract_signed_at": {
@@ -650,9 +1238,7 @@ export const toolSchemas = {
650
1238
  "branch_id",
651
1239
  "start_time",
652
1240
  "end_time",
653
- "job_number",
654
- "job_description",
655
- "po_number",
1241
+ "metadata",
656
1242
  "contract_signed_at",
657
1243
  "is_historical",
658
1244
  "items",
@@ -761,22 +1347,32 @@ export const toolSchemas = {
761
1347
  }
762
1348
  ]
763
1349
  },
764
- "job_number": {
765
- "type": [
766
- "string",
767
- "null"
768
- ]
769
- },
770
- "job_description": {
771
- "type": [
772
- "string",
773
- "null"
774
- ]
775
- },
776
- "po_number": {
777
- "type": [
778
- "string",
779
- "null"
1350
+ "metadata": {
1351
+ "type": "object",
1352
+ "properties": {
1353
+ "po_number": {
1354
+ "type": [
1355
+ "string",
1356
+ "null"
1357
+ ]
1358
+ },
1359
+ "job_number": {
1360
+ "type": [
1361
+ "string",
1362
+ "null"
1363
+ ]
1364
+ },
1365
+ "job_description": {
1366
+ "type": [
1367
+ "string",
1368
+ "null"
1369
+ ]
1370
+ }
1371
+ },
1372
+ "required": [
1373
+ "po_number",
1374
+ "job_number",
1375
+ "job_description"
780
1376
  ]
781
1377
  },
782
1378
  "contract_signed_at": {
@@ -870,9 +1466,7 @@ export const toolSchemas = {
870
1466
  "branch_id",
871
1467
  "start_time",
872
1468
  "end_time",
873
- "job_number",
874
- "job_description",
875
- "po_number",
1469
+ "metadata",
876
1470
  "contract_signed_at",
877
1471
  "is_historical",
878
1472
  "items",
@@ -1594,7 +2188,9 @@ export const toolSchemas = {
1594
2188
  "maximum": 9007199254740991
1595
2189
  },
1596
2190
  "ledger_account_id": {
1597
- "type": "string"
2191
+ "type": "string",
2192
+ "minLength": 12,
2193
+ "maxLength": 12
1598
2194
  },
1599
2195
  "revenue_allocations": {
1600
2196
  "type": "array",
@@ -1605,7 +2201,9 @@ export const toolSchemas = {
1605
2201
  "type": "string"
1606
2202
  },
1607
2203
  "ledger_account_id": {
1608
- "type": "string"
2204
+ "type": "string",
2205
+ "minLength": 12,
2206
+ "maxLength": 12
1609
2207
  },
1610
2208
  "percentage": {
1611
2209
  "type": "integer",
@@ -1919,7 +2517,9 @@ export const toolSchemas = {
1919
2517
  "maximum": 9007199254740991
1920
2518
  },
1921
2519
  "ledger_account_id": {
1922
- "type": "string"
2520
+ "type": "string",
2521
+ "minLength": 12,
2522
+ "maxLength": 12
1923
2523
  },
1924
2524
  "revenue_allocations": {
1925
2525
  "type": "array",
@@ -1930,7 +2530,9 @@ export const toolSchemas = {
1930
2530
  "type": "string"
1931
2531
  },
1932
2532
  "ledger_account_id": {
1933
- "type": "string"
2533
+ "type": "string",
2534
+ "minLength": 12,
2535
+ "maxLength": 12
1934
2536
  },
1935
2537
  "percentage": {
1936
2538
  "type": "integer",