@lessly/sdk-app 42.0.0 → 42.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.d.cts +1 -1
  4. package/dist/brain/index.d.ts +1 -1
  5. package/dist/{client.gen-Cumsa8PY.d.cts → client.gen-Cyz4I2yE.d.cts} +174 -1
  6. package/dist/{client.gen-Cumsa8PY.d.ts → client.gen-Cyz4I2yE.d.ts} +174 -1
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/deployment/index.d.cts +1 -1
  10. package/dist/deployment/index.d.ts +1 -1
  11. package/dist/index.cjs +68 -0
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +68 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/mail/index.d.cts +2 -2
  18. package/dist/mail/index.d.ts +2 -2
  19. package/dist/observe/index.cjs +10 -0
  20. package/dist/observe/index.cjs.map +1 -1
  21. package/dist/observe/index.d.cts +10 -2
  22. package/dist/observe/index.d.ts +10 -2
  23. package/dist/observe/index.js +9 -1
  24. package/dist/observe/index.js.map +1 -1
  25. package/dist/organization/index.d.cts +1 -1
  26. package/dist/organization/index.d.ts +1 -1
  27. package/dist/realtime/index.d.cts +1 -1
  28. package/dist/realtime/index.d.ts +1 -1
  29. package/dist/support/index.d.cts +1 -1
  30. package/dist/support/index.d.ts +1 -1
  31. package/dist/tracking/index.d.cts +1 -1
  32. package/dist/tracking/index.d.ts +1 -1
  33. package/dist/users/index.d.cts +1 -1
  34. package/dist/users/index.d.ts +1 -1
  35. package/dist/waitlist/index.d.cts +1 -1
  36. package/dist/waitlist/index.d.ts +1 -1
  37. package/package.json +2 -2
  38. package/src/gen/bindings.gen.ts +68 -0
  39. package/src/gen/client.gen.ts +8 -0
  40. package/src/gen/observe/index.ts +1 -1
  41. package/src/gen/observe/queryOptions.gen.ts +14 -0
  42. package/src/gen/types.gen.ts +173 -0
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, mu as UsersApikeysCreateInput, mv as UsersApikeysCreateOutput, mw as UsersApikeysListInput, mx as UsersApikeysListOutput, my as UsersApikeysRevokeInput, mz as UsersApikeysRevokeOutput, mA as UsersAuditListInput, mB as UsersAuditListOutput, mC as UsersConfigGetInput, mD as UsersConfigGetOutput, mE as UsersConfigUpsertInput, mF as UsersConfigUpsertOutput, mG as UsersFactorsListInput, mH as UsersFactorsListOutput, mI as UsersFactorsResetInput, mJ as UsersFactorsResetOutput, mK as UsersKeysListInput, mL as UsersKeysListOutput, mM as UsersKeysRevokeInput, mN as UsersKeysRevokeOutput, mO as UsersKeysRotateInput, mP as UsersKeysRotateOutput, mQ as UsersOpsRetentionGetInput, mR as UsersOpsRetentionGetOutput, mS as UsersOpsSloGetInput, mT as UsersOpsSloGetOutput, mU as UsersPasskeysListInput, mV as UsersPasskeysListOutput, mW as UsersPasskeysRevokeInput, mX as UsersPasskeysRevokeOutput, mY as UsersSessionsGetInput, mZ as UsersSessionsGetOutput, m_ as UsersSessionsImpersonateInput, m$ as UsersSessionsImpersonateOutput, n0 as UsersSessionsListInput, n1 as UsersSessionsListOutput, n2 as UsersSessionsRevokeInput, n3 as UsersSessionsRevokeOutput, n4 as UsersStatsGetInput, n5 as UsersStatsGetOutput, n6 as UsersUsersBanInput, n7 as UsersUsersBanOutput, n8 as UsersUsersCreateInput, n9 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, nA as UsersWaitlistInviteInput, nB as UsersWaitlistInviteOutput, nC as UsersWaitlistListInput, nD as UsersWaitlistListOutput, nE as UsersWebhooksCreateInput, nF as UsersWebhooksCreateOutput, nG as UsersWebhooksDeleteInput, nH as UsersWebhooksDeleteOutput, nI as UsersWebhooksDeliveriesListInput, nJ as UsersWebhooksDeliveriesListOutput, nK as UsersWebhooksGetInput, nL as UsersWebhooksGetOutput, nM as UsersWebhooksListInput, nN as UsersWebhooksListOutput, nO as UsersWebhooksRotateSecretInput, nP as UsersWebhooksRotateSecretOutput, nQ as UsersWebhooksUpdateInput, nR as UsersWebhooksUpdateOutput } from '../client.gen-Cumsa8PY.cjs';
1
+ import { G as GeneratedClient, my as UsersApikeysCreateInput, mz as UsersApikeysCreateOutput, mA as UsersApikeysListInput, mB as UsersApikeysListOutput, mC as UsersApikeysRevokeInput, mD as UsersApikeysRevokeOutput, mE as UsersAuditListInput, mF as UsersAuditListOutput, mG as UsersConfigGetInput, mH as UsersConfigGetOutput, mI as UsersConfigUpsertInput, mJ as UsersConfigUpsertOutput, mK as UsersFactorsListInput, mL as UsersFactorsListOutput, mM as UsersFactorsResetInput, mN as UsersFactorsResetOutput, mO as UsersKeysListInput, mP as UsersKeysListOutput, mQ as UsersKeysRevokeInput, mR as UsersKeysRevokeOutput, mS as UsersKeysRotateInput, mT as UsersKeysRotateOutput, mU as UsersOpsRetentionGetInput, mV as UsersOpsRetentionGetOutput, mW as UsersOpsSloGetInput, mX as UsersOpsSloGetOutput, mY as UsersPasskeysListInput, mZ as UsersPasskeysListOutput, m_ as UsersPasskeysRevokeInput, m$ as UsersPasskeysRevokeOutput, n0 as UsersSessionsGetInput, n1 as UsersSessionsGetOutput, n2 as UsersSessionsImpersonateInput, n3 as UsersSessionsImpersonateOutput, n4 as UsersSessionsListInput, n5 as UsersSessionsListOutput, n6 as UsersSessionsRevokeInput, n7 as UsersSessionsRevokeOutput, n8 as UsersStatsGetInput, n9 as UsersStatsGetOutput, na as UsersUsersBanInput, nb as UsersUsersBanOutput, nc as UsersUsersCreateInput, nd as UsersUsersCreateOutput, ne as UsersUsersDeleteInput, nf as UsersUsersDeleteOutput, ng as UsersUsersEraseInput, nh as UsersUsersEraseOutput, ni as UsersUsersExportInput, nj as UsersUsersExportOutput, nk as UsersUsersGetInput, nl as UsersUsersGetOutput, nm as UsersUsersImportInput, nn as UsersUsersImportOutput, no as UsersUsersInviteInput, np as UsersUsersInviteOutput, nq as UsersUsersListInput, nr as UsersUsersListOutput, ns as UsersUsersSetPrimaryIdentifierInput, nt as UsersUsersSetPrimaryIdentifierOutput, nu as UsersUsersUnbanInput, nv as UsersUsersUnbanOutput, nw as UsersUsersUpdateInput, nx as UsersUsersUpdateOutput, ny as UsersWaitlistEraseInput, nz as UsersWaitlistEraseOutput, nA as UsersWaitlistFunnelInput, nB as UsersWaitlistFunnelOutput, nC as UsersWaitlistImportInput, nD as UsersWaitlistImportOutput, nE as UsersWaitlistInviteInput, nF as UsersWaitlistInviteOutput, nG as UsersWaitlistListInput, nH as UsersWaitlistListOutput, nI as UsersWebhooksCreateInput, nJ as UsersWebhooksCreateOutput, nK as UsersWebhooksDeleteInput, nL as UsersWebhooksDeleteOutput, nM as UsersWebhooksDeliveriesListInput, nN as UsersWebhooksDeliveriesListOutput, nO as UsersWebhooksGetInput, nP as UsersWebhooksGetOutput, nQ as UsersWebhooksListInput, nR as UsersWebhooksListOutput, nS as UsersWebhooksRotateSecretInput, nT as UsersWebhooksRotateSecretOutput, nU as UsersWebhooksUpdateInput, nV as UsersWebhooksUpdateOutput } from '../client.gen-Cyz4I2yE.cjs';
2
2
 
