@perpetualsystems/typescript-sdk 0.4.1 → 0.4.3

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.
@@ -1,8 +1,8 @@
1
1
  export declare const specSource: {
2
2
  readonly repository: "perpetualsystems/simba";
3
3
  readonly path: "ipc/management-plane/openapi-0.0.1-alpha1.json";
4
- readonly sha: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc";
5
- readonly sha256: "84afb34d2375943bcc6515cd0f3fe6dd03c48bc8f00a917b6f7757df808d9e26";
6
- readonly fileSchemasSha: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc";
4
+ readonly sha: "81dd672f7a1f909047f49443b77221b86fe726b7";
5
+ readonly sha256: "7c179925cefbeee83fe759b7ca75154a3d1cb21372181f3d888d1abcdcb690fd";
6
+ readonly fileSchemasSha: "81dd672f7a1f909047f49443b77221b86fe726b7";
7
7
  };
8
8
  //# sourceMappingURL=spec-source.gen.d.ts.map
@@ -2,8 +2,8 @@
2
2
  export const specSource = {
3
3
  repository: "perpetualsystems/simba",
4
4
  path: "ipc/management-plane/openapi-0.0.1-alpha1.json",
5
- sha: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc",
6
- sha256: "84afb34d2375943bcc6515cd0f3fe6dd03c48bc8f00a917b6f7757df808d9e26",
7
- fileSchemasSha: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc",
5
+ sha: "81dd672f7a1f909047f49443b77221b86fe726b7",
6
+ sha256: "7c179925cefbeee83fe759b7ca75154a3d1cb21372181f3d888d1abcdcb690fd",
7
+ fileSchemasSha: "81dd672f7a1f909047f49443b77221b86fe726b7",
8
8
  };
9
9
  //# sourceMappingURL=spec-source.gen.js.map
@@ -5096,12 +5096,11 @@ export type ChangesetsGetResponses = {
5096
5096
  x: number;
5097
5097
  y: number;
5098
5098
  };
