@tier0/sdk-v2 0.2.1 → 0.2.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.
Files changed (29) hide show
  1. package/README.md +7 -5
  2. package/dist/cjs/data/collection.d.ts +42 -2
  3. package/dist/cjs/data/collection.js +5 -2
  4. package/dist/cjs/data/collection.js.map +1 -1
  5. package/dist/cjs/data/index.d.ts +1 -1
  6. package/dist/cjs/data/index.js.map +1 -1
  7. package/dist/cjs/uns-v2/generated.d.ts +109 -40
  8. package/dist/cjs/uns-v2/generated.js +8 -8
  9. package/dist/cjs/uns-v2/generated.js.map +1 -1
  10. package/dist/esm/data/collection.d.ts +42 -2
  11. package/dist/esm/data/collection.js +5 -2
  12. package/dist/esm/data/collection.js.map +1 -1
  13. package/dist/esm/data/index.d.ts +1 -1
  14. package/dist/esm/data/index.js.map +1 -1
  15. package/dist/esm/uns-v2/generated.d.ts +109 -40
  16. package/dist/esm/uns-v2/generated.js +8 -8
  17. package/dist/esm/uns-v2/generated.js.map +1 -1
  18. package/package.json +17 -5
  19. package/skills/tier0-sdk-v2/tier0-sdk-v2-data/references/read-write.md +5 -1
  20. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/SKILL.md +3 -3
  21. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/create.md +3 -6
  22. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/delete.md +10 -18
  23. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/state.md +9 -10
  24. package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/update.md +39 -21
  25. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/SKILL.md +6 -6
  26. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/create.md +13 -13
  27. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/deploy.md +11 -10
  28. package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/update.md +3 -5
  29. package/skills/tier0-sdk-v2/tier0-sdk-v2-uns/references/create.md +6 -5
@@ -1123,7 +1123,7 @@ export type UnsV2SourceUpdateReq = {
1123
1123
  "expectedRevision": UnsV2Integer;
1124
1124
  "name"?: string;
1125
1125
  "description"?: string;
1126
- "confirmedImpactRevision": string;
1126
+ "confirmedImpactRevision"?: string;
1127
1127
  })>);
1128
1128
  };
1129
1129
  export type UnsV2SourceUpdateResponse = {
@@ -1424,7 +1424,7 @@ export type UnsV2SourceConnectionUpdateReq = {
1424
1424
  "id": string;
1425
1425
  "expectedRevision": UnsV2Integer;
1426
1426
  "connection": SourceDefinition;
1427
- "confirmedImpactRevision": string;
1427
+ "confirmedImpactRevision"?: string;
1428
1428
  })>);
1429
1429
  };
1430
1430
  export type UnsV2SourceConnectionUpdateResponse = {
@@ -1488,7 +1488,7 @@ export type UnsV2SourceStateUpdateReq = {
1488
1488
  "id": string;
1489
1489
  "expectedRevision": UnsV2Integer;
1490
1490
  "desiredState": "enabled" | "disabled";
1491
- "confirmedImpactRevision": string;
1491
+ "confirmedImpactRevision"?: string;
1492
1492
  })>);
1493
1493
  };
