@perpetualsystems/typescript-sdk 0.4.0 → 0.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perpetualsystems/typescript-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "TypeScript SDK for the Perpetual Systems API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "@types/node": "^26.6.6",
39
39
  "@typescript/typescript6": "6.0.2",
40
40
  "typescript": "^7.0.2",
41
- "vitest": "5.0.5"
41
+ "vitest": "5.1.0"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=20.3.0"
@@ -642,7 +642,8 @@ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
642
642
  ],
643
643
  "type": "object"
644
644
  }
645
- ]
645
+ ],
646
+ "description": "Retired: use queries. Read as the panel's only query when queries is absent."
646
647
  },
647
648
  "spec": {
648
649
  "additionalProperties": {},
@@ -693,7 +694,6 @@ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
693
694
  "id",
694
695
  "type",
695
696
  "layout",
696
- "query",
697
697
  "spec"
698
698
  ],
699
699
  "type": "object"
@@ -2198,7 +2198,8 @@ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
2198
2198
  ],
2199
2199
  "type": "object"
2200
2200
  }
2201
- ]
2201
+ ],
2202
+ "description": "Retired: use queries. Read as the panel's only query when queries is absent."
2202
2203
  },
2203
2204
  "spec": {
2204
2205
  "additionalProperties": {},
@@ -2249,7 +2250,6 @@ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
2249
2250
  "id",
2250
2251
  "type",
2251
2252
  "layout",
2252
- "query",
2253
2253
  "spec"
2254
2254
  ],
2255
2255
  "type": "object"
@@ -2415,7 +2415,7 @@ export const fileSchemas: Readonly<Record<string, Record<string, unknown>>> = {
2415
2415
  "type": "boolean"
2416
2416
  },
2417
2417
  "deploy": {
2418
- "description": "Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.",
2418
+ "description": "Whether to deploy the detection.",
2419
2419
  "type": "boolean"
2420
2420
  },
