@epilot/sdk 2.18.33 → 2.19.0

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 (142) hide show
  1. package/definitions/entity.json +64 -2
  2. package/definitions/integration-toolkit.json +29 -11
  3. package/definitions/pricing.json +25 -7
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +6 -6
  13. package/dist/apis/app.js +1 -1
  14. package/dist/apis/audit-logs.cjs +6 -6
  15. package/dist/apis/audit-logs.js +1 -1
  16. package/dist/apis/automation.cjs +6 -6
  17. package/dist/apis/automation.js +1 -1
  18. package/dist/apis/billing.cjs +6 -6
  19. package/dist/apis/billing.js +1 -1
  20. package/dist/apis/blueprint-manifest.cjs +6 -6
  21. package/dist/apis/blueprint-manifest.js +1 -1
  22. package/dist/apis/calendar.cjs +6 -6
  23. package/dist/apis/calendar.js +1 -1
  24. package/dist/apis/configuration-hub.cjs +6 -6
  25. package/dist/apis/configuration-hub.js +1 -1
  26. package/dist/apis/consent.cjs +6 -6
  27. package/dist/apis/consent.js +1 -1
  28. package/dist/apis/customer-portal.cjs +6 -6
  29. package/dist/apis/customer-portal.js +1 -1
  30. package/dist/apis/dashboard.cjs +6 -6
  31. package/dist/apis/dashboard.js +1 -1
  32. package/dist/apis/data-governance.cjs +6 -6
  33. package/dist/apis/data-governance.js +1 -1
  34. package/dist/apis/deduplication.cjs +6 -6
  35. package/dist/apis/deduplication.js +1 -1
  36. package/dist/apis/design.cjs +6 -6
  37. package/dist/apis/design.js +1 -1
  38. package/dist/apis/document.cjs +6 -6
  39. package/dist/apis/document.js +1 -1
  40. package/dist/apis/email-settings.cjs +6 -6
  41. package/dist/apis/email-settings.js +1 -1
  42. package/dist/apis/email-template.cjs +6 -6
  43. package/dist/apis/email-template.js +1 -1
  44. package/dist/apis/entity-mapping.cjs +6 -6
  45. package/dist/apis/entity-mapping.js +1 -1
  46. package/dist/apis/entity.cjs +6 -6
  47. package/dist/apis/entity.d.cts +2 -2
  48. package/dist/apis/entity.d.ts +2 -2
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.d.cts +2 -2
  60. package/dist/apis/integration-toolkit.d.ts +2 -2
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.d.cts +2 -2
  84. package/dist/apis/pricing.d.ts +2 -2
  85. package/dist/apis/pricing.js +1 -1
  86. package/dist/apis/purpose.cjs +6 -6
  87. package/dist/apis/purpose.js +1 -1
  88. package/dist/apis/query.cjs +6 -6
  89. package/dist/apis/query.js +1 -1
  90. package/dist/apis/sandbox.cjs +6 -6
  91. package/dist/apis/sandbox.js +1 -1
  92. package/dist/apis/sharing.cjs +6 -6
  93. package/dist/apis/sharing.js +1 -1
  94. package/dist/apis/snapshot.cjs +6 -6
  95. package/dist/apis/snapshot.js +1 -1
  96. package/dist/apis/submission.cjs +6 -6
  97. package/dist/apis/submission.js +1 -1
  98. package/dist/apis/target.cjs +6 -6
  99. package/dist/apis/target.js +1 -1
  100. package/dist/apis/targeting.cjs +6 -6
  101. package/dist/apis/targeting.js +1 -1
  102. package/dist/apis/template-variables.cjs +6 -6
  103. package/dist/apis/template-variables.js +1 -1
  104. package/dist/apis/user.cjs +6 -6
  105. package/dist/apis/user.js +1 -1
  106. package/dist/apis/validation-rules.cjs +6 -6
  107. package/dist/apis/validation-rules.js +1 -1
  108. package/dist/apis/webhooks.cjs +6 -6
  109. package/dist/apis/webhooks.js +1 -1
  110. package/dist/apis/workflow-definition.cjs +6 -6
  111. package/dist/apis/workflow-definition.js +1 -1
  112. package/dist/apis/workflow.cjs +6 -6
  113. package/dist/apis/workflow.js +1 -1
  114. package/dist/{chunk-W636M2L3.js → chunk-BVCHHE2R.js} +3 -3
  115. package/dist/{chunk-3GSQBFJZ.cjs → chunk-C543QHBO.cjs} +3 -3
  116. package/dist/entity-5EFSNTP7.cjs +7 -0
  117. package/dist/entity-62ROADV5.js +7 -0
  118. package/dist/{entity.d-BOpXYCU2.d.cts → entity.d-CQXFlO3D.d.cts} +66 -3
  119. package/dist/{entity.d-BOpXYCU2.d.ts → entity.d-CQXFlO3D.d.ts} +66 -3
  120. package/dist/index.cjs +8 -8
  121. package/dist/index.d.cts +3 -3
  122. package/dist/index.d.ts +3 -3
  123. package/dist/index.js +1 -1
  124. package/dist/integration-toolkit-6SBBMBPK.cjs +7 -0
  125. package/dist/integration-toolkit-AWMCD2KB.js +7 -0
  126. package/dist/{integration-toolkit.d-D8kNGpJq.d.cts → integration-toolkit.d-CLVwmd8s.d.cts} +858 -7
  127. package/dist/{integration-toolkit.d-D8kNGpJq.d.ts → integration-toolkit.d-CLVwmd8s.d.ts} +858 -7
  128. package/dist/js-yaml-DLCVPJ7G.js +0 -0
  129. package/dist/pricing-5EKKEZSL.js +7 -0
  130. package/dist/pricing-N4Z2CHGZ.cjs +7 -0
  131. package/dist/{pricing.d-D6HCZpbI.d.cts → pricing.d-Det6zqGv.d.cts} +29 -11
  132. package/dist/{pricing.d-D6HCZpbI.d.ts → pricing.d-Det6zqGv.d.ts} +29 -11
  133. package/docs/entity.md +49 -2
  134. package/docs/integration-toolkit.md +22 -7
  135. package/docs/pricing.md +13 -13
  136. package/package.json +12 -11
  137. package/dist/entity-DBJ2R3UN.js +0 -7
  138. package/dist/entity-HO34WNFK.cjs +0 -7
  139. package/dist/integration-toolkit-RVVT6BCK.cjs +0 -7
  140. package/dist/integration-toolkit-X64BK3WX.js +0 -7
  141. package/dist/pricing-HQ75T2TF.js +0 -7
  142. package/dist/pricing-HTU5XPZE.cjs +0 -7