3
3
  declare const usersApikeysCreateMutationOptions: (sdk: GeneratedClient) => {
4
4
  mutationKey: string[];
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, mu as UsersApikeysCreateInput, mv as UsersApikeysCreateOutput, mw as UsersApikeysListInput, mx as UsersApikeysListOutput, my as UsersApikeysRevokeInput, mz as UsersApikeysRevokeOutput, mA as UsersAuditListInput, mB as UsersAuditListOutput, mC as UsersConfigGetInput, mD as UsersConfigGetOutput, mE as UsersConfigUpsertInput, mF as UsersConfigUpsertOutput, mG as UsersFactorsListInput, mH as UsersFactorsListOutput, mI as UsersFactorsResetInput, mJ as UsersFactorsResetOutput, mK as UsersKeysListInput, mL as UsersKeysListOutput, mM as UsersKeysRevokeInput, mN as UsersKeysRevokeOutput, mO as UsersKeysRotateInput, mP as UsersKeysRotateOutput, mQ as UsersOpsRetentionGetInput, mR as UsersOpsRetentionGetOutput, mS as UsersOpsSloGetInput, mT as UsersOpsSloGetOutput, mU as UsersPasskeysListInput, mV as UsersPasskeysListOutput, mW as UsersPasskeysRevokeInput, mX as UsersPasskeysRevokeOutput, mY as UsersSessionsGetInput, mZ as UsersSessionsGetOutput, m_ as UsersSessionsImpersonateInput, m$ as UsersSessionsImpersonateOutput, n0 as UsersSessionsListInput, n1 as UsersSessionsListOutput, n2 as UsersSessionsRevokeInput, n3 as UsersSessionsRevokeOutput, n4 as UsersStatsGetInput, n5 as UsersStatsGetOutput, n6 as UsersUsersBanInput, n7 as UsersUsersBanOutput, n8 as UsersUsersCreateInput, n9 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, nA as UsersWaitlistInviteInput, nB as UsersWaitlistInviteOutput, nC as UsersWaitlistListInput, nD as UsersWaitlistListOutput, nE as UsersWebhooksCreateInput, nF as UsersWebhooksCreateOutput, nG as UsersWebhooksDeleteInput, nH as UsersWebhooksDeleteOutput, nI as UsersWebhooksDeliveriesListInput, nJ as UsersWebhooksDeliveriesListOutput, nK as UsersWebhooksGetInput, nL as UsersWebhooksGetOutput, nM as UsersWebhooksListInput, nN as UsersWebhooksListOutput, nO as UsersWebhooksRotateSecretInput, nP as UsersWebhooksRotateSecretOutput, nQ as UsersWebhooksUpdateInput, nR as UsersWebhooksUpdateOutput } from '../client.gen-Cumsa8PY.js';
1
+ import { G as GeneratedClient, my as UsersApikeysCreateInput, mz as UsersApikeysCreateOutput, mA as UsersApikeysListInput, mB as UsersApikeysListOutput, mC as UsersApikeysRevokeInput, mD as UsersApikeysRevokeOutput, mE as UsersAuditListInput, mF as UsersAuditListOutput, mG as UsersConfigGetInput, mH as UsersConfigGetOutput, mI as UsersConfigUpsertInput, mJ as UsersConfigUpsertOutput, mK as UsersFactorsListInput, mL as UsersFactorsListOutput, mM as UsersFactorsResetInput, mN as UsersFactorsResetOutput, mO as UsersKeysListInput, mP as UsersKeysListOutput, mQ as UsersKeysRevokeInput, mR as UsersKeysRevokeOutput, mS as UsersKeysRotateInput, mT as UsersKeysRotateOutput, mU as UsersOpsRetentionGetInput, mV as UsersOpsRetentionGetOutput, mW as UsersOpsSloGetInput, mX as UsersOpsSloGetOutput, mY as UsersPasskeysListInput, mZ as UsersPasskeysListOutput, m_ as UsersPasskeysRevokeInput, m$ as UsersPasskeysRevokeOutput, n0 as UsersSessionsGetInput, n1 as UsersSessionsGetOutput, n2 as UsersSessionsImpersonateInput, n3 as UsersSessionsImpersonateOutput, n4 as UsersSessionsListInput, n5 as UsersSessionsListOutput, n6 as UsersSessionsRevokeInput, n7 as UsersSessionsRevokeOutput, n8 as UsersStatsGetInput, n9 as UsersStatsGetOutput, na as UsersUsersBanInput, nb as UsersUsersBanOutput, nc as UsersUsersCreateInput, nd as UsersUsersCreateOutput, ne as UsersUsersDeleteInput, nf as UsersUsersDeleteOutput, ng as UsersUsersEraseInput, nh as UsersUsersEraseOutput, ni as UsersUsersExportInput, nj as UsersUsersExportOutput, nk as UsersUsersGetInput, nl as UsersUsersGetOutput, nm as UsersUsersImportInput, nn as UsersUsersImportOutput, no as UsersUsersInviteInput, np as UsersUsersInviteOutput, nq as UsersUsersListInput, nr as UsersUsersListOutput, ns as UsersUsersSetPrimaryIdentifierInput, nt as UsersUsersSetPrimaryIdentifierOutput, nu as UsersUsersUnbanInput, nv as UsersUsersUnbanOutput, nw as UsersUsersUpdateInput, nx as UsersUsersUpdateOutput, ny as UsersWaitlistEraseInput, nz as UsersWaitlistEraseOutput, nA as UsersWaitlistFunnelInput, nB as UsersWaitlistFunnelOutput, nC as UsersWaitlistImportInput, nD as UsersWaitlistImportOutput, nE as UsersWaitlistInviteInput, nF as UsersWaitlistInviteOutput, nG as UsersWaitlistListInput, nH as UsersWaitlistListOutput, nI as UsersWebhooksCreateInput, nJ as UsersWebhooksCreateOutput, nK as UsersWebhooksDeleteInput, nL as UsersWebhooksDeleteOutput, nM as UsersWebhooksDeliveriesListInput, nN as UsersWebhooksDeliveriesListOutput, nO as UsersWebhooksGetInput, nP as UsersWebhooksGetOutput, nQ as UsersWebhooksListInput, nR as UsersWebhooksListOutput, nS as UsersWebhooksRotateSecretInput, nT as UsersWebhooksRotateSecretOutput, nU as UsersWebhooksUpdateInput, nV as UsersWebhooksUpdateOutput } from '../client.gen-Cyz4I2yE.js';
2
2
 
