@tier0/sdk-v2 0.5.0 → 0.6.1

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 (38) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/capabilities.d.ts +1 -2
  3. package/dist/cjs/capabilities.js +5 -6
  4. package/dist/cjs/capabilities.js.map +1 -1
  5. package/dist/cjs/client.d.ts +0 -1
  6. package/dist/cjs/openapi/api.generated.d.ts +0 -1
  7. package/dist/cjs/openapi/codecs.generated.d.ts +0 -4
  8. package/dist/cjs/openapi/codecs.generated.js +1 -1
  9. package/dist/cjs/openapi/codecs.generated.js.map +1 -1
  10. package/dist/cjs/openapi/types.generated.d.ts +0 -2
  11. package/dist/cjs/openapi/types.generated.js.map +1 -1
  12. package/dist/cjs/uns-v2/generated.d.ts +9 -61
  13. package/dist/cjs/uns-v2/generated.js +8 -8
  14. package/dist/cjs/uns-v2/generated.js.map +1 -1
  15. package/dist/esm/capabilities.d.ts +1 -2
  16. package/dist/esm/capabilities.js +5 -6
  17. package/dist/esm/capabilities.js.map +1 -1
  18. package/dist/esm/client.d.ts +0 -1
  19. package/dist/esm/openapi/api.generated.d.ts +0 -1
  20. package/dist/esm/openapi/codecs.generated.d.ts +0 -4
  21. package/dist/esm/openapi/codecs.generated.js +1 -1
  22. package/dist/esm/openapi/codecs.generated.js.map +1 -1
  23. package/dist/esm/openapi/types.generated.d.ts +0 -2
  24. package/dist/esm/openapi/types.generated.js.map +1 -1
  25. package/dist/esm/uns-v2/generated.d.ts +9 -61
  26. package/dist/esm/uns-v2/generated.js +8 -8
  27. package/dist/esm/uns-v2/generated.js.map +1 -1
  28. package/package.json +2 -2
  29. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/SKILL.md +1 -1
  30. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/create.md +7 -7
  31. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/protocols.md +4 -5
  32. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/read.md +1 -1
  33. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/SKILL.md +5 -3
  34. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/create.md +3 -4
  35. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/http-server.md +89 -0
  36. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/update.md +1 -1
  37. package/skills/tier0-sdk-v2/tier0-sdk-v2-system/SKILL.md +1 -1
  38. package/skills/tier0-sdk-v2/tier0-sdk-v2-uns/references/create.md +2 -0
