@lessly/sdk-app 41.0.0 → 42.1.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/analytics/index.d.cts +1 -1
- package/dist/analytics/index.d.ts +1 -1
- package/dist/brain/index.d.cts +1 -1
- package/dist/brain/index.d.ts +1 -1
- package/dist/{client.gen-CMLEyXO3.d.cts → client.gen-BsYUM5lP.d.cts} +174 -1
- package/dist/{client.gen-CMLEyXO3.d.ts → client.gen-BsYUM5lP.d.ts} +174 -1
- package/dist/consent/index.d.cts +1 -1
- package/dist/consent/index.d.ts +1 -1
- package/dist/deployment/index.d.cts +1 -1
- package/dist/deployment/index.d.ts +1 -1
- package/dist/index.cjs +68 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/dist/mail/index.d.cts +2 -2
- package/dist/mail/index.d.ts +2 -2
- package/dist/observe/index.cjs +10 -0
- package/dist/observe/index.cjs.map +1 -1
- package/dist/observe/index.d.cts +10 -2
- package/dist/observe/index.d.ts +10 -2
- package/dist/observe/index.js +9 -1
- package/dist/observe/index.js.map +1 -1
- package/dist/organization/index.d.cts +1 -1
- package/dist/organization/index.d.ts +1 -1
- package/dist/playground/index.d.cts +1 -1
- package/dist/playground/index.d.ts +1 -1
- package/dist/realtime/index.d.cts +1 -1
- package/dist/realtime/index.d.ts +1 -1
- package/dist/support/index.d.cts +1 -1
- package/dist/support/index.d.ts +1 -1
- package/dist/tracking/index.d.cts +1 -1
- package/dist/tracking/index.d.ts +1 -1
- package/dist/users/index.d.cts +1 -1
- package/dist/users/index.d.ts +1 -1
- package/dist/waitlist/index.d.cts +1 -1
- package/dist/waitlist/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/gen/bindings.gen.ts +68 -0
- package/src/gen/client.gen.ts +8 -0
- package/src/gen/observe/index.ts +1 -1
- package/src/gen/observe/queryOptions.gen.ts +14 -0
- package/src/gen/types.gen.ts +173 -0
package/dist/tracking/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GeneratedClient,
|
|
1
|
+
import { G as GeneratedClient, lM as TrackingDomainsCreateInput, lN as TrackingDomainsCreateOutput, lO as TrackingDomainsDeleteInput, lP as TrackingDomainsDeleteOutput, lQ as TrackingDomainsGetInput, lR as TrackingDomainsGetOutput, lS as TrackingDomainsListInput, lT as TrackingDomainsListOutput, lU as TrackingDomainsVerifyInput, lV as TrackingDomainsVerifyOutput, lW as TrackingEventNamesArchiveInput, lX as TrackingEventNamesArchiveOutput, lY as TrackingEventNamesListInput, lZ as TrackingEventNamesListOutput, l_ as TrackingEventNamesUnarchiveInput, l$ as TrackingEventNamesUnarchiveOutput, m0 as TrackingGoogleadsConnectionStatusInput, m1 as TrackingGoogleadsConnectionStatusOutput, m2 as TrackingGoogleadsConversionActionsInput, m3 as TrackingGoogleadsConversionActionsOutput, m4 as TrackingGoogleadsFeedbackConfigGetInput, m5 as TrackingGoogleadsFeedbackConfigGetOutput, m6 as TrackingGoogleadsFeedbackConfigSetInput, m7 as TrackingGoogleadsFeedbackConfigSetOutput, m8 as TrackingGoogleadsFeedbackRunInput, m9 as TrackingGoogleadsFeedbackRunOutput, ma as TrackingGoogleadsFeedbackStatusInput, mb as TrackingGoogleadsFeedbackStatusOutput, mc as TrackingGoogleadsFeedbackUploadsInput, md as TrackingGoogleadsFeedbackUploadsOutput, me as TrackingGoogleadsRoasReportInput, mf as TrackingGoogleadsRoasReportOutput, mg as TrackingGoogleadsSyncNowInput, mh as TrackingGoogleadsSyncNowOutput, mi as TrackingGoogleadsTrackingHealthInput, mj as TrackingGoogleadsTrackingHealthOutput, mk as TrackingGoogleadsUsVsPlatformInput, ml as TrackingGoogleadsUsVsPlatformOutput, mm as TrackingIdentityHealthInput, mn as TrackingIdentityHealthOutput, mo as TrackingInstallDomainsCreateInput, mp as TrackingInstallDomainsCreateOutput, mq as TrackingInstallDomainsDeleteInput, mr as TrackingInstallDomainsDeleteOutput, ms as TrackingInstallDomainsListInput, mt as TrackingInstallDomainsListOutput, mu as TrackingLinkDomainsCreateInput, mv as TrackingLinkDomainsCreateOutput, mw as TrackingLinkDomainsDeleteInput, mx as TrackingLinkDomainsDeleteOutput, my as TrackingLinkDomainsListInput, mz as TrackingLinkDomainsListOutput, mA as TrackingLiveEventsListInput, mB as TrackingLiveEventsListOutput, mC as TrackingProfilesDeleteInput, mD as TrackingProfilesDeleteOutput, mE as TrackingProfilesExportInput, mF as TrackingProfilesExportOutput, mG as TrackingProfilesGetInput, mH as TrackingProfilesGetOutput, mI as TrackingProfilesListInput, mJ as TrackingProfilesListOutput, mK as TrackingReportsAttributedJourneyInput, mL as TrackingReportsAttributedJourneyOutput, mM as TrackingReportsEventVolumeInput, mN as TrackingReportsEventVolumeOutput, mO as TrackingReportsRevenueBySourceInput, mP as TrackingReportsRevenueBySourceOutput, mQ as TrackingReportsSourcePeopleInput, mR as TrackingReportsSourcePeopleOutput, mS as TrackingSnippetsGetInput, mT as TrackingSnippetsGetOutput } from '../client.gen-BsYUM5lP.js';
|
|
2
2
|
|
|
3
3
|
declare const trackingDomainsCreateMutationOptions: (sdk: GeneratedClient) => {
|
|
4
4
|
mutationKey: string[];
|
package/dist/users/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GeneratedClient,
|
|
1
|
+
import { G as GeneratedClient, mU as UsersApikeysCreateInput, mV as UsersApikeysCreateOutput, mW as UsersApikeysListInput, mX as UsersApikeysListOutput, mY as UsersApikeysRevokeInput, mZ as UsersApikeysRevokeOutput, m_ as UsersAuditListInput, m$ as UsersAuditListOutput, n0 as UsersConfigGetInput, n1 as UsersConfigGetOutput, n2 as UsersConfigUpsertInput, n3 as UsersConfigUpsertOutput, n4 as UsersFactorsListInput, n5 as UsersFactorsListOutput, n6 as UsersFactorsResetInput, n7 as UsersFactorsResetOutput, n8 as UsersKeysListInput, n9 as UsersKeysListOutput, na as UsersKeysRevokeInput, nb as UsersKeysRevokeOutput, nc as UsersKeysRotateInput, nd as UsersKeysRotateOutput, ne as UsersOpsRetentionGetInput, nf as UsersOpsRetentionGetOutput, ng as UsersOpsSloGetInput, nh as UsersOpsSloGetOutput, ni as UsersPasskeysListInput, nj as UsersPasskeysListOutput, nk as UsersPasskeysRevokeInput, nl as UsersPasskeysRevokeOutput, nm as UsersSessionsGetInput, nn as UsersSessionsGetOutput, no as UsersSessionsImpersonateInput, np as UsersSessionsImpersonateOutput, nq as UsersSessionsListInput, nr as UsersSessionsListOutput, ns as UsersSessionsRevokeInput, nt as UsersSessionsRevokeOutput, nu as UsersStatsGetInput, nv as UsersStatsGetOutput, nw as UsersUsersBanInput, nx as UsersUsersBanOutput, ny as UsersUsersCreateInput, nz as UsersUsersCreateOutput, nA as UsersUsersDeleteInput, nB as UsersUsersDeleteOutput, nC as UsersUsersEraseInput, nD as UsersUsersEraseOutput, nE as UsersUsersExportInput, nF as UsersUsersExportOutput, nG as UsersUsersGetInput, nH as UsersUsersGetOutput, nI as UsersUsersImportInput, nJ as UsersUsersImportOutput, nK as UsersUsersInviteInput, nL as UsersUsersInviteOutput, nM as UsersUsersListInput, nN as UsersUsersListOutput, nO as UsersUsersSetPrimaryIdentifierInput, nP as UsersUsersSetPrimaryIdentifierOutput, nQ as UsersUsersUnbanInput, nR as UsersUsersUnbanOutput, nS as UsersUsersUpdateInput, nT as UsersUsersUpdateOutput, nU as UsersWaitlistEraseInput, nV as UsersWaitlistEraseOutput, nW as UsersWaitlistFunnelInput, nX as UsersWaitlistFunnelOutput, nY as UsersWaitlistImportInput, nZ as UsersWaitlistImportOutput, n_ as UsersWaitlistInviteInput, n$ as UsersWaitlistInviteOutput, o0 as UsersWaitlistListInput, o1 as UsersWaitlistListOutput, o2 as UsersWebhooksCreateInput, o3 as UsersWebhooksCreateOutput, o4 as UsersWebhooksDeleteInput, o5 as UsersWebhooksDeleteOutput, o6 as UsersWebhooksDeliveriesListInput, o7 as UsersWebhooksDeliveriesListOutput, o8 as UsersWebhooksGetInput, o9 as UsersWebhooksGetOutput, oa as UsersWebhooksListInput, ob as UsersWebhooksListOutput, oc as UsersWebhooksRotateSecretInput, od as UsersWebhooksRotateSecretOutput, oe as UsersWebhooksUpdateInput, of as UsersWebhooksUpdateOutput } from '../client.gen-BsYUM5lP.cjs';
|
|
2
2
|
|
|
3
3
|
declare const usersApikeysCreateMutationOptions: (sdk: GeneratedClient) => {
|
|
4
4
|
mutationKey: string[];
|
package/dist/users/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GeneratedClient,
|
|
1
|
+
import { G as GeneratedClient, mU as UsersApikeysCreateInput, mV as UsersApikeysCreateOutput, mW as UsersApikeysListInput, mX as UsersApikeysListOutput, mY as UsersApikeysRevokeInput, mZ as UsersApikeysRevokeOutput, m_ as UsersAuditListInput, m$ as UsersAuditListOutput, n0 as UsersConfigGetInput, n1 as UsersConfigGetOutput, n2 as UsersConfigUpsertInput, n3 as UsersConfigUpsertOutput, n4 as UsersFactorsListInput, n5 as UsersFactorsListOutput, n6 as UsersFactorsResetInput, n7 as UsersFactorsResetOutput, n8 as UsersKeysListInput, n9 as UsersKeysListOutput, na as UsersKeysRevokeInput, nb as UsersKeysRevokeOutput, nc as UsersKeysRotateInput, nd as UsersKeysRotateOutput, ne as UsersOpsRetentionGetInput, nf as UsersOpsRetentionGetOutput, ng as UsersOpsSloGetInput, nh as UsersOpsSloGetOutput, ni as UsersPasskeysListInput, nj as UsersPasskeysListOutput, nk as UsersPasskeysRevokeInput, nl as UsersPasskeysRevokeOutput, nm as UsersSessionsGetInput, nn as UsersSessionsGetOutput, no as UsersSessionsImpersonateInput, np as UsersSessionsImpersonateOutput, nq as UsersSessionsListInput, nr as UsersSessionsListOutput, ns as UsersSessionsRevokeInput, nt as UsersSessionsRevokeOutput, nu as UsersStatsGetInput, nv as UsersStatsGetOutput, nw as UsersUsersBanInput, nx as UsersUsersBanOutput, ny as UsersUsersCreateInput, nz as UsersUsersCreateOutput, nA as UsersUsersDeleteInput, nB as UsersUsersDeleteOutput, nC as UsersUsersEraseInput, nD as UsersUsersEraseOutput, nE as UsersUsersExportInput, nF as UsersUsersExportOutput, nG as UsersUsersGetInput, nH as UsersUsersGetOutput, nI as UsersUsersImportInput, nJ as UsersUsersImportOutput, nK as UsersUsersInviteInput, nL as UsersUsersInviteOutput, nM as UsersUsersListInput, nN as UsersUsersListOutput, nO as UsersUsersSetPrimaryIdentifierInput, nP as UsersUsersSetPrimaryIdentifierOutput, nQ as UsersUsersUnbanInput, nR as UsersUsersUnbanOutput, nS as UsersUsersUpdateInput, nT as UsersUsersUpdateOutput, nU as UsersWaitlistEraseInput, nV as UsersWaitlistEraseOutput, nW as UsersWaitlistFunnelInput, nX as UsersWaitlistFunnelOutput, nY as UsersWaitlistImportInput, nZ as UsersWaitlistImportOutput, n_ as UsersWaitlistInviteInput, n$ as UsersWaitlistInviteOutput, o0 as UsersWaitlistListInput, o1 as UsersWaitlistListOutput, o2 as UsersWebhooksCreateInput, o3 as UsersWebhooksCreateOutput, o4 as UsersWebhooksDeleteInput, o5 as UsersWebhooksDeleteOutput, o6 as UsersWebhooksDeliveriesListInput, o7 as UsersWebhooksDeliveriesListOutput, o8 as UsersWebhooksGetInput, o9 as UsersWebhooksGetOutput, oa as UsersWebhooksListInput, ob as UsersWebhooksListOutput, oc as UsersWebhooksRotateSecretInput, od as UsersWebhooksRotateSecretOutput, oe as UsersWebhooksUpdateInput, of as UsersWebhooksUpdateOutput } from '../client.gen-BsYUM5lP.js';
|
|
2
2
|
|
|
3
3
|
declare const usersApikeysCreateMutationOptions: (sdk: GeneratedClient) => {
|
|
4
4
|
mutationKey: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GeneratedClient,
|
|
1
|
+
import { G as GeneratedClient, og as WaitlistConfigGetInput, oh as WaitlistConfigGetOutput, oi as WaitlistConfigUpsertInput, oj as WaitlistConfigUpsertOutput, ok as WaitlistEmbedGetInput, ol as WaitlistEmbedGetOutput, om as WaitlistInvitesSendInput, on as WaitlistInvitesSendOutput, oo as WaitlistSignupsEraseInput, op as WaitlistSignupsEraseOutput, oq as WaitlistSignupsFunnelInput, or as WaitlistSignupsFunnelOutput, os as WaitlistSignupsListInput, ot as WaitlistSignupsListOutput } from '../client.gen-BsYUM5lP.cjs';
|
|
2
2
|
|
|
3
3
|
declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
|
|
4
4
|
queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
|
package/dist/waitlist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GeneratedClient,
|
|
1
|
+
import { G as GeneratedClient, og as WaitlistConfigGetInput, oh as WaitlistConfigGetOutput, oi as WaitlistConfigUpsertInput, oj as WaitlistConfigUpsertOutput, ok as WaitlistEmbedGetInput, ol as WaitlistEmbedGetOutput, om as WaitlistInvitesSendInput, on as WaitlistInvitesSendOutput, oo as WaitlistSignupsEraseInput, op as WaitlistSignupsEraseOutput, oq as WaitlistSignupsFunnelInput, or as WaitlistSignupsFunnelOutput, os as WaitlistSignupsListInput, ot as WaitlistSignupsListOutput } from '../client.gen-BsYUM5lP.js';
|
|
2
2
|
|
|
3
3
|
declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
|
|
4
4
|
queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "42.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"require": "./dist/waitlist/index.cjs"
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
"sdkContentHash": "sha256:
|
|
109
|
+
"sdkContentHash": "sha256:ca90787c543aea1722415ff8e837dd60e06f7f3dd58ec7d1f6cc0608fdf3736c"
|
|
110
110
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -3817,6 +3817,74 @@ export const bindings: BindingsMap = {
|
|
|
3817
3817
|
"readOnly": true
|
|
3818
3818
|
}
|
|
3819
3819
|
},
|
|
3820
|
+
"metrics": {
|
|
3821
|
+
"list": {
|
|
3822
|
+
"method": "GET",
|
|
3823
|
+
"params": [
|
|
3824
|
+
{
|
|
3825
|
+
"in": "query",
|
|
3826
|
+
"name": "environment"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"in": "query",
|
|
3830
|
+
"name": "service"
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"in": "query",
|
|
3834
|
+
"name": "search"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"in": "query",
|
|
3838
|
+
"name": "window"
|
|
3839
|
+
}
|
|
3840
|
+
],
|
|
3841
|
+
"path": "/observe/metrics/catalog",
|
|
3842
|
+
"readOnly": true
|
|
3843
|
+
},
|
|
3844
|
+
"query": {
|
|
3845
|
+
"method": "GET",
|
|
3846
|
+
"params": [
|
|
3847
|
+
{
|
|
3848
|
+
"in": "query",
|
|
3849
|
+
"name": "name"
|
|
3850
|
+
},
|
|
3851
|
+
{
|
|
3852
|
+
"in": "query",
|
|
3853
|
+
"name": "aggregation"
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"in": "query",
|
|
3857
|
+
"name": "from"
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"in": "query",
|
|
3861
|
+
"name": "to"
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
"in": "query",
|
|
3865
|
+
"name": "step"
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"in": "query",
|
|
3869
|
+
"name": "environment"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"in": "query",
|
|
3873
|
+
"name": "service"
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"in": "query",
|
|
3877
|
+
"name": "attributes"
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
"in": "query",
|
|
3881
|
+
"name": "groupBy"
|
|
3882
|
+
}
|
|
3883
|
+
],
|
|
3884
|
+
"path": "/observe/metrics/query",
|
|
3885
|
+
"readOnly": true
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3820
3888
|
"traces": {
|
|
3821
3889
|
"get": {
|
|
3822
3890
|
"method": "GET",
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -468,6 +468,10 @@ import type {
|
|
|
468
468
|
ObserveLogsSearchOutput,
|
|
469
469
|
ObserveLogsTailInput,
|
|
470
470
|
ObserveLogsTailOutput,
|
|
471
|
+
ObserveMetricsListInput,
|
|
472
|
+
ObserveMetricsListOutput,
|
|
473
|
+
ObserveMetricsQueryInput,
|
|
474
|
+
ObserveMetricsQueryOutput,
|
|
471
475
|
ObserveTracesGetInput,
|
|
472
476
|
ObserveTracesGetOutput,
|
|
473
477
|
ObserveTracesSearchInput,
|
|
@@ -1404,6 +1408,10 @@ export interface GeneratedClient {
|
|
|
1404
1408
|
search(input: ObserveLogsSearchInput): Promise<ObserveLogsSearchOutput>;
|
|
1405
1409
|
tail(input: ObserveLogsTailInput): Promise<ObserveLogsTailOutput>;
|
|
1406
1410
|
};
|
|
1411
|
+
metrics: {
|
|
1412
|
+
list(input: ObserveMetricsListInput): Promise<ObserveMetricsListOutput>;
|
|
1413
|
+
query(input: ObserveMetricsQueryInput): Promise<ObserveMetricsQueryOutput>;
|
|
1414
|
+
};
|
|
1407
1415
|
traces: {
|
|
1408
1416
|
get(input: ObserveTracesGetInput): Promise<ObserveTracesGetOutput>;
|
|
1409
1417
|
search(input: ObserveTracesSearchInput): Promise<ObserveTracesSearchOutput>;
|
package/src/gen/observe/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
export * from './queryOptions.gen';
|
|
3
|
-
export type { ObserveAlertsCreateInput, ObserveAlertsCreateOutput, ObserveAlertsDeleteInput, ObserveAlertsDeleteOutput, ObserveAlertsEventsListInput, ObserveAlertsEventsListOutput, ObserveAlertsGetInput, ObserveAlertsGetOutput, ObserveAlertsListInput, ObserveAlertsListOutput, ObserveAlertsUpdateInput, ObserveAlertsUpdateOutput, ObserveArtifactsDeleteInput, ObserveArtifactsDeleteOutput, ObserveArtifactsListInput, ObserveArtifactsListOutput, ObserveArtifactsResolveInput, ObserveArtifactsResolveOutput, ObserveIssuesArchiveInput, ObserveIssuesArchiveOutput, ObserveIssuesAssignInput, ObserveIssuesAssignOutput, ObserveIssuesGetInput, ObserveIssuesGetOutput, ObserveIssuesListInput, ObserveIssuesListOutput, ObserveIssuesResolveInput, ObserveIssuesResolveOutput, ObserveKeysCreateInput, ObserveKeysCreateOutput, ObserveKeysListInput, ObserveKeysListOutput, ObserveKeysRevokeInput, ObserveKeysRevokeOutput, ObserveLogsFacetsInput, ObserveLogsFacetsOutput, ObserveLogsSearchInput, ObserveLogsSearchOutput, ObserveLogsTailInput, ObserveLogsTailOutput, ObserveTracesGetInput, ObserveTracesGetOutput, ObserveTracesSearchInput, ObserveTracesSearchOutput, ObserveWebhooksCreateInput, ObserveWebhooksCreateOutput, ObserveWebhooksDeleteInput, ObserveWebhooksDeleteOutput, ObserveWebhooksDeliveriesListInput, ObserveWebhooksDeliveriesListOutput, ObserveWebhooksGetInput, ObserveWebhooksGetOutput, ObserveWebhooksListInput, ObserveWebhooksListOutput, ObserveWebhooksRedeliverInput, ObserveWebhooksRedeliverOutput, ObserveWebhooksRotateSecretInput, ObserveWebhooksRotateSecretOutput, ObserveWebhooksUpdateInput, ObserveWebhooksUpdateOutput } from '../types.gen';
|
|
3
|
+
export type { ObserveAlertsCreateInput, ObserveAlertsCreateOutput, ObserveAlertsDeleteInput, ObserveAlertsDeleteOutput, ObserveAlertsEventsListInput, ObserveAlertsEventsListOutput, ObserveAlertsGetInput, ObserveAlertsGetOutput, ObserveAlertsListInput, ObserveAlertsListOutput, ObserveAlertsUpdateInput, ObserveAlertsUpdateOutput, ObserveArtifactsDeleteInput, ObserveArtifactsDeleteOutput, ObserveArtifactsListInput, ObserveArtifactsListOutput, ObserveArtifactsResolveInput, ObserveArtifactsResolveOutput, ObserveIssuesArchiveInput, ObserveIssuesArchiveOutput, ObserveIssuesAssignInput, ObserveIssuesAssignOutput, ObserveIssuesGetInput, ObserveIssuesGetOutput, ObserveIssuesListInput, ObserveIssuesListOutput, ObserveIssuesResolveInput, ObserveIssuesResolveOutput, ObserveKeysCreateInput, ObserveKeysCreateOutput, ObserveKeysListInput, ObserveKeysListOutput, ObserveKeysRevokeInput, ObserveKeysRevokeOutput, ObserveLogsFacetsInput, ObserveLogsFacetsOutput, ObserveLogsSearchInput, ObserveLogsSearchOutput, ObserveLogsTailInput, ObserveLogsTailOutput, ObserveMetricsListInput, ObserveMetricsListOutput, ObserveMetricsQueryInput, ObserveMetricsQueryOutput, ObserveTracesGetInput, ObserveTracesGetOutput, ObserveTracesSearchInput, ObserveTracesSearchOutput, ObserveWebhooksCreateInput, ObserveWebhooksCreateOutput, ObserveWebhooksDeleteInput, ObserveWebhooksDeleteOutput, ObserveWebhooksDeliveriesListInput, ObserveWebhooksDeliveriesListOutput, ObserveWebhooksGetInput, ObserveWebhooksGetOutput, ObserveWebhooksListInput, ObserveWebhooksListOutput, ObserveWebhooksRedeliverInput, ObserveWebhooksRedeliverOutput, ObserveWebhooksRotateSecretInput, ObserveWebhooksRotateSecretOutput, ObserveWebhooksUpdateInput, ObserveWebhooksUpdateOutput } from '../types.gen';
|
|
@@ -32,6 +32,10 @@ import type {
|
|
|
32
32
|
ObserveLogsSearchOutput,
|
|
33
33
|
ObserveLogsTailInput,
|
|
34
34
|
ObserveLogsTailOutput,
|
|
35
|
+
ObserveMetricsListInput,
|
|
36
|
+
ObserveMetricsListOutput,
|
|
37
|
+
ObserveMetricsQueryInput,
|
|
38
|
+
ObserveMetricsQueryOutput,
|
|
35
39
|
ObserveTracesGetInput,
|
|
36
40
|
ObserveTracesGetOutput,
|
|
37
41
|
ObserveTracesSearchInput,
|
|
@@ -149,6 +153,16 @@ export const observeLogsTailQueryOptions = (sdk: GeneratedClient, input: Observe
|
|
|
149
153
|
queryFn: () => sdk['observe']['logs']['tail'](input),
|
|
150
154
|
});
|
|
151
155
|
|
|
156
|
+
export const observeMetricsListQueryOptions = (sdk: GeneratedClient, input: ObserveMetricsListInput) => ({
|
|
157
|
+
queryKey: ['observe', 'metrics', 'list', input] as const,
|
|
158
|
+
queryFn: () => sdk['observe']['metrics']['list'](input),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
export const observeMetricsQueryQueryOptions = (sdk: GeneratedClient, input: ObserveMetricsQueryInput) => ({
|
|
162
|
+
queryKey: ['observe', 'metrics', 'query', input] as const,
|
|
163
|
+
queryFn: () => sdk['observe']['metrics']['query'](input),
|
|
164
|
+
});
|
|
165
|
+
|
|
152
166
|
export const observeTracesGetQueryOptions = (sdk: GeneratedClient, input: ObserveTracesGetInput) => ({
|
|
153
167
|
queryKey: ['observe', 'traces', 'get', input] as const,
|
|
154
168
|
queryFn: () => sdk['observe']['traces']['get'](input),
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -13715,6 +13715,179 @@ severityNumber: number
|
|
|
13715
13715
|
nextCursor: (string | null)
|
|
13716
13716
|
}
|
|
13717
13717
|
|
|
13718
|
+
export interface ObserveMetricsListInput {
|
|
13719
|
+
/**
|
|
13720
|
+
* Only metrics whose name contains this text, case-insensitively
|
|
13721
|
+
*/
|
|
13722
|
+
search?: string
|
|
13723
|
+
/**
|
|
13724
|
+
* How far back to look for metrics; default "24h"
|
|
13725
|
+
*/
|
|
13726
|
+
window?: ("15m" | "1h" | "24h" | "7d" | "30d")
|
|
13727
|
+
/**
|
|
13728
|
+
* Only metrics reported by this service, e.g. "api"
|
|
13729
|
+
*/
|
|
13730
|
+
service?: string
|
|
13731
|
+
/**
|
|
13732
|
+
* Only metrics reported in this environment, e.g. "production"
|
|
13733
|
+
*/
|
|
13734
|
+
environment?: string
|
|
13735
|
+
}
|
|
13736
|
+
|
|
13737
|
+
export interface ObserveMetricsListOutput {
|
|
13738
|
+
/**
|
|
13739
|
+
* The window that was catalogued
|
|
13740
|
+
*/
|
|
13741
|
+
window: string
|
|
13742
|
+
/**
|
|
13743
|
+
* The metrics seen in the window, by name
|
|
13744
|
+
*/
|
|
13745
|
+
metrics: {
|
|
13746
|
+
/**
|
|
13747
|
+
* The metric name, e.g. "http.server.requests"
|
|
13748
|
+
*/
|
|
13749
|
+
name: string
|
|
13750
|
+
/**
|
|
13751
|
+
* What the metric holds: a counter ("sum") or an explicit-bucket histogram
|
|
13752
|
+
*/
|
|
13753
|
+
type: ("sum" | "histogram")
|
|
13754
|
+
/**
|
|
13755
|
+
* Unit as the emitter declared it, e.g. "ms"; empty when none
|
|
13756
|
+
*/
|
|
13757
|
+
unit: string
|
|
13758
|
+
/**
|
|
13759
|
+
* When the newest point in the window arrived, ISO 8601
|
|
13760
|
+
*/
|
|
13761
|
+
lastSeen: string
|
|
13762
|
+
/**
|
|
13763
|
+
* Services that reported it
|
|
13764
|
+
*/
|
|
13765
|
+
services: string[]
|
|
13766
|
+
/**
|
|
13767
|
+
* Description the emitter declared; empty when none
|
|
13768
|
+
*/
|
|
13769
|
+
description: string
|
|
13770
|
+
/**
|
|
13771
|
+
* How many distinct attribute sets were seen in the window
|
|
13772
|
+
*/
|
|
13773
|
+
seriesCount: number
|
|
13774
|
+
/**
|
|
13775
|
+
* Environments this metric was reported in
|
|
13776
|
+
*/
|
|
13777
|
+
environments: string[]
|
|
13778
|
+
/**
|
|
13779
|
+
* Attribute keys its series carry — the values groupBy accepts
|
|
13780
|
+
*/
|
|
13781
|
+
attributeKeys: string[]
|
|
13782
|
+
}[]
|
|
13783
|
+
}
|
|
13784
|
+
|
|
13785
|
+
export interface ObserveMetricsQueryInput {
|
|
13786
|
+
/**
|
|
13787
|
+
* End of the window, ISO 8601; default now
|
|
13788
|
+
*/
|
|
13789
|
+
to?: string
|
|
13790
|
+
/**
|
|
13791
|
+
* Start of the window, ISO 8601; default one hour ago
|
|
13792
|
+
*/
|
|
13793
|
+
from?: string
|
|
13794
|
+
/**
|
|
13795
|
+
* The metric to read, exactly as observe_metrics_list names it
|
|
13796
|
+
*/
|
|
13797
|
+
name: string
|
|
13798
|
+
/**
|
|
13799
|
+
* Bucket width; default the finest that renders at most 500 points
|
|
13800
|
+
*/
|
|
13801
|
+
step?: ("1m" | "5m" | "15m" | "1h" | "6h" | "1d")
|
|
13802
|
+
/**
|
|
13803
|
+
* Attribute keys to keep as the series labels, aggregating every other attribute into them; default one series per distinct attribute set
|
|
13804
|
+
*
|
|
13805
|
+
* @maxItems 10
|
|
13806
|
+
*/
|
|
13807
|
+
groupBy?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]
|
|
13808
|
+
/**
|
|
13809
|
+
* Only points from this service
|
|
13810
|
+
*/
|
|
13811
|
+
service?: string
|
|
13812
|
+
/**
|
|
13813
|
+
* Only points whose attributes match every one of these key/value pairs
|
|
13814
|
+
*/
|
|
13815
|
+
attributes?: {
|
|
13816
|
+
[k: string]: string
|
|
13817
|
+
}
|
|
13818
|
+
/**
|
|
13819
|
+
* How to aggregate each step. A counter takes "rate" (per second), "increase" (over the step) or "value" (its last reading); a histogram takes "p50", "p90", "p99", "avg" or "count". A pair that does not match the metric is rejected.
|
|
13820
|
+
*/
|
|
13821
|
+
aggregation: ("rate" | "increase" | "value" | "p50" | "p90" | "p99" | "avg" | "count")
|
|
13822
|
+
/**
|
|
13823
|
+
* Only points from this environment
|
|
13824
|
+
*/
|
|
13825
|
+
environment?: string
|
|
13826
|
+
}
|
|
13827
|
+
|
|
13828
|
+
export interface ObserveMetricsQueryOutput {
|
|
13829
|
+
/**
|
|
13830
|
+
* End of the window that was read, ISO 8601
|
|
13831
|
+
*/
|
|
13832
|
+
to: string
|
|
13833
|
+
/**
|
|
13834
|
+
* Start of the window that was read, ISO 8601
|
|
13835
|
+
*/
|
|
13836
|
+
from: string
|
|
13837
|
+
/**
|
|
13838
|
+
* The metric that was read
|
|
13839
|
+
*/
|
|
13840
|
+
name: string
|
|
13841
|
+
/**
|
|
13842
|
+
* The bucket width the series is rendered at
|
|
13843
|
+
*/
|
|
13844
|
+
step: string
|
|
13845
|
+
/**
|
|
13846
|
+
* What the metric holds: a counter ("sum") or an explicit-bucket histogram
|
|
13847
|
+
*/
|
|
13848
|
+
type: ("sum" | "histogram")
|
|
13849
|
+
/**
|
|
13850
|
+
* Unit as the emitter declared it; empty when none
|
|
13851
|
+
*/
|
|
13852
|
+
unit: string
|
|
13853
|
+
/**
|
|
13854
|
+
* One series per label set, ordered stably
|
|
13855
|
+
*/
|
|
13856
|
+
series: {
|
|
13857
|
+
/**
|
|
13858
|
+
* The attribute set identifying this series, narrowed by groupBy when given
|
|
13859
|
+
*/
|
|
13860
|
+
labels: {
|
|
13861
|
+
[k: string]: string
|
|
13862
|
+
}
|
|
13863
|
+
/**
|
|
13864
|
+
* One point per step, oldest first, gaps included
|
|
13865
|
+
*/
|
|
13866
|
+
points: {
|
|
13867
|
+
/**
|
|
13868
|
+
* The aggregated value; null when the step had no points
|
|
13869
|
+
*/
|
|
13870
|
+
value: (number | null)
|
|
13871
|
+
/**
|
|
13872
|
+
* Start of the step this value covers, ISO 8601
|
|
13873
|
+
*/
|
|
13874
|
+
timestamp: string
|
|
13875
|
+
}[]
|
|
13876
|
+
}[]
|
|
13877
|
+
/**
|
|
13878
|
+
* True when a ceiling cut the answer — more series exist than were returned
|
|
13879
|
+
*/
|
|
13880
|
+
truncated: boolean
|
|
13881
|
+
/**
|
|
13882
|
+
* The aggregation that was applied
|
|
13883
|
+
*/
|
|
13884
|
+
aggregation: string
|
|
13885
|
+
/**
|
|
13886
|
+
* That width in seconds — what a rate was divided by
|
|
13887
|
+
*/
|
|
13888
|
+
stepSeconds: number
|
|
13889
|
+
}
|
|
13890
|
+
|
|
13718
13891
|
export interface ObserveTracesGetInput {
|
|
13719
13892
|
/**
|
|
13720
13893
|
* The trace to render, by its 32-character hex id
|