@lessly/sdk-app 35.1.0 → 36.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.
Files changed (44) 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-B_GMJlI1.d.cts → client.gen-DmyTGPoI.d.cts} +194 -1
  6. package/dist/{client.gen-B_GMJlI1.d.ts → client.gen-DmyTGPoI.d.ts} +194 -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 +64 -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 +64 -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/playground/index.d.cts +1 -1
  28. package/dist/playground/index.d.ts +1 -1
  29. package/dist/realtime/index.d.cts +1 -1
  30. package/dist/realtime/index.d.ts +1 -1
  31. package/dist/support/index.d.cts +1 -1
  32. package/dist/support/index.d.ts +1 -1
  33. package/dist/tracking/index.d.cts +1 -1
  34. package/dist/tracking/index.d.ts +1 -1
  35. package/dist/users/index.d.cts +1 -1
  36. package/dist/users/index.d.ts +1 -1
  37. package/dist/waitlist/index.d.cts +1 -1
  38. package/dist/waitlist/index.d.ts +1 -1
  39. package/package.json +2 -2
  40. package/src/gen/bindings.gen.ts +64 -0
  41. package/src/gen/client.gen.ts +8 -0
  42. package/src/gen/observe/index.ts +1 -1
  43. package/src/gen/observe/queryOptions.gen.ts +14 -0
  44. package/src/gen/types.gen.ts +193 -0
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, nK as WaitlistConfigGetInput, nL as WaitlistConfigGetOutput, nM as WaitlistConfigUpsertInput, nN as WaitlistConfigUpsertOutput, nO as WaitlistEmbedGetInput, nP as WaitlistEmbedGetOutput, nQ as WaitlistInvitesSendInput, nR as WaitlistInvitesSendOutput, nS as WaitlistSignupsEraseInput, nT as WaitlistSignupsEraseOutput, nU as WaitlistSignupsFunnelInput, nV as WaitlistSignupsFunnelOutput, nW as WaitlistSignupsListInput, nX as WaitlistSignupsListOutput } from '../client.gen-B_GMJlI1.cjs';
1
+ import { G as GeneratedClient, nO as WaitlistConfigGetInput, nP as WaitlistConfigGetOutput, nQ as WaitlistConfigUpsertInput, nR as WaitlistConfigUpsertOutput, nS as WaitlistEmbedGetInput, nT as WaitlistEmbedGetOutput, nU as WaitlistInvitesSendInput, nV as WaitlistInvitesSendOutput, nW as WaitlistSignupsEraseInput, nX as WaitlistSignupsEraseOutput, nY as WaitlistSignupsFunnelInput, nZ as WaitlistSignupsFunnelOutput, n_ as WaitlistSignupsListInput, n$ as WaitlistSignupsListOutput } from '../client.gen-DmyTGPoI.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, nK as WaitlistConfigGetInput, nL as WaitlistConfigGetOutput, nM as WaitlistConfigUpsertInput, nN as WaitlistConfigUpsertOutput, nO as WaitlistEmbedGetInput, nP as WaitlistEmbedGetOutput, nQ as WaitlistInvitesSendInput, nR as WaitlistInvitesSendOutput, nS as WaitlistSignupsEraseInput, nT as WaitlistSignupsEraseOutput, nU as WaitlistSignupsFunnelInput, nV as WaitlistSignupsFunnelOutput, nW as WaitlistSignupsListInput, nX as WaitlistSignupsListOutput } from '../client.gen-B_GMJlI1.js';
1
+ import { G as GeneratedClient, nO as WaitlistConfigGetInput, nP as WaitlistConfigGetOutput, nQ as WaitlistConfigUpsertInput, nR as WaitlistConfigUpsertOutput, nS as WaitlistEmbedGetInput, nT as WaitlistEmbedGetOutput, nU as WaitlistInvitesSendInput, nV as WaitlistInvitesSendOutput, nW as WaitlistSignupsEraseInput, nX as WaitlistSignupsEraseOutput, nY as WaitlistSignupsFunnelInput, nZ as WaitlistSignupsFunnelOutput, n_ as WaitlistSignupsListInput, n$ as WaitlistSignupsListOutput } from '../client.gen-DmyTGPoI.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": "35.1.0",
3
+ "version": "36.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:3f6b96525a37cc58d5c2d8e7eb5ba931c3d5f553f69db680520dd66fb7a8f5d8"
109
+ "sdkContentHash": "sha256:3bcb1b42cfa72e00e44c3b254576138bb063375f594987a6f39798567d2b41f7"
110
110
  }
