@perpetualsystems/typescript-sdk 0.4.1 → 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.
@@ -1369,9 +1369,7 @@
1369
1369
  "event",
1370
1370
  "state"
1371
1371
  ],
1372
- "type": "string",
1373
- "x-filter": false,
1374
- "x-sort": false
1372
+ "type": "string"
1375
1373
  },
1376
1374
  "deleted": {
1377
1375
  "default": false,
@@ -1549,6 +1547,7 @@
1549
1547
  "bytesEmitted": {
1550
1548
  "anyOf": [
1551
1549
  {
1550
+ "format": "int64",
1552
1551
  "type": "integer"
1553
1552
  },
1554
1553
  {
@@ -1721,6 +1720,7 @@
1721
1720
  "rowsEmitted": {
1722
1721
  "anyOf": [
1723
1722
  {
1723
+ "format": "int64",
1724
1724
  "type": "integer"
1725
1725
  },
1726
1726
  {
@@ -1770,6 +1770,7 @@
1770
1770
  "bytesEmitted": {
1771
1771
  "anyOf": [
1772
1772
  {
1773
+ "format": "int64",
1773
1774
  "type": "integer"
1774
1775
  },
1775
1776
  {
@@ -1942,6 +1943,7 @@
1942
1943
  "rowsEmitted": {
1943
1944
  "anyOf": [
1944
1945
  {
1946
+ "format": "int64",
1945
1947
  "type": "integer"
1946
1948
  },
1947
1949
  {
@@ -1992,6 +1994,7 @@
1992
1994
  "bytesEmitted": {
1993
1995
  "anyOf": [
1994
1996
  {
1997
+ "format": "int64",
1995
1998
  "type": "integer"
1996
1999
  },
1997
2000
  {
@@ -2164,6 +2167,7 @@
2164
2167
  "rowsEmitted": {
2165
2168
  "anyOf": [
2166
2169
  {
2170
+ "format": "int64",
2167
2171
  "type": "integer"
2168
2172
  },
2169
2173
  {
@@ -2232,6 +2236,7 @@
2232
2236
  "bytesEmitted": {
2233
2237
  "anyOf": [
2234
2238
  {
2239
+ "format": "int64",
2235
2240
  "type": "integer"
2236
2241
  },
2237
2242
  {
@@ -2404,6 +2409,7 @@
2404
2409
  "rowsEmitted": {
2405
2410
  "anyOf": [
2406
2411
  {
2412
+ "format": "int64",
2407
2413
  "type": "integer"
2408
2414
  },
2409
2415
  {
@@ -2477,6 +2483,7 @@
2477
2483
  "bytesEmitted": {
2478
2484
  "anyOf": [
2479
2485
  {
2486
+ "format": "int64",
2480
2487
  "type": "integer"
2481
2488
  },
2482
2489
  {
@@ -2649,6 +2656,7 @@
2649
2656
  "rowsEmitted": {
2650
2657
  "anyOf": [
2651
2658
  {
2659
+ "format": "int64",
2652
2660
  "type": "integer"
2653
2661
  },
2654
2662
  {
@@ -22003,11 +22011,9 @@
22003
22011
  ],
22004
22012
  "type": "object"
22005
22013
  },
22014
+ "minItems": 1,
22006
22015
  "type": "array"
22007
22016
  },
22008
- "query": {
22009
- "type": "string"
22010
- },
22011
22017
  "spec": {
22012
22018
  "propertyNames": {
22013
22019
  "type": "string"
@@ -22055,6 +22061,7 @@
22055
22061
  "id",
22056
22062
  "layout",
22057
22063
  "type",
22064
+ "queries",
22058
22065
  "spec"
22059
22066
  ],
22060
22067
  "type": "object"
@@ -23243,6 +23250,20 @@
23243
23250
  "x-filter": false,
23244
23251
  "x-sort": false
23245
23252
  },
23253
+ "connectorId": {
23254
+ "anyOf": [
23255
+ {
23256
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
23257
+ "type": "string"
23258
+ },
23259
+ {
23260
+ "type": "null"
23261
+ }
23262
+ ],
23263
+ "description": "The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.",
23264
+ "x-filter": false,
23265
+ "x-sort": false
23266
+ },
23246
23267
  "contentPackId": {
23247
23268
  "pattern": "^PAK_[A-Z0-9]{1,7}$",
23248
23269
  "type": "string"
@@ -25147,9 +25168,7 @@
25147
25168
  "event",
25148
25169
  "state"
25149
25170
  ],
25150
- "type": "string",
25151
- "x-filter": false,
25152
- "x-sort": false
25171
+ "type": "string"
25153
25172
  },
25154
25173
  "deleted": {
25155
25174
  "default": false,
@@ -34828,7 +34847,6 @@
34828
34847
  ]
34829
34848
  },
34830
34849
  "datasetKind": {
34831
- "default": "event",
34832
34850
  "enum": [
34833
34851
  "event",
34834
34852
  "state"
@@ -34928,9 +34946,7 @@
34928
34946
  "event",
34929
34947
  "state"
34930
34948
  ],
34931
- "type": "string",
34932
- "x-filter": false,
34933
- "x-sort": false
34949
+ "type": "string"
34934
34950
  },
34935
34951
  "deleted": {
34936
34952
  "default": false,
@@ -35239,6 +35255,14 @@
35239
35255
  },
35240
35256
  "type": "array"
35241
35257
  },
35258
+ "datasetKind": {
35259
+ "default": "event",
35260
+ "enum": [
35261
+ "event",
35262
+ "state"
35263
+ ],
35264
+ "type": "string"
35265
+ },
35242
35266
  "description": {
35243
35267
  "type": "string"
35244
35268
  },
@@ -36510,6 +36534,7 @@
36510
36534
  "bytesEmitted": {
36511
36535
  "anyOf": [
36512
36536
  {
36537
+ "format": "int64",
36513
36538
  "type": "integer"
36514
36539
  },
36515
36540
  {
@@ -36682,6 +36707,7 @@
36682
36707
  "rowsEmitted": {
36683
36708
  "anyOf": [
36684
36709
  {
36710
+ "format": "int64",
36685
36711
  "type": "integer"
36686
36712
  },
36687
36713
  {
@@ -36807,6 +36833,7 @@
36807
36833
  "bytesEmitted": {
36808
36834
  "anyOf": [
36809
36835
  {
36836
+ "format": "int64",
36810
36837
  "type": "integer"
36811
36838
  },
36812
36839
  {
@@ -36979,6 +37006,7 @@
36979
37006
  "rowsEmitted": {
36980
37007
  "anyOf": [
36981
37008
  {
37009
+ "format": "int64",
36982
37010
  "type": "integer"
36983
37011
  },
36984
37012
  {
@@ -37130,6 +37158,7 @@
37130
37158
  "bytesEmitted": {
37131
37159
  "anyOf": [
37132
37160
  {
37161
+ "format": "int64",
37133
37162
  "type": "integer"
37134
37163
  },
37135
37164
  {
@@ -37302,6 +37331,7 @@
37302
37331
  "rowsEmitted": {
37303
37332
  "anyOf": [
37304
37333
  {
37334
+ "format": "int64",
37305
37335
  "type": "integer"
37306
37336
  },
37307
37337
  {
@@ -37793,7 +37823,8 @@
37793
37823
  "lookupType": {
37794
37824
  "enum": [
37795
37825
  "Static",
37796
- "Computed"
37826
+ "Computed",
37827
+ "Connector"
37797
37828
  ],
37798
37829
  "type": "string",
37799
37830
  "x-sort": false
@@ -43922,7 +43953,8 @@
43922
43953
  "lookupType": {
43923
43954
  "enum": [
43924
43955
  "Static",
43925
- "Computed"
43956
+ "Computed",
43957
+ "Connector"
43926
43958
  ],
43927
43959
  "type": "string",
43928
43960
  "x-filter": false,
@@ -44136,11 +44168,9 @@
44136
44168
  ],
44137
44169
  "type": "object"
44138
44170
  },
44171
+ "minItems": 1,
44139
44172
  "type": "array"
44140
44173
  },
44141
- "query": {
44142
- "type": "string"
44143
- },
44144
44174
  "spec": {
44145
44175
  "propertyNames": {
44146
44176
  "type": "string"
@@ -44188,6 +44218,7 @@
44188
44218
  "id",
44189
44219
  "layout",
44190
44220
  "type",
44221
+ "queries",
44191
44222
  "spec"
44192
44223
  ],
44193
44224
  "type": "object"
@@ -44721,11 +44752,9 @@
44721
44752
  ],
44722
44753
  "type": "object"
44723
44754
  },
44755
+ "minItems": 1,
44724
44756
  "type": "array"
44725
44757
  },
44726
- "query": {
44727
- "type": "string"
44728
- },
44729
44758
  "spec": {
44730
44759
  "propertyNames": {
44731
44760
  "type": "string"
@@ -44773,6 +44802,7 @@
44773
44802
  "id",
44774
44803
  "layout",
44775
44804
  "type",
44805
+ "queries",
44776
44806
  "spec"
44777
44807
  ],
44778
44808
  "type": "object"
@@ -45581,11 +45611,9 @@
45581
45611
  ],
45582
45612
  "type": "object"
45583
45613
  },
45614
+ "minItems": 1,
45584
45615
  "type": "array"
45585
45616
  },
45586
- "query": {
45587
- "type": "string"
45588
- },
45589
45617
  "spec": {
45590
45618
  "propertyNames": {
45591
45619
  "type": "string"
@@ -45633,6 +45661,7 @@
45633
45661
  "id",
45634
45662
  "layout",
45635
45663
  "type",
45664
+ "queries",
45636
45665
  "spec"
45637
45666
  ],
45638
45667
  "type": "object"
@@ -46204,11 +46233,9 @@
46204
46233
  ],
46205
46234
  "type": "object"
46206
46235
  },
46236
+ "minItems": 1,
46207
46237
  "type": "array"
46208
46238
  },
46209
- "query": {
46210
- "type": "string"
46211
- },
46212
46239
  "spec": {
46213
46240
  "propertyNames": {
46214
46241
  "type": "string"
@@ -46256,6 +46283,7 @@
46256
46283
  "id",
46257
46284
  "layout",
46258
46285
  "type",
46286
+ "queries",
46259
46287
  "spec"
46260
46288
  ],
46261
46289
  "type": "object"
@@ -46783,11 +46811,9 @@
46783
46811
  ],
46784
46812
  "type": "object"
46785
46813
  },
46814
+ "minItems": 1,
46786
46815
  "type": "array"
46787
46816
  },
46788
- "query": {
46789
- "type": "string"
46790
- },
46791
46817
  "spec": {
46792
46818
  "propertyNames": {
46793
46819
  "type": "string"
@@ -46835,6 +46861,7 @@
46835
46861
  "id",
46836
46862
  "layout",
46837
46863
  "type",
46864
+ "queries",
46838
46865
  "spec"
46839
46866
  ],
46840
46867
  "type": "object"
@@ -55735,9 +55762,7 @@
55735
55762
  },
55736
55763
  "query": {
55737
55764
  "maxLength": 1000000,
55738
- "type": "string",
55739
- "x-filter": false,
55740
- "x-sort": false
55765
+ "type": "string"
55741
55766
  },
55742
55767
  "sourceFormat": {
55743
55768
  "default": "parsed_lines",
@@ -61405,11 +61430,9 @@
61405
61430
  ],
61406
61431
  "type": "object"
61407
61432
  },
61433
+ "minItems": 1,
61408
61434
  "type": "array"
61409
61435
  },
61410
- "query": {
61411
- "type": "string"
61412
- },
61413
61436
  "spec": {
61414
61437
  "propertyNames": {
61415
61438
  "type": "string"
@@ -61457,6 +61480,7 @@
61457
61480
  "id",
61458
61481
  "layout",
61459
61482
  "type",
61483
+ "queries",
61460
61484
  "spec"
61461
61485
  ],
61462
61486
  "type": "object"
@@ -70379,11 +70403,9 @@
70379
70403
  ],
70380
70404
  "type": "object"
70381
70405
  },
70406
+ "minItems": 1,
70382
70407
  "type": "array"
70383
70408
  },
70384
- "query": {
70385
- "type": "string"
70386
- },
70387
70409
  "spec": {
70388
70410
  "propertyNames": {
70389
70411
  "type": "string"
@@ -70431,6 +70453,7 @@
70431
70453
  "id",
70432
70454
  "layout",
70433
70455
  "type",
70456
+ "queries",
70434
70457
  "spec"
70435
70458
  ],
70436
70459
  "type": "object"
@@ -70989,11 +71012,9 @@
70989
71012
  ],
70990
71013
  "type": "object"
70991
71014
  },
71015
+ "minItems": 1,
70992
71016
  "type": "array"
70993
71017
  },
70994
- "query": {
70995
- "type": "string"
70996
- },
70997
71018
  "spec": {
70998
71019
  "propertyNames": {
70999
71020
  "type": "string"
@@ -71041,6 +71062,7 @@
71041
71062
  "id",
71042
71063
  "layout",
71043
71064
  "type",
71065
+ "queries",
71044
71066
  "spec"
71045
71067
  ],
71046
71068
  "type": "object"
@@ -71656,11 +71678,9 @@
71656
71678
  ],
71657
71679
  "type": "object"
71658
71680
  },
71681
+ "minItems": 1,
71659
71682
  "type": "array"
71660
71683
  },
71661
- "query": {
71662
- "type": "string"
71663
- },
71664
71684
  "spec": {
71665
71685
  "propertyNames": {
71666
71686
  "type": "string"
@@ -71708,6 +71728,7 @@
71708
71728
  "id",
71709
71729
  "layout",
71710
71730
  "type",
71731
+ "queries",
71711
71732
  "spec"
71712
71733
  ],
71713
71734
  "type": "object"
@@ -72744,11 +72765,9 @@
72744
72765
  ],
72745
72766
  "type": "object"
72746
72767
  },
72768
+ "minItems": 1,
72747
72769
  "type": "array"
72748
72770
  },
72749
- "query": {
72750
- "type": "string"
72751
- },
72752
72771
  "spec": {
72753
72772
  "propertyNames": {
72754
72773
  "type": "string"
@@ -72796,6 +72815,7 @@
72796
72815
  "id",
72797
72816
  "layout",
72798
72817
  "type",
72818
+ "queries",
72799
72819
  "spec"
72800
72820
  ],
72801
72821
  "type": "object"
@@ -73354,11 +73374,9 @@
73354
73374
  ],
73355
73375
  "type": "object"
73356
73376
  },
73377
+ "minItems": 1,
73357
73378
  "type": "array"
73358
73379
  },
73359
- "query": {
73360
- "type": "string"
73361
- },
73362
73380
  "spec": {
73363
73381
  "propertyNames": {
73364
73382
  "type": "string"
@@ -73406,6 +73424,7 @@
73406
73424
  "id",
73407
73425
  "layout",
73408
73426
  "type",
73427
+ "queries",
73409
73428
  "spec"
73410
73429
  ],
73411
73430
  "type": "object"
@@ -74010,11 +74029,9 @@
74010
74029
  ],
74011
74030
  "type": "object"
74012
74031
  },
74032
+ "minItems": 1,
74013
74033
  "type": "array"
74014
74034
  },
74015
- "query": {
74016
- "type": "string"
74017
- },
74018
74035
  "spec": {
74019
74036
  "propertyNames": {
74020
74037
  "type": "string"
@@ -74062,6 +74079,7 @@
74062
74079
  "id",
74063
74080
  "layout",
74064
74081
  "type",
74082
+ "queries",
74065
74083
  "spec"
74066
74084
  ],
74067
74085
  "type": "object"
@@ -89833,6 +89851,20 @@
89833
89851
  "x-filter": false,
89834
89852
  "x-sort": false
89835
89853
  },
89854
+ "connectorId": {
89855
+ "anyOf": [
89856
+ {
89857
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
89858
+ "type": "string"
89859
+ },
89860
+ {
89861
+ "type": "null"
89862
+ }
89863
+ ],
89864
+ "description": "The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.",
89865
+ "x-filter": false,
89866
+ "x-sort": false
89867
+ },
89836
89868
  "createdAt": {
89837
89869
  "format": "date-time",
89838
89870
  "type": "string",
@@ -90293,6 +90325,11 @@
90293
90325
  "pattern": "^CHG_[A-Z0-9]{1,7}$",
90294
90326
  "type": "string"
90295
90327
  },
90328
+ "connectorId": {
90329
+ "description": "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.",
90330
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
90331
+ "type": "string"
90332
+ },
90296
90333
  "deploy": {
90297
90334
  "description": "Whether the lookup is deployed. A deployed lookup has a backing dataset that queries can join against.",
90298
90335
  "type": "boolean"
@@ -90318,10 +90355,9 @@
90318
90355
  "type": "string"
90319
90356
  },
90320
90357
  "query": {
90358
+ "description": "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.",
90321
90359
  "maxLength": 1000000,
90322
- "type": "string",
90323
- "x-filter": false,
90324
- "x-sort": false
90360
+ "type": "string"
90325
90361
  },
90326
90362
  "sourceFormat": {
90327
90363
  "default": "parsed_lines",
@@ -90338,7 +90374,6 @@
90338
90374
  },
90339
90375
  "required": [
90340
90376
  "name",
90341
- "query",
90342
90377
  "deploy",
90343
90378
  "folderPath",
90344
90379
  "spaceId"
@@ -90390,6 +90425,20 @@
90390
90425
  "x-filter": false,
90391
90426
  "x-sort": false
90392
90427
  },
90428
+ "connectorId": {
90429
+ "anyOf": [
90430
+ {
90431
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
90432
+ "type": "string"
90433
+ },
90434
+ {
90435
+ "type": "null"
90436
+ }
90437
+ ],
90438
+ "description": "The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.",
90439
+ "x-filter": false,
90440
+ "x-sort": false
90441
+ },
90393
90442
  "createdAt": {
90394
90443
  "format": "date-time",
90395
90444
  "type": "string",
@@ -91023,6 +91072,20 @@
91023
91072
  "x-filter": false,
91024
91073
  "x-sort": false
91025
91074
  },
91075
+ "connectorId": {
91076
+ "anyOf": [
91077
+ {
91078
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
91079
+ "type": "string"
91080
+ },
91081
+ {
91082
+ "type": "null"
91083
+ }
91084
+ ],
91085
+ "description": "The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.",
91086
+ "x-filter": false,
91087
+ "x-sort": false
91088
+ },
91026
91089
  "createdAt": {
91027
91090
  "format": "date-time",
91028
91091
  "type": "string",
@@ -91567,6 +91630,20 @@
91567
91630
  "x-filter": false,
91568
91631
  "x-sort": false
91569
91632
  },
91633
+ "connectorId": {
91634
+ "anyOf": [
91635
+ {
91636
+ "pattern": "^CON_[A-Z0-9]{1,7}$",
91637
+ "type": "string"
91638
+ },
91639
+ {
91640
+ "type": "null"
91641
+ }
91642
+ ],
91643
+ "description": "The state connector that fills this lookup. Null for a lookup that does not use a connector. Set at create and cannot change.",
91644
+ "x-filter": false,
91645
+ "x-sort": false
91646
+ },
91570
91647
  "createdAt": {
91571
91648
  "format": "date-time",
91572
91649
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perpetualsystems/typescript-sdk",
3
- "version": "0.4.1",
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"
@@ -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: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc",
7
- sha256: "84afb34d2375943bcc6515cd0f3fe6dd03c48bc8f00a917b6f7757df808d9e26",
8
- fileSchemasSha: "b5f2ca1dbec3207b37d68ff9d21a8eff6d2889dc",
6
+ sha: "3e2e2a496feac20023098f399a007c8a160d8187",
7
+ sha256: "b52f67ac1a71f0069220e8ffd6fc4315e06052e6cd259cae90c66bb98f43fa06",
8
+ fileSchemasSha: "3e2e2a496feac20023098f399a007c8a160d8187",
9
9
  } as const;