@epilot/cli 0.1.28 → 0.1.32

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.
package/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.28 — CLI for epilot APIs
32
+ epilot v0.1.32 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -12,17 +12,7 @@
12
12
  ],
13
13
  "servers": [
14
14
  {
15
- "url": "https://design-builder-api.{environment}.epilot.io",
16
- "variables": {
17
- "environment": {
18
- "default": "sls",
19
- "enum": [
20
- "sls",
21
- "dev.sls",
22
- "staging.sls"
23
- ]
24
- }
25
- }
15
+ "url": "https://design-builder-api.sls.epilot.io"
26
16
  }
27
17
  ],
28
18
  "security": [
@@ -354,7 +344,7 @@
354
344
  "content": {
355
345
  "application/json": {
356
346
  "schema": {
357
- "type": "object"
347
+ "$ref": "#/components/schemas/ParseThemeFromDesignResp"
358
348
  }
359
349
  }
360
350
  }
@@ -1674,6 +1664,10 @@
1674
1664
  },
1675
1665
  "url": {
1676
1666
  "type": "string"
1667
+ },
1668
+ "file_id": {
1669
+ "type": "string",
1670
+ "description": "ID of the source file entity in the epilot file-entity system. Set when the file was picked from the File Manager (rather than uploaded directly to the design-builder bucket). Consumers resolve the live `public_url` via this reference. The org id is derived from the journey's owning org at render time (same convention as journey image blocks), so blueprint cross-org installs work without any extra remapping."
1677
1671
  }
1678
1672
  },
1679
1673
  "required": [
@@ -1716,6 +1710,52 @@
1716
1710
  "$ref": "#/components/schemas/Application"
1717
1711
  }
1718
1712
  }
1713
+ },
1714
+ "ParseThemeFromDesignResp": {
1715
+ "type": "object",
1716
+ "properties": {
1717
+ "theme": {
1718
+ "$ref": "#/components/schemas/Theme"
1719
+ },
1720
+ "design": {
1721
+ "type": "object",
1722
+ "properties": {
1723
+ "id": {
1724
+ "type": "string"
1725
+ },
1726
+ "last_modified_at": {
1727
+ "type": "string"
1728
+ },
1729
+ "style_name": {
1730
+ "type": "string"
1731
+ },
1732
+ "style": {
1733
+ "type": "object",
1734
+ "properties": {
1735
+ "logo": {
1736
+ "$ref": "#/components/schemas/LogoData"
1737
+ },
1738
+ "palette": {
1739
+ "$ref": "#/components/schemas/PaletteData"
1740
+ },
1741
+ "typography": {
1742
+ "$ref": "#/components/schemas/TypographyData"
1743
+ }
1744
+ }
1745
+ },
1746
+ "custom_theme": {
1747
+ "type": "string"
1748
+ },
1749
+ "use_custom_theme": {
1750
+ "type": "boolean"
1751
+ },
1752
+ "journey_design_tokens": {
1753
+ "type": "object",
1754
+ "description": "Design tokens for journey customization (renamed from design_tokens)"
1755
+ }
1756
+ }
1757
+ }
1758
+ }
1719
1759
  }
1720
1760
  }
1721
1761
  }
@@ -802,7 +802,7 @@
802
802
  "3fa85f64-5717-4562-b3fc-2c963f66afa6"
803
803
  ],
804
804
  "zip_filename": "Documents.zip",
805
- "notify_email": true
805
+ "notify_email": "user@example.com"
806
806
  }
807
807
  }
808
808
  }
@@ -875,6 +875,54 @@
875
875
  }
876
876
  }
877
877
  },
