@epilot/sdk 2.11.6 → 2.12.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.
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/integration-toolkit.json +26 -19
- package/definitions/metering-runtime.json +1 -1
- package/definitions/metering.json +22 -2
- package/definitions/notification.json +14 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +8 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +2 -2
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.d.cts +2 -2
- package/dist/apis/notification.d.ts +2 -2
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/chunk-2KZBLHTS.cjs +14 -0
- package/dist/{chunk-H72QGQR6.js → chunk-FOGUF2AK.js} +4 -4
- package/dist/chunk-K2F255B3.js +14 -0
- package/dist/{chunk-F4KDYDCB.cjs → chunk-XGCTJYBW.cjs} +4 -4
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/integration-toolkit-2BLX4CSH.cjs +7 -0
- package/dist/integration-toolkit-OLFKCTLY.js +7 -0
- package/dist/{integration-toolkit.d-BVe_MBBi.d.cts → integration-toolkit.d-7q19qDTD.d.cts} +20 -11
- package/dist/{integration-toolkit.d-BVe_MBBi.d.ts → integration-toolkit.d-7q19qDTD.d.ts} +20 -11
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/metering-KLRWUTAL.js +7 -0
- package/dist/metering-WU45K2JS.cjs +7 -0
- package/dist/{metering-runtime-KZMJKKUZ.js → metering-runtime-7DPUSUYS.js} +1 -1
- package/dist/{metering-runtime-IUZJHBVS.cjs → metering-runtime-VXOK3WJZ.cjs} +2 -2
- package/dist/{metering.d-CUICZDiL.d.cts → metering.d-BrZWNonl.d.cts} +6 -0
- package/dist/{metering.d-CUICZDiL.d.ts → metering.d-BrZWNonl.d.ts} +6 -0
- package/dist/notification-PLIRHBNF.js +7 -0
- package/dist/notification-R2XBHFEW.cjs +7 -0
- package/dist/{notification.d-BfBL3lga.d.ts → notification.d-r89Jec85.d.cts} +24 -2
- package/dist/{notification.d-BfBL3lga.d.cts → notification.d-r89Jec85.d.ts} +24 -2
- package/docs/integration-toolkit.md +20 -14
- package/docs/metering.md +3 -0
- package/docs/notification.md +10 -3
- package/package.json +12 -11
- package/dist/chunk-56MMZJOD.js +0 -14
- package/dist/chunk-T6A22LSD.cjs +0 -14
- package/dist/integration-toolkit-DUMRNE6A.cjs +0 -7
- package/dist/integration-toolkit-IK7KA76K.js +0 -7
- package/dist/metering-3IUSYAGN.js +0 -7
- package/dist/metering-MHBFU7QH.cjs +0 -7
- package/dist/notification-PZOCUYD5.cjs +0 -7
- package/dist/notification-VWDZRSFZ.js +0 -7
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from notification-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -208,6 +206,14 @@ declare namespace Components {
|
|
|
208
206
|
force_notify_users?: {
|
|
209
207
|
[name: string]: any;
|
|
210
208
|
};
|
|
209
|
+
/**
|
|
210
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
211
|
+
* example:
|
|
212
|
+
* [
|
|
213
|
+
* "in_app"
|
|
214
|
+
* ]
|
|
215
|
+
*/
|
|
216
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
211
217
|
/**
|
|
212
218
|
* example:
|
|
213
219
|
* false
|
|
@@ -301,6 +307,14 @@ declare namespace Components {
|
|
|
301
307
|
force_notify_users?: {
|
|
302
308
|
[name: string]: any;
|
|
303
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
312
|
+
* example:
|
|
313
|
+
* [
|
|
314
|
+
* "in_app"
|
|
315
|
+
* ]
|
|
316
|
+
*/
|
|
317
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
304
318
|
}
|
|
305
319
|
export interface NotificationCallerContext {
|
|
306
320
|
[name: string]: any;
|
|
@@ -447,6 +461,14 @@ declare namespace Components {
|
|
|
447
461
|
force_notify_users?: {
|
|
448
462
|
[name: string]: any;
|
|
449
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
466
|
+
* example:
|
|
467
|
+
* [
|
|
468
|
+
* "in_app"
|
|
469
|
+
* ]
|
|
470
|
+
*/
|
|
471
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
450
472
|
}
|
|
451
473
|
export interface NotificationTemplate {
|
|
452
474
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from notification-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -208,6 +206,14 @@ declare namespace Components {
|
|
|
208
206
|
force_notify_users?: {
|
|
209
207
|
[name: string]: any;
|
|
210
208
|
};
|
|
209
|
+
/**
|
|
210
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
211
|
+
* example:
|
|
212
|
+
* [
|
|
213
|
+
* "in_app"
|
|
214
|
+
* ]
|
|
215
|
+
*/
|
|
216
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
211
217
|
/**
|
|
212
218
|
* example:
|
|
213
219
|
* false
|
|
@@ -301,6 +307,14 @@ declare namespace Components {
|
|
|
301
307
|
force_notify_users?: {
|
|
302
308
|
[name: string]: any;
|
|
303
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
312
|
+
* example:
|
|
313
|
+
* [
|
|
314
|
+
* "in_app"
|
|
315
|
+
* ]
|
|
316
|
+
*/
|
|
317
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
304
318
|
}
|
|
305
319
|
export interface NotificationCallerContext {
|
|
306
320
|
[name: string]: any;
|
|
@@ -447,6 +461,14 @@ declare namespace Components {
|
|
|
447
461
|
force_notify_users?: {
|
|
448
462
|
[name: string]: any;
|
|
449
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* Optional delivery-channel ceiling. When present, delivery is restricted to the intersection of this set and each recipient's own notification preferences — it can only NARROW delivery, never force a channel on. Absent means no restriction (recipient preferences and per-type defaults apply as before). An empty array suppresses all channels.
|
|
466
|
+
* example:
|
|
467
|
+
* [
|
|
468
|
+
* "in_app"
|
|
469
|
+
* ]
|
|
470
|
+
*/
|
|
471
|
+
allowed_channels?: ("email" | "in_app")[];
|
|
450
472
|
}
|
|
451
473
|
export interface NotificationTemplate {
|
|
452
474
|
/**
|
|
@@ -2669,6 +2669,7 @@ const { data } = await client.getMonitoringStatsV2(
|
|
|
2669
2669
|
from_date: '2025-01-01T00:00:00Z',
|
|
2670
2670
|
to_date: '2025-01-31T23:59:59Z',
|
|
2671
2671
|
use_case_type: 'inbound',
|
|
2672
|
+
use_case_types: ['inbound'],
|
|
2672
2673
|
group_by: 'use_case_id',
|
|
2673
2674
|
source: 'monitoring'
|
|
2674
2675
|
},
|
|
@@ -3572,7 +3573,7 @@ type IntegrationSettings = {
|
|
|
3572
3573
|
monitoredUseCases?: string[]
|
|
3573
3574
|
monitoredCodes?: string[]
|
|
3574
3575
|
rules: Array<{
|
|
3575
|
-
id
|
|
3576
|
+
id?: { ... }
|
|
3576
3577
|
name?: { ... }
|
|
3577
3578
|
type: { ... }
|
|
3578
3579
|
enabled: { ... }
|
|
@@ -3583,7 +3584,6 @@ type IntegrationSettings = {
|
|
|
3583
3584
|
fallbackThreshold?: { ... }
|
|
3584
3585
|
window?: { ... }
|
|
3585
3586
|
minSampleSize?: { ... }
|
|
3586
|
-
consecutive?: { ... }
|
|
3587
3587
|
quietPeriod?: { ... }
|
|
3588
3588
|
}>
|
|
3589
3589
|
digest: {
|
|
@@ -3629,9 +3629,9 @@ type IntegrationNotificationConfig = {
|
|
|
3629
3629
|
monitoredUseCases?: string[]
|
|
3630
3630
|
monitoredCodes?: string[]
|
|
3631
3631
|
rules: Array<{
|
|
3632
|
-
id
|
|
3632
|
+
id?: string
|
|
3633
3633
|
name?: string
|
|
3634
|
-
type: "critical_error" | "error_threshold" | "warning_threshold" | "success_rate_drop" | "recovery" | "silence"
|
|
3634
|
+
type: "critical_error" | "error_threshold" | "warning_threshold" | "success_rate_drop" | "recovery" | "silence"
|
|
3635
3635
|
enabled: boolean
|
|
3636
3636
|
channels?: {
|
|
3637
3637
|
email: { ... }
|
|
@@ -3643,7 +3643,6 @@ type IntegrationNotificationConfig = {
|
|
|
3643
3643
|
fallbackThreshold?: number
|
|
3644
3644
|
window?: string
|
|
3645
3645
|
minSampleSize?: number
|
|
3646
|
-
consecutive?: number
|
|
3647
3646
|
quietPeriod?: string
|
|
3648
3647
|
}>
|
|
3649
3648
|
digest: {
|
|
@@ -3686,13 +3685,13 @@ type NotificationChannelSet = {
|
|
|
3686
3685
|
|
|
3687
3686
|
### `NotificationRule`
|
|
3688
3687
|
|
|
3689
|
-
A single notification rule. Only the params relevant to a given type are set. The id is
|
|
3688
|
+
A single notification rule. Only the params relevant to a given type are set. The id is optional on write: the server mints a ULID when omitted and preserves a supplied id verbatim (a stable id keeps a rule's AlertState across config saves).
|
|
3690
3689
|
|
|
3691
3690
|
```ts
|
|
3692
3691
|
type NotificationRule = {
|
|
3693
|
-
id
|
|
3692
|
+
id?: string
|
|
3694
3693
|
name?: string
|
|
3695
|
-
type: "critical_error" | "error_threshold" | "warning_threshold" | "success_rate_drop" | "recovery" | "silence"
|
|
3694
|
+
type: "critical_error" | "error_threshold" | "warning_threshold" | "success_rate_drop" | "recovery" | "silence"
|
|
3696
3695
|
enabled: boolean
|
|
3697
3696
|
channels?: {
|
|
3698
3697
|
email: boolean
|
|
@@ -3704,7 +3703,6 @@ type NotificationRule = {
|
|
|
3704
3703
|
fallbackThreshold?: number
|
|
3705
3704
|
window?: string
|
|
3706
3705
|
minSampleSize?: number
|
|
3707
|
-
consecutive?: number
|
|
3708
3706
|
quietPeriod?: string
|
|
3709
3707
|
}
|
|
3710
3708
|
```
|
|
@@ -3805,6 +3803,7 @@ type IntegrationWithUseCases = {
|
|
|
3805
3803
|
allowed_origins?: { ... }
|
|
3806
3804
|
steps: { ... }
|
|
3807
3805
|
response: { ... }
|
|
3806
|
+
prevent_indirect_serving?: { ... }
|
|
3808
3807
|
}
|
|
3809
3808
|
} | {
|
|
3810
3809
|
id: string // uuid
|
|
@@ -3944,11 +3943,11 @@ type UpsertIntegrationWithUseCasesRequest = {
|
|
|
3944
3943
|
allowed_origins?: { ... }
|
|
3945
3944
|
steps: { ... }
|
|
3946
3945
|
response: { ... }
|
|
3946
|
+
prevent_indirect_serving?: { ... }
|
|
3947
3947
|
}
|
|
3948
3948
|
} | {
|
|
3949
3949
|
id?: string // uuid
|
|
3950
3950
|
name: string
|
|
3951
|
-
slug?: string
|
|
3952
3951
|
// ...
|
|
3953
3952
|
}
|
|
3954
3953
|
```
|
|
@@ -4554,6 +4553,7 @@ type EmbeddedUseCaseRequest = {
|
|
|
4554
4553
|
filename?: { ... }
|
|
4555
4554
|
content_type?: { ... }
|
|
4556
4555
|
}
|
|
4556
|
+
prevent_indirect_serving?: boolean
|
|
4557
4557
|
}
|
|
4558
4558
|
} | {
|
|
4559
4559
|
id?: string // uuid
|
|
@@ -4563,7 +4563,6 @@ type EmbeddedUseCaseRequest = {
|
|
|
4563
4563
|
change_description?: string
|
|
4564
4564
|
type: "managed_call"
|
|
4565
4565
|
configuration?: {
|
|
4566
|
-
operation: {
|
|
4567
4566
|
// ...
|
|
4568
4567
|
}
|
|
4569
4568
|
```
|
|
@@ -4685,6 +4684,7 @@ type EmbeddedFileProxyUseCaseRequest = {
|
|
|
4685
4684
|
filename?: { ... }
|
|
4686
4685
|
content_type?: { ... }
|
|
4687
4686
|
}
|
|
4687
|
+
prevent_indirect_serving?: boolean
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
4690
|
```
|
|
@@ -4861,6 +4861,7 @@ type FileProxyUseCase = {
|
|
|
4861
4861
|
filename?: { ... }
|
|
4862
4862
|
content_type?: { ... }
|
|
4863
4863
|
}
|
|
4864
|
+
prevent_indirect_serving?: boolean
|
|
4864
4865
|
}
|
|
4865
4866
|
}
|
|
4866
4867
|
```
|
|
@@ -5020,7 +5021,7 @@ type UseCase = {
|
|
|
5020
5021
|
filename?: { ... }
|
|
5021
5022
|
content_type?: { ... }
|
|
5022
5023
|
}
|
|
5023
|
-
|
|
5024
|
+
prevent_indirect_serving?: boolean
|
|
5024
5025
|
// ...
|
|
5025
5026
|
}
|
|
5026
5027
|
```
|
|
@@ -5112,6 +5113,7 @@ type CreateUseCaseRequest = {
|
|
|
5112
5113
|
filename?: { ... }
|
|
5113
5114
|
content_type?: { ... }
|
|
5114
5115
|
}
|
|
5116
|
+
prevent_indirect_serving?: boolean
|
|
5115
5117
|
}
|
|
5116
5118
|
} | {
|
|
5117
5119
|
name: string
|
|
@@ -5127,7 +5129,6 @@ type CreateUseCaseRequest = {
|
|
|
5127
5129
|
}
|
|
5128
5130
|
request_mapping?: string
|
|
5129
5131
|
response_mapping?: string
|
|
5130
|
-
inbound_use_case_slug?: string
|
|
5131
5132
|
// ...
|
|
5132
5133
|
}
|
|
5133
5134
|
```
|
|
@@ -5241,6 +5242,7 @@ type CreateFileProxyUseCaseRequest = {
|
|
|
5241
5242
|
filename?: { ... }
|
|
5242
5243
|
content_type?: { ... }
|
|
5243
5244
|
}
|
|
5245
|
+
prevent_indirect_serving?: boolean
|
|
5244
5246
|
}
|
|
5245
5247
|
}
|
|
5246
5248
|
```
|
|
@@ -5373,6 +5375,7 @@ type UpdateUseCaseRequest = {
|
|
|
5373
5375
|
filename?: { ... }
|
|
5374
5376
|
content_type?: { ... }
|
|
5375
5377
|
}
|
|
5378
|
+
prevent_indirect_serving?: boolean
|
|
5376
5379
|
}
|
|
5377
5380
|
} | {
|
|
5378
5381
|
name?: string
|
|
@@ -5385,7 +5388,6 @@ type UpdateUseCaseRequest = {
|
|
|
5385
5388
|
method: { ... }
|
|
5386
5389
|
path: { ... }
|
|
5387
5390
|
headers?: { ... }
|
|
5388
|
-
query_params?: { ... }
|
|
5389
5391
|
// ...
|
|
5390
5392
|
}
|
|
5391
5393
|
```
|
|
@@ -5503,6 +5505,7 @@ type UpdateFileProxyUseCaseRequest = {
|
|
|
5503
5505
|
filename?: { ... }
|
|
5504
5506
|
content_type?: { ... }
|
|
5505
5507
|
}
|
|
5508
|
+
prevent_indirect_serving?: boolean
|
|
5506
5509
|
}
|
|
5507
5510
|
}
|
|
5508
5511
|
```
|
|
@@ -5799,6 +5802,7 @@ type FileProxyUseCaseHistoryEntry = {
|
|
|
5799
5802
|
filename?: { ... }
|
|
5800
5803
|
content_type?: { ... }
|
|
5801
5804
|
}
|
|
5805
|
+
prevent_indirect_serving?: boolean
|
|
5802
5806
|
}
|
|
5803
5807
|
}
|
|
5804
5808
|
```
|
|
@@ -6319,6 +6323,7 @@ type FileProxyUseCaseConfiguration = {
|
|
|
6319
6323
|
filename?: string
|
|
6320
6324
|
content_type?: string
|
|
6321
6325
|
}
|
|
6326
|
+
prevent_indirect_serving?: boolean
|
|
6322
6327
|
}
|
|
6323
6328
|
```
|
|
6324
6329
|
|
|
@@ -7268,6 +7273,7 @@ type GetMonitoringStatsV2Request = {
|
|
|
7268
7273
|
from_date?: string // date-time
|
|
7269
7274
|
to_date?: string // date-time
|
|
7270
7275
|
use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy"
|
|
7276
|
+
use_case_types?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy"[]
|
|
7271
7277
|
group_by?: "use_case_id" | "use_case_type" | "level" | "code" | "date"
|
|
7272
7278
|
source?: "monitoring" | "incoming"
|
|
7273
7279
|
}
|
package/docs/metering.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Metering API
|
|
2
2
|
|
|
3
|
+
- **Base URL:** `https://metering.sls.epilot.io`
|
|
3
4
|
- **Full API Docs:** [https://docs.epilot.io/api/metering](https://docs.epilot.io/api/metering)
|
|
4
5
|
|
|
5
6
|
## Usage
|
|
@@ -581,6 +582,7 @@ const { data } = await client.createMeterReadings(
|
|
|
581
582
|
activity_id: 'example',
|
|
582
583
|
skip_validation: true,
|
|
583
584
|
direct: true,
|
|
585
|
+
create_ticket: true,
|
|
584
586
|
},
|
|
585
587
|
{
|
|
586
588
|
readings: [
|
|
@@ -726,6 +728,7 @@ const { data } = await client.batchWriteMeterReadings(
|
|
|
726
728
|
skip_validation: true,
|
|
727
729
|
activity_id: 'example',
|
|
728
730
|
direct: true,
|
|
731
|
+
create_ticket: true,
|
|
729
732
|
},
|
|
730
733
|
{
|
|
731
734
|
identifiers: ['string'],
|
package/docs/notification.md
CHANGED
|
@@ -149,7 +149,8 @@ const { data } = await client.getNotificationsV2({
|
|
|
149
149
|
"email": false,
|
|
150
150
|
"in_app": false
|
|
151
151
|
}
|
|
152
|
-
}
|
|
152
|
+
},
|
|
153
|
+
"allowed_channels": ["in_app"]
|
|
153
154
|
}
|
|
154
155
|
]
|
|
155
156
|
}
|
|
@@ -230,6 +231,7 @@ const { data } = await client.createNotification(
|
|
|
230
231
|
in_app: false
|
|
231
232
|
}
|
|
232
233
|
},
|
|
234
|
+
allowed_channels: ['in_app'],
|
|
233
235
|
read_state: false,
|
|
234
236
|
visibility_user_ids: ['1', '2', '3', '4', '5']
|
|
235
237
|
},
|
|
@@ -323,7 +325,8 @@ const { data } = await client.getNotifications({
|
|
|
323
325
|
"email": false,
|
|
324
326
|
"in_app": false
|
|
325
327
|
}
|
|
326
|
-
}
|
|
328
|
+
},
|
|
329
|
+
"allowed_channels": ["in_app"]
|
|
327
330
|
}
|
|
328
331
|
]
|
|
329
332
|
}
|
|
@@ -412,7 +415,8 @@ const { data } = await client.getNotification({
|
|
|
412
415
|
"email": false,
|
|
413
416
|
"in_app": false
|
|
414
417
|
}
|
|
415
|
-
}
|
|
418
|
+
},
|
|
419
|
+
"allowed_channels": ["in_app"]
|
|
416
420
|
}
|
|
417
421
|
```
|
|
418
422
|
|
|
@@ -927,6 +931,7 @@ type NotificationItem = {
|
|
|
927
931
|
payload?: object
|
|
928
932
|
}>
|
|
929
933
|
force_notify_users?: Record<string, unknown>
|
|
934
|
+
allowed_channels?: "email" | "in_app"[]
|
|
930
935
|
}
|
|
931
936
|
```
|
|
932
937
|
|
|
@@ -963,6 +968,7 @@ type Notification = {
|
|
|
963
968
|
payload?: object
|
|
964
969
|
}>
|
|
965
970
|
force_notify_users?: Record<string, unknown>
|
|
971
|
+
allowed_channels?: "email" | "in_app"[]
|
|
966
972
|
read_state?: boolean
|
|
967
973
|
visibility_user_ids?: string[]
|
|
968
974
|
}
|
|
@@ -1001,6 +1007,7 @@ type NotificationBase = {
|
|
|
1001
1007
|
payload?: object
|
|
1002
1008
|
}>
|
|
1003
1009
|
force_notify_users?: Record<string, unknown>
|
|
1010
|
+
allowed_channels?: "email" | "in_app"[]
|
|
1004
1011
|
}
|
|
1005
1012
|
```
|
|
1006
1013
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.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
|
+
}
|
package/dist/chunk-56MMZJOD.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-YPSWSI3M.js";
|
|
4
|
-
|
|
5
|
-
// src/definitions/metering-runtime.json
|
|
6
|
-
var require_metering_runtime = __commonJS({
|
|
7
|
-
"src/definitions/metering-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "", o: [["getCustomerMeters", "get", "/v1/metering/meter", [["IncludePendingChangesetsQueryParam"]]], ["getMetersByContractId", "get", "/v1/metering/contract/meters/{contract_id}", [["contract_id", "p", true]]], ["updateMeter", "patch", "/v1/metering/meter/{id}", [["id", "p", true]], 1], ["getMeter", "get", "/v1/metering/meter/{id}", [["id", "p", true]]], ["getMeterCounters", "get", "/v1/metering/counter", [["meter_id", "q", true]]], ["getCounterDetails", "get", "/v1/metering/counter/{counter_id}", [["counter_id", "p", true]]], ["createMeterReading", "post", "/v1/metering/reading", [["DirectQueryParam"]], 1], ["createMeterReadings", "post", "/v1/metering/readings", [["async", "q"], ["ActivityIdQueryParam"], ["SkipValidationQueryParam"], ["DirectQueryParam"]], 1], ["createPortalMeterReadings", "post", "/v1/metering/readings/{meter_id}", [["meter_id", "p", true], ["DirectQueryParam"]], 1], ["batchWriteMeterReadings", "post", "/v2/metering/readings", [["async", "q"], ["SkipValidationQueryParam"], ["ActivityIdQueryParam"], ["DirectQueryParam"]], 1], ["createMeterReadingFromSubmission", "post", "/v1/metering/reading/submission", null, 1], ["getAllowedReadingForMeter", "get", "/v1/metering/allowed/reading/{meter_id}", [["meter_id", "p", true], ["timestamp", "q"]]], ["createReadingWithMeter", "post", "/v1/metering/reading/with-meter", null, 1], ["getReadingsByInterval", "get", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["start_date", "q"], ["end_date", "q"], ["direction", "q"], ["size", "q"], ["from", "q"], ["type", "q", true], ["sort", "q"], ["IncludePendingChangesetsQueryParam"]]], ["updateMeterReading", "put", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["timestamp", "q", true]], 1], ["deleteMeterReading", "delete", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["timestamp", "q", true]]], ["getReadingChangesets", "get", "/v1/metering/reading/{meter_id}/{counter_id}/changesets", [["MeterIdParam"], ["CounterIdParam"]]], ["applyReadingChangeset", "post", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:apply", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]]], ["dismissReadingChangeset", "post", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:dismiss", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]], 1], ["updateReadingChangeset", "patch", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]], 1]], v: "3.0.3", cp: { MeterIdParam: ["meter_id", "p", true], CounterIdParam: ["counter_id", "p", true], DirectQueryParam: ["direct", "q"], IncludePendingChangesetsQueryParam: ["include_pending_changesets", "q"], ActivityIdQueryParam: ["activity_id", "q"], SkipValidationQueryParam: ["skip_validation", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
require_metering_runtime
|
|
14
|
-
};
|
package/dist/chunk-T6A22LSD.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
-
|
|
5
|
-
// src/definitions/metering-runtime.json
|
|
6
|
-
var require_metering_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
-
"src/definitions/metering-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "", o: [["getCustomerMeters", "get", "/v1/metering/meter", [["IncludePendingChangesetsQueryParam"]]], ["getMetersByContractId", "get", "/v1/metering/contract/meters/{contract_id}", [["contract_id", "p", true]]], ["updateMeter", "patch", "/v1/metering/meter/{id}", [["id", "p", true]], 1], ["getMeter", "get", "/v1/metering/meter/{id}", [["id", "p", true]]], ["getMeterCounters", "get", "/v1/metering/counter", [["meter_id", "q", true]]], ["getCounterDetails", "get", "/v1/metering/counter/{counter_id}", [["counter_id", "p", true]]], ["createMeterReading", "post", "/v1/metering/reading", [["DirectQueryParam"]], 1], ["createMeterReadings", "post", "/v1/metering/readings", [["async", "q"], ["ActivityIdQueryParam"], ["SkipValidationQueryParam"], ["DirectQueryParam"]], 1], ["createPortalMeterReadings", "post", "/v1/metering/readings/{meter_id}", [["meter_id", "p", true], ["DirectQueryParam"]], 1], ["batchWriteMeterReadings", "post", "/v2/metering/readings", [["async", "q"], ["SkipValidationQueryParam"], ["ActivityIdQueryParam"], ["DirectQueryParam"]], 1], ["createMeterReadingFromSubmission", "post", "/v1/metering/reading/submission", null, 1], ["getAllowedReadingForMeter", "get", "/v1/metering/allowed/reading/{meter_id}", [["meter_id", "p", true], ["timestamp", "q"]]], ["createReadingWithMeter", "post", "/v1/metering/reading/with-meter", null, 1], ["getReadingsByInterval", "get", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["start_date", "q"], ["end_date", "q"], ["direction", "q"], ["size", "q"], ["from", "q"], ["type", "q", true], ["sort", "q"], ["IncludePendingChangesetsQueryParam"]]], ["updateMeterReading", "put", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["timestamp", "q", true]], 1], ["deleteMeterReading", "delete", "/v1/metering/reading/{meter_id}/{counter_id}", [["meter_id", "p", true], ["counter_id", "p", true], ["timestamp", "q", true]]], ["getReadingChangesets", "get", "/v1/metering/reading/{meter_id}/{counter_id}/changesets", [["MeterIdParam"], ["CounterIdParam"]]], ["applyReadingChangeset", "post", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:apply", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]]], ["dismissReadingChangeset", "post", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}:dismiss", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]], 1], ["updateReadingChangeset", "patch", "/v1/metering/reading/{meter_id}/{counter_id}/changesets/{changeset_id}", [["MeterIdParam"], ["CounterIdParam"], ["changeset_id", "p", true]], 1]], v: "3.0.3", cp: { MeterIdParam: ["meter_id", "p", true], CounterIdParam: ["counter_id", "p", true], DirectQueryParam: ["direct", "q"], IncludePendingChangesetsQueryParam: ["include_pending_changesets", "q"], ActivityIdQueryParam: ["activity_id", "q"], SkipValidationQueryParam: ["skip_validation", "q"] } };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.require_metering_runtime = require_metering_runtime;
|