package/docs/entity.md CHANGED
@@ -232,6 +232,7 @@ const { data } = await entityClient.listSchemas(...)
232
232
  - [`GraphSeed`](#graphseed)
233
233
  - [`GraphDefinition`](#graphdefinition)
234
234
  - [`GraphNode`](#graphnode)
235
+ - [`GraphNodeFilter`](#graphnodefilter)
235
236
  - [`GraphEdge`](#graphedge)
236
237
  - [`GraphQueryResponse`](#graphqueryresponse)
237
238
  - [`EntitySearchResults`](#entitysearchresults)
@@ -491,6 +492,10 @@ const { data } = await client.getSchema({
491
492
  "widget_visibility": {
492
493
  "next_best_action": true,
493
494
  "address_map": false
495
+ },
496
+ "widget_widths": {
497
+ "address_map": "full_width",
498
+ "recent_communications": "one_third_width"
494
499
  }
495
500
  },
496
501
  "capabilities": [
@@ -649,6 +654,10 @@ const { data } = await client.putSchema(
649
654
  widget_visibility: {
650
655
  next_best_action: true,
651
656
  address_map: false
657
+ },
658
+ widget_widths: {
659
+ address_map: 'full_width',
660
+ recent_communications: 'one_third_width'
652
661
  }
653
662
  },
654
663
  capabilities: [
@@ -807,6 +816,10 @@ const { data } = await client.putSchema(
807
816
  "widget_visibility": {
808
817
  "next_best_action": true,
809
818
  "address_map": false
819
+ },
820
+ "widget_widths": {
821
+ "address_map": "full_width",
822
+ "recent_communications": "one_third_width"
810
823
  }
811
824
  },
812
825
  "capabilities": [
@@ -1257,6 +1270,10 @@ const { data } = await client.freezeSchema(
1257
1270
  "widget_visibility": {
1258
1271
  "next_best_action": true,
1259
1272
  "address_map": false
1273
+ },
1274
+ "widget_widths": {
1275
+ "address_map": "full_width",
1276
+ "recent_communications": "one_third_width"
1260
1277
  }
1261
1278
  },
1262
1279
  "capabilities": [
@@ -1429,6 +1446,10 @@ const { data } = await client.unfreezeSchema({
1429
1446
  "widget_visibility": {
1430
1447
  "next_best_action": true,
1431
1448
  "address_map": false
1449
+ },
1450
+ "widget_widths": {
1451
+ "address_map": "full_width",
1452
+ "recent_communications": "one_third_width"
1432
1453
  }
1433
1454
  },
1434
1455
  "capabilities": [
@@ -5215,6 +5236,7 @@ const { data } = await client.createSchemaCapability(
5215
5236
  header: true,
5216
5237
  requiredPermission: { /* ... */ },
5217
5238
  default_visible: false,
5239
+ default_width: 'half_width',
5218
5240
  pricing_tier_setting: 'entity_address_maps'
5219
5241
  }
5220
5242
  ],
@@ -5350,6 +5372,7 @@ const { data } = await client.createSchemaCapability(
5350
5372
  "header": true,
5351
5373
  "requiredPermission": {},
5352
5374
  "default_visible": false,
5375
+ "default_width": "half_width",
5353
5376
  "pricing_tier_setting": "entity_address_maps"
5354
5377
  }
5355
5378
  ],
@@ -5500,6 +5523,7 @@ const { data } = await client.getSchemaCapability({
5500
5523
  "header": true,
5501
5524
  "requiredPermission": {},
5502
5525
  "default_visible": false,
5526
+ "default_width": "half_width",
5503
5527
  "pricing_tier_setting": "entity_address_maps"
5504
5528
  }
5505
5529
  ],
@@ -5646,6 +5670,7 @@ const { data } = await client.putSchemaCapability(
5646
5670
  header: true,
5647
5671
  requiredPermission: { /* ... */ },
5648
5672
  default_visible: false,
5673
+ default_width: 'half_width',
5649
5674
  pricing_tier_setting: 'entity_address_maps'
5650
5675
  }
5651
5676
  ],
@@ -5781,6 +5806,7 @@ const { data } = await client.putSchemaCapability(
5781
5806
  "header": true,
5782
5807
  "requiredPermission": {},
5783
5808
  "default_visible": false,
5809
+ "default_width": "half_width",
5784
5810
  "pricing_tier_setting": "entity_address_maps"
5785
5811
  }
5786
5812
  ],
@@ -5931,6 +5957,7 @@ const { data } = await client.deleteSchemaCapability({
5931
5957
  "header": true,
5932
5958
  "requiredPermission": {},
5933
5959
  "default_visible": false,
5960
+ "default_width": "half_width",
5934
5961
  "pricing_tier_setting": "entity_address_maps"
5935
5962
  }
5936
5963
  ],
@@ -6468,6 +6495,7 @@ type EntitySchema = {
6468
6495
  }
6469
6496
  widget_order?: string[]
6470
6497
  widget_visibility?: Record<string, boolean>
6498
+ widget_widths?: Record<string, "one_third_width" | "half_width" | "two_third_width" | "full_width">
6471
6499
  }
6472
6500
  capabilities: Array<{
6473
6501
  id?: string
@@ -6495,7 +6523,6 @@ type EntitySchema = {
6495
6523
  data_classification?: { ... }
6496
6524
  _purpose?: { ... }
6497
6525
  _manifest?: { ... }
6498
- constraints?: { ... }
6499
6526
  // ...
6500
6527
  }
6501
6528
  ```
@@ -6586,6 +6613,7 @@ type EntitySchemaItem = {
6586
6613
  }
6587
6614
  widget_order?: string[]
6588
6615
  widget_visibility?: Record<string, boolean>
6616
+ widget_widths?: Record<string, "one_third_width" | "half_width" | "two_third_width" | "full_width">
6589
6617
  }
6590
6618
  capabilities: Array<{
6591
6619
  id?: string
@@ -6602,7 +6630,6 @@ type EntitySchemaItem = {
6602
6630
  required?: { ... }
6603
6631
  readonly?: { ... }
6604
6632
  deprecated?: { ... }
6605
- variant_overridable?: { ... }
6606
6633
  // ...
6607
6634
  }
6608
6635
  ```
@@ -10636,6 +10663,7 @@ type GraphQueryRequest = {
10636
10663
  schema: { ... }
10637
10664
  cardinality?: { ... }
10638
10665
  fields?: { ... }
10666
+ filter?: { ... }
10639
10667
  }>
10640
10668
  edges: Array<{
10641
10669
  from: { ... }
@@ -10665,6 +10693,10 @@ type GraphDefinition = {
10665
10693
  schema: string
10666
10694
  cardinality?: "one" | "many"
10667
10695
  fields?: object
10696
+ filter?: Array<{
10697
+ attribute: { ... }
10698
+ value: { ... }
10699
+ }>
10668
10700
  }>
10669
10701
  edges: Array<{
10670
10702
  from: string
@@ -10681,6 +10713,21 @@ type GraphNode = {
10681
10713
  schema: string
10682
10714
  cardinality?: "one" | "many"
10683
10715
  fields?: object
10716
+ filter?: Array<{
10717
+ attribute: string
10718
+ value: object
10719
+ }>
10720
+ }
10721
+ ```
10722
+
10723
+ ### `GraphNodeFilter`
10724
+
10725
+ Entities are included in this node's result only if `attribute` exactly equals the literal `value`.
10726
+
10727
+ ```ts
10728
+ type GraphNodeFilter = {
10729
+ attribute: string
10730
+ value: object
10684
10731
  }
10685
10732
  ```
10686
10733
 
@@ -2684,7 +2684,10 @@ const { data } = await client.getEntitySyncStatus({
2684
2684
  "last_synced_at": "1970-01-01T00:00:00.000Z",
2685
2685
  "last_changed_at": "1970-01-01T00:00:00.000Z",
2686
2686
  "last_operation": "create",
2687
- "last_event_id": "string"
2687
+ "last_event_id": "string",
2688
+ "readings_last_synced_at": "1970-01-01T00:00:00.000Z",
2689
+ "readings_last_operation": "upsert",
2690
+ "readings_last_event_id": "string"
2688
2691
  }
2689
2692
  ]
2690
2693
  }
@@ -7783,7 +7786,7 @@ The sc
7783
7786
 
7784
7787
  ```ts
7785
7788
  type DirectPayload = {
7786
- version: "1"
7789
+ version: string
7787
7790
  operations: Array<{
7788
7791
  type?: "entity"
7789
7792
  entity_slug: string
@@ -8031,7 +8034,7 @@ type DirectSimulationRequest = {
8031
8034
  }>
8032
8035
  }
8033
8036
  payload: string | {
8034
- version: "1"
8037
+ version: string
8035
8038
  operations: Array<{
8036
8039
  type?: { ... }
8037
8040
  entity_slug: { ... }
@@ -8333,26 +8336,38 @@ type EntitySyncStatusResponse = {
8333
8336
  integration_id: string // uuid
8334
8337
  entity_slug: string
8335
8338
  use_case_id?: string
8336
- last_synced_at: string // date-time
8339
+ last_synced_at?: string // date-time
8337
8340
  last_changed_at?: string // date-time
8338
- last_operation: "create" | "patch" | "delete" | "no-op"
8341
+ last_operation?: "create" | "patch" | "delete" | "no-op"
8339
8342
  last_event_id?: string
8343
+ readings_last_synced_at?: string // date-time
8344
+ readings_last_operation?: "upsert" | "delete"
8345
+ readings_last_event_id?: string
8340
8346
  }>
8341
8347
  }
8342
8348
  ```
8343
8349
 
8344
8350
  ### `EntitySyncState`
8345
8351
 
8352
+ Inbound sync state of one entity for one integration. Carries two
8353
+ independent groups: the entity-level fields (`last_synced_at`, …) and,
8354
+ on meter/meter_counter entities, the readings-level fields
8355
+ (`readings_last_synced_at`, …). Either group can be present alone — a
8356
+ meter whose readings sync via the
8357
+
8346
8358
  ```ts
8347
8359
  type EntitySyncState = {
8348
8360
  entity_id: string // uuid
8349
8361
  integration_id: string // uuid
8350
8362
  entity_slug: string
8351
8363
  use_case_id?: string
8352
- last_synced_at: string // date-time
8364
+ last_synced_at?: string // date-time
8353
8365
  last_changed_at?: string // date-time
8354
- last_operation: "create" | "patch" | "delete" | "no-op"
8366
+ last_operation?: "create" | "patch" | "delete" | "no-op"
8355
8367
  last_event_id?: string
8368
+ readings_last_synced_at?: string // date-time
8369
+ readings_last_operation?: "upsert" | "delete"
8370
+ readings_last_event_id?: string
8356
8371
  }
8357
8372
  ```
8358
8373
 
package/docs/pricing.md CHANGED
@@ -2673,14 +2673,14 @@ type CreatedVariant = {
2673
2673
  }
2674
2674
  valid_from: string
2675
2675
  values: Record<string, unknown>
2676
- _created_at?: string
2677
- _updated_at?: string
2678
- _revision?: number
2676
+ _created_at: string
2677
+ _updated_at: string
2678
+ _revision: number
2679
2679
  warnings: Array<{
2680
2680
  code: "VARIANT_COUNT_APPROACHING_CAP"
2681
2681
  message: string
2682
- variant_count?: number
2683
- cap?: number
2682
+ variant_count: number
2683
+ cap: number
2684
2684
  }>
2685
2685
  }
2686
2686
  ```
@@ -2691,8 +2691,8 @@ type CreatedVariant = {
2691
2691
  type VariantWriteWarning = {
2692
2692
  code: "VARIANT_COUNT_APPROACHING_CAP"
2693
2693
  message: string
2694
- variant_count?: number
2695
- cap?: number
2694
+ variant_count: number
2695
+ cap: number
2696
2696
  }
2697
2697
  ```
2698
2698
 
@@ -2726,9 +2726,9 @@ type VariantVersion = {
2726
2726
  }
2727
2727
  valid_from: string
2728
2728
  values: Record<string, unknown>
2729
- _created_at?: string
2730
- _updated_at?: string
2731
- _revision?: number
2729
+ _created_at: string
2730
+ _updated_at: string
2731
+ _revision: number
2732
2732
  }
2733
2733
  ```
2734
2734
 
@@ -2747,9 +2747,9 @@ type WrittenVariantVersion = {
2747
2747
  }
2748
2748
  valid_from: string
2749
2749
  values: Record<string, unknown>
2750
- _created_at?: string
2751
- _updated_at?: string
2752
- _revision?: number
2750
+ _created_at: string
2751
+ _updated_at: string
2752
+ _revision: number
2753
2753
  warnings: Array<{
2754
2754
  code: "ACTIVE_VERSION_REPLACED" | "SUPERSEDED_VERSION_WRITTEN"
2755
2755
  message: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.18.33",
3
+ "version": "2.19.0",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -322,6 +322,16 @@
322
322
  },
323
323
  "./workflow-definition/openapi.json": "./definitions/workflow-definition.json"
324
324
  },
325
+ "scripts": {
326
+ "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
327
+ "build": "tsup",
328
+ "build:watch": "tsup --watch",
329
+ "test": "vitest run",
330
+ "test:watch": "vitest",
331
+ "lint": "biome check src",
332
+ "lint:fix": "biome check src --fix",
333
+ "prepublishOnly": "npm run build"
334
+ },
325
335
  "keywords": [
326
336
  "epilot",
327
337
  "sdk",
@@ -515,14 +525,5 @@
515
525
  "./dist/apis/workflow-definition.d.ts"
516
526
  ]
517
527
  }
518
- },
519
- "scripts": {
520
- "generate": "tsx ../../scripts/generate-sdk-v2.ts && pnpm lint:fix",
521
- "build": "tsup",
522
- "build:watch": "tsup --watch",
523
- "test": "vitest run",
524
- "test:watch": "vitest",
525
- "lint": "biome check src",
526
- "lint:fix": "biome check src --fix"
527
528
  }
528
- }
529
+ }