@epilot/sdk 2.10.3 → 2.11.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.
- package/definitions/customer-portal.json +79 -21
- package/definitions/webhooks-runtime.json +1 -1
- package/definitions/webhooks.json +49 -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.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- 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.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 +6 -6
- package/dist/apis/metering.js +1 -1
- 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.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 +8 -8
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +2 -2
- 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-K732EC6B.js → chunk-CF2RGSFQ.js} +3 -3
- package/dist/{chunk-ESCPKTPT.cjs → chunk-LJ4LC3P3.cjs} +3 -3
- package/dist/{chunk-KYCVV2XE.cjs → chunk-NGGI52NV.cjs} +1 -1
- package/dist/{chunk-RGO3LTAM.js → chunk-OV4MYZR5.js} +1 -1
- package/dist/customer-portal-K2HBVB7T.cjs +7 -0
- package/dist/customer-portal-UAKA5B2P.js +7 -0
- package/dist/{customer-portal.d-JUlTCfGt.d.cts → customer-portal.d-C9TeumWq.d.cts} +50 -26
- package/dist/{customer-portal.d-JUlTCfGt.d.ts → customer-portal.d-C9TeumWq.d.ts} +50 -26
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/webhooks-K2SR7P75.cjs +7 -0
- package/dist/webhooks-TO24LUVN.js +7 -0
- package/dist/{webhooks-runtime-UYTPQQVG.js → webhooks-runtime-7WUVZ67Z.js} +1 -1
- package/dist/{webhooks-runtime-QVAFNBDW.cjs → webhooks-runtime-EXBZXG37.cjs} +2 -2
- package/dist/{webhooks.d-DKZOMj1P.d.cts → webhooks.d-CVTTnVT9.d.cts} +24 -3
- package/dist/{webhooks.d-DKZOMj1P.d.ts → webhooks.d-CVTTnVT9.d.ts} +24 -3
- package/docs/customer-portal.md +69 -9
- package/docs/webhooks.md +31 -7
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/customer-portal-EJBJ4BNI.cjs +0 -7
- package/dist/customer-portal-ZVST2CTU.js +0 -7
- package/dist/webhooks-6CUXSTPH.cjs +0 -7
- package/dist/webhooks-DTNKNJEN.js +0 -7
|
@@ -153,6 +153,10 @@ declare namespace Components {
|
|
|
153
153
|
string?,
|
|
154
154
|
string?
|
|
155
155
|
];
|
|
156
|
+
/**
|
|
157
|
+
* When true, reconstruct the original (pre-transform) input for each event and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default).
|
|
158
|
+
*/
|
|
159
|
+
reapply_transform?: boolean;
|
|
156
160
|
}
|
|
157
161
|
/**
|
|
158
162
|
* Object representing custom headers as key-value pairs.
|
|
@@ -363,6 +367,12 @@ declare namespace Components {
|
|
|
363
367
|
*/
|
|
364
368
|
issuer?: string;
|
|
365
369
|
}
|
|
370
|
+
export interface ReplayRequest {
|
|
371
|
+
/**
|
|
372
|
+
* When true, reconstruct the original (pre-transform) event input and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default).
|
|
373
|
+
*/
|
|
374
|
+
reapply_transform?: boolean;
|
|
375
|
+
}
|
|
366
376
|
export interface SearchOptions {
|
|
367
377
|
/**
|
|
368
378
|
* Maximum number of results to return
|
|
@@ -693,6 +703,14 @@ declare namespace Components {
|
|
|
693
703
|
* Number of automatic delivery retries that preceded this terminal outcome. 0 means the event was delivered (or finally failed) on the first attempt.
|
|
694
704
|
*/
|
|
695
705
|
retry_attempt?: number;
|
|
706
|
+
/**
|
|
707
|
+
* Whether this event can be replayed with the JSONata transform re-applied. True only when the webhook config has a non-empty jsonataExpression AND a usable original source exists (a catalog reference or a locally stored original payload). Computed without a synchronous catalog round-trip.
|
|
708
|
+
*/
|
|
709
|
+
can_reapply_transform?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Reason explaining the can_reapply_transform value.
|
|
712
|
+
*/
|
|
713
|
+
can_reapply_transform_reason?: "available" | "no_transform_configured" | "no_original_source";
|
|
696
714
|
}
|
|
697
715
|
}
|
|
698
716
|
}
|
|
@@ -960,10 +978,12 @@ declare namespace Paths {
|
|
|
960
978
|
configId: Parameters.ConfigId;
|
|
961
979
|
eventId: Parameters.EventId;
|
|
962
980
|
}
|
|
981
|
+
export type RequestBody = Components.Schemas.ReplayRequest;
|
|
963
982
|
namespace Responses {
|
|
964
983
|
export interface $204 {
|
|
965
984
|
}
|
|
966
985
|
export type $404 = Components.Schemas.ErrorResp;
|
|
986
|
+
export type $422 = Components.Schemas.ErrorResp;
|
|
967
987
|
export type $500 = Components.Schemas.ErrorResp;
|
|
968
988
|
}
|
|
969
989
|
}
|
|
@@ -1197,7 +1217,7 @@ interface OperationMethods {
|
|
|
1197
1217
|
*/
|
|
1198
1218
|
'replayEvent'(
|
|
1199
1219
|
parameters?: Parameters<Paths.ReplayEvent.PathParameters> | null,
|
|
1200
|
-
data?:
|
|
1220
|
+
data?: Paths.ReplayEvent.RequestBody,
|
|
1201
1221
|
config?: AxiosRequestConfig
|
|
1202
1222
|
): OperationResponse<Paths.ReplayEvent.Responses.$204>
|
|
1203
1223
|
/**
|
|
@@ -1375,7 +1395,7 @@ interface PathsDictionary {
|
|
|
1375
1395
|
*/
|
|
1376
1396
|
'post'(
|
|
1377
1397
|
parameters?: Parameters<Paths.ReplayEvent.PathParameters> | null,
|
|
1378
|
-
data?:
|
|
1398
|
+
data?: Paths.ReplayEvent.RequestBody,
|
|
1379
1399
|
config?: AxiosRequestConfig
|
|
1380
1400
|
): OperationResponse<Paths.ReplayEvent.Responses.$204>
|
|
1381
1401
|
}
|
|
@@ -1428,6 +1448,7 @@ type Metadata = Components.Schemas.Metadata;
|
|
|
1428
1448
|
type OAuthConfig = Components.Schemas.OAuthConfig;
|
|
1429
1449
|
type PayloadConfiguration = Components.Schemas.PayloadConfiguration;
|
|
1430
1450
|
type PublicKeyResponse = Components.Schemas.PublicKeyResponse;
|
|
1451
|
+
type ReplayRequest = Components.Schemas.ReplayRequest;
|
|
1431
1452
|
type SearchOptions = Components.Schemas.SearchOptions;
|
|
1432
1453
|
type TestOAuthResponse = Components.Schemas.TestOAuthResponse;
|
|
1433
1454
|
type TriggerWebhookResp = Components.Schemas.TriggerWebhookResp;
|
|
@@ -1436,4 +1457,4 @@ type WebhookConditionGroup = Components.Schemas.WebhookConditionGroup;
|
|
|
1436
1457
|
type WebhookConfig = Components.Schemas.WebhookConfig;
|
|
1437
1458
|
type WebhookEvent = Components.Schemas.WebhookEvent;
|
|
1438
1459
|
|
|
1439
|
-
export { type ApiKeyConfig as A, type BasicAuthConfig as B, type Client as C, type ErrorResp as E, type Filter as F, type HttpMethod as H, type Metadata as M, type OperationMethods as O, Paths as P, type SearchOptions as S, type TestOAuthResponse as T, type WebhookCondition as W, Components as a, type PathsDictionary as b, type Auth as c, type AuthType as d, type BatchReplayRequest as e, type CustomHeader as f, type CustomOAuthParameter as g, type EventConfigEntry as h, type EventConfigResp as i, type EventListResponse as j, type ExampleRequest as k, type ExampleResponse as l, type ExecutionPayload as m, type OAuthConfig as n, type PayloadConfiguration as o, type PublicKeyResponse as p, type TriggerWebhookResp as q, type WebhookConditionGroup as r, type WebhookConfig as s, type WebhookEvent as t };
|
|
1460
|
+
export { type ApiKeyConfig as A, type BasicAuthConfig as B, type Client as C, type ErrorResp as E, type Filter as F, type HttpMethod as H, type Metadata as M, type OperationMethods as O, Paths as P, type ReplayRequest as R, type SearchOptions as S, type TestOAuthResponse as T, type WebhookCondition as W, Components as a, type PathsDictionary as b, type Auth as c, type AuthType as d, type BatchReplayRequest as e, type CustomHeader as f, type CustomOAuthParameter as g, type EventConfigEntry as h, type EventConfigResp as i, type EventListResponse as j, type ExampleRequest as k, type ExampleResponse as l, type ExecutionPayload as m, type OAuthConfig as n, type PayloadConfiguration as o, type PublicKeyResponse as p, type TriggerWebhookResp as q, type WebhookConditionGroup as r, type WebhookConfig as s, type WebhookEvent as t };
|
|
@@ -153,6 +153,10 @@ declare namespace Components {
|
|
|
153
153
|
string?,
|
|
154
154
|
string?
|
|
155
155
|
];
|
|
156
|
+
/**
|
|
157
|
+
* When true, reconstruct the original (pre-transform) input for each event and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default).
|
|
158
|
+
*/
|
|
159
|
+
reapply_transform?: boolean;
|
|
156
160
|
}
|
|
157
161
|
/**
|
|
158
162
|
* Object representing custom headers as key-value pairs.
|
|
@@ -363,6 +367,12 @@ declare namespace Components {
|
|
|
363
367
|
*/
|
|
364
368
|
issuer?: string;
|
|
365
369
|
}
|
|
370
|
+
export interface ReplayRequest {
|
|
371
|
+
/**
|
|
372
|
+
* When true, reconstruct the original (pre-transform) event input and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default).
|
|
373
|
+
*/
|
|
374
|
+
reapply_transform?: boolean;
|
|
375
|
+
}
|
|
366
376
|
export interface SearchOptions {
|
|
367
377
|
/**
|
|
368
378
|
* Maximum number of results to return
|
|
@@ -693,6 +703,14 @@ declare namespace Components {
|
|
|
693
703
|
* Number of automatic delivery retries that preceded this terminal outcome. 0 means the event was delivered (or finally failed) on the first attempt.
|
|
694
704
|
*/
|
|
695
705
|
retry_attempt?: number;
|
|
706
|
+
/**
|
|
707
|
+
* Whether this event can be replayed with the JSONata transform re-applied. True only when the webhook config has a non-empty jsonataExpression AND a usable original source exists (a catalog reference or a locally stored original payload). Computed without a synchronous catalog round-trip.
|
|
708
|
+
*/
|
|
709
|
+
can_reapply_transform?: boolean;
|
|
710
|
+
/**
|
|
711
|
+
* Reason explaining the can_reapply_transform value.
|
|
712
|
+
*/
|
|
713
|
+
can_reapply_transform_reason?: "available" | "no_transform_configured" | "no_original_source";
|
|
696
714
|
}
|
|
697
715
|
}
|
|
698
716
|
}
|
|
@@ -960,10 +978,12 @@ declare namespace Paths {
|
|
|
960
978
|
configId: Parameters.ConfigId;
|
|
961
979
|
eventId: Parameters.EventId;
|
|
962
980
|
}
|
|
981
|
+
export type RequestBody = Components.Schemas.ReplayRequest;
|
|
963
982
|
namespace Responses {
|
|
964
983
|
export interface $204 {
|
|
965
984
|
}
|
|
966
985
|
export type $404 = Components.Schemas.ErrorResp;
|
|
986
|
+
export type $422 = Components.Schemas.ErrorResp;
|
|
967
987
|
export type $500 = Components.Schemas.ErrorResp;
|
|
968
988
|
}
|
|
969
989
|
}
|
|
@@ -1197,7 +1217,7 @@ interface OperationMethods {
|
|
|
1197
1217
|
*/
|
|
1198
1218
|
'replayEvent'(
|
|
1199
1219
|
parameters?: Parameters<Paths.ReplayEvent.PathParameters> | null,
|
|
1200
|
-
data?:
|
|
1220
|
+
data?: Paths.ReplayEvent.RequestBody,
|
|
1201
1221
|
config?: AxiosRequestConfig
|
|
1202
1222
|
): OperationResponse<Paths.ReplayEvent.Responses.$204>
|
|
1203
1223
|
/**
|
|
@@ -1375,7 +1395,7 @@ interface PathsDictionary {
|
|
|
1375
1395
|
*/
|
|
1376
1396
|
'post'(
|
|
1377
1397
|
parameters?: Parameters<Paths.ReplayEvent.PathParameters> | null,
|
|
1378
|
-
data?:
|
|
1398
|
+
data?: Paths.ReplayEvent.RequestBody,
|
|
1379
1399
|
config?: AxiosRequestConfig
|
|
1380
1400
|
): OperationResponse<Paths.ReplayEvent.Responses.$204>
|
|
1381
1401
|
}
|
|
@@ -1428,6 +1448,7 @@ type Metadata = Components.Schemas.Metadata;
|
|
|
1428
1448
|
type OAuthConfig = Components.Schemas.OAuthConfig;
|
|
1429
1449
|
type PayloadConfiguration = Components.Schemas.PayloadConfiguration;
|
|
1430
1450
|
type PublicKeyResponse = Components.Schemas.PublicKeyResponse;
|
|
1451
|
+
type ReplayRequest = Components.Schemas.ReplayRequest;
|
|
1431
1452
|
type SearchOptions = Components.Schemas.SearchOptions;
|
|
1432
1453
|
type TestOAuthResponse = Components.Schemas.TestOAuthResponse;
|
|
1433
1454
|
type TriggerWebhookResp = Components.Schemas.TriggerWebhookResp;
|
|
@@ -1436,4 +1457,4 @@ type WebhookConditionGroup = Components.Schemas.WebhookConditionGroup;
|
|
|
1436
1457
|
type WebhookConfig = Components.Schemas.WebhookConfig;
|
|
1437
1458
|
type WebhookEvent = Components.Schemas.WebhookEvent;
|
|
1438
1459
|
|
|
1439
|
-
export { type ApiKeyConfig as A, type BasicAuthConfig as B, type Client as C, type ErrorResp as E, type Filter as F, type HttpMethod as H, type Metadata as M, type OperationMethods as O, Paths as P, type SearchOptions as S, type TestOAuthResponse as T, type WebhookCondition as W, Components as a, type PathsDictionary as b, type Auth as c, type AuthType as d, type BatchReplayRequest as e, type CustomHeader as f, type CustomOAuthParameter as g, type EventConfigEntry as h, type EventConfigResp as i, type EventListResponse as j, type ExampleRequest as k, type ExampleResponse as l, type ExecutionPayload as m, type OAuthConfig as n, type PayloadConfiguration as o, type PublicKeyResponse as p, type TriggerWebhookResp as q, type WebhookConditionGroup as r, type WebhookConfig as s, type WebhookEvent as t };
|
|
1460
|
+
export { type ApiKeyConfig as A, type BasicAuthConfig as B, type Client as C, type ErrorResp as E, type Filter as F, type HttpMethod as H, type Metadata as M, type OperationMethods as O, Paths as P, type ReplayRequest as R, type SearchOptions as S, type TestOAuthResponse as T, type WebhookCondition as W, Components as a, type PathsDictionary as b, type Auth as c, type AuthType as d, type BatchReplayRequest as e, type CustomHeader as f, type CustomOAuthParameter as g, type EventConfigEntry as h, type EventConfigResp as i, type EventListResponse as j, type ExampleRequest as k, type ExampleResponse as l, type ExecutionPayload as m, type OAuthConfig as n, type PayloadConfiguration as o, type PublicKeyResponse as p, type TriggerWebhookResp as q, type WebhookConditionGroup as r, type WebhookConfig as s, type WebhookEvent as t };
|
package/docs/customer-portal.md
CHANGED
|
@@ -174,6 +174,8 @@ const { data } = await customerPortalClient.upsertPortal(...)
|
|
|
174
174
|
- [`MobileBranding`](#mobilebranding)
|
|
175
175
|
- [`MobileConfig`](#mobileconfig)
|
|
176
176
|
- [`MobileConfigUpdate`](#mobileconfigupdate)
|
|
177
|
+
- [`MobileOtaConfig`](#mobileotaconfig)
|
|
178
|
+
- [`OtaPortal`](#otaportal)
|
|
177
179
|
- [`ContextEntity`](#contextentity)
|
|
178
180
|
- [`ContextEntities`](#contextentities)
|
|
179
181
|
- [`ErrorResp`](#errorresp)
|
|
@@ -4194,8 +4196,7 @@ const { data } = await client.checkContactExists(
|
|
|
4194
4196
|
contract: {
|
|
4195
4197
|
contract_number: '123456'
|
|
4196
4198
|
}
|
|
4197
|
-
}
|
|
4198
|
-
trigger_identifiers_check: true
|
|
4199
|
+
}
|
|
4199
4200
|
},
|
|
4200
4201
|
)
|
|
4201
4202
|
```
|
|
@@ -4206,8 +4207,7 @@ const { data } = await client.checkContactExists(
|
|
|
4206
4207
|
```json
|
|
4207
4208
|
{
|
|
4208
4209
|
"exists": true,
|
|
4209
|
-
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4210
|
-
"reason": "TIMEOUT"
|
|
4210
|
+
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4211
4211
|
}
|
|
4212
4212
|
```
|
|
4213
4213
|
|
|
@@ -4239,8 +4239,7 @@ const { data } = await client.checkContactExistsV3(
|
|
|
4239
4239
|
contract: {
|
|
4240
4240
|
contract_number: '123456'
|
|
4241
4241
|
}
|
|
4242
|
-
}
|
|
4243
|
-
trigger_identifiers_check: true
|
|
4242
|
+
}
|
|
4244
4243
|
},
|
|
4245
4244
|
)
|
|
4246
4245
|
```
|
|
@@ -4252,8 +4251,7 @@ const { data } = await client.checkContactExistsV3(
|
|
|
4252
4251
|
{
|
|
4253
4252
|
"exists": true,
|
|
4254
4253
|
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528",
|
|
4255
|
-
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4256
|
-
"reason": "TIMEOUT"
|
|
4254
|
+
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
|
|
4257
4255
|
}
|
|
4258
4256
|
```
|
|
4259
4257
|
|
|
@@ -9193,6 +9191,13 @@ const { data } = await client.getMobileConfig({
|
|
|
9193
9191
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
9194
9192
|
"error": "string"
|
|
9195
9193
|
}
|
|
9194
|
+
},
|
|
9195
|
+
"ota": {
|
|
9196
|
+
"enabled": true,
|
|
9197
|
+
"channel": "canary",
|
|
9198
|
+
"auto_update": true,
|
|
9199
|
+
"update_strategy": "next-launch",
|
|
9200
|
+
"min_native_version": "string"
|
|
9196
9201
|
}
|
|
9197
9202
|
}
|
|
9198
9203
|
```
|
|
@@ -9233,6 +9238,13 @@ const { data } = await client.putMobileConfig(
|
|
|
9233
9238
|
icon_background_color: 'string',
|
|
9234
9239
|
splash_background_color: 'string',
|
|
9235
9240
|
splash_background_color_dark: 'string'
|
|
9241
|
+
},
|
|
9242
|
+
ota: {
|
|
9243
|
+
enabled: true,
|
|
9244
|
+
channel: 'canary',
|
|
9245
|
+
auto_update: true,
|
|
9246
|
+
update_strategy: 'next-launch',
|
|
9247
|
+
min_native_version: 'string'
|
|
9236
9248
|
}
|
|
9237
9249
|
},
|
|
9238
9250
|
)
|
|
@@ -9284,6 +9296,13 @@ const { data } = await client.putMobileConfig(
|
|
|
9284
9296
|
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
9285
9297
|
"error": "string"
|
|
9286
9298
|
}
|
|
9299
|
+
},
|
|
9300
|
+
"ota": {
|
|
9301
|
+
"enabled": true,
|
|
9302
|
+
"channel": "canary",
|
|
9303
|
+
"auto_update": true,
|
|
9304
|
+
"update_strategy": "next-launch",
|
|
9305
|
+
"min_native_version": "string"
|
|
9287
9306
|
}
|
|
9288
9307
|
}
|
|
9289
9308
|
```
|
|
@@ -9370,6 +9389,13 @@ type MobileConfig = {
|
|
|
9370
9389
|
error?: { ... }
|
|
9371
9390
|
}
|
|
9372
9391
|
}
|
|
9392
|
+
ota?: {
|
|
9393
|
+
enabled?: boolean
|
|
9394
|
+
channel?: "canary" | "stable"
|
|
9395
|
+
auto_update?: boolean
|
|
9396
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9397
|
+
min_native_version?: string
|
|
9398
|
+
}
|
|
9373
9399
|
}
|
|
9374
9400
|
```
|
|
9375
9401
|
|
|
@@ -9398,6 +9424,41 @@ type MobileConfigUpdate = {
|
|
|
9398
9424
|
splash_background_color?: string
|
|
9399
9425
|
splash_background_color_dark?: string
|
|
9400
9426
|
}
|
|
9427
|
+
ota?: {
|
|
9428
|
+
enabled?: boolean
|
|
9429
|
+
channel?: "canary" | "stable"
|
|
9430
|
+
auto_update?: boolean
|
|
9431
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9432
|
+
min_native_version?: string
|
|
9433
|
+
}
|
|
9434
|
+
}
|
|
9435
|
+
```
|
|
9436
|
+
|
|
9437
|
+
### `MobileOtaConfig`
|
|
9438
|
+
|
|
9439
|
+
OTA (over-the-air) update settings for the portal's mobile app. Drives the OTA build pipeline and the per-portal manifest. channel / update_strategy / min_native_version are epilot-internal controls.
|
|
9440
|
+
|
|
9441
|
+
```ts
|
|
9442
|
+
type MobileOtaConfig = {
|
|
9443
|
+
enabled?: boolean
|
|
9444
|
+
channel?: "canary" | "stable"
|
|
9445
|
+
auto_update?: boolean
|
|
9446
|
+
update_strategy?: "next-launch" | "immediate"
|
|
9447
|
+
min_native_version?: string
|
|
9448
|
+
}
|
|
9449
|
+
```
|
|
9450
|
+
|
|
9451
|
+
### `OtaPortal`
|
|
9452
|
+
|
|
9453
|
+
A portal that has mobile OTA updates enabled.
|
|
9454
|
+
|
|
9455
|
+
```ts
|
|
9456
|
+
type OtaPortal = {
|
|
9457
|
+
domain: string
|
|
9458
|
+
channel: "canary" | "stable"
|
|
9459
|
+
autoUpdate: boolean
|
|
9460
|
+
updateStrategy: "next-launch" | "immediate"
|
|
9461
|
+
minNativeVersion?: string
|
|
9401
9462
|
}
|
|
9402
9463
|
```
|
|
9403
9464
|
|
|
@@ -10398,7 +10459,6 @@ type ContactCountRequest = {
|
|
|
10398
10459
|
type ContactExistsRequest = {
|
|
10399
10460
|
org_id: string
|
|
10400
10461
|
registration_identifiers: Record<string, Record<string, string>>
|
|
10401
|
-
trigger_identifiers_check?: boolean
|
|
10402
10462
|
}
|
|
10403
10463
|
```
|
|
10404
10464
|
|
package/docs/webhooks.md
CHANGED
|
@@ -69,6 +69,7 @@ const { data } = await webhooksClient.getPublicKey(...)
|
|
|
69
69
|
- [`ExampleRequest`](#examplerequest)
|
|
70
70
|
- [`ExampleResponse`](#exampleresponse)
|
|
71
71
|
- [`TestOAuthResponse`](#testoauthresponse)
|
|
72
|
+
- [`ReplayRequest`](#replayrequest)
|
|
72
73
|
- [`BatchReplayRequest`](#batchreplayrequest)
|
|
73
74
|
|
|
74
75
|
### `getPublicKey`
|
|
@@ -423,7 +424,8 @@ const { data } = await client.batchReplayEvents(
|
|
|
423
424
|
configId: 'example',
|
|
424
425
|
},
|
|
425
426
|
{
|
|
426
|
-
eventIds: ['2f1b7cf8-ff55-4359-966f-e56f39a52c94', '48c984bf-466b-470b-b743-d07cea168243']
|
|
427
|
+
eventIds: ['2f1b7cf8-ff55-4359-966f-e56f39a52c94', '48c984bf-466b-470b-b743-d07cea168243'],
|
|
428
|
+
reapply_transform: false
|
|
427
429
|
},
|
|
428
430
|
)
|
|
429
431
|
```
|
|
@@ -476,7 +478,9 @@ const { data } = await client.getEventById({
|
|
|
476
478
|
"status": "succeeded",
|
|
477
479
|
"http_method": "GET",
|
|
478
480
|
"payload": "string",
|
|
479
|
-
"retry_attempt": 0
|
|
481
|
+
"retry_attempt": 0,
|
|
482
|
+
"can_reapply_transform": true,
|
|
483
|
+
"can_reapply_transform_reason": "available"
|
|
480
484
|
}
|
|
481
485
|
```
|
|
482
486
|
|
|
@@ -491,10 +495,15 @@ Replay a webhook event
|
|
|
491
495
|
`POST /v1/webhooks/configs/{configId}/events/{eventId}/replay`
|
|
492
496
|
|
|
493
497
|
```ts
|
|
494
|
-
const { data } = await client.replayEvent(
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
+
const { data } = await client.replayEvent(
|
|
499
|
+
{
|
|
500
|
+
configId: 'example',
|
|
501
|
+
eventId: 'example',
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
reapply_transform: false
|
|
505
|
+
},
|
|
506
|
+
)
|
|
498
507
|
```
|
|
499
508
|
|
|
500
509
|
---
|
|
@@ -607,7 +616,9 @@ const { data } = await client.getWebhookEventsV2(
|
|
|
607
616
|
"status": "succeeded",
|
|
608
617
|
"http_method": "GET",
|
|
609
618
|
"payload": "string",
|
|
610
|
-
"retry_attempt": 0
|
|
619
|
+
"retry_attempt": 0,
|
|
620
|
+
"can_reapply_transform": true,
|
|
621
|
+
"can_reapply_transform_reason": "available"
|
|
611
622
|
}
|
|
612
623
|
],
|
|
613
624
|
"next_cursor": {
|
|
@@ -686,6 +697,8 @@ type EventListResponse = {
|
|
|
686
697
|
http_method?: "GET" | "POST" | "PUT"
|
|
687
698
|
payload?: string
|
|
688
699
|
retry_attempt?: number
|
|
700
|
+
can_reapply_transform?: boolean
|
|
701
|
+
can_reapply_transform_reason?: "available" | "no_transform_configured" | "no_original_source"
|
|
689
702
|
}>
|
|
690
703
|
next_cursor?: {
|
|
691
704
|
created_at?: string // date-time
|
|
@@ -1054,6 +1067,8 @@ type WebhookEvent = {
|
|
|
1054
1067
|
http_method?: "GET" | "POST" | "PUT"
|
|
1055
1068
|
payload?: string
|
|
1056
1069
|
retry_attempt?: number
|
|
1070
|
+
can_reapply_transform?: boolean
|
|
1071
|
+
can_reapply_transform_reason?: "available" | "no_transform_configured" | "no_original_source"
|
|
1057
1072
|
}
|
|
1058
1073
|
```
|
|
1059
1074
|
|
|
@@ -1098,10 +1113,19 @@ type TestOAuthResponse = {
|
|
|
1098
1113
|
}
|
|
1099
1114
|
```
|
|
1100
1115
|
|
|
1116
|
+
### `ReplayRequest`
|
|
1117
|
+
|
|
1118
|
+
```ts
|
|
1119
|
+
type ReplayRequest = {
|
|
1120
|
+
reapply_transform?: boolean
|
|
1121
|
+
}
|
|
1122
|
+
```
|
|
1123
|
+
|
|
1101
1124
|
### `BatchReplayRequest`
|
|
1102
1125
|
|
|
1103
1126
|
```ts
|
|
1104
1127
|
type BatchReplayRequest = {
|
|
1105
1128
|
eventIds: string[]
|
|
1129
|
+
reapply_transform?: boolean
|
|
1106
1130
|
}
|
|
1107
1131
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "JavaScript/TypeScript SDK for epilot APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -322,16 +322,6 @@
|
|
|
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
|
-
},
|
|
335
325
|
"keywords": [
|
|
336
326
|
"epilot",
|
|
337
327
|
"sdk",
|
|
@@ -525,5 +515,14 @@
|
|
|
525
515
|
"./dist/apis/workflow-definition.d.ts"
|
|
526
516
|
]
|
|
527
517
|
}
|
|
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"
|
|
528
527
|
}
|
|
529
|
-
}
|
|
528
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"s":"https://focus-pocus.dev.sls.epilot.io","o":[["getHealth","get","/v1/health"],["listAchievements","get","/v1/achievements"],["getAchievement","get","/v1/achievements/{id}",[["AchievementOrChallengeId"]]],["getSuggestedChallenge","get","/v1/challenges/suggest",[["route","q"],["entity_type","q"],["category_hint","q"]]],["acceptChallenge","post","/v1/challenges/{id}/accept",[["ChallengeId"]]],["dismissChallenge","post","/v1/challenges/{id}/dismiss",[["ChallengeId"]]],["listActiveChallenges","get","/v1/challenges/active"],["postEvent","post","/v1/events",null,1]],"v":"3.0.3","cp":{"AchievementId":["id","p",true],"AchievementOrChallengeId":["id","p",true],"ChallengeId":["id","p",true],"Cursor":["cursor","q"],"Size":["size","q"]}}
|