5099
- queries?: Array<{
5099
+ queries: Array<{
5100
5100
  id: string;
5101
5101
  name: string;
5102
5102
  query: string;
5103
5103
  }>;
5104
- query?: string;
5105
5104
  spec: {
5106
5105
  [key: string]: unknown;
5107
5106
  };
@@ -5284,6 +5283,10 @@ export type ChangesetsGetResponses = {
5284
5283
  baseVersion: number | null;
5285
5284
  changesetId: string | null;
5286
5285
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
5286
+ /**
5287
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
5288
+ */
5289
+ connectorId?: string | null;
5287
5290
  contentPackId?: string;
5288
5291
  createdAt: string;
5289
5292
  createdByUserId: string | null;
@@ -7791,6 +7794,7 @@ export type ConnectorsListBuiltinKindsResponses = {
7791
7794
  label: string;
7792
7795
  required: boolean;
7793
7796
  }>;
7797
+ datasetKind?: 'event' | 'state';
7794
7798
  description?: string;
7795
7799
  displayName: string;
7796
7800
  iconUrl?: string;
@@ -8497,8 +8501,9 @@ export type ContentListResponses = {
8497
8501
  detectionMaturity?: 'EXPERIMENTAL' | 'TEST' | 'STABLE' | 'DEPRECATED';
8498
8502
  folderPath: string;
8499
8503
  id: string;
8500
- lookupType?: 'Static' | 'Computed';
8504
+ lookupType?: 'Static' | 'Computed' | 'Connector';
8501
8505
  name: string;
8506
+ packLinked?: boolean;
8502
8507
  parentFolderId?: string | null;
8503
8508
  readOnly?: boolean;
8504
8509
  spaceId: string;
@@ -8575,6 +8580,7 @@ export type ContentPackInstallationsListResponses = {
8575
8580
  items: Array<{
8576
8581
  automaticUpdateFailed: boolean;
8577
8582
  automaticUpdatePending: boolean;
8583
+ blockedOnPackReleaseVersion?: number | null;
8578
8584
  changesetId: string | null;
8579
8585
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
8580
8586
  contentPackId: string;
@@ -8768,6 +8774,7 @@ export type ContentPackInstallationsInstallResponses = {
8768
8774
  installation: {
8769
8775
  automaticUpdateFailed: boolean;
8770
8776
  automaticUpdatePending: boolean;
8777
+ blockedOnPackReleaseVersion?: number | null;
8771
8778
  changesetId: string | null;
8772
8779
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
8773
8780
  contentPackId: string;
@@ -8856,6 +8863,7 @@ export type ContentPackInstallationsBatchUpdateResponses = {
8856
8863
  installations: Array<{
8857
8864
  automaticUpdateFailed: boolean;
8858
8865
  automaticUpdatePending: boolean;
8866
+ blockedOnPackReleaseVersion?: number | null;
8859
8867
  changesetId: string | null;
8860
8868
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
8861
8869
  contentPackId: string;
@@ -8965,6 +8973,7 @@ export type ContentPackInstallationsLinkResponses = {
8965
8973
  installation: {
8966
8974
  automaticUpdateFailed: boolean;
8967
8975
  automaticUpdatePending: boolean;
8976
+ blockedOnPackReleaseVersion?: number | null;
8968
8977
  changesetId: string | null;
8969
8978
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
8970
8979
  contentPackId: string;
@@ -8999,6 +9008,56 @@ export type ContentPackInstallationsLinkResponses = {
8999
9008
  };
9000
9009
  };
9001
9010
  export type ContentPackInstallationsLinkResponse = ContentPackInstallationsLinkResponses[keyof ContentPackInstallationsLinkResponses];
9011
+ export type ContentPackInstallationsSettlePackUpdateData = {
9012
+ body: {
9013
+ action: 'keep-local' | 'take-pack' | 'delete' | 'detach';
9014
+ changesetId: string;
9015
+ resolvedFields?: {
9016
+ [key: string]: unknown;
9017
+ };
9018
+ resourceId: string;
9019
+ } | {
9020
+ action: 'resolve-fields';
9021
+ changesetId: string;
9022
+ resolvedFields: {
9023
+ [key: string]: unknown;
9024
+ };
9025
+ resourceId: string;
9026
+ };
9027
+ path: {
9028
+ orgId: string;
9029
+ };
9030
+ query?: never;
9031
+ url: '/org/{orgId}/content-pack-installations/settle-pack-update';
9032
+ };
9033
+ export type ContentPackInstallationsSettlePackUpdateErrors = {
9034
+ /**
9035
+ * 400
9036
+ */
9037
+ 400: BadRequestError;
9038
+ /**
9039
+ * 401
9040
+ */
9041
+ 401: UnauthorizedError;
9042
+ /**
9043
+ * 403
9044
+ */
9045
+ 403: ForbiddenError;
9046
+ /**
9047
+ * 404
9048
+ */
9049
+ 404: NotFoundError;
9050
+ };
9051
+ export type ContentPackInstallationsSettlePackUpdateError = ContentPackInstallationsSettlePackUpdateErrors[keyof ContentPackInstallationsSettlePackUpdateErrors];
9052
+ export type ContentPackInstallationsSettlePackUpdateResponses = {
9053
+ /**
9054
+ * OK
9055
+ */
9056
+ 200: {
9057
+ ok: true;
9058
+ };
9059
+ };
9060
+ export type ContentPackInstallationsSettlePackUpdateResponse = ContentPackInstallationsSettlePackUpdateResponses[keyof ContentPackInstallationsSettlePackUpdateResponses];
9002
9061
  export type ContentPackInstallationsGetByIdData = {
9003
9062
  body?: never;
9004
9063
  path: {
@@ -9035,6 +9094,7 @@ export type ContentPackInstallationsGetByIdResponses = {
9035
9094
  200: {
9036
9095
  automaticUpdateFailed: boolean;
9037
9096
  automaticUpdatePending: boolean;
9097
+ blockedOnPackReleaseVersion?: number | null;
9038
9098
  changesetId: string | null;
9039
9099
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9040
9100
  contentPackId: string;
@@ -9103,6 +9163,7 @@ export type ContentPackInstallationsUpdateInstallDeployedResponses = {
9103
9163
  200: {
9104
9164
  automaticUpdateFailed: boolean;
9105
9165
  automaticUpdatePending: boolean;
9166
+ blockedOnPackReleaseVersion?: number | null;
9106
9167
  changesetId: string | null;
9107
9168
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9108
9169
  contentPackId: string;
@@ -9175,6 +9236,7 @@ export type ContentPackInstallationsUpdateLinkModeResponses = {
9175
9236
  200: {
9176
9237
  automaticUpdateFailed: boolean;
9177
9238
  automaticUpdatePending: boolean;
9239
+ blockedOnPackReleaseVersion?: number | null;
9178
9240
  changesetId: string | null;
9179
9241
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9180
9242
  contentPackId: string;
@@ -9383,6 +9445,7 @@ export type ContentPackInstallationsUpdateResponses = {
9383
9445
  installation: {
9384
9446
  automaticUpdateFailed: boolean;
9385
9447
  automaticUpdatePending: boolean;
9448
+ blockedOnPackReleaseVersion?: number | null;
9386
9449
  changesetId: string | null;
9387
9450
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
9388
9451
  contentPackId: string;
@@ -9833,8 +9896,9 @@ export type ContentPacksListContentResponses = {
9833
9896
  detectionMaturity?: 'EXPERIMENTAL' | 'TEST' | 'STABLE' | 'DEPRECATED';
9834
9897
  folderPath: string;
9835
9898
  id: string;
9836
- lookupType?: 'Static' | 'Computed';
9899
+ lookupType?: 'Static' | 'Computed' | 'Connector';
9837
9900
  name: string;
9901
+ packLinked?: boolean;
9838
9902
  parentFolderId?: string | null;
9839
9903
  readOnly?: boolean;
9840
9904
  type: 'Folder' | 'Detection' | 'Dashboard' | 'Integration' | 'Lookup' | 'WebhookConfig' | 'HttpToolConfig' | 'McpConfig' | 'Skill';
@@ -9859,12 +9923,11 @@ export type ContentPacksDashboardsCreateData = {
9859
9923
  x: number;
9860
9924
  y: number;
9861
9925
  };
9862
- queries?: Array<{
9926
+ queries: Array<{
9863
9927
  id: string;
9864
9928
  name: string;
9865
9929
  query: string;
9866
9930
  }>;
9867
- query?: string;
9868
9931
  spec: {
9869
9932
  [key: string]: unknown;
9870
9933
  };
@@ -10008,12 +10071,11 @@ export type ContentPacksDashboardsCreateResponses = {
10008
10071
  x: number;
10009
10072
  y: number;
10010
10073
  };
10011
- queries?: Array<{
10074
+ queries: Array<{
10012
10075
  id: string;
10013
10076
  name: string;
10014
10077
  query: string;
10015
10078
  }>;
10016
- query?: string;
10017
10079
  spec: {
10018
10080
  [key: string]: unknown;
10019
10081
  };
@@ -10186,12 +10248,11 @@ export type ContentPacksDashboardsGetByIdResponses = {
10186
10248
  x: number;
10187
10249
  y: number;
10188
10250
  };
10189
- queries?: Array<{
10251
+ queries: Array<{
10190
10252
  id: string;
10191
10253
  name: string;
10192
10254
  query: string;
10193
10255
  }>;
10194
- query?: string;
10195
10256
  spec: {
10196
10257
  [key: string]: unknown;
10197
10258
  };
@@ -10289,12 +10350,11 @@ export type ContentPacksDashboardsUpdateData = {
10289
10350
  x: number;
10290
10351
  y: number;
10291
10352
  };
10292
- queries?: Array<{
10353
+ queries: Array<{
10293
10354
  id: string;
10294
10355
  name: string;
10295
10356
  query: string;
10296
10357
  }>;
10297
- query?: string;
10298
10358
  spec: {
10299
10359
  [key: string]: unknown;
10300
10360
  };
@@ -10422,12 +10482,11 @@ export type ContentPacksDashboardsUpdateResponses = {
10422
10482
  x: number;
10423
10483
  y: number;
10424
10484
  };
10425
- queries?: Array<{
10485
+ queries: Array<{
10426
10486
  id: string;
10427
10487
  name: string;
10428
10488
  query: string;
10429
10489
  }>;
10430
- query?: string;
10431
10490
  spec: {
10432
10491
  [key: string]: unknown;
10433
10492
  };
@@ -14020,12 +14079,11 @@ export type ContentPacksGetContentTemplateResponses = {
14020
14079
  x: number;
14021
14080
  y: number;
14022
14081
  };
14023
- queries?: Array<{
14082
+ queries: Array<{
14024
14083
  id: string;
14025
14084
  name: string;
14026
14085
  query: string;
14027
14086
  }>;
14028
- query?: string;
14029
14087
  spec: {
14030
14088
  [key: string]: unknown;
14031
14089
  };
@@ -14901,6 +14959,53 @@ export type ContentSetDeployPreviewResponses = {
14901
14959
  };
14902
14960
  };
14903
14961
  export type ContentSetDeployPreviewResponse = ContentSetDeployPreviewResponses[keyof ContentSetDeployPreviewResponses];
14962
+ export type ContentEditedPackFieldsData = {
14963
+ body?: never;
14964
+ path: {
14965
+ orgId: string;
14966
+ type: 'Folder' | 'Detection' | 'Dashboard' | 'Integration' | 'Lookup' | 'WebhookConfig' | 'HttpToolConfig' | 'McpConfig' | 'Skill' | 'Parser' | 'Mapper';
14967
+ id: string;
14968
+ };
14969
+ query?: {
14970
+ /**
14971
+ * Optional changeset ID to view proposed changes
14972
+ */
14973
+ changesetId?: string;
14974
+ };
14975
+ url: '/org/{orgId}/content/{type}/{id}/edited-pack-fields';
14976
+ };
14977
+ export type ContentEditedPackFieldsErrors = {
14978
+ /**
14979
+ * 401
14980
+ */
14981
+ 401: UnauthorizedError;
14982
+ /**
14983
+ * 403
14984
+ */
14985
+ 403: ForbiddenError;
14986
+ /**
14987
+ * 404
14988
+ */
14989
+ 404: NotFoundError;
14990
+ };
14991
+ export type ContentEditedPackFieldsError = ContentEditedPackFieldsErrors[keyof ContentEditedPackFieldsErrors];
14992
+ export type ContentEditedPackFieldsResponses = {
14993
+ /**
14994
+ * OK
14995
+ */
14996
+ 200: {
14997
+ fields: Array<{
14998
+ basisValue?: null | boolean | {
14999
+ [key: string]: unknown;
15000
+ } | Array<unknown> | number | string | null;
15001
+ fieldName: string;
15002
+ installedValue?: null | boolean | {
15003
+ [key: string]: unknown;
15004
+ } | Array<unknown> | number | string | null;
15005
+ }>;
15006
+ };
15007
+ };
15008
+ export type ContentEditedPackFieldsResponse = ContentEditedPackFieldsResponses[keyof ContentEditedPackFieldsResponses];
14904
15009
  export type CredentialsListData = {
14905
15010
  body?: never;
14906
15011
  path: {
@@ -15971,12 +16076,11 @@ export type DashboardsListResponses = {
15971
16076
  x: number;
15972
16077
  y: number;
15973
16078
  };
15974
- queries?: Array<{
16079
+ queries: Array<{
15975
16080
  id: string;
15976
16081
  name: string;
15977
16082
  query: string;
15978
16083
  }>;
15979
- query?: string;
15980
16084
  spec: {
15981
16085
  [key: string]: unknown;
15982
16086
  };
@@ -16083,12 +16187,11 @@ export type DashboardsCreateData = {
16083
16187
  x: number;
16084
16188
  y: number;
16085
16189
  };
16086
- queries?: Array<{
16190
+ queries: Array<{
16087
16191
  id: string;
16088
16192
  name: string;
16089
16193
  query: string;
16090
16194
  }>;
16091
- query?: string;
16092
16195
  spec: {
16093
16196
  [key: string]: unknown;
16094
16197
  };
@@ -16244,12 +16347,11 @@ export type DashboardsCreateResponses = {
16244
16347
  x: number;
16245
16348
  y: number;
16246
16349
  };
16247
- queries?: Array<{
16350
+ queries: Array<{
16248
16351
  id: string;
16249
16352
  name: string;
16250
16353
  query: string;
16251
16354
  }>;
16252
- query?: string;
16253
16355
  spec: {
16254
16356
  [key: string]: unknown;
16255
16357
  };
@@ -16506,12 +16608,11 @@ export type DashboardsGetByIdResponses = {
16506
16608
  x: number;
16507
16609
  y: number;
16508
16610
  };
16509
- queries?: Array<{
16611
+ queries: Array<{
16510
16612
  id: string;
16511
16613
  name: string;
16512
16614
  query: string;
16513
16615
  }>;
16514
- query?: string;
16515
16616
  spec: {
16516
16617
  [key: string]: unknown;
16517
16618
  };
@@ -16609,12 +16710,11 @@ export type DashboardsUpdateData = {
16609
16710
  x: number;
16610
16711
  y: number;
16611
16712
  };
16612
- queries?: Array<{
16713
+ queries: Array<{
16613
16714
  id: string;
16614
16715
  name: string;
16615
16716
  query: string;
16616
16717
  }>;
16617
- query?: string;
16618
16718
  spec: {
16619
16719
  [key: string]: unknown;
16620
16720
  };
@@ -16757,12 +16857,11 @@ export type DashboardsUpdateResponses = {
16757
16857
  x: number;
16758
16858
  y: number;
16759
16859
  };
16760
- queries?: Array<{
16860
+ queries: Array<{
16761
16861
  id: string;
16762
16862
  name: string;
16763
16863
  query: string;
16764
16864
  }>;
16765
- query?: string;
16766
16865
  spec: {
16767
16866
  [key: string]: unknown;
16768
16867
  };
@@ -20995,6 +21094,10 @@ export type LookupsListResponses = {
20995
21094
  archived: boolean;
20996
21095
  changesetId: string | null;
20997
21096
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
21097
+ /**
21098
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
21099
+ */
21100
+ connectorId?: string | null;
20998
21101
  createdAt: string;
20999
21102
  createdByUserId: string | null;
21000
21103
  deleted?: boolean;
@@ -21074,6 +21177,10 @@ export type LookupsCreateData = {
21074
21177
  body: {
21075
21178
  archived?: boolean;
21076
21179
  changesetId?: string;
21180
+ /**
21181
+ * 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.
21182
+ */
21183
+ connectorId?: string;
21077
21184
  /**
21078
21185
  * Whether the lookup is deployed. A deployed lookup has a backing dataset that queries can join against.
21079
21186
  */
@@ -21082,7 +21189,10 @@ export type LookupsCreateData = {
21082
21189
  keyColumns?: Array<string>;
21083
21190
  name: string;
21084
21191
  originKey?: string;
21085
- query: string;
21192
+ /**
21193
+ * 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.
21194
+ */
21195
+ query?: string;
21086
21196
  sourceFormat?: 'parsed_lines' | 'csv';
21087
21197
  spaceId: string;
21088
21198
  };
@@ -21132,6 +21242,10 @@ export type LookupsCreateResponses = {
21132
21242
  archived: boolean;
21133
21243
  changesetId: string | null;
21134
21244
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
21245
+ /**
21246
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
21247
+ */
21248
+ connectorId?: string | null;
21135
21249
  createdAt: string;
21136
21250
  createdByUserId: string | null;
21137
21251
  deleted?: boolean;
@@ -21273,6 +21387,10 @@ export type LookupsGetByIdResponses = {
21273
21387
  archived: boolean;
21274
21388
  changesetId: string | null;
21275
21389
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
21390
+ /**
21391
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
21392
+ */
21393
+ connectorId?: string | null;
21276
21394
  createdAt: string;
21277
21395
  createdByUserId: string | null;
21278
21396
  deleted?: boolean;
@@ -21392,6 +21510,10 @@ export type LookupsUpdateResponses = {
21392
21510
  archived: boolean;
21393
21511
  changesetId: string | null;
21394
21512
  changesetStatus: 'Unchanged' | 'Added' | 'Modified' | 'Deleted' | null;
21513
+ /**
21514
+ * The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.
21515
+ */
21516
+ connectorId?: string | null;
21395
21517
  createdAt: string;
21396
21518
  createdByUserId: string | null;
21397
21519
  deleted?: boolean;