2421
2421
  "description": {
@@ -3,7 +3,7 @@
3
3
  export const specSource = {
4
4
  repository: "perpetualsystems/simba",
5
5
  path: "ipc/management-plane/openapi-0.0.1-alpha1.json",
6
- sha: "661da997f5522604540c08a2d08af21835798d61",
7
- sha256: "18983c01a854d9c2812b1e766bfbd87b855e4752bd72aae7ed643a585a787327",
8
- fileSchemasSha: "661da997f5522604540c08a2d08af21835798d61",
6
+ sha: "3e2e2a496feac20023098f399a007c8a160d8187",
7
+ sha256: "b52f67ac1a71f0069220e8ffd6fc4315e06052e6cd259cae90c66bb98f43fa06",
8
+ fileSchemasSha: "3e2e2a496feac20023098f399a007c8a160d8187",
9
9
  } as const;
@@ -429,7 +429,7 @@ export type Detection = {
429
429
  createdByUserId: string | null;
430
430
  deleted?: boolean;
431
431
  /**
432
- * Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.
432
+ * Whether to deploy the detection.
433
433
  */
434
434
  deploy: boolean;
435
435
  deploymentStatus: 'UNDEPLOYED' | 'DEPLOYED' | 'FAILED' | 'DEGRADED' | 'DEPLOY_PENDING' | 'DEPLOY_IN_PROGRESS' | 'UPDATE_PENDING' | 'UPDATE_IN_PROGRESS' | 'REFRESH_IN_PROGRESS' | 'ARCHIVED' | 'CLEANUP_PENDING' | 'CLEANUP_IN_PROGRESS';
@@ -5473,12 +5473,11 @@ export type ChangesetsGetResponses = {
5473
5473
  x: number;
5474
5474
  y: number;
5475
5475
  };
5476
- queries?: Array<{
5476
+ queries: Array<{
5477
5477
  id: string;
5478
5478
  name: string;
5479
5479
  query: string;
5480
5480
  }>;
5481
- query: string;
5482
5481
  spec: {
5483
5482
  [key: string]: unknown;
5484
5483
  };
@@ -5661,6 +5660,10 @@ export type ChangesetsGetResponses = {
5661
5660
  baseVersion: number | null;
5662
5661
  changesetId: string | null;
5663
5662
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
5663
+ /**
5664
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
5665
+ */
5666
+ connectorId?: string | null;
5664
5667
  contentPackId?: string;
5665
5668
  createdAt: string;
5666
5669
  createdByUserId: string | null;
@@ -5857,7 +5860,7 @@ export type ChangesetsGetResponses = {
5857
5860
  createdByUserId: string | null;
5858
5861
  deleted?: boolean;
5859
5862
  /**
5860
- * Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.
5863
+ * Whether to deploy the detection.
5861
5864
  */
5862
5865
  deploy: boolean;
5863
5866
  deploymentStatus: 'UNDEPLOYED' | 'DEPLOYED' | 'FAILED' | 'DEGRADED' | 'DEPLOY_PENDING' | 'DEPLOY_IN_PROGRESS' | 'UPDATE_PENDING' | 'UPDATE_IN_PROGRESS' | 'REFRESH_IN_PROGRESS' | 'ARCHIVED' | 'CLEANUP_PENDING' | 'CLEANUP_IN_PROGRESS';
@@ -8283,6 +8286,7 @@ export type ConnectorsListBuiltinKindsResponses = {
8283
8286
  label: string;
8284
8287
  required: boolean;
8285
8288
  }>;
8289
+ datasetKind?: 'event' | 'state';
8286
8290
  description?: string;
8287
8291
  displayName: string;
8288
8292
  iconUrl?: string;
@@ -9044,7 +9048,7 @@ export type ContentListResponses = {
9044
9048
  detectionMaturity?: 'EXPERIMENTAL' | 'TEST' | 'STABLE' | 'DEPRECATED';
9045
9049
  folderPath: string;
9046
9050
  id: string;
9047
- lookupType?: 'Static' | 'Computed';
9051
+ lookupType?: 'Static' | 'Computed' | 'Connector';
9048
9052
  name: string;
9049
9053
  parentFolderId?: string | null;
9050
9054
  readOnly?: boolean;
@@ -9125,6 +9129,8 @@ export type ContentPackInstallationsListResponses = {
9125
9129
  */
9126
9130
  count: number;
9127
9131
  items: Array<{
9132
+ automaticUpdateFailed: boolean;
9133
+ automaticUpdatePending: boolean;
9128
9134
  changesetId: string | null;
9129
9135
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9130
9136
  contentPackId: string;
@@ -9132,6 +9138,7 @@ export type ContentPackInstallationsListResponses = {
9132
9138
  createdByUserId: string | null;
9133
9139
  deleted?: boolean;
9134
9140
  draftChangesetId: string | null;
9141
+ hasOpenChangesetChange: boolean;
9135
9142
  id: string;
9136
9143
  installDeployed: boolean;
9137
9144
  /**
@@ -9142,6 +9149,7 @@ export type ContentPackInstallationsListResponses = {
9142
9149
  installedReleaseVersion: number;
9143
9150
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9144
9151
  name: string;
9152
+ openChangesetChangeCount: number;
9145
9153
  organizationId: string;
9146
9154
  packMeetsMinHamelinVersion: boolean;
9147
9155
  packMinHamelinVersion: string | null;
@@ -9319,6 +9327,8 @@ export type ContentPackInstallationsInstallResponses = {
9319
9327
  */
9320
9328
  installFolderId: string;
9321
9329
  installation: {
9330
+ automaticUpdateFailed: boolean;
9331
+ automaticUpdatePending: boolean;
9322
9332
  changesetId: string | null;
9323
9333
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9324
9334
  contentPackId: string;
@@ -9326,6 +9336,7 @@ export type ContentPackInstallationsInstallResponses = {
9326
9336
  createdByUserId: string | null;
9327
9337
  deleted?: boolean;
9328
9338
  draftChangesetId: string | null;
9339
+ hasOpenChangesetChange: boolean;
9329
9340
  id: string;
9330
9341
  installDeployed: boolean;
9331
9342
  /**
@@ -9336,6 +9347,7 @@ export type ContentPackInstallationsInstallResponses = {
9336
9347
  installedReleaseVersion: number;
9337
9348
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9338
9349
  name: string;
9350
+ openChangesetChangeCount: number;
9339
9351
  organizationId: string;
9340
9352
  packMeetsMinHamelinVersion: boolean;
9341
9353
  packMinHamelinVersion: string | null;
@@ -9408,6 +9420,8 @@ export type ContentPackInstallationsBatchUpdateResponses = {
9408
9420
  updatedAt: string;
9409
9421
  } | null;
9410
9422
  installations: Array<{
9423
+ automaticUpdateFailed: boolean;
9424
+ automaticUpdatePending: boolean;
9411
9425
  changesetId: string | null;
9412
9426
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9413
9427
  contentPackId: string;
@@ -9415,6 +9429,7 @@ export type ContentPackInstallationsBatchUpdateResponses = {
9415
9429
  createdByUserId: string | null;
9416
9430
  deleted?: boolean;
9417
9431
  draftChangesetId: string | null;
9432
+ hasOpenChangesetChange: boolean;
9418
9433
  id: string;
9419
9434
  installDeployed: boolean;
9420
9435
  /**
@@ -9425,6 +9440,7 @@ export type ContentPackInstallationsBatchUpdateResponses = {
9425
9440
  installedReleaseVersion: number;
9426
9441
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9427
9442
  name: string;
9443
+ openChangesetChangeCount: number;
9428
9444
  organizationId: string;
9429
9445
  packMeetsMinHamelinVersion: boolean;
9430
9446
  packMinHamelinVersion: string | null;
@@ -9518,6 +9534,8 @@ export type ContentPackInstallationsLinkResponses = {
9518
9534
  */
9519
9535
  installFolderId: string;
9520
9536
  installation: {
9537
+ automaticUpdateFailed: boolean;
9538
+ automaticUpdatePending: boolean;
9521
9539
  changesetId: string | null;
9522
9540
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9523
9541
  contentPackId: string;
@@ -9525,6 +9543,7 @@ export type ContentPackInstallationsLinkResponses = {
9525
9543
  createdByUserId: string | null;
9526
9544
  deleted?: boolean;
9527
9545
  draftChangesetId: string | null;
9546
+ hasOpenChangesetChange: boolean;
9528
9547
  id: string;
9529
9548
  installDeployed: boolean;
9530
9549
  /**
@@ -9535,6 +9554,7 @@ export type ContentPackInstallationsLinkResponses = {
9535
9554
  installedReleaseVersion: number;
9536
9555
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9537
9556
  name: string;
9557
+ openChangesetChangeCount: number;
9538
9558
  organizationId: string;
9539
9559
  packMeetsMinHamelinVersion: boolean;
9540
9560
  packMinHamelinVersion: string | null;
@@ -9589,6 +9609,8 @@ export type ContentPackInstallationsGetByIdResponses = {
9589
9609
  * Content Pack Installation
9590
9610
  */
9591
9611
  200: {
9612
+ automaticUpdateFailed: boolean;
9613
+ automaticUpdatePending: boolean;
9592
9614
  changesetId: string | null;
9593
9615
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9594
9616
  contentPackId: string;
@@ -9596,6 +9618,7 @@ export type ContentPackInstallationsGetByIdResponses = {
9596
9618
  createdByUserId: string | null;
9597
9619
  deleted?: boolean;
9598
9620
  draftChangesetId: string | null;
9621
+ hasOpenChangesetChange: boolean;
9599
9622
  id: string;
9600
9623
  installDeployed: boolean;
9601
9624
  /**
@@ -9606,6 +9629,7 @@ export type ContentPackInstallationsGetByIdResponses = {
9606
9629
  installedReleaseVersion: number;
9607
9630
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9608
9631
  name: string;
9632
+ openChangesetChangeCount: number;
9609
9633
  organizationId: string;
9610
9634
  packMeetsMinHamelinVersion: boolean;
9611
9635
  packMinHamelinVersion: string | null;
@@ -9658,6 +9682,8 @@ export type ContentPackInstallationsUpdateInstallDeployedResponses = {
9658
9682
  * Content Pack Installation
9659
9683
  */
9660
9684
  200: {
9685
+ automaticUpdateFailed: boolean;
9686
+ automaticUpdatePending: boolean;
9661
9687
  changesetId: string | null;
9662
9688
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9663
9689
  contentPackId: string;
@@ -9665,6 +9691,7 @@ export type ContentPackInstallationsUpdateInstallDeployedResponses = {
9665
9691
  createdByUserId: string | null;
9666
9692
  deleted?: boolean;
9667
9693
  draftChangesetId: string | null;
9694
+ hasOpenChangesetChange: boolean;
9668
9695
  id: string;
9669
9696
  installDeployed: boolean;
9670
9697
  /**
@@ -9675,6 +9702,7 @@ export type ContentPackInstallationsUpdateInstallDeployedResponses = {
9675
9702
  installedReleaseVersion: number;
9676
9703
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9677
9704
  name: string;
9705
+ openChangesetChangeCount: number;
9678
9706
  organizationId: string;
9679
9707
  packMeetsMinHamelinVersion: boolean;
9680
9708
  packMinHamelinVersion: string | null;
@@ -9731,6 +9759,8 @@ export type ContentPackInstallationsUpdateLinkModeResponses = {
9731
9759
  * Content Pack Installation
9732
9760
  */
9733
9761
  200: {
9762
+ automaticUpdateFailed: boolean;
9763
+ automaticUpdatePending: boolean;
9734
9764
  changesetId: string | null;
9735
9765
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9736
9766
  contentPackId: string;
@@ -9738,6 +9768,7 @@ export type ContentPackInstallationsUpdateLinkModeResponses = {
9738
9768
  createdByUserId: string | null;
9739
9769
  deleted?: boolean;
9740
9770
  draftChangesetId: string | null;
9771
+ hasOpenChangesetChange: boolean;
9741
9772
  id: string;
9742
9773
  installDeployed: boolean;
9743
9774
  /**
@@ -9748,6 +9779,7 @@ export type ContentPackInstallationsUpdateLinkModeResponses = {
9748
9779
  installedReleaseVersion: number;
9749
9780
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9750
9781
  name: string;
9782
+ openChangesetChangeCount: number;
9751
9783
  organizationId: string;
9752
9784
  packMeetsMinHamelinVersion: boolean;
9753
9785
  packMinHamelinVersion: string | null;
@@ -9950,6 +9982,8 @@ export type ContentPackInstallationsUpdateResponses = {
9950
9982
  * Content Pack Installation
9951
9983
  */
9952
9984
  installation: {
9985
+ automaticUpdateFailed: boolean;
9986
+ automaticUpdatePending: boolean;
9953
9987
  changesetId: string | null;
9954
9988
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9955
9989
  contentPackId: string;
@@ -9957,6 +9991,7 @@ export type ContentPackInstallationsUpdateResponses = {
9957
9991
  createdByUserId: string | null;
9958
9992
  deleted?: boolean;
9959
9993
  draftChangesetId: string | null;
9994
+ hasOpenChangesetChange: boolean;
9960
9995
  id: string;
9961
9996
  installDeployed: boolean;
9962
9997
  /**
@@ -9967,6 +10002,7 @@ export type ContentPackInstallationsUpdateResponses = {
9967
10002
  installedReleaseVersion: number;
9968
10003
  linkMode: 'Manual' | 'Copy' | 'Automatic';
9969
10004
  name: string;
10005
+ openChangesetChangeCount: number;
9970
10006
  organizationId: string;
9971
10007
  packMeetsMinHamelinVersion: boolean;
9972
10008
  packMinHamelinVersion: string | null;
@@ -10433,7 +10469,7 @@ export type ContentPacksListContentResponses = {
10433
10469
  detectionMaturity?: 'EXPERIMENTAL' | 'TEST' | 'STABLE' | 'DEPRECATED';
10434
10470
  folderPath: string;
10435
10471
  id: string;
10436
- lookupType?: 'Static' | 'Computed';
10472
+ lookupType?: 'Static' | 'Computed' | 'Connector';
10437
10473
  name: string;
10438
10474
  parentFolderId?: string | null;
10439
10475
  readOnly?: boolean;
@@ -10461,12 +10497,11 @@ export type ContentPacksDashboardsCreateData = {
10461
10497
  x: number;
10462
10498
  y: number;
10463
10499
  };
10464
- queries?: Array<{
10500
+ queries: Array<{
10465
10501
  id: string;
10466
10502
  name: string;
10467
10503
  query: string;
10468
10504
  }>;
10469
- query: string;
10470
10505
  spec: {
10471
10506
  [key: string]: unknown;
10472
10507
  };
@@ -10613,12 +10648,11 @@ export type ContentPacksDashboardsCreateResponses = {
10613
10648
  x: number;
10614
10649
  y: number;
10615
10650
  };
10616
- queries?: Array<{
10651
+ queries: Array<{
10617
10652
  id: string;
10618
10653
  name: string;
10619
10654
  query: string;
10620
10655
  }>;
10621
- query: string;
10622
10656
  spec: {
10623
10657
  [key: string]: unknown;
10624
10658
  };
@@ -10801,12 +10835,11 @@ export type ContentPacksDashboardsGetByIdResponses = {
10801
10835
  x: number;
10802
10836
  y: number;
10803
10837
  };
10804
- queries?: Array<{
10838
+ queries: Array<{
10805
10839
  id: string;
10806
10840
  name: string;
10807
10841
  query: string;
10808
10842
  }>;
10809
- query: string;
10810
10843
  spec: {
10811
10844
  [key: string]: unknown;
10812
10845
  };
@@ -10906,12 +10939,11 @@ export type ContentPacksDashboardsUpdateData = {
10906
10939
  x: number;
10907
10940
  y: number;
10908
10941
  };
10909
- queries?: Array<{
10942
+ queries: Array<{
10910
10943
  id: string;
10911
10944
  name: string;
10912
10945
  query: string;
10913
10946
  }>;
10914
- query: string;
10915
10947
  spec: {
10916
10948
  [key: string]: unknown;
10917
10949
  };
@@ -11042,12 +11074,11 @@ export type ContentPacksDashboardsUpdateResponses = {
11042
11074
  x: number;
11043
11075
  y: number;
11044
11076
  };
11045
- queries?: Array<{
11077
+ queries: Array<{
11046
11078
  id: string;
11047
11079
  name: string;
11048
11080
  query: string;
11049
11081
  }>;
11050
- query: string;
11051
11082
  spec: {
11052
11083
  [key: string]: unknown;
11053
11084
  };
@@ -14885,12 +14916,11 @@ export type ContentPacksGetContentTemplateResponses = {
14885
14916
  x: number;
14886
14917
  y: number;
14887
14918
  };
14888
- queries?: Array<{
14919
+ queries: Array<{
14889
14920
  id: string;
14890
14921
  name: string;
14891
14922
  query: string;
14892
14923
  }>;
14893
- query: string;
14894
14924
  spec: {
14895
14925
  [key: string]: unknown;
14896
14926
  };
@@ -16956,12 +16986,11 @@ export type DashboardsListResponses = {
16956
16986
  x: number;
16957
16987
  y: number;
16958
16988
  };
16959
- queries?: Array<{
16989
+ queries: Array<{
16960
16990
  id: string;
16961
16991
  name: string;
16962
16992
  query: string;
16963
16993
  }>;
16964
- query: string;
16965
16994
  spec: {
16966
16995
  [key: string]: unknown;
16967
16996
  };
@@ -17070,12 +17099,11 @@ export type DashboardsCreateData = {
17070
17099
  x: number;
17071
17100
  y: number;
17072
17101
  };
17073
- queries?: Array<{
17102
+ queries: Array<{
17074
17103
  id: string;
17075
17104
  name: string;
17076
17105
  query: string;
17077
17106
  }>;
17078
- query: string;
17079
17107
  spec: {
17080
17108
  [key: string]: unknown;
17081
17109
  };
@@ -17234,12 +17262,11 @@ export type DashboardsCreateResponses = {
17234
17262
  x: number;
17235
17263
  y: number;
17236
17264
  };
17237
- queries?: Array<{
17265
+ queries: Array<{
17238
17266
  id: string;
17239
17267
  name: string;
17240
17268
  query: string;
17241
17269
  }>;
17242
- query: string;
17243
17270
  spec: {
17244
17271
  [key: string]: unknown;
17245
17272
  };
@@ -17511,12 +17538,11 @@ export type DashboardsGetByIdResponses = {
17511
17538
  x: number;
17512
17539
  y: number;
17513
17540
  };
17514
- queries?: Array<{
17541
+ queries: Array<{
17515
17542
  id: string;
17516
17543
  name: string;
17517
17544
  query: string;
17518
17545
  }>;
17519
- query: string;
17520
17546
  spec: {
17521
17547
  [key: string]: unknown;
17522
17548
  };
@@ -17616,12 +17642,11 @@ export type DashboardsUpdateData = {
17616
17642
  x: number;
17617
17643
  y: number;
17618
17644
  };
17619
- queries?: Array<{
17645
+ queries: Array<{
17620
17646
  id: string;
17621
17647
  name: string;
17622
17648
  query: string;
17623
17649
  }>;
17624
- query: string;
17625
17650
  spec: {
17626
17651
  [key: string]: unknown;
17627
17652
  };
@@ -17767,12 +17792,11 @@ export type DashboardsUpdateResponses = {
17767
17792
  x: number;
17768
17793
  y: number;
17769
17794
  };
17770
- queries?: Array<{
17795
+ queries: Array<{
17771
17796
  id: string;
17772
17797
  name: string;
17773
17798
  query: string;
17774
17799
  }>;
17775
- query: string;
17776
17800
  spec: {
17777
17801
  [key: string]: unknown;
17778
17802
  };
@@ -18713,7 +18737,7 @@ export type DetectionCreateData = {
18713
18737
  */
18714
18738
  createCase?: boolean;
18715
18739
  /**
18716
- * Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.
18740
+ * Whether to deploy the detection.
18717
18741
  */
18718
18742
  deploy: boolean;
18719
18743
  /**
@@ -18989,7 +19013,7 @@ export type DetectionUpdateData = {
18989
19013
  */
18990
19014
  createCase?: boolean;
18991
19015
  /**
18992
- * Whether to deploy the detection (required). It should only be set to true if the user explicitly asks it to be deployed.
19016
+ * Whether to deploy the detection.
18993
19017
  */
18994
19018
  deploy?: boolean;
18995
19019
  /**
@@ -22300,6 +22324,10 @@ export type LookupsListResponses = {
22300
22324
  archived: boolean;
22301
22325
  changesetId: string | null;
22302
22326
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
22327
+ /**
22328
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
22329
+ */
22330
+ connectorId?: string | null;
22303
22331
  createdAt: string;
22304
22332
  createdByUserId: string | null;
22305
22333
  deleted?: boolean;
@@ -22381,6 +22409,10 @@ export type LookupsCreateData = {
22381
22409
  body: {
22382
22410
  archived?: boolean;
22383
22411
  changesetId?: string;
22412
+ /**
22413
+ * State connector that fills this lookup. The lookup is deployed and backed by a table that reads the connector. Set at create and cannot change.
22414
+ */
22415
+ connectorId?: string;
22384
22416
  /**
22385
22417
  * Whether the lookup is deployed. A deployed lookup has a backing dataset that queries can join against.
22386
22418
  */
@@ -22389,7 +22421,10 @@ export type LookupsCreateData = {
22389
22421
  keyColumns?: Array<string>;
22390
22422
  name: string;
22391
22423
  originKey?: string;
22392
- query: string;
22424
+ /**
22425
+ * The Hamelin query. Optional when connectorId is set: the default query is FROM source | SET source_id = state.id. A custom query must start with FROM source and must output a string column source_id.
22426
+ */
22427
+ query?: string;
22393
22428
  sourceFormat?: 'parsed_lines' | 'csv';
22394
22429
  spaceId: string;
22395
22430
  };
@@ -22442,6 +22477,10 @@ export type LookupsCreateResponses = {
22442
22477
  archived: boolean;
22443
22478
  changesetId: string | null;
22444
22479
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
22480
+ /**
22481
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
22482
+ */
22483
+ connectorId?: string | null;
22445
22484
  createdAt: string;
22446
22485
  createdByUserId: string | null;
22447
22486
  deleted?: boolean;
@@ -22593,6 +22632,10 @@ export type LookupsGetByIdResponses = {
22593
22632
  archived: boolean;
22594
22633
  changesetId: string | null;
22595
22634
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
22635
+ /**
22636
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
22637
+ */
22638
+ connectorId?: string | null;
22596
22639
  createdAt: string;
22597
22640
  createdByUserId: string | null;
22598
22641
  deleted?: boolean;
@@ -22717,6 +22760,10 @@ export type LookupsUpdateResponses = {
22717
22760
  archived: boolean;
22718
22761
  changesetId: string | null;
22719
22762
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
22763
+ /**
22764
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
22765
+ */
22766
+ connectorId?: string | null;
22720
22767
  createdAt: string;
22721
22768
  createdByUserId: string | null;
22722
22769
  deleted?: boolean;