3
3
  declare const usersApikeysCreateMutationOptions: (sdk: GeneratedClient) => {
4
4
  mutationKey: string[];
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, nS as WaitlistConfigGetInput, nT as WaitlistConfigGetOutput, nU as WaitlistConfigUpsertInput, nV as WaitlistConfigUpsertOutput, nW as WaitlistEmbedGetInput, nX as WaitlistEmbedGetOutput, nY as WaitlistInvitesSendInput, nZ as WaitlistInvitesSendOutput, n_ as WaitlistSignupsEraseInput, n$ as WaitlistSignupsEraseOutput, o0 as WaitlistSignupsFunnelInput, o1 as WaitlistSignupsFunnelOutput, o2 as WaitlistSignupsListInput, o3 as WaitlistSignupsListOutput } from '../client.gen-Cumsa8PY.cjs';
1
+ import { G as GeneratedClient, nW as WaitlistConfigGetInput, nX as WaitlistConfigGetOutput, nY as WaitlistConfigUpsertInput, nZ as WaitlistConfigUpsertOutput, n_ as WaitlistEmbedGetInput, n$ as WaitlistEmbedGetOutput, o0 as WaitlistInvitesSendInput, o1 as WaitlistInvitesSendOutput, o2 as WaitlistSignupsEraseInput, o3 as WaitlistSignupsEraseOutput, o4 as WaitlistSignupsFunnelInput, o5 as WaitlistSignupsFunnelOutput, o6 as WaitlistSignupsListInput, o7 as WaitlistSignupsListOutput } from '../client.gen-Cyz4I2yE.cjs';
2
2
 