878
+ "/v1/files/{id}/summary:generate": {
879
+ "post": {
880
+ "operationId": "generateFileSummary",
881
+ "summary": "generateFileSummary",
882
+ "description": "Request AI generation of preview and short summaries for a file entity.",
883
+ "tags": [
884
+ "File"
885
+ ],
886
+ "parameters": [
887
+ {
888
+ "name": "id",
889
+ "in": "path",
890
+ "required": true,
891
+ "description": "The UUID of the file entity",
892
+ "schema": {
893
+ "$ref": "#/components/schemas/FileEntityId"
894
+ }
895
+ }
896
+ ],
897
+ "responses": {
898
+ "202": {
899
+ "description": "Summary generation accepted",
900
+ "content": {
901
+ "application/json": {
902
+ "schema": {
903
+ "$ref": "#/components/schemas/FileSummaryGenerationStatus"
904
+ }
905
+ }
906
+ }
907
+ },
908
+ "400": {
909
+ "$ref": "#/components/responses/BadRequestError"
910
+ },
911
+ "401": {
912
+ "$ref": "#/components/responses/UnauthorizedError"
913
+ },
914
+ "403": {
915
+ "$ref": "#/components/responses/ForbiddenError"
916
+ },
917
+ "404": {
918
+ "$ref": "#/components/responses/NotFoundError"
919
+ },
920
+ "500": {
921
+ "$ref": "#/components/responses/InternalServerError"
922
+ }
923
+ }
924
+ }
925
+ },
878
926
  "/v1/files/{id}/preview": {
879
927
  "get": {
880
928
  "operationId": "previewFile",
@@ -2113,6 +2161,19 @@
2113
2161
  },
2114
2162
  "custom_download_url": {
2115
2163
  "$ref": "#/components/schemas/CustomDownloadUrl"
2164
+ },
2165
+ "preview_summary": {
2166
+ "type": "string",
2167
+ "description": "AI-generated compact summary for hover and list preview surfaces.",
2168
+ "readOnly": true
2169
+ },
2170
+ "short_summary": {
2171
+ "type": "string",
2172
+ "description": "AI-generated short paragraph summary for file preview surfaces.",
2173
+ "readOnly": true
2174
+ },
2175
+ "summary_status": {
2176
+ "$ref": "#/components/schemas/FileSummaryStatus"
2116
2177
  }
2117
2178
  }
2118
2179
  },
@@ -2133,6 +2194,28 @@
2133
2194
  "unknown"
2134
2195
  ]
2135
2196
  },
2197
+ "FileSummaryStatus": {
2198
+ "type": "string",
2199
+ "description": "Current AI summary generation state for the file.",
2200
+ "enum": [
2201
+ "processing",
2202
+ "completed",
2203
+ "failed",
2204
+ "unsupported"
2205
+ ],
2206
+ "readOnly": true
2207
+ },
2208
+ "FileSummaryGenerationStatus": {
2209
+ "type": "object",
2210
+ "properties": {
2211
+ "status": {
2212
+ "$ref": "#/components/schemas/FileSummaryStatus"
2213
+ }
2214
+ },
2215
+ "required": [
2216
+ "status"
2217
+ ]
2218
+ },
2136
2219
  "CustomDownloadUrl": {
2137
2220
  "description": "Custom external download url used for the file",
2138
2221
  "type": "string",
@@ -2515,9 +2598,10 @@
2515
2598
  "example": "Documents.zip"
2516
2599
  },
2517
2600
  "notify_email": {
2518
- "type": "boolean",
2519
- "description": "Send email notification when ZIP is ready",
2520
- "default": true
2601
+ "type": "string",
2602
+ "format": "email",
2603
+ "description": "Email address to notify when the ZIP is ready. Omit to skip the email notification.",
2604
+ "example": "user@example.com"
2521
2605
  }
2522
2606
  },
2523
2607
  "oneOf": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.2",
3
3
  "info": {
4
- "version": "2.4.0",
4
+ "version": "2.6.0",
5
5
  "title": "Notes API",
6
6
  "description": "Facade API Backend for Epilot Notes feature",
7
7
  "contact": {
@@ -23,6 +23,9 @@
23
23
  },
24
24
  {
25
25
  "name": "Reactions"
26
+ },
27
+ {
28
+ "name": "Archive"
26
29
  }
27
30
  ],
28
31
  "security": [
@@ -285,6 +288,14 @@
285
288
  }
286
289
  }
287
290
  },
291
+ {
292
+ "in": "query",
293
+ "name": "filter",
294
+ "description": "Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both.",
295
+ "schema": {
296
+ "$ref": "#/components/schemas/NotesListFilter"
297
+ }
298
+ },
288
299
  {
289
300
  "in": "query",
290
301
  "name": "from",
@@ -347,6 +358,74 @@
347
358
  }
348
359
  }
349
360
  },