1494
1494
  export type UnsV2SourceStateUpdateResponse = {
@@ -1692,7 +1692,7 @@ export type UnsV2StreamProgramCreateResponse = {
1692
1692
  "code": UnsV2Integer;
1693
1693
  "msg": string;
1694
1694
  "requestId": string;
1695
- "data": Record<string, UnsV2JSONValue>;
1695
+ "data": ((CloudStreamProgramView | CloudPreviewResult));
1696
1696
  };
1697
1697
  export type UnsV2StreamProgramUpdateReq = {
1698
1698
  "idempotencyKey"?: string;
@@ -1705,7 +1705,7 @@ export type UnsV2StreamProgramUpdateResponse = {
1705
1705
  "code": UnsV2Integer;
1706
1706
  "msg": string;
1707
1707
  "requestId": string;
1708
- "data": Record<string, UnsV2JSONValue>;
1708
+ "data": ((CloudStreamProgramView | CloudPreviewResult));
1709
1709
  };
1710
1710
  export type UnsV2StreamProgramGetReq = {
1711
1711
  "id": string;
@@ -1714,7 +1714,7 @@ export type UnsV2StreamProgramGetResponse = {
1714
1714
  "code": UnsV2Integer;
1715
1715
  "msg": string;
1716
1716
  "requestId": string;
1717
- "data": Record<string, UnsV2JSONValue>;
1717
+ "data": CloudStreamProgramView;
1718
1718
  };
1719
1719
  export type UnsV2StreamProgramVersionsListReq = {
1720
1720
  "id": string;
@@ -1759,7 +1759,7 @@ export type UnsV2StreamProgramDeployResponse = {
1759
1759
  "code": UnsV2Integer;
1760
1760
  "msg": string;
1761
1761
  "requestId": string;
1762
- "data": Record<string, UnsV2JSONValue>;
1762
+ "data": ((CloudStreamProgramView | CloudPreviewResult));
1763
1763
  };
1764
1764
  export type UnsV2StreamProgramDisableReq = {
1765
1765
  "idempotencyKey"?: string;
@@ -1771,7 +1771,7 @@ export type UnsV2StreamProgramDisableResponse = {
1771
1771
  "code": UnsV2Integer;
1772
1772
  "msg": string;
1773
1773
  "requestId": string;
1774
- "data": Record<string, UnsV2JSONValue>;
1774
+ "data": ((CloudStreamProgramView | CloudPreviewResult));
1775
1775
  };
1776
1776
  export type UnsV2StreamProgramRollbackReq = {
1777
1777
  "idempotencyKey"?: string;
@@ -1785,7 +1785,7 @@ export type UnsV2StreamProgramRollbackResponse = {
1785
1785
  "code": UnsV2Integer;
1786
1786
  "msg": string;
1787
1787
  "requestId": string;
1788
- "data": Record<string, UnsV2JSONValue>;
1788
+ "data": ((CloudStreamProgramView | CloudPreviewResult));
1789
1789
  };
1790
1790
  export type UnsV2StreamProgramRunsListReq = {
1791
1791
  "id": string;
@@ -2090,6 +2090,7 @@ export type UnsV2RecordInsertOneResponse = {
2090
2090
  "insertedId": string;
2091
2091
  "status": string;
2092
2092
  "replayed": boolean;
2093
+ "value"?: RecordDocument;
2093
2094
  });
2094
2095
  };
2095
2096
  export type UnsV2RecordInsertManyResponse = {
@@ -3673,7 +3674,7 @@ export type UnsV2RecordExplainReq = {
3673
3674
  "op"?: "find" | "updateMany" | "deleteMany";
3674
3675
  "limit"?: UnsV2Integer;
3675
3676
  };
3676
- export type UnsV2RecordInsertOneReq = {
3677
+ export type UnsV2RecordInsertOneReq = ({
3677
3678
  "collectionId": string;
3678
3679
  "expectedRevision"?: UnsV2Integer;
3679
3680
  "dryRun"?: boolean;
@@ -3687,7 +3688,9 @@ export type UnsV2RecordInsertOneReq = {
3687
3688
  "id": string;
3688
3689
  "token": string;
3689
3690
  })>);
3690
- };
3691
+ "returnDocument"?: "none" | "after";
3692
+ "projection"?: ({} & Record<string, ((0 | 1 | boolean))>);
3693
+ });
3691
3694
  export type UnsV2RecordInsertManyReq = {
3692
3695
  "collectionId": string;
3693
3696
  "expectedRevision"?: UnsV2Integer;
@@ -4113,7 +4116,7 @@ export type CloudSourceDeleteReq = {
4113
4116
  "items": (Array<({
4114
4117
  "id": string;
4115
4118
  "expectedRevision": UnsV2Integer;
4116
- "confirmedImpactRevision": string;
4119
+ "confirmedImpactRevision"?: string;
4117
4120
  })>);
4118
4121
  };
4119
4122
  export type CloudSourceDeleteResponse = {
@@ -4259,7 +4262,7 @@ export type CloudSourceDocumentUpdateReq = ({
4259
4262
  "items"?: (Array<(({
4260
4263
  "id": string;
4261
4264
  "expectedRevision": UnsV2Integer;
4262
- "confirmedImpactRevision": string;
4265
+ "confirmedImpactRevision"?: string;
4263
4266
  "document"?: CloudSourceDocument;
4264
4267
  "patch"?: CloudSourceDocumentPatch;
4265
4268
  }))>);
@@ -5245,6 +5248,25 @@ export type UnsV2RecordQueryBatchResponse = {
5245
5248
  "results": ({} & Record<string, CloudRecordBatchQueryResult>);
5246
5249
  });
5247
5250
  };
5251
+ export type CloudStreamProgramView = {
5252
+ "id": string;
5253
+ "name": string;
5254
+ "model": "program";
5255
+ "revision": UnsV2Integer;
5256
+ "activeVersion": string;
5257
+ "activeRelease"?: UnsV2Integer;
5258
+ "status": string;
5259
+ "executionState": string;
5260
+ "createdAt": UnsV2Integer;
5261
+ "updatedAt": UnsV2Integer;
5262
+ "document"?: ({
5263
+ "sdkVersion"?: string;
5264
+ "name"?: string;
5265
+ "description"?: string;
5266
+ "timeoutMs"?: UnsV2Integer;
5267
+ "scriptConfigured"?: boolean;
5268
+ } & Record<string, UnsV2JSONValue>);
5269
+ } & Record<string, UnsV2JSONValue>;
5248
5270
  export type CloudSourceCreateCredentials = ({
5249
5271
  "method": string;
5250
5272
  "kind": "basic" | "bearer" | "oauth2ClientCredentials";
@@ -10553,7 +10575,12 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10553
10575
  readonly k: "j";
10554
10576
  };
10555
10577
  readonly data: {
10556
- readonly k: "o";
10578
+ readonly k: "u";
10579
+ readonly a: readonly [{
10580
+ readonly r: "CloudStreamProgramView";
10581
+ }, {
10582
+ readonly r: "CloudPreviewResult";
10583
+ }];
10557
10584
  };
10558
10585
  };
10559
10586
  };
@@ -10575,7 +10602,12 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10575
10602
  readonly k: "j";
10576
10603
  };
10577
10604
  readonly data: {
10578
- readonly k: "o";
10605
+ readonly k: "u";
10606
+ readonly a: readonly [{
10607
+ readonly r: "CloudStreamProgramView";
10608
+ }, {
10609
+ readonly r: "CloudPreviewResult";
10610
+ }];
10579
10611
  };
10580
10612
  };
10581
10613
  };
@@ -10589,7 +10621,7 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10589
10621
  readonly k: "j";
10590
10622
  };
10591
10623
  readonly data: {
10592
- readonly k: "o";
10624
+ readonly r: "CloudStreamProgramView";
10593
10625
  };
10594
10626
  };