3
3
  declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
4
4
  queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, nS as WaitlistConfigGetInput, nT as WaitlistConfigGetOutput, nU as WaitlistConfigUpsertInput, nV as WaitlistConfigUpsertOutput, nW as WaitlistEmbedGetInput, nX as WaitlistEmbedGetOutput, nY as WaitlistInvitesSendInput, nZ as WaitlistInvitesSendOutput, n_ as WaitlistSignupsEraseInput, n$ as WaitlistSignupsEraseOutput, o0 as WaitlistSignupsFunnelInput, o1 as WaitlistSignupsFunnelOutput, o2 as WaitlistSignupsListInput, o3 as WaitlistSignupsListOutput } from '../client.gen-Cumsa8PY.js';
1
+ import { G as GeneratedClient, nW as WaitlistConfigGetInput, nX as WaitlistConfigGetOutput, nY as WaitlistConfigUpsertInput, nZ as WaitlistConfigUpsertOutput, n_ as WaitlistEmbedGetInput, n$ as WaitlistEmbedGetOutput, o0 as WaitlistInvitesSendInput, o1 as WaitlistInvitesSendOutput, o2 as WaitlistSignupsEraseInput, o3 as WaitlistSignupsEraseOutput, o4 as WaitlistSignupsFunnelInput, o5 as WaitlistSignupsFunnelOutput, o6 as WaitlistSignupsListInput, o7 as WaitlistSignupsListOutput } from '../client.gen-Cyz4I2yE.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": "42.0.0",
3
+ "version": "42.2.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -101,5 +101,5 @@
101
101
  "require": "./dist/waitlist/index.cjs"