@@ -3705,6 +3705,70 @@ export const bindings: BindingsMap = {
3705
3705
  "readOnly": true
3706
3706
  }
3707
3707
  },
3708
+ "traces": {
3709
+ "get": {
3710
+ "method": "GET",
3711
+ "params": [
3712
+ {
3713
+ "in": "path",
3714
+ "name": "traceId"
3715
+ }
3716
+ ],
3717
+ "path": "/observe/traces/:traceId",
3718
+ "readOnly": true
3719
+ },
3720
+ "search": {
3721
+ "method": "GET",
3722
+ "params": [
3723
+ {
3724
+ "in": "query",
3725
+ "name": "environment"
3726
+ },
3727
+ {
3728
+ "in": "query",
3729
+ "name": "service"
3730
+ },
3731
+ {
3732
+ "in": "query",
3733
+ "name": "name"
3734
+ },
3735
+ {
3736
+ "in": "query",
3737
+ "name": "status"
3738
+ },
3739
+ {
3740
+ "in": "query",
3741
+ "name": "minDurationMs"
3742
+ },
3743
+ {
3744
+ "in": "query",
3745
+ "name": "maxDurationMs"
3746
+ },
3747
+ {
3748
+ "in": "query",
3749
+ "name": "traceId"
3750
+ },
3751
+ {
3752
+ "in": "query",
3753
+ "name": "from"
3754
+ },
3755
+ {
3756
+ "in": "query",
3757
+ "name": "to"
3758
+ },
3759
+ {
3760
+ "in": "query",
3761
+ "name": "limit"
3762
+ },
3763
+ {
3764
+ "in": "query",
3765
+ "name": "cursor"
3766
+ }
3767
+ ],
3768
+ "path": "/observe/traces/search",
3769
+ "readOnly": true
3770
+ }
3771
+ },
3708
3772
  "webhooks": {
3709
3773
  "create": {
3710
3774
  "method": "POST",
@@ -456,6 +456,10 @@ import type {
456
456
  ObserveLogsSearchOutput,
457
457
  ObserveLogsTailInput,
458
458
  ObserveLogsTailOutput,
459
+ ObserveTracesGetInput,
460
+ ObserveTracesGetOutput,
461
+ ObserveTracesSearchInput,
462
+ ObserveTracesSearchOutput,
459
463
  ObserveWebhooksCreateInput,
460
464
  ObserveWebhooksCreateOutput,
461
465
  ObserveWebhooksDeleteInput,
@@ -1364,6 +1368,10 @@ export interface GeneratedClient {
1364
1368
  search(input: ObserveLogsSearchInput): Promise<ObserveLogsSearchOutput>;
1365
1369
  tail(input: ObserveLogsTailInput): Promise<ObserveLogsTailOutput>;
1366
1370
  };
1371
+ traces: {
1372
+ get(input: ObserveTracesGetInput): Promise<ObserveTracesGetOutput>;
1373
+ search(input: ObserveTracesSearchInput): Promise<ObserveTracesSearchOutput>;
1374
+ };
1367
1375
  webhooks: {
1368
1376
  create(input: ObserveWebhooksCreateInput): Promise<ObserveWebhooksCreateOutput>;
1369
1377
  delete(input: ObserveWebhooksDeleteInput): Promise<ObserveWebhooksDeleteOutput>;
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { 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, ObserveWebhooksCreateInput, ObserveWebhooksCreateOutput, ObserveWebhooksDeleteInput, ObserveWebhooksDeleteOutput, ObserveWebhooksDeliveriesListInput, ObserveWebhooksDeliveriesListOutput, ObserveWebhooksGetInput, ObserveWebhooksGetOutput, ObserveWebhooksListInput, ObserveWebhooksListOutput, ObserveWebhooksRedeliverInput, ObserveWebhooksRedeliverOutput, ObserveWebhooksRotateSecretInput, ObserveWebhooksRotateSecretOutput, ObserveWebhooksUpdateInput, ObserveWebhooksUpdateOutput } from '../types.gen';
3
+ export type { 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';
@@ -23,6 +23,10 @@ import type {
23
23
  ObserveLogsSearchOutput,
24
24
  ObserveLogsTailInput,
25
25
  ObserveLogsTailOutput,
26
+ ObserveTracesGetInput,
27
+ ObserveTracesGetOutput,
28
+ ObserveTracesSearchInput,
29
+ ObserveTracesSearchOutput,
26
30
  ObserveWebhooksCreateInput,
27
31
  ObserveWebhooksDeleteInput,
28
32
  ObserveWebhooksDeliveriesListInput,
@@ -106,6 +110,16 @@ export const observeLogsTailQueryOptions = (sdk: GeneratedClient, input: Observe
106
110
  queryFn: () => sdk['observe']['logs']['tail'](input),
107
111
  });
108
112
 
113
+ export const observeTracesGetQueryOptions = (sdk: GeneratedClient, input: ObserveTracesGetInput) => ({
114
+ queryKey: ['observe', 'traces', 'get', input] as const,
115
+ queryFn: () => sdk['observe']['traces']['get'](input),
116
+ });
117
+
118
+ export const observeTracesSearchQueryOptions = (sdk: GeneratedClient, input: ObserveTracesSearchInput) => ({
119
+ queryKey: ['observe', 'traces', 'search', input] as const,
120
+ queryFn: () => sdk['observe']['traces']['search'](input),
121
+ });
122
+
109
123
  export const observeWebhooksCreateMutationOptions = (sdk: GeneratedClient) => ({
110
124
  mutationKey: ['observe', 'webhooks', 'create'],
111
125
  mutationFn: (input: ObserveWebhooksCreateInput) => sdk['observe']['webhooks']['create'](input),
@@ -13372,6 +13372,199 @@ severityNumber: number
13372
13372
  nextCursor: (string | null)
13373
13373
  }
13374
13374
 
13375
+ export interface ObserveTracesGetInput {
13376
+ /**
13377
+ * The trace to render, by its 32-character hex id
13378
+ */
13379
+ traceId: string
13380
+ }
13381
+
13382
+ export interface ObserveTracesGetOutput {
13383
+ /**
13384
+ * Every span of the trace, oldest first; empty when the product has no such trace
13385
+ */
13386
+ spans: {
13387
+ /**
13388
+ * OTLP span kind: UNSPECIFIED, INTERNAL, SERVER, CLIENT, PRODUCER or CONSUMER
13389
+ */
13390
+ kind: string
13391
+ /**
13392
+ * Span name, e.g. "GET /users"
13393
+ */
13394
+ name: string
13395
+ /**
13396
+ * How many ancestors the span has inside this trace; the root is 0
13397
+ */
13398
+ depth: number
13399
+ /**
13400
+ * Events recorded on the span, in the order they were sent
13401
+ */
13402
+ events: {
13403
+ /**
13404
+ * Event name as the emitter wrote it, e.g. "exception"
13405
+ */
13406
+ name: string
13407
+ /**
13408
+ * When the event was recorded, ISO 8601
13409
+ */
13410
+ timestamp: string
13411
+ /**
13412
+ * The event's own attributes, raw
13413
+ */
13414
+ attributes: {
13415
+ [k: string]: unknown
13416
+ }
13417
+ }[]
13418
+ /**
13419
+ * The span id, 16 hex characters
13420
+ */
13421
+ spanId: string
13422
+ /**
13423
+ * OTLP span status: UNSET, OK or ERROR
13424
+ */
13425
+ status: string
13426
+ /**
13427
+ * When the span ended, ISO 8601, nanosecond precision
13428
+ */
13429
+ endTime: string
13430
+ /**
13431
+ * Service that recorded the span
13432
+ */
13433
+ service: string
13434
+ /**
13435
+ * When the span started, ISO 8601, nanosecond precision
13436
+ */
13437
+ startTime: string
13438
+ /**
13439
+ * Attributes the emitter attached
13440
+ */
13441
+ attributes: {
13442
+ [k: string]: string
13443
+ }
13444
+ /**
13445
+ * How long the span took, in milliseconds
13446
+ */
13447
+ durationMs: number
13448
+ /**
13449
+ * Environment the span was recorded in
13450
+ */
13451
+ environment: string
13452
+ /**
13453
+ * Parent span id; empty for the root or when the parent is not in this trace
13454
+ */
13455
+ parentSpanId: string
13456
+ /**
13457
+ * Status message the emitter attached, empty when none
13458
+ */
13459
+ statusMessage: string
13460
+ /**
13461
+ * Attributes of the emitting resource
13462
+ */
13463
+ resourceAttributes: {
13464
+ [k: string]: string
13465
+ }
13466
+ }[]
13467
+ /**
13468
+ * The trace that was read
13469
+ */
13470
+ traceId: string
13471
+ }
13472
+
13473
+ export interface ObserveTracesSearchInput {
13474
+ /**
13475
+ * Newest span start to include, ISO 8601
13476
+ */
13477
+ to?: string
13478
+ /**
13479
+ * Oldest span start to include, ISO 8601
13480
+ */
13481
+ from?: string
13482
+ /**
13483
+ * Only traces one of whose spans carries this exact span name, e.g. "GET /users"
13484
+ */
13485
+ name?: string
13486
+ /**
13487
+ * How many traces to return, 1-1000, default 100
13488
+ */
13489
+ limit?: number
13490
+ /**
13491
+ * The nextCursor of the previous page; omit for the first page
13492
+ */
13493
+ cursor?: string
13494
+ /**
13495
+ * Only traces in this state: "error" when any span failed, "ok" when none did and at least one reported OK, "unset" when no span reported a status
13496
+ */
13497
+ status?: ("ok" | "error" | "unset")
13498
+ /**
13499
+ * Only traces one of whose spans belongs to this service, e.g. "api"
13500
+ */
13501
+ service?: string
13502
+ /**
13503
+ * Only this trace, by its 32-character hex id
13504
+ */
13505
+ traceId?: string
13506
+ /**
13507
+ * Only traces of this environment, e.g. "production"
13508
+ */
13509
+ environment?: string
13510
+ /**
13511
+ * Only traces that took at most this many milliseconds end to end
13512
+ */
13513
+ maxDurationMs?: number
13514
+ /**
13515
+ * Only traces that took at least this many milliseconds end to end
13516
+ */
13517
+ minDurationMs?: number
13518
+ }
13519
+
13520
+ export interface ObserveTracesSearchOutput {
13521
+ /**
13522
+ * The matching traces, newest first
13523
+ */
13524
+ traces: {
13525
+ /**
13526
+ * The trace id, 32 hex characters
13527
+ */
13528
+ traceId: string
13529
+ /**
13530
+ * True when at least one span failed
13531
+ */
13532
+ hasError: boolean
13533
+ /**
13534
+ * Name of the root span — the one with no parent, or the earliest span
13535
+ */
13536
+ rootName: string
13537
+ /**
13538
+ * How many spans the trace has
13539
+ */
13540
+ spanCount: number
13541
+ /**
13542
+ * When the earliest span started, ISO 8601
13543
+ */
13544
+ startTime: string
13545
+ /**
13546
+ * Earliest start to latest end, in milliseconds
13547
+ */
13548
+ durationMs: number
13549
+ /**
13550
+ * How many of them reported an ERROR status
13551
+ */
13552
+ errorCount: number
13553
+ /**
13554
+ * Environment the root span was recorded in
13555
+ */
13556
+ environment: string
13557
+ /**
13558
+ * Service the root span belongs to
13559
+ */
13560
+ rootService: string
13561
+ }[]
13562
+ /**
13563
+ * Pass back as cursor for the next page; null when the last page was reached
13564
+ */
13565
+ nextCursor: (string | null)
13566
+ }
13567
+
13375
13568
  export interface ObserveWebhooksCreateInput {
13376
13569
  /**
13377
13570
  * HTTPS endpoint the event is POSTed to. Plain http:// is rejected