10595
10627
  };
@@ -10671,7 +10703,12 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10671
10703
  readonly k: "j";
10672
10704
  };
10673
10705
  readonly data: {
10674
- readonly k: "o";
10706
+ readonly k: "u";
10707
+ readonly a: readonly [{
10708
+ readonly r: "CloudStreamProgramView";
10709
+ }, {
10710
+ readonly r: "CloudPreviewResult";
10711
+ }];
10675
10712
  };
10676
10713
  };
10677
10714
  };
@@ -10690,7 +10727,12 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10690
10727
  readonly k: "j";
10691
10728
  };
10692
10729
  readonly data: {
10693
- readonly k: "o";
10730
+ readonly k: "u";
10731
+ readonly a: readonly [{
10732
+ readonly r: "CloudStreamProgramView";
10733
+ }, {
10734
+ readonly r: "CloudPreviewResult";
10735
+ }];
10694
10736
  };
10695
10737
  };
10696
10738
  };
@@ -10712,7 +10754,12 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
10712
10754
  readonly k: "j";
10713
10755
  };
10714
10756
  readonly data: {
10715
- readonly k: "o";
10757
+ readonly k: "u";
10758
+ readonly a: readonly [{
10759
+ readonly r: "CloudStreamProgramView";
10760
+ }, {
10761
+ readonly r: "CloudPreviewResult";
10762
+ }];
10716
10763
  };
10717
10764
  };
10718
10765
  };
@@ -11222,6 +11269,11 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
11222
11269
  };
11223
11270
  readonly data: {
11224
11271
  readonly k: "o";
11272
+ readonly p: {
11273
+ readonly value: {
11274
+ readonly r: "RecordDocument";
11275
+ };
11276
+ };
11225
11277
  };
11226
11278
  };
11227
11279
  };
@@ -14285,21 +14337,13 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
14285
14337
  };
14286
14338
  };
14287
14339
  readonly UnsV2RecordInsertOneReq: {
14288
- readonly k: "o";
14289
- readonly p: {
14290
- readonly expectedRevision: {
14291
- readonly k: "j";
14292
- };
14293
- readonly data: {
14340
+ readonly k: "u";
14341
+ readonly a: readonly [{
14342
+ readonly k: "u";
14343
+ readonly a: readonly [{
14294
14344
  readonly k: "o";
14295
- };
14296
- readonly assertLocks: {
14297
- readonly k: "a";
14298
- readonly i: {
14299
- readonly k: "o";
14300
- };
14301
- };
14302
- };
14345
+ }];
14346
+ }];
14303
14347
  };
14304
14348
  readonly UnsV2RecordInsertManyReq: {
14305
14349
  readonly k: "o";
@@ -16846,6 +16890,31 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
16846
16890
  };
16847
16891
  };
16848
16892
  };
