@vibexp/api-client 0.58.0 → 0.60.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/dist/axios/index.d.ts +2 -2
- package/dist/axios/index.js +1 -1
- package/dist/axios/sdk.gen.d.ts +85 -1
- package/dist/axios/sdk.gen.js +250 -0
- package/dist/axios/types.gen.d.ts +786 -0
- package/dist/schema.d.ts +1313 -70
- package/package.json +1 -1
package/dist/axios/sdk.gen.js
CHANGED
|
@@ -3533,6 +3533,256 @@ export const updateTeamSearchSettings = (options) => (options.client ?? client).
|
|
|
3533
3533
|
...options.headers
|
|
3534
3534
|
}
|
|
3535
3535
|
});
|
|
3536
|
+
/**
|
|
3537
|
+
* List the team's freshness rules
|
|
3538
|
+
*
|
|
3539
|
+
* Returns every freshness rule the team has defined, oldest first. Any member of the team may read them. The array is empty, never null, when the team has no rules.
|
|
3540
|
+
*
|
|
3541
|
+
*/
|
|
3542
|
+
export const listFreshnessRules = (options) => (options.client ?? client).get({
|
|
3543
|
+
responseType: 'json',
|
|
3544
|
+
security: [{
|
|
3545
|
+
key: 'ApiKeyAuth',
|
|
3546
|
+
scheme: 'bearer',
|
|
3547
|
+
type: 'http'
|
|
3548
|
+
}, {
|
|
3549
|
+
in: 'cookie',
|
|
3550
|
+
name: 'vx_session',
|
|
3551
|
+
type: 'apiKey'
|
|
3552
|
+
}],
|
|
3553
|
+
url: '/api/v1/{team_id}/freshness/rules',
|
|
3554
|
+
...options
|
|
3555
|
+
});
|
|
3556
|
+
/**
|
|
3557
|
+
* Create a freshness rule
|
|
3558
|
+
*
|
|
3559
|
+
* Adds a rule to the team. Requires the `team.settings.update` permission. An omitted `mediums` matches any medium; an omitted or null `project_id` applies the rule to every project in the team.
|
|
3560
|
+
*
|
|
3561
|
+
*/
|
|
3562
|
+
export const createFreshnessRule = (options) => (options.client ?? client).post({
|
|
3563
|
+
responseType: 'json',
|
|
3564
|
+
security: [{
|
|
3565
|
+
key: 'ApiKeyAuth',
|
|
3566
|
+
scheme: 'bearer',
|
|
3567
|
+
type: 'http'
|
|
3568
|
+
}, {
|
|
3569
|
+
in: 'cookie',
|
|
3570
|
+
name: 'vx_session',
|
|
3571
|
+
type: 'apiKey'
|
|
3572
|
+
}],
|
|
3573
|
+
url: '/api/v1/{team_id}/freshness/rules',
|
|
3574
|
+
...options,
|
|
3575
|
+
headers: {
|
|
3576
|
+
'Content-Type': 'application/json',
|
|
3577
|
+
...options.headers
|
|
3578
|
+
}
|
|
3579
|
+
});
|
|
3580
|
+
/**
|
|
3581
|
+
* Delete a freshness rule
|
|
3582
|
+
*
|
|
3583
|
+
* Removes the rule and strips it from any freshness state that matched it, so no stale resource keeps referencing a rule that no longer exists. Requires the `team.settings.update` permission.
|
|
3584
|
+
*
|
|
3585
|
+
*/
|
|
3586
|
+
export const deleteFreshnessRule = (options) => (options.client ?? client).delete({
|
|
3587
|
+
security: [{
|
|
3588
|
+
key: 'ApiKeyAuth',
|
|
3589
|
+
scheme: 'bearer',
|
|
3590
|
+
type: 'http'
|
|
3591
|
+
}, {
|
|
3592
|
+
in: 'cookie',
|
|
3593
|
+
name: 'vx_session',
|
|
3594
|
+
type: 'apiKey'
|
|
3595
|
+
}],
|
|
3596
|
+
url: '/api/v1/{team_id}/freshness/rules/{rule_id}',
|
|
3597
|
+
...options
|
|
3598
|
+
});
|
|
3599
|
+
/**
|
|
3600
|
+
* Replace a freshness rule
|
|
3601
|
+
*
|
|
3602
|
+
* Replaces the rule in full — every mutable field is required, because an omitted field would otherwise reset that dimension. Requires the `team.settings.update` permission.
|
|
3603
|
+
*
|
|
3604
|
+
*/
|
|
3605
|
+
export const updateFreshnessRule = (options) => (options.client ?? client).put({
|
|
3606
|
+
responseType: 'json',
|
|
3607
|
+
security: [{
|
|
3608
|
+
key: 'ApiKeyAuth',
|
|
3609
|
+
scheme: 'bearer',
|
|
3610
|
+
type: 'http'
|
|
3611
|
+
}, {
|
|
3612
|
+
in: 'cookie',
|
|
3613
|
+
name: 'vx_session',
|
|
3614
|
+
type: 'apiKey'
|
|
3615
|
+
}],
|
|
3616
|
+
url: '/api/v1/{team_id}/freshness/rules/{rule_id}',
|
|
3617
|
+
...options,
|
|
3618
|
+
headers: {
|
|
3619
|
+
'Content-Type': 'application/json',
|
|
3620
|
+
...options.headers
|
|
3621
|
+
}
|
|
3622
|
+
});
|
|
3623
|
+
/**
|
|
3624
|
+
* Reset the team's freshness settings to the defaults
|
|
3625
|
+
*
|
|
3626
|
+
* Removes the team's stored settings so it inherits the defaults again. Requires the `team.settings.update` permission. Resetting a team that has no stored settings succeeds and changes nothing.
|
|
3627
|
+
*
|
|
3628
|
+
*/
|
|
3629
|
+
export const resetTeamFreshnessSettings = (options) => (options.client ?? client).delete({
|
|
3630
|
+
security: [{
|
|
3631
|
+
key: 'ApiKeyAuth',
|
|
3632
|
+
scheme: 'bearer',
|
|
3633
|
+
type: 'http'
|
|
3634
|
+
}, {
|
|
3635
|
+
in: 'cookie',
|
|
3636
|
+
name: 'vx_session',
|
|
3637
|
+
type: 'apiKey'
|
|
3638
|
+
}],
|
|
3639
|
+
url: '/api/v1/{team_id}/settings/freshness',
|
|
3640
|
+
...options
|
|
3641
|
+
});
|
|
3642
|
+
/**
|
|
3643
|
+
* Get the team's freshness settings
|
|
3644
|
+
*
|
|
3645
|
+
* Returns the freshness evaluation settings in effect for the team, their provenance (`source`), and the defaults a reset would restore. A team that has never overridden them gets `source: instance`. Any member may read them.
|
|
3646
|
+
*
|
|
3647
|
+
*/
|
|
3648
|
+
export const getTeamFreshnessSettings = (options) => (options.client ?? client).get({
|
|
3649
|
+
responseType: 'json',
|
|
3650
|
+
security: [{
|
|
3651
|
+
key: 'ApiKeyAuth',
|
|
3652
|
+
scheme: 'bearer',
|
|
3653
|
+
type: 'http'
|
|
3654
|
+
}, {
|
|
3655
|
+
in: 'cookie',
|
|
3656
|
+
name: 'vx_session',
|
|
3657
|
+
type: 'apiKey'
|
|
3658
|
+
}],
|
|
3659
|
+
url: '/api/v1/{team_id}/settings/freshness',
|
|
3660
|
+
...options
|
|
3661
|
+
});
|
|
3662
|
+
/**
|
|
3663
|
+
* Override the team's freshness settings
|
|
3664
|
+
*
|
|
3665
|
+
* Replaces the team's freshness settings in full. `interval_seconds` below 3600 (one hour) is rejected. Requires the `team.settings.update` permission.
|
|
3666
|
+
*
|
|
3667
|
+
*/
|
|
3668
|
+
export const updateTeamFreshnessSettings = (options) => (options.client ?? client).put({
|
|
3669
|
+
responseType: 'json',
|
|
3670
|
+
security: [{
|
|
3671
|
+
key: 'ApiKeyAuth',
|
|
3672
|
+
scheme: 'bearer',
|
|
3673
|
+
type: 'http'
|
|
3674
|
+
}, {
|
|
3675
|
+
in: 'cookie',
|
|
3676
|
+
name: 'vx_session',
|
|
3677
|
+
type: 'apiKey'
|
|
3678
|
+
}],
|
|
3679
|
+
url: '/api/v1/{team_id}/settings/freshness',
|
|
3680
|
+
...options,
|
|
3681
|
+
headers: {
|
|
3682
|
+
'Content-Type': 'application/json',
|
|
3683
|
+
...options.headers
|
|
3684
|
+
}
|
|
3685
|
+
});
|
|
3686
|
+
/**
|
|
3687
|
+
* Freshness activity over time
|
|
3688
|
+
*
|
|
3689
|
+
* Daily marked/cleared counts and the reconstructed stale level over the requested window, zero-filled so every day in the range is present.
|
|
3690
|
+
*
|
|
3691
|
+
*/
|
|
3692
|
+
export const getFreshnessOverTimeMetrics = (options) => (options.client ?? client).get({
|
|
3693
|
+
responseType: 'json',
|
|
3694
|
+
security: [{
|
|
3695
|
+
key: 'ApiKeyAuth',
|
|
3696
|
+
scheme: 'bearer',
|
|
3697
|
+
type: 'http'
|
|
3698
|
+
}, {
|
|
3699
|
+
in: 'cookie',
|
|
3700
|
+
name: 'vx_session',
|
|
3701
|
+
type: 'apiKey'
|
|
3702
|
+
}],
|
|
3703
|
+
url: '/api/v1/{team_id}/freshness/metrics/over-time',
|
|
3704
|
+
...options
|
|
3705
|
+
});
|
|
3706
|
+
/**
|
|
3707
|
+
* Stale resources by resource type
|
|
3708
|
+
*
|
|
3709
|
+
* Current stale counts per resource type. All four types are always present; one with nothing stale reports 0.
|
|
3710
|
+
*
|
|
3711
|
+
*/
|
|
3712
|
+
export const getFreshnessByTypeMetrics = (options) => (options.client ?? client).get({
|
|
3713
|
+
responseType: 'json',
|
|
3714
|
+
security: [{
|
|
3715
|
+
key: 'ApiKeyAuth',
|
|
3716
|
+
scheme: 'bearer',
|
|
3717
|
+
type: 'http'
|
|
3718
|
+
}, {
|
|
3719
|
+
in: 'cookie',
|
|
3720
|
+
name: 'vx_session',
|
|
3721
|
+
type: 'apiKey'
|
|
3722
|
+
}],
|
|
3723
|
+
url: '/api/v1/{team_id}/freshness/metrics/by-type',
|
|
3724
|
+
...options
|
|
3725
|
+
});
|
|
3726
|
+
/**
|
|
3727
|
+
* Stale resources by project
|
|
3728
|
+
*
|
|
3729
|
+
* Current stale counts per project in the team, including projects with nothing stale.
|
|
3730
|
+
*
|
|
3731
|
+
*/
|
|
3732
|
+
export const getFreshnessByProjectMetrics = (options) => (options.client ?? client).get({
|
|
3733
|
+
responseType: 'json',
|
|
3734
|
+
security: [{
|
|
3735
|
+
key: 'ApiKeyAuth',
|
|
3736
|
+
scheme: 'bearer',
|
|
3737
|
+
type: 'http'
|
|
3738
|
+
}, {
|
|
3739
|
+
in: 'cookie',
|
|
3740
|
+
name: 'vx_session',
|
|
3741
|
+
type: 'apiKey'
|
|
3742
|
+
}],
|
|
3743
|
+
url: '/api/v1/{team_id}/freshness/metrics/by-project',
|
|
3744
|
+
...options
|
|
3745
|
+
});
|
|
3746
|
+
/**
|
|
3747
|
+
* Resources marked by each rule
|
|
3748
|
+
*
|
|
3749
|
+
* How many resources each of the team's rules currently marks, including rules that match nothing. This is how an over-broad rule is spotted.
|
|
3750
|
+
*
|
|
3751
|
+
*/
|
|
3752
|
+
export const getFreshnessByRuleMetrics = (options) => (options.client ?? client).get({
|
|
3753
|
+
responseType: 'json',
|
|
3754
|
+
security: [{
|
|
3755
|
+
key: 'ApiKeyAuth',
|
|
3756
|
+
scheme: 'bearer',
|
|
3757
|
+
type: 'http'
|
|
3758
|
+
}, {
|
|
3759
|
+
in: 'cookie',
|
|
3760
|
+
name: 'vx_session',
|
|
3761
|
+
type: 'apiKey'
|
|
3762
|
+
}],
|
|
3763
|
+
url: '/api/v1/{team_id}/freshness/metrics/by-rule',
|
|
3764
|
+
...options
|
|
3765
|
+
});
|
|
3766
|
+
/**
|
|
3767
|
+
* List the team's freshness audit log
|
|
3768
|
+
*
|
|
3769
|
+
* Every recorded mark and clear for the team, newest first and paginated. Readable by any member. The list is empty, never null, past the last page.
|
|
3770
|
+
*
|
|
3771
|
+
*/
|
|
3772
|
+
export const listFreshnessAudit = (options) => (options.client ?? client).get({
|
|
3773
|
+
responseType: 'json',
|
|
3774
|
+
security: [{
|
|
3775
|
+
key: 'ApiKeyAuth',
|
|
3776
|
+
scheme: 'bearer',
|
|
3777
|
+
type: 'http'
|
|
3778
|
+
}, {
|
|
3779
|
+
in: 'cookie',
|
|
3780
|
+
name: 'vx_session',
|
|
3781
|
+
type: 'apiKey'
|
|
3782
|
+
}],
|
|
3783
|
+
url: '/api/v1/{team_id}/freshness/audit',
|
|
3784
|
+
...options
|
|
3785
|
+
});
|
|
3536
3786
|
/**
|
|
3537
3787
|
* List embedding providers
|
|
3538
3788
|
*
|