@@ -348,7 +348,6 @@ export type RuntimeStreamDefinition = {
348
348
  "extensions"?: Record<string, UnsV2JSONValue>;
349
349
  "name": string;
350
350
  "script": string;
351
- "sdkVersion": "tier0-stream/v2";
352
351
  "timeoutMs"?: UnsV2Integer;
353
352
  "sourceBindings"?: (Array<({
354
353
  "sourceId": string;
@@ -497,7 +496,6 @@ export type UnsV2StreamProgramVersionsListResponse = {
497
496
  "document": ((CloudStreamDocument | ({
498
497
  "name"?: string;
499
498
  "description"?: string;
500
- "sdkVersion"?: string;
501
499
  "timeoutMs"?: UnsV2Integer;
502
500
  "scriptConfigured"?: boolean;
503
501
  })));
@@ -1223,7 +1221,6 @@ export type UnsV2SampleDeleteRangeReq = {
1223
1221
  "dryRun"?: boolean;
1224
1222
  };
1225
1223
  export type CloudSourceConfig = (({
1226
- "configVersion": 2;
1227
1224
  "endpoint": string;
1228
1225
  "options": Record<string, UnsV2JSONValue>;
1229
1226
  "auth"?: ({
@@ -1240,7 +1237,6 @@ export type CloudSourceConfig = (({
1240
1237
  "credentialRef": string;
1241
1238
  "kind": "vendorNative";
1242
1239
  });
1243
- "configVersion": 3;
1244
1240
  "endpoint": string;
1245
1241
  "options": ({
1246
1242
  "headers"?: ({} & Record<string, string>);
@@ -1255,7 +1251,6 @@ export type CloudSourceConfig = (({
1255
1251
  "credentialRef": string;
1256
1252
  "kind": "vendorNative";
1257
1253
  });
1258
- "configVersion": 3;
1259
1254
  "endpoint": string;
1260
1255
  "options": ({
1261
1256
  "headers"?: ({} & Record<string, string>);
@@ -1271,7 +1266,6 @@ export type CloudSourceConfig = (({
1271
1266
  "credentialRef": string;
1272
1267
  "kind": "vendorNative";
1273
1268
  });
1274
- "configVersion": 3;
1275
1269
  "endpoint": string;
1276
1270
  "options": ({
1277
1271
  "headers"?: ({} & Record<string, string>);
@@ -1284,7 +1278,6 @@ export type CloudSourceConfig = (({
1284
1278
  "credentialRef": string;
1285
1279
  "kind": "vendorNative" | "vendorBasic";
1286
1280
  });
1287
- "configVersion": 3;
1288
1281
  "endpoint": string;
1289
1282
  "options": ({
1290
1283
  "headers"?: ({} & Record<string, string>);
@@ -1299,7 +1292,6 @@ export type CloudSourceConfig = (({
1299
1292
  "credentialRef": string;
1300
1293
  "kind": "vendorNative";
1301
1294
  });
1302
- "configVersion": 3;
1303
1295
  "endpoint": string;
1304
1296
  "options": ({
1305
1297
  "headers"?: ({} & Record<string, string>);
@@ -1314,7 +1306,6 @@ export type CloudSourceConfig = (({
1314
1306
  "credentialRef": string;
1315
1307
  "kind": "vendorNative";
1316
1308
  });
1317
- "configVersion": 3;
1318
1309
  "endpoint": string;
1319
1310
  "options": ({
1320
1311
  "headers"?: ({} & Record<string, string>);
@@ -1329,7 +1320,6 @@ export type CloudSourceConfig = (({
1329
1320
  "credentialRef": string;
1330
1321
  "kind": "vendorNative";
1331
1322
  });
1332
- "configVersion": 3;
1333
1323
  "endpoint": string;
1334
1324
  "options": ({
1335
1325
  "headers"?: ({} & Record<string, string>);
@@ -1344,7 +1334,6 @@ export type CloudSourceConfig = (({
1344
1334
  "credentialRef": string;
1345
1335
  "kind": "vendorNative";
1346
1336
  });
1347
- "configVersion": 3;
1348
1337
  "endpoint": string;
1349
1338
  "options": ({
1350
1339
  "headers"?: ({} & Record<string, string>);
@@ -1362,7 +1351,6 @@ export type CloudSourceConfig = (({
1362
1351
  "credentialRef": string;
1363
1352
  "kind": "vendorNative";
1364
1353
  });
1365
- "configVersion": 3;
1366
1354
  "endpoint": string;
1367
1355
  "options": ({
1368
1356
  "headers"?: ({} & Record<string, string>);
@@ -1379,7 +1367,6 @@ export type CloudSourceConfig = (({
1379
1367
  "credentialRef": string;
1380
1368
  "kind": "vendorNative";
1381
1369
  });
1382
- "configVersion": 3;
1383
1370
  "endpoint": string;
1384
1371
  "options": ({
1385
1372
  "headers"?: ({} & Record<string, string>);
@@ -1396,7 +1383,6 @@ export type CloudSourceConfig = (({
1396
1383
  "credentialRef": string;
1397
1384
  "kind": "vendorNative";
1398
1385
  });
1399
- "configVersion": 3;
1400
1386
  "endpoint": string;
1401
1387
  "options": ({
1402
1388
  "headers"?: ({} & Record<string, string>);
@@ -1408,7 +1394,7 @@ export type CloudSourceConfig = (({
1408
1394
  export type CloudSourceDocument = ({
1409
1395
  "name": string;
1410
1396
  "description"?: string;
1411
- "protocol": "http-api" | "modbus" | "mqtt" | "opcua" | "sap" | "teamcenter" | "mqtt_device" | "http_push" | "sql";
1397
+ "protocol": "http-api" | "modbus" | "mqtt" | "opcua" | "sap" | "teamcenter" | "mqtt_device" | "sql";
1412
1398
  "config": CloudSourceConfig;
1413
1399
  });
1414
1400
  export type CloudControlDefinition = {
@@ -1424,7 +1410,6 @@ export type CloudControlDefinition = {
1424
1410
  "status"?: string;
1425
1411
  };
1426
1412
  export type CloudStreamScript = {
1427
- "sdkVersion": "tier0-stream/v2";
1428
1413
  "code": string;
1429
1414
  "timeoutMs": UnsV2Integer;
1430
1415
  };
@@ -1669,7 +1654,7 @@ export type CloudSourceDocumentListReq = {
1669
1654
  "page"?: UnsV2Integer;
1670
1655
  "size"?: UnsV2Integer;
1671
1656
  "search"?: string;
1672
- "protocol"?: "http-api" | "modbus" | "mqtt" | "opcua" | "sap" | "teamcenter" | "mqtt_device" | "http_push" | "sql";
1657
+ "protocol"?: "http-api" | "modbus" | "mqtt" | "opcua" | "sap" | "teamcenter" | "mqtt_device" | "sql";
1673
1658
  "desiredState"?: "enabled" | "disabled";
1674
1659
  "health"?: string;
1675
1660
  "archived"?: boolean;
@@ -2602,7 +2587,6 @@ export type CloudStreamProgramView = {
2602
2587
  "createdAt": UnsV2Integer;
2603
2588
  "updatedAt": UnsV2Integer;
2604
2589
  "document"?: ({
2605
- "sdkVersion"?: string;
2606
2590
  "name"?: string;
2607
2591
  "description"?: string;
2608
2592
  "timeoutMs"?: UnsV2Integer;
@@ -6675,9 +6659,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6675
6659
  readonly a: readonly [{
6676
6660
  readonly k: "o";
6677
6661
  readonly p: {
6678
- readonly configVersion: {
6679
- readonly k: "j";
6680
- };
6681
6662
  readonly options: {
6682
6663
  readonly k: "o";
6683
6664
  };
@@ -6694,9 +6675,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6694
6675
  readonly auth: {
6695
6676
  readonly k: "o";
6696
6677
  };
6697
- readonly configVersion: {
6698
- readonly k: "j";
6699
- };
6700
6678
  readonly options: {
6701
6679
  readonly k: "o";
6702
6680
  readonly p: {
@@ -6715,9 +6693,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6715
6693
  readonly auth: {
6716
6694
  readonly k: "o";
6717
6695
  };
6718
- readonly configVersion: {
6719
- readonly k: "j";
6720
- };
6721
6696
  readonly options: {
6722
6697
  readonly k: "o";
6723
6698
  readonly p: {
@@ -6736,9 +6711,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6736
6711
  readonly auth: {
6737
6712
  readonly k: "o";
6738
6713
  };
6739
- readonly configVersion: {
6740
- readonly k: "j";
6741
- };
6742
6714
  readonly options: {
6743
6715
  readonly k: "o";
6744
6716
  readonly p: {
@@ -6757,9 +6729,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6757
6729
  readonly auth: {
6758
6730
  readonly k: "o";
6759
6731
  };
6760
- readonly configVersion: {
6761
- readonly k: "j";
6762
- };
6763
6732
  readonly options: {
6764
6733
  readonly k: "o";
6765
6734
  readonly p: {
@@ -6778,9 +6747,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6778
6747
  readonly auth: {
6779
6748
  readonly k: "o";
6780
6749
  };
6781
- readonly configVersion: {
6782
- readonly k: "j";
6783
- };
6784
6750
  readonly options: {
6785
6751
  readonly k: "o";
6786
6752
  readonly p: {
@@ -6799,9 +6765,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6799
6765
  readonly auth: {
6800
6766
  readonly k: "o";
6801
6767
  };
6802
- readonly configVersion: {
6803
- readonly k: "j";
6804
- };
6805
6768
  readonly options: {
6806
6769
  readonly k: "o";
6807
6770
  readonly p: {
@@ -6820,9 +6783,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6820
6783
  readonly auth: {
6821
6784
  readonly k: "o";
6822
6785
  };
6823
- readonly configVersion: {
6824
- readonly k: "j";
6825
- };
6826
6786
  readonly options: {
6827
6787
  readonly k: "o";
6828
6788
  readonly p: {
@@ -6841,9 +6801,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6841
6801
  readonly auth: {
6842
6802
  readonly k: "o";
6843
6803
  };
6844
- readonly configVersion: {
6845
- readonly k: "j";
6846
- };
6847
6804
  readonly options: {
6848
6805
  readonly k: "o";
6849
6806
  readonly p: {
@@ -6876,9 +6833,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6876
6833
  readonly auth: {
6877
6834
  readonly k: "o";
6878
6835
  };
6879
- readonly configVersion: {
6880
- readonly k: "j";
6881
- };
6882
6836
  readonly options: {
6883
6837
  readonly k: "o";
6884
6838
  readonly p: {
@@ -6903,9 +6857,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6903
6857
  readonly auth: {
6904
6858
  readonly k: "o";
6905
6859
  };
6906
- readonly configVersion: {
6907
- readonly k: "j";
6908
- };
6909
6860
  readonly options: {
6910
6861
  readonly k: "o";
6911
6862
  readonly p: {
@@ -6924,9 +6875,6 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
6924
6875
  readonly auth: {
6925
6876
  readonly k: "o";
6926
6877
  };
6927
- readonly configVersion: {
6928
- readonly k: "j";
6929
- };
6930
6878
  readonly options: {
6931
6879
  readonly k: "o";
6932
6880
  readonly p: {
@@ -9891,11 +9839,11 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
9891
9839
  };
9892
9840
  export declare const UNS_V2_CONTRACT_PROVENANCE: {
9893
9841
  readonly repository: "FREEZONEX/Tier0-Backend";
9894
- readonly revision: "86bef2325253c2f4eaab8168f983ac4ec09c0d2f";
9842
+ readonly revision: "120902c12b25ac2ef5f54fa3340a94fb3a5206b3";
9895
9843
  readonly version: "5.0.0";
9896
9844
  readonly source: "service/unssvr/internal/domain/unsv2/contract_generated.go#ContractJSON";
9897
- readonly cloudRevision: "86bef2325253c2f4eaab8168f983ac4ec09c0d2f";
9898
- readonly cloudContractRevision: "cloud-source-impact/2+source-vendor/2+app-create-capability/1+data/3+record-reads/1+stream-receipt/1+collection-namespace/1+http-acquisition/2+http-source-role/1+http-source-request/1+app-collection/2+collection-ownership/1+metadata/1+app-context/2+collection-ttl/1+error-model/1+crud-consolidation/1+record-insert-return/1+lifecycle-consolidation/1+api-surface/2+app-data/2+hosted-control/1+source-bindings/1+record-notifications/1+record-delete-samples/1+stream-history/1+app-collections/1+http-in/1+app-resource-access/2+stream-control-probe-retirement/1";
9845
+ readonly cloudRevision: "120902c12b25ac2ef5f54fa3340a94fb3a5206b3";
9846
+ readonly cloudContractRevision: "cloud-source-impact/2+source-vendor/2+app-create-capability/1+data/3+record-reads/1+stream-receipt/1+collection-namespace/1+http-acquisition/2+http-source-role/1+http-source-request/1+app-collection/2+collection-ownership/1+metadata/1+app-context/2+collection-ttl/1+error-model/1+crud-consolidation/1+record-insert-return/1+lifecycle-consolidation/1+api-surface/2+source-stream-single-model+app-data/2+hosted-control/1+source-bindings/1+record-notifications/1+record-delete-samples/1+stream-history/1+app-collections/1+http-in/1+app-resource-access/2+stream-control-probe-retirement/1+http-push-retirement/1";
9899
9847
  readonly resolvedCloudContract: true;
9900
9848
  readonly enterpriseBase: {
9901
9849
  readonly repository: "FREEZONEX/Tier0-Enterprise-New";
@@ -9904,12 +9852,12 @@ export declare const UNS_V2_CONTRACT_PROVENANCE: {
9904
9852
  readonly source: "backend/internal/domain/unsv2/contract_generated.go";
9905
9853
  readonly note: "Reviewed Enterprise wire contract imported as editable Cloud contract source; regenerate all adapters with scripts/generate-uns-v2.mjs.";
9906
9854
  };
9907
- readonly sourceDerivedContractSHA256: "c93d1cd69d465fc56af2e1ff5d1896e61dc53a7ffb4ec1a43e7a654c5cf943af";
9855
+ readonly sourceDerivedContractSHA256: "27a23f7db02f2f0681d1a66565be3b6e478f07b3cd1a9c9e1e880bd304106614";
9908
9856
  readonly hashes: {
9909
- readonly contract: "c93d1cd69d465fc56af2e1ff5d1896e61dc53a7ffb4ec1a43e7a654c5cf943af";
9857
+ readonly contract: "27a23f7db02f2f0681d1a66565be3b6e478f07b3cd1a9c9e1e880bd304106614";
9910
9858
  readonly cloudSupport: "23e5680ec2c4f645067789e366d783961817bbb7438a3aa98099fd5314e6a35f";
9911
- readonly manifest: "490ad0e26237b9d24ab6491a23ac0c663c0d532059e3bf9f5f140938fdbbb980";
9912
- readonly provenance: "4c9b8b13f4e13a3422284a7712b68024382f267a1166da22e25a783342e3f0b4";
9859
+ readonly manifest: "ad9c0e97585be774e72c4335e801437c3dfd9187f0ce0c49e566aa98d4f79547";
9860
+ readonly provenance: "5b8626103092682bb393c2d94142b410e293b1fcfdf057d65d91e6e4c5d66ac0";
9913
9861
  readonly registry: "62dd03cf1240dddf40dfb663c1f4e742d25d8b1d78f349927a2120656c7ed24d";
9914
9862
  };
9915
9863
  readonly publicOperationCount: 85;