102
102
  }
103
103
  },
104
- "sdkContentHash": "sha256:33b49b09f23ee7c288b99632046a7deaa93b1fcacaeef179285d61d2d01d1313"
104
+ "sdkContentHash": "sha256:5c3d031d6993c5c7f189b5a874bc43bd2a2b3ef379c313dd90d6d591d2fd3b7f"
105
105
  }
@@ -3830,6 +3830,74 @@ export const bindings: BindingsMap = {
3830
3830
  "readOnly": true
3831
3831
  }
3832
3832
  },
3833
+ "metrics": {
3834
+ "list": {
3835
+ "method": "GET",
3836
+ "params": [
3837
+ {
3838
+ "in": "query",
3839
+ "name": "environment"
3840
+ },
3841
+ {
3842
+ "in": "query",
3843
+ "name": "service"
3844
+ },
3845
+ {
3846
+ "in": "query",
3847
+ "name": "search"
3848
+ },
3849
+ {
3850
+ "in": "query",
3851
+ "name": "window"
3852
+ }
3853
+ ],
3854
+ "path": "/observe/metrics/catalog",
3855
+ "readOnly": true
3856
+ },
3857
+ "query": {
3858
+ "method": "GET",
3859
+ "params": [
3860
+ {
3861
+ "in": "query",
3862
+ "name": "name"
3863
+ },
3864
+ {
3865
+ "in": "query",
3866
+ "name": "aggregation"
3867
+ },
3868
+ {
3869
+ "in": "query",
3870
+ "name": "from"
3871
+ },
3872
+ {
3873
+ "in": "query",
3874
+ "name": "to"
3875
+ },
3876
+ {
3877
+ "in": "query",
3878
+ "name": "step"
3879
+ },
3880
+ {
3881
+ "in": "query",
3882
+ "name": "environment"
3883
+ },
3884
+ {
3885
+ "in": "query",
3886
+ "name": "service"
3887
+ },
3888
+ {
3889
+ "in": "query",
3890
+ "name": "attributes"
3891
+ },
3892
+ {
3893
+ "in": "query",
3894
+ "name": "groupBy"
3895
+ }
3896
+ ],
3897
+ "path": "/observe/metrics/query",
3898
+ "readOnly": true
3899
+ }
3900
+ },
3833
3901
  "traces": {
3834
3902
  "get": {
3835
3903
  "method": "GET",
@@ -470,6 +470,10 @@ import type {
470
470
  ObserveLogsSearchOutput,
471
471
  ObserveLogsTailInput,
472
472
  ObserveLogsTailOutput,
473
+ ObserveMetricsListInput,
474
+ ObserveMetricsListOutput,
475
+ ObserveMetricsQueryInput,
476
+ ObserveMetricsQueryOutput,
473
477
  ObserveTracesGetInput,
474
478
  ObserveTracesGetOutput,
475
479
  ObserveTracesSearchInput,
@@ -1385,6 +1389,10 @@ export interface GeneratedClient {
1385
1389
  search(input: ObserveLogsSearchInput): Promise<ObserveLogsSearchOutput>;
1386
1390
  tail(input: ObserveLogsTailInput): Promise<ObserveLogsTailOutput>;
1387
1391
  };
1392
+ metrics: {
1393
+ list(input: ObserveMetricsListInput): Promise<ObserveMetricsListOutput>;
1394
+ query(input: ObserveMetricsQueryInput): Promise<ObserveMetricsQueryOutput>;
1395
+ };
1388
1396
  traces: {
1389
1397
  get(input: ObserveTracesGetInput): Promise<ObserveTracesGetOutput>;
1390
1398
  search(input: ObserveTracesSearchInput): Promise<ObserveTracesSearchOutput>;
@@ -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),
@@ -13807,6 +13807,179 @@ severityNumber: number
13807
13807
  nextCursor: (string | null)
13808
13808
  }
13809
13809
 
13810
+ export interface ObserveMetricsListInput {
13811
+ /**
13812
+ * Only metrics whose name contains this text, case-insensitively
13813
+ */
13814
+ search?: string
13815
+ /**
13816
+ * How far back to look for metrics; default "24h"
13817
+ */
13818
+ window?: ("15m" | "1h" | "24h" | "7d" | "30d")
13819
+ /**
13820
+ * Only metrics reported by this service, e.g. "api"
13821
+ */
13822
+ service?: string
13823
+ /**
13824
+ * Only metrics reported in this environment, e.g. "production"
13825
+ */
13826
+ environment?: string
13827
+ }
13828
+
13829
+ export interface ObserveMetricsListOutput {
13830
+ /**
13831
+ * The window that was catalogued
13832
+ */
13833
+ window: string
13834
+ /**
13835
+ * The metrics seen in the window, by name
13836
+ */
13837
+ metrics: {
13838
+ /**
13839
+ * The metric name, e.g. "http.server.requests"
13840
+ */
13841
+ name: string
13842
+ /**
13843
+ * What the metric holds: a counter ("sum") or an explicit-bucket histogram
13844
+ */
13845
+ type: ("sum" | "histogram")
13846
+ /**
13847
+ * Unit as the emitter declared it, e.g. "ms"; empty when none
13848
+ */
13849
+ unit: string
13850
+ /**
13851
+ * When the newest point in the window arrived, ISO 8601
13852
+ */
13853
+ lastSeen: string
13854
+ /**
13855
+ * Services that reported it
13856
+ */
13857
+ services: string[]
13858
+ /**
13859
+ * Description the emitter declared; empty when none
13860
+ */
13861
+ description: string
13862
+ /**
13863
+ * How many distinct attribute sets were seen in the window
13864
+ */
13865
+ seriesCount: number
13866
+ /**
13867
+ * Environments this metric was reported in
13868
+ */
13869
+ environments: string[]
13870
+ /**
13871
+ * Attribute keys its series carry — the values groupBy accepts
13872
+ */
13873
+ attributeKeys: string[]
13874
+ }[]
13875
+ }
13876
+
13877
+ export interface ObserveMetricsQueryInput {
13878
+ /**
13879
+ * End of the window, ISO 8601; default now
13880
+ */
13881
+ to?: string
13882
+ /**
13883
+ * Start of the window, ISO 8601; default one hour ago
13884
+ */
13885
+ from?: string
13886
+ /**
13887
+ * The metric to read, exactly as observe_metrics_list names it
13888
+ */
13889
+ name: string
13890
+ /**
13891
+ * Bucket width; default the finest that renders at most 500 points
13892
+ */
13893
+ step?: ("1m" | "5m" | "15m" | "1h" | "6h" | "1d")
13894
+ /**
13895
+ * Attribute keys to keep as the series labels, aggregating every other attribute into them; default one series per distinct attribute set
13896
+ *
13897
+ * @maxItems 10
13898
+ */
13899
+ 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]
13900
+ /**
13901
+ * Only points from this service
13902
+ */
13903
+ service?: string
13904
+ /**
13905
+ * Only points whose attributes match every one of these key/value pairs
13906
+ */
13907
+ attributes?: {
13908
+ [k: string]: string
13909
+ }
13910
+ /**
13911
+ * 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.
13912
+ */
13913
+ aggregation: ("rate" | "increase" | "value" | "p50" | "p90" | "p99" | "avg" | "count")
13914
+ /**
13915
+ * Only points from this environment
13916
+ */
13917
+ environment?: string
13918
+ }
13919
+
13920
+ export interface ObserveMetricsQueryOutput {
13921
+ /**
13922
+ * End of the window that was read, ISO 8601
13923
+ */
13924
+ to: string
13925
+ /**
13926
+ * Start of the window that was read, ISO 8601
13927
+ */
13928
+ from: string
13929
+ /**
13930
+ * The metric that was read
13931
+ */
13932
+ name: string
13933
+ /**
13934
+ * The bucket width the series is rendered at
13935
+ */
13936
+ step: string
13937
+ /**
13938
+ * What the metric holds: a counter ("sum") or an explicit-bucket histogram
13939
+ */
13940
+ type: ("sum" | "histogram")
13941
+ /**
13942
+ * Unit as the emitter declared it; empty when none
13943
+ */
13944
+ unit: string
13945
+ /**
13946
+ * One series per label set, ordered stably
13947
+ */
13948
+ series: {
13949
+ /**
13950
+ * The attribute set identifying this series, narrowed by groupBy when given
13951
+ */
13952
+ labels: {
13953
+ [k: string]: string
13954
+ }
13955
+ /**
13956
+ * One point per step, oldest first, gaps included
13957
+ */
13958
+ points: {
13959
+ /**
13960
+ * The aggregated value; null when the step had no points
13961
+ */
13962
+ value: (number | null)
13963
+ /**
13964
+ * Start of the step this value covers, ISO 8601
13965
+ */
13966
+ timestamp: string
13967
+ }[]
13968
+ }[]
13969
+ /**
13970
+ * True when a ceiling cut the answer — more series exist than were returned
13971
+ */
13972
+ truncated: boolean
13973
+ /**
13974
+ * The aggregation that was applied
13975
+ */
13976
+ aggregation: string
13977
+ /**
13978
+ * That width in seconds — what a rate was divided by
13979
+ */
13980
+ stepSeconds: number
13981
+ }
13982
+
13810
13983
  export interface ObserveTracesGetInput {
13811
13984
  /**
13812
13985
  * The trace to render, by its 32-character hex id