16893
+ readonly CloudStreamProgramView: {
16894
+ readonly k: "o";
16895
+ readonly p: {
16896
+ readonly revision: {
16897
+ readonly k: "j";
16898
+ };
16899
+ readonly activeRelease: {
16900
+ readonly k: "j";
16901
+ };
16902
+ readonly createdAt: {
16903
+ readonly k: "j";
16904
+ };
16905
+ readonly updatedAt: {
16906
+ readonly k: "j";
16907
+ };
16908
+ readonly document: {
16909
+ readonly k: "o";
16910
+ readonly p: {
16911
+ readonly timeoutMs: {
16912
+ readonly k: "j";
16913
+ };
16914
+ };
16915
+ };
16916
+ };
16917
+ };
16849
16918
  readonly CloudSourceCreateCredentials: {
16850
16919
  readonly k: "u";
16851
16920
  readonly a: readonly [{
@@ -18151,11 +18220,11 @@ export declare const UNS_V2_CODEC_SCHEMAS: {
18151
18220
  };
18152
18221
  export declare const UNS_V2_CONTRACT_PROVENANCE: {
18153
18222
  readonly repository: "FREEZONEX/Tier0-Backend";
18154
- readonly revision: "ef2fa94089a26e8e0021e0d25e7f13e87ff5c722";
18223
+ readonly revision: "6d0fbbca15ddbfd4d9b313b1abbc843b36d14dd0";
18155
18224
  readonly version: "5.0.0";
18156
18225
  readonly source: "service/unssvr/internal/domain/unsv2/contract_generated.go#ContractJSON";
18157
- readonly cloudRevision: "ef2fa94089a26e8e0021e0d25e7f13e87ff5c722";
18158
- readonly cloudContractRevision: "cloud-source-impact/1+app-create-capability/1+data/3+record-reads/1+collection-namespace/1+http-acquisition/2+app-collection/2+metadata/1+app-context/2+collection-ttl/1+error-model/1+crud-consolidation/1+lifecycle-consolidation/1+api-surface/1+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";
18226
+ readonly cloudRevision: "6d0fbbca15ddbfd4d9b313b1abbc843b36d14dd0";
18227
+ readonly cloudContractRevision: "cloud-source-impact/2+app-create-capability/1+data/3+record-reads/1+stream-receipt/1+collection-namespace/1+http-acquisition/2+app-collection/2+metadata/1+app-context/2+collection-ttl/1+error-model/1+crud-consolidation/1+record-insert-return/1+lifecycle-consolidation/1+api-surface/1+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";
18159
18228
  readonly resolvedCloudContract: true;
18160
18229
  readonly enterpriseBase: {
18161
18230
  readonly repository: "FREEZONEX/Tier0-Enterprise-New";
@@ -18164,12 +18233,12 @@ export declare const UNS_V2_CONTRACT_PROVENANCE: {
18164
18233
  readonly source: "backend/internal/domain/unsv2/contract_generated.go";
18165
18234
  readonly note: "Reviewed Enterprise wire contract imported as editable Cloud contract source; regenerate all adapters with scripts/generate-uns-v2.mjs.";
18166
18235
  };
18167
- readonly sourceDerivedContractSHA256: "7950e9513628e68f6a1206765a49499ae96603537139a04cb19be8472fec36ee";
18236
+ readonly sourceDerivedContractSHA256: "c05c2b1b31716a0d9634ee28093f6aa34373425b4210d5919c1ed20416cd31c2";
18168
18237
  readonly hashes: {
18169
- readonly contract: "7950e9513628e68f6a1206765a49499ae96603537139a04cb19be8472fec36ee";
18238
+ readonly contract: "c05c2b1b31716a0d9634ee28093f6aa34373425b4210d5919c1ed20416cd31c2";
18170
18239
  readonly cloudSupport: "102eef2517c84adbb0d0223d218cdd711c28da459d790f5ba1b9f9b316b54f15";
18171
- readonly manifest: "65d98819069eef28cb6f6157e1b4671401dd60cf70451d5475d660ab9401a90f";
18172
- readonly provenance: "edd0954243350f4d7d1b82e334049657d36b2dddda834fe91bdc255d9b947bb9";
18240
+ readonly manifest: "de7c43dce04d62b0d3ffd9e447b94ad14f09c2b1973161a494d2583b086b1f5a";
18241
+ readonly provenance: "c0c7bf92daea168b182cd28ef1e52b4d060355dfe103a04014413fab84d8b5ab";
18173
18242
  readonly registry: "f3a4a8efe6bbb52f0239f76a998c2f5b882b55a6eac4bc1e566d73abb9fd520c";
18174
18243
  };
18175
18244
  readonly publicOperationCount: 106;