361
+ "/v1/note/{id}/archive": {
362
+ "post": {
363
+ "operationId": "archiveNote",
364
+ "summary": "archiveNote",
365
+ "description": "Archives a root Note entry by setting its `_archived_at` timestamp to the current server time. The same timestamp is cascaded to every comment under the note so the entire thread is hidden from default listings. Returns 400 if the supplied id is a comment.",
366
+ "tags": [
367
+ "Archive"
368
+ ],
369
+ "parameters": [
370
+ {
371
+ "in": "path",
372
+ "name": "id",
373
+ "description": "The Entity ID of the Note entry to archive",
374
+ "schema": {
375
+ "type": "string",
376
+ "description": "The Entity ID of the Note entry to archive"
377
+ },
378
+ "required": true
379
+ }
380
+ ],
381
+ "responses": {
382
+ "200": {
383
+ "description": "Successful response with the archived Note entity",
384
+ "content": {
385
+ "application/json": {
386
+ "schema": {
387
+ "$ref": "#/components/schemas/NoteEntity"
388
+ }
389
+ }
390
+ }
391
+ }
392
+ }
393
+ }
394
+ },
395
+ "/v1/note/{id}/unarchive": {
396
+ "post": {
397
+ "operationId": "unarchiveNote",
398
+ "summary": "unarchiveNote",
399
+ "description": "Unarchives a root Note entry by clearing its `_archived_at` value. The clear cascades to every comment under the note so the entire thread returns to the active view. Returns 400 if the supplied id is a comment.",
400
+ "tags": [
401
+ "Archive"
402
+ ],
403
+ "parameters": [
404
+ {
405
+ "in": "path",
406
+ "name": "id",
407
+ "description": "The Entity ID of the Note entry to unarchive",
408
+ "schema": {
409
+ "type": "string",
410
+ "description": "The Entity ID of the Note entry to unarchive"
411
+ },
412
+ "required": true
413
+ }
414
+ ],
415
+ "responses": {
416
+ "200": {
417
+ "description": "Successful response with the unarchived Note entity",
418
+ "content": {
419
+ "application/json": {
420
+ "schema": {
421
+ "$ref": "#/components/schemas/NoteEntity"
422
+ }
423
+ }
424
+ }
425
+ }
426
+ }
427
+ }
428
+ },
350
429
  "/v1/note/{id}/context": {
351
430
  "get": {
352
431
  "operationId": "getNoteContexts",
@@ -726,6 +805,12 @@
726
805
  }
727
806
  },
728
807
  "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
808
+ },
809
+ "_archived_at": {
810
+ "type": "string",
811
+ "nullable": true,
812
+ "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
813
+ "format": "date-time"
729
814
  }
730
815
  },
731
816
  "description": "A note Entity object cotaining Entity metadata and content. Relational attributes are hydrated in place."
@@ -927,6 +1012,12 @@
927
1012
  }
928
1013
  },
929
1014
  "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1015
+ },
1016
+ "_archived_at": {
1017
+ "type": "string",
1018
+ "nullable": true,
1019
+ "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1020
+ "format": "date-time"
930
1021
  }
931
1022
  }
932
1023
  },
@@ -1051,6 +1142,12 @@
1051
1142
  }
1052
1143
  },
1053
1144
  "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1145
+ },
1146
+ "_archived_at": {
1147
+ "type": "string",
1148
+ "nullable": true,
1149
+ "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1150
+ "format": "date-time"
1054
1151
  }
1055
1152
  }
1056
1153
  },
@@ -1194,6 +1291,12 @@
1194
1291
  }
1195
1292
  },
1196
1293
  "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1294
+ },
1295
+ "_archived_at": {
1296
+ "type": "string",
1297
+ "nullable": true,
1298
+ "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1299
+ "format": "date-time"
1197
1300
  }
1198
1301
  },
1199
1302
  "required": [
@@ -1422,6 +1525,12 @@
1422
1525
  }
1423
1526
  },
1424
1527
  "description": "Reactions to the note, keyed by reaction type, with an array of user IDs for each type"
1528
+ },
1529
+ "_archived_at": {
1530
+ "type": "string",
1531
+ "nullable": true,
1532
+ "description": "The timestamp of when this Note was archived. Absent or null means the Note is active.",
1533
+ "format": "date-time"
1425
1534
  }
1426
1535
  }
1427
1536
  },
@@ -1454,6 +1563,9 @@
1454
1563
  },
1455
1564
  "description": "When set, the API resolves related entities of these schemas for the primary entity context and includes their notes in the results."
1456
1565
  },
1566
+ "filter": {
1567
+ "$ref": "#/components/schemas/NotesListFilter"
1568
+ },
1457
1569
  "from": {
1458
1570
  "type": "number",
1459
1571
  "default": 0,
@@ -1469,6 +1581,16 @@
1469
1581
  "contexts"
1470
1582
  ]
1471
1583
  },
1584
+ "NotesListFilter": {
1585
+ "type": "string",
1586
+ "enum": [
1587
+ "all",
1588
+ "active",
1589
+ "archived"
1590
+ ],
1591
+ "default": "active",
1592
+ "description": "Archive-state filter. 'active' (default) returns non-archived notes only, 'archived' returns only archived notes, 'all' returns both."
1593
+ },
1472
1594
  "NotesSearchRequestResponse": {
1473
1595
  "type": "object",
1474
1596
  "properties": {
@@ -5432,6 +5432,20 @@
5432
5432
  }
5433
5433
  }
5434
5434
  },
5435
+ "ExternalLocationMetadata": {
5436
+ "allOf": [
5437
+ {
5438
+ "$ref": "#/components/schemas/Provider"
5439
+ }
5440
+ ],
5441
+ "type": "object",
5442
+ "properties": {
5443
+ "inputs": {
5444
+ "type": "object",
5445
+ "additionalProperties": true
5446
+ }
5447
+ }
5448
+ },
5435
5449
  "ExternalPriceMetadata": {
5436
5450
  "allOf": [
5437
5451
  {
@@ -6314,13 +6328,140 @@
6314
6328
  "code": {
6315
6329
  "description": "The provider code",
6316
6330
  "type": "string"
6331
+ },
6332
+ "type": {
6333
+ "description": "The type of product",
6334
+ "type": "string",
6335
+ "enum": [
6336
+ "gas",
6337
+ "power"
6338
+ ]
6339
+ },
6340
+ "additionalData": {
6341
+ "$ref": "#/components/schemas/AdditionalProviderData"
6342
+ },
6343
+ "_meta": {
6344
+ "$ref": "#/components/schemas/SignatureMeta"
6317
6345
  }
6318
6346
  },
6319
6347
  "required": [
6320
6348
  "name",
6321
- "code"
6349
+ "code",
6350
+ "type",
6351
+ "additionalData"
6352
+ ]
6353
+ },
6354
+ "AdditionalProviderData": {
6355
+ "description": "Additional data included in the provider entity",
6356
+ "type": "object",
6357
+ "properties": {
6358
+ "gridOperators": {
6359
+ "type": "array",
6360
+ "items": {
6361
+ "allOf": [
6362
+ {
6363
+ "$ref": "#/components/schemas/MarketParticipant"
6364
+ },
6365
+ {
6366
+ "description": "The grid operator"
6367
+ }
6368
+ ]
6369
+ }
6370
+ },
6371
+ "defaultSuppliers": {
6372
+ "type": "array",
6373
+ "items": {
6374
+ "allOf": [
6375
+ {
6376
+ "$ref": "#/components/schemas/MarketParticipant"
6377
+ },
6378
+ {
6379
+ "description": "The default supplier"
6380
+ }
6381
+ ]
6382
+ }
6383
+ },
6384
+ "marketAreaDetails": {
6385
+ "oneOf": [
6386
+ {
6387
+ "$ref": "#/components/schemas/GasMarketAreaDetails"
6388
+ },
6389
+ {
6390
+ "$ref": "#/components/schemas/PowerMarketAreaDetails"
6391
+ }
6392
+ ]
6393
+ }
6394
+ },
6395
+ "required": [
6396
+ "gridOperators",
6397
+ "defaultSuppliers",
6398
+ "marketAreaDetails"
6322
6399
  ]
6323
6400
  },
6401
+ "MarketParticipant": {
6402
+ "description": "Market participant data",
6403
+ "type": "object",
6404
+ "properties": {
6405
+ "name": {
6406
+ "description": "The name of the participant",
6407
+ "type": "string"
6408
+ },
6409
+ "codeNumber": {
6410
+ "description": "The BDEW/DVGW code number of the participant",
6411
+ "type": "string"
6412
+ },
6413
+ "validFrom": {
6414
+ "description": "The date from which this data is valid from",
6415
+ "type": "string",
6416
+ "format": "date"
6417
+ },
6418
+ "validUntil": {
6419
+ "description": "The date until which this data is valid to",
6420
+ "type": "string",
6421
+ "format": "date"
6422
+ }
6423
+ },
6424
+ "required": [
6425
+ "name",
6426
+ "codeNumber"
6427
+ ]
6428
+ },
6429
+ "GasMarketAreaDetails": {
6430
+ "description": "Market area details for gas",
6431
+ "type": "object",
6432
+ "properties": {
6433
+ "gasType": {
6434
+ "description": "The type of gas used",
6435
+ "type": "string",
6436
+ "enum": [
6437
+ "L-Gas",
6438
+ "H-Gas"
6439
+ ]
6440
+ },
6441
+ "marketArea": {
6442
+ "description": "The name of the market area",
6443
+ "type": "string"
6444
+ },
6445
+ "virtualTradingPoint": {
6446
+ "description": "The vritual trading point identifier",
6447
+ "type": "string"
6448
+ }
6449
+ }
6450
+ },
6451
+ "PowerMarketAreaDetails": {
6452
+ "description": "Market area details for power",
6453
+ "type": "object",
6454
+ "properties": {
6455
+ "controlZone": {
6456
+ "description": "The EIC of the control zone",
6457
+ "type": "string"
6458
+ },
6459
+ "balancingZone": {
6460
+ "description": "The EIC of the balancing zone",
6461
+ "type": "string"
6462
+ }
6463
+ }
6464
+ },
6324
6465
  "Street": {
6325
6466
  "description": "The street entity",
6326
6467
  "type": "object",
@@ -6581,6 +6722,9 @@
6581
6722
  "external_fees_metadata": {
6582
6723
  "$ref": "#/components/schemas/ExternalFeeMetadata"
6583
6724
  },
6725
+ "external_location_metadata": {
6726
+ "$ref": "#/components/schemas/ExternalLocationMetadata"
6727
+ },
6584
6728
  "external_price_metadata": {
6585
6729
  "$ref": "#/components/schemas/ExternalPriceMetadata"
6586
6730
  },
@@ -7679,7 +7823,7 @@
7679
7823
  },
7680
7824
  "cashbacks": {
7681
7825
  "type": "array",
7682
- "description": "The list of cashback sums for each cashback period.",
7826
+ "description": "The list of cashbacks applied.",
7683
7827
  "items": {
7684
7828
  "oneOf": [
7685
7829
  {
@@ -9107,416 +9251,17 @@
9107
9251
  },
9108
9252
  "PortalContext": {
9109
9253
  "type": "object",
9110
- "additionalProperties": false,
9254
+ "additionalProperties": true,
9111
9255
  "properties": {
9112
9256
  "contract": {
9113
9257
  "type": "object",
9114
9258
  "description": "The contract information.",
9115
- "properties": {
9116
- "_id": {
9117
- "type": "string",
9118
- "description": "The unique identifier of the contract."
9119
- },
9120
- "contract_name": {
9121
- "type": "string",
9122
- "description": "Contract Name"
9123
- },
9124
- "contract_number": {
9125
- "type": "string",
9126
- "description": "Contract Number"
9127
- },
9128
- "assignee": {
9129
- "type": "string",
9130
- "description": "Assignee user ID"
9131
- },
9132
- "status": {
9133
- "type": "string",
9134
- "description": "Contract status",
9135
- "enum": [
9136
- "draft",
9137
- "in_approval_process",
9138
- "approved",
9139
- "active",
9140
- "deactivated",
9141
- "revoked",
9142
- "terminated",
9143
- "expired"
9144
- ]
9145
- },
9146
- "description": {
9147
- "type": "string",
9148
- "description": "Description of the contract"
9149
- },
9150
- "billing_account": {
9151
- "type": "object",
9152
- "description": "Billing Account relation"
9153
- },
9154
- "account_number": {
9155
- "type": "string",
9156
- "description": "Account Number"
9157
- },
9158
- "branch": {
9159
- "type": "string",
9160
- "description": "Branch/commodity type (e.g. power, gas, water, waste_water, district_heating, or any custom value)"
9161
- },
9162
- "move_in_date": {
9163
- "type": "string",
9164
- "format": "date",
9165
- "description": "Move In Date"
9166
- },
9167
- "move_out_date": {
9168
- "type": "string",
9169
- "format": "date",
9170
- "description": "Move Out Date"
9171
- },
9172
- "billing_address": {
9173
- "description": "Billing Address",
9174
- "type": "object"
9175
- },
9176
- "delivery_address": {
9177
- "description": "Delivery Address",
9178
- "type": "array",
9179
- "items": {
9180
- "type": "object"
9181
- }
9182
- },
9183
- "additional_addresses": {
9184
- "type": "array",
9185
- "description": "Additional Addresses",
9186
- "items": {
9187
- "type": "object"
9188
- }
9189
- },
9190
- "termination_date": {
9191
- "type": "string",
9192
- "format": "date",
9193
- "description": "Date of Termination"
9194
- },
9195
- "termination_reason": {
9196
- "type": "string",
9197
- "description": "Reason For Termination"
9198
- },
9199
- "start_date": {
9200
- "type": "string",
9201
- "format": "date",
9202
- "description": "Start Date"
9203
- },
9204
- "end_date": {
9205
- "type": "string",
9206
- "format": "date",
9207
- "description": "End Date"
9208
- },
9209
- "customer": {
9210
- "type": "object",
9211
- "description": "Customer relation (contact or account)"
9212
- },
9213
- "order": {
9214
- "type": "string",
9215
- "description": "Order relation ID"
9216
- },
9217
- "type": {
9218
- "type": "string",
9219
- "description": "Contract type",
9220
- "enum": [
9221
- "one_time",
9222
- "recurring"
9223
- ]
9224
- },
9225
- "billing_period": {
9226
- "type": "string",
9227
- "description": "Billing Period",
9228
- "enum": [
9229
- "weekly",
9230
- "monthly",
9231
- "every_quarter",
9232
- "every_6_months",
9233
- "yearly"
9234
- ]
9235
- },
9236
- "billing_duration_amount": {
9237
- "type": "number",
9238
- "description": "Billing Duration amount",
9239
- "minimum": 0
9240
- },
9241
- "billing_duration_unit": {
9242
- "type": "string",
9243
- "description": "Billing Duration Unit",
9244
- "enum": [
9245
- "weeks",
9246
- "months",
9247
- "years"
9248
- ]
9249
- },
9250
- "notice_time_amount": {
9251
- "type": "number",
9252
- "description": "Notice Time amount",
9253
- "minimum": 0
9254
- },
9255
- "notice_time_unit": {
9256
- "type": "string",
9257
- "description": "Notice Time Unit",
9258
- "enum": [
9259
- "weeks",
9260
- "months",
9261
- "years"
9262
- ]
9263
- },
9264
- "termination_time_amount": {
9265
- "type": "number",
9266
- "description": "Termination Time amount",
9267
- "minimum": 0
9268
- },
9269
- "termination_time_unit": {
9270
- "type": "string",
9271
- "description": "Termination Time Unit",
9272
- "enum": [
9273
- "weeks",
9274
- "months",
9275
- "years"
9276
- ]
9277
- },
9278
- "renewal_duration_amount": {
9279
- "type": "number",
9280
- "description": "Renewal Duration amount",
9281
- "minimum": 0
9282
- },
9283
- "renewal_duration_unit": {
9284
- "type": "string",
9285
- "description": "Renewal Duration Unit",
9286
- "enum": [
9287
- "weeks",
9288
- "months",
9289
- "years"
9290
- ]
9291
- },
9292
- "billing_due_day": {
9293
- "type": "number",
9294
- "description": "Billing Due Day"
9295
- },
9296
- "installment_amount": {
9297
- "type": "number"
9298
- },
9299
- "balance": {
9300
- "type": "number",
9301
- "description": "Balance"
9302
- },
9303
- "meters": {
9304
- "type": "array",
9305
- "description": "Meters relation",
9306
- "items": {
9307
- "type": "string"
9308
- }
9309
- },
9310
- "payment": {
9311
- "type": "object",
9312
- "description": "Payment Details relation"
9313
- },
9314
- "last_sync_at": {
9315
- "type": "string",
9316
- "format": "date",
9317
- "description": "Last Sync At"
9318
- },
9319
- "external_id": {
9320
- "type": "string",
9321
- "description": "External ID",
9322
- "readOnly": true
9323
- }
9324
- }
9259
+ "additionalProperties": true
9325
9260
  },
9326
9261
  "contact": {
9327
9262
  "type": "object",
9328
9263
  "description": "The contact information.",
9329
- "properties": {
9330
- "_id": {
9331
- "type": "string",
9332
- "description": "The unique identifier of the contact."
9333
- },
9334
- "salutation": {
9335
- "type": "string",
9336
- "description": "Salutation",
9337
- "enum": [
9338
- "Mr.",
9339
- "Ms. / Mrs.",
9340
- "Company",
9341
- "Contact Person",
9342
- "Company/Contact Person",
9343
- "Spouse",
9344
- "Family",
9345
- "Ownership",
9346
- "Assembly",
9347
- "Other"
9348
- ]
9349
- },
9350
- "title": {
9351
- "type": "string",
9352
- "description": "Title",
9353
- "enum": [
9354
- "Dr.",
9355
- "Prof.",
9356
- "Prof. Dr."
9357
- ]
9358
- },
9359
- "first_name": {
9360
- "type": "string",
9361
- "description": "First Name"
9362
- },
9363
- "last_name": {
9364
- "type": "string",
9365
- "description": "Last Name"
9366
- },
9367
- "customer_number": {
9368
- "type": "string",
9369
- "description": "Customer Number"
9370
- },
9371
- "birthdate": {
9372
- "type": "string",
9373
- "format": "date",
9374
- "description": "Date of Birth"
9375
- },
9376
- "email": {
9377
- "type": "array",
9378
- "description": "Email addresses",
9379
- "items": {
9380
- "type": "object",
9381
- "properties": {
9382
- "email": {
9383
- "type": "string",
9384
- "format": "email"
9385
- },
9386
- "_primary": {
9387
- "type": "boolean"
9388
- }
9389
- }
9390
- }
9391
- },
9392
- "phone": {
9393
- "type": "array",
9394
- "description": "Phone numbers",
9395
- "items": {
9396
- "type": "object",
9397
- "properties": {
9398
- "phone": {
9399
- "type": "string"
9400
- },
9401
- "_primary": {
9402
- "type": "boolean"
9403
- }
9404
- }
9405
- }
9406
- },
9407
- "communication_preference": {
9408
- "type": "string",
9409
- "description": "Standard communication method",
9410
- "enum": [
9411
- "postal",
9412
- "portal"
9413
- ]
9414
- },
9415
- "address": {
9416
- "type": "array",
9417
- "description": "Addresses",
9418
- "items": {
9419
- "type": "object",
9420
- "properties": {
9421
- "_primary": {
9422
- "type": "boolean"
9423
- },
9424
- "postal_code": {
9425
- "type": "string"
9426
- },
9427
- "city": {
9428
- "type": "string"
9429
- },
9430
- "street": {
9431
- "type": "string"
9432
- },
9433
- "street_number": {
9434
- "type": "string"
9435
- },
9436
- "country": {
9437
- "type": "string"
9438
- }
9439
- }
9440
- }
9441
- },
9442
- "payment": {
9443
- "type": "array",
9444
- "description": "Payment methods",
9445
- "items": {
9446
- "type": "object",
9447
- "properties": {
9448
- "_primary": {
9449
- "type": "boolean"
9450
- }
9451
- }
9452
- }
9453
- },
9454
- "account": {
9455
- "type": "array",
9456
- "description": "Account relations",
9457
- "items": {
9458
- "type": "string"
9459
- }
9460
- },
9461
- "marketing_permission": {
9462
- "type": "boolean",
9463
- "description": "Marketing Permission (deprecated)",
9464
- "deprecated": true
9465
- },
9466
- "contact_owner": {
9467
- "type": "string",
9468
- "description": "Contact Owner user ID"
9469
- },
9470
- "consent_email_marketing": {
9471
- "type": "object",
9472
- "description": "Email Marketing consent"
9473
- },
9474
- "consent_sms_marketing": {
9475
- "type": "object",
9476
- "description": "SMS Marketing consent"
9477
- },
9478
- "consent_phone_call": {
9479
- "type": "object",
9480
- "description": "Direct Phone Marketing consent"
9481
- },
9482
- "consent_print_marketing": {
9483
- "type": "object",
9484
- "description": "Print Marketing consent"
9485
- },
9486
- "portal_users": {
9487
- "type": "array",
9488
- "description": "Portal Users relation",
9489
- "items": {
9490
- "type": "string"
9491
- }
9492
- },
9493
- "opportunities": {
9494
- "type": "array",
9495
- "description": "Opportunities relation",
9496
- "items": {
9497
- "type": "string"
9498
- }
9499
- },
9500
- "orders": {
9501
- "type": "array",
9502
- "description": "Orders relation",
9503
- "items": {
9504
- "type": "string"
9505
- }
9506
- },
9507
- "contracts": {
9508
- "type": "array",
9509
- "description": "Contracts relation",
9510
- "items": {
9511
- "type": "string"
9512
- }
9513
- },
9514
- "external_id": {
9515
- "type": "string",
9516
- "description": "External ID",
9517
- "readOnly": true
9518
- }
9519
- }
9264
+ "additionalProperties": true
9520
9265
  },
9521
9266
  "availability_address": {
9522
9267
  "type": "object",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-OBSR3RKB.js";
4
+ } from "../chunk-FN6B4KCD.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.28",
14
+ version: "0.1.32",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -30,8 +30,8 @@ var main = defineCommand({
30
30
  auth: () => import("../auth-CN5EFFDE.js").then((m) => m.default),
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
- completion: () => import("../completion-AUP6EFBO.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-C6AGEAVE.js").then((m) => m.default),
33
+ completion: () => import("../completion-T3EWN6OG.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-QTVSGH5C.js").then((m) => m.default),
35
35
  "access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
36
36
  address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
37
37
  "address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
@@ -133,13 +133,13 @@ process.stderr.on("error", (err) => {
133
133
  if (err.code === "EPIPE") process.exit(0);
134
134
  throw err;
135
135
  });
136
- var VERSION = true ? "0.1.28" : (await null).default.version;
136
+ var VERSION = true ? "0.1.32" : (await null).default.version;
137
137
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
138
138
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
139
139
  var args = process.argv.slice(2);
140
140
  var completionsIdx = args.indexOf("--_completions");
141
141
  if (completionsIdx >= 0) {
142
- const { handleCompletions } = await import("../completion-AUP6EFBO.js");
142
+ const { handleCompletions } = await import("../completion-T3EWN6OG.js");
143
143
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
144
144
  process.exit(0);
145
145
  }
@@ -445,7 +445,7 @@ var API_LIST = [
445
445
  apiName: "design",
446
446
  kebabName: "design",
447
447
  title: "Design Builder API v2",
448
- serverUrl: "https://design-builder-api.{environment}.epilot.io",
448
+ serverUrl: "https://design-builder-api.sls.epilot.io",
449
449
  operationCount: 13,
450
450
  operationIds: [
451
451
  "getAllDesigns",
@@ -689,7 +689,7 @@ var API_LIST = [
689
689
  kebabName: "file",
690
690
  title: "File API",
691
691
  serverUrl: "https://file.sls.epilot.io",
692
- operationCount: 29,
692
+ operationCount: 30,
693
693
  operationIds: [
694
694
  "uploadFileV2",
695
695
  "saveFileV2",
@@ -702,6 +702,7 @@ var API_LIST = [
702
702
  "downloadFiles",
703
703
  "createZipJob",
704
704
  "getZipJob",
705
+ "generateFileSummary",
705
706
  "previewFile",
706
707
  "previewS3FileGet",
707
708
  "previewS3File",
@@ -924,7 +925,7 @@ var API_LIST = [
924
925
  kebabName: "notes",
925
926
  title: "Notes API",
926
927
  serverUrl: "https://notes.sls.epilot.io",
927
- operationCount: 12,
928
+ operationCount: 14,
928
929
  operationIds: [
929
930
  "createNote",
930
931
  "getNote",
@@ -934,6 +935,8 @@ var API_LIST = [
934
935
  "searchNotesByContext",
935
936
  "getNotesByContext",
936
937
  "pinNote",
938
+ "archiveNote",
939
+ "unarchiveNote",
937
940
  "getNoteContexts",
938
941
  "addNoteReaction",
939
942
  "removeNoteReaction",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-OBSR3RKB.js";
4
+ } from "./chunk-FN6B4KCD.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.28";
75
+ if (true) return "0.1.32";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.28",
3
+ "version": "0.1.32",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {