@osdk/foundry.streams 2.45.0 → 2.47.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @osdk/foundry.streams
2
2
 
3
+ ## 2.47.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0a561e6: Fix cyclic dependency
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [0a561e6]
12
+ - @osdk/foundry.filesystem@2.47.0
13
+ - @osdk/foundry.datasets@2.47.0
14
+ - @osdk/foundry.core@2.47.0
15
+
16
+ ## 2.46.0
17
+
18
+ ### Minor Changes
19
+
20
+ - aabad9b: Regenerate platform sdks
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [aabad9b]
25
+ - @osdk/foundry.filesystem@2.46.0
26
+ - @osdk/foundry.datasets@2.46.0
27
+ - @osdk/foundry.core@2.46.0
28
+
3
29
  ## 2.45.0
4
30
 
5
31
  ### Minor Changes
@@ -20,7 +20,7 @@ export interface CreateStreamingDatasetRequest {
20
20
  name: _Datasets.DatasetName;
21
21
  parentFolderRid: _Filesystem.FolderRid;
22
22
  schema: _Core.StreamSchema;
23
- branchName?: _Datasets.BranchName;
23
+ branchName?: _Core.BranchName;
24
24
  partitionsCount?: PartitionsCount;
25
25
  streamType?: StreamType;
26
26
  compressed?: Compressed;
@@ -32,7 +32,7 @@ export interface CreateStreamRequest {
32
32
  schema: CreateStreamRequestStreamSchema;
33
33
  partitionsCount?: PartitionsCount;
34
34
  streamType?: StreamType;
35
- branchName: _Datasets.BranchName;
35
+ branchName: _Core.BranchName;
36
36
  compressed?: Compressed;
37
37
  }
38
38
  /**
@@ -65,10 +65,28 @@ export interface CreateStreamRequestStreamSchema {
65
65
  * Log Safety: UNSAFE
66
66
  */
67
67
  export interface Dataset {
68
- rid: _Datasets.DatasetRid;
68
+ rid: _Core.DatasetRid;
69
69
  name: _Datasets.DatasetName;
70
70
  parentFolderRid: _Filesystem.FolderRid;
71
71
  }
72
+ /**
73
+ * The end offsets for each partition of a stream.
74
+ *
75
+ * Log Safety: SAFE
76
+ */
77
+ export type GetEndOffsetsResponse = Record<PartitionId, string>;
78
+ /**
79
+ * A list of records from a stream with their offsets.
80
+ *
81
+ * Log Safety: DO_NOT_LOG
82
+ */
83
+ export type GetRecordsResponse = Array<RecordWithOffset>;
84
+ /**
85
+ * The identifier for a partition of a Foundry stream.
86
+ *
87
+ * Log Safety: SAFE
88
+ */
89
+ export type PartitionId = LooselyBrandedString<"PartitionId">;
72
90
  /**
73
91
  * The number of partitions for a Foundry stream.
74
92
  *
@@ -95,6 +113,15 @@ export interface PublishRecordToStreamRequest {
95
113
  * Log Safety: DO_NOT_LOG
96
114
  */
97
115
  export type _Record = Record<string, any | undefined>;
116
+ /**
117
+ * A record retrieved from a stream, including its offset within the partition.
118
+ *
119
+ * Log Safety: DO_NOT_LOG
120
+ */
121
+ export interface RecordWithOffset {
122
+ offset: string;
123
+ value: _Record;
124
+ }
98
125
  /**
99
126
  * Log Safety: UNSAFE
100
127
  */
@@ -108,7 +135,7 @@ export interface ResetStreamRequest {
108
135
  * Log Safety: UNSAFE
109
136
  */
110
137
  export interface Stream {
111
- branchName: _Datasets.BranchName;
138
+ branchName: _Core.BranchName;
112
139
  schema: _Core.StreamSchema;
113
140
  viewRid: ViewRid;
114
141
  partitionsCount: PartitionsCount;
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CA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AAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;;;;KAYK;AACL,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC"}
@@ -68,6 +68,36 @@ export interface FailedToProcessBinaryRecord {
68
68
  errorInstanceId: string;
69
69
  parameters: {};
70
70
  }
71
+ /**
72
+ * Could not getEndOffsets the Stream.
73
+ *
74
+ * Log Safety: UNSAFE
75
+ */
76
+ export interface GetEndOffsetsForStreamPermissionDenied {
77
+ errorCode: "PERMISSION_DENIED";
78
+ errorName: "GetEndOffsetsForStreamPermissionDenied";
79
+ errorDescription: "Could not getEndOffsets the Stream.";
80
+ errorInstanceId: string;
81
+ parameters: {
82
+ datasetRid: unknown;
83
+ streamBranchName: unknown;
84
+ };
85
+ }
86
+ /**
87
+ * Could not getRecords the Stream.
88
+ *
89
+ * Log Safety: UNSAFE
90
+ */
91
+ export interface GetRecordsFromStreamPermissionDenied {
92
+ errorCode: "PERMISSION_DENIED";
93
+ errorName: "GetRecordsFromStreamPermissionDenied";
94
+ errorDescription: "Could not getRecords the Stream.";
95
+ errorInstanceId: string;
96
+ parameters: {
97
+ datasetRid: unknown;
98
+ streamBranchName: unknown;
99
+ };
100
+ }
71
101
  /**
72
102
  * The requested stream exists but is invalid, as it does not have a schema.
73
103
  *
@@ -202,14 +232,14 @@ export interface StreamNotFound {
202
232
  };
203
233
  }
204
234
  /**
205
- * No view for the provided view rid provided could be found.
235
+ * No view for the provided view RID provided could be found.
206
236
  *
207
237
  * Log Safety: SAFE
208
238
  */
209
239
  export interface ViewNotFound {
210
240
  errorCode: "NOT_FOUND";
211
241
  errorName: "ViewNotFound";
212
- errorDescription: "No view for the provided view rid provided could be found.";
242
+ errorDescription: "No view for the provided view RID provided could be found.";
213
243
  errorInstanceId: string;
214
244
  parameters: {
215
245
  viewRid: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACvD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,0CAA0C,CAAC;IACtD,gBAAgB,EAAE,qDAAqD,CAAC;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,4BAA4B,CAAC;IACxC,gBAAgB,EAAE,gDAAgD,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,sCAAsC;IACrD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,wCAAwC,CAAC;IACpD,gBAAgB,EAAE,+BAA+B,CAAC;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,8BAA8B,CAAC;IAC1C,gBAAgB,EAAE,8BAA8B,CAAC;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;QACpB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CA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B,EAAE,oDAAoD,CAAC;IACvE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QACpB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,0BAA0B,CAAC;IACtC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,gBAAgB,EACd,2GAA2G,CAAC;IAC9G,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,6BAA6B,CAAC;IACzC,gBAAgB,EAAE,6BAA6B,CAAC;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;QACpB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,gBAAgB,EAAE,sCAAsC,CAAC;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;QACpB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,cAAc,CAAC;IAC1B,gBAAgB,EACd,4DAA4D,CAAC;IAC/D,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
- export type { _Record, Compressed, CreateStreamingDatasetRequest, CreateStreamRequest, CreateStreamRequestChangeDataCaptureConfiguration, CreateStreamRequestFullRowChangeDataCaptureConfiguration, CreateStreamRequestStreamSchema, Dataset, PartitionsCount, PublishRecordsToStreamRequest, PublishRecordToStreamRequest, ResetStreamRequest, Stream, StreamType, ViewRid, } from "./_components.js";
2
- export type { CannotCreateStreamingDatasetInUserFolder, CannotWriteToTrashedStream, CreateStreamingDatasetPermissionDenied, CreateStreamPermissionDenied, FailedToProcessBinaryRecord, InvalidStreamNoSchema, InvalidStreamType, PublishBinaryRecordToStreamPermissionDenied, PublishRecordsToStreamPermissionDenied, PublishRecordToStreamPermissionDenied, RecordDoesNotMatchStreamSchema, RecordTooLarge, ResetStreamPermissionDenied, StreamNotFound, ViewNotFound, } from "./_errors.js";
1
+ export type { _Record, Compressed, CreateStreamingDatasetRequest, CreateStreamRequest, CreateStreamRequestChangeDataCaptureConfiguration, CreateStreamRequestFullRowChangeDataCaptureConfiguration, CreateStreamRequestStreamSchema, Dataset, GetEndOffsetsResponse, GetRecordsResponse, PartitionId, PartitionsCount, PublishRecordsToStreamRequest, PublishRecordToStreamRequest, RecordWithOffset, ResetStreamRequest, Stream, StreamType, ViewRid, } from "./_components.js";
2
+ export type { CannotCreateStreamingDatasetInUserFolder, CannotWriteToTrashedStream, CreateStreamingDatasetPermissionDenied, CreateStreamPermissionDenied, FailedToProcessBinaryRecord, GetEndOffsetsForStreamPermissionDenied, GetRecordsFromStreamPermissionDenied, InvalidStreamNoSchema, InvalidStreamType, PublishBinaryRecordToStreamPermissionDenied, PublishRecordsToStreamPermissionDenied, PublishRecordToStreamPermissionDenied, RecordDoesNotMatchStreamSchema, RecordTooLarge, ResetStreamPermissionDenied, StreamNotFound, ViewNotFound, } from "./_errors.js";
3
3
  export * as Datasets from "./public/Dataset.js";
4
4
  export * as Streams from "./public/Stream.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,OAAO,EACP,UAAU,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,iDAAiD,EACjD,wDAAwD,EACxD,+BAA+B,EAC/B,OAAO,EACP,eAAe,EACf,6BAA6B,EAC7B,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,UAAU,EACV,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,2CAA2C,EAC3C,sCAAsC,EACtC,qCAAqC,EACrC,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,OAAO,EACP,UAAU,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,iDAAiD,EACjD,wDAAwD,EACxD,+BAA+B,EAC/B,OAAO,EACP,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,6BAA6B,EAC7B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,EACN,UAAU,EACV,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,sCAAsC,EACtC,oCAAoC,EACpC,qBAAqB,EACrB,iBAAiB,EACjB,2CAA2C,EAC3C,sCAAsC,EACtC,qCAAqC,EACrC,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type * as _Core from "@osdk/foundry.core";
2
- import type * as _Datasets from "@osdk/foundry.datasets";
3
2
  import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
4
3
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
5
4
  import type * as _Streams from "../_components.js";
@@ -12,7 +11,7 @@ import type * as _Streams from "../_components.js";
12
11
  * URL: /v2/streams/datasets/{datasetRid}/streams
13
12
  */
14
13
  export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
15
- datasetRid: _Datasets.DatasetRid,
14
+ datasetRid: _Core.DatasetRid,
16
15
  $body: _Streams.CreateStreamRequest,
17
16
  $queryParams?: {
18
17
  preview?: _Core.PreviewMode | undefined;
@@ -28,8 +27,8 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
28
27
  * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}
29
28
  */
30
29
  export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
31
- datasetRid: _Datasets.DatasetRid,
32
- streamBranchName: _Datasets.BranchName,
30
+ datasetRid: _Core.DatasetRid,
31
+ streamBranchName: _Core.BranchName,
33
32
  $queryParams?: {
34
33
  preview?: _Core.PreviewMode | undefined;
35
34
  }
@@ -44,8 +43,8 @@ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldCl
44
43
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord
45
44
  */
46
45
  export declare function publishRecord($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
47
- datasetRid: _Datasets.DatasetRid,
48
- streamBranchName: _Datasets.BranchName,
46
+ datasetRid: _Core.DatasetRid,
47
+ streamBranchName: _Core.BranchName,
49
48
  $body: _Streams.PublishRecordToStreamRequest,
50
49
  $queryParams?: {
51
50
  preview?: _Core.PreviewMode | undefined;
@@ -61,8 +60,8 @@ export declare function publishRecord($ctx: $Client | $ClientContext | $OldClien
61
60
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords
62
61
  */
63
62
  export declare function publishRecords($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
64
- datasetRid: _Datasets.DatasetRid,
65
- streamBranchName: _Datasets.BranchName,
63
+ datasetRid: _Core.DatasetRid,
64
+ streamBranchName: _Core.BranchName,
66
65
  $body: _Streams.PublishRecordsToStreamRequest,
67
66
  $queryParams?: {
68
67
  preview?: _Core.PreviewMode | undefined;
@@ -77,8 +76,8 @@ export declare function publishRecords($ctx: $Client | $ClientContext | $OldClie
77
76
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord
78
77
  */
79
78
  export declare function publishBinaryRecord($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
80
- datasetRid: _Datasets.DatasetRid,
81
- streamBranchName: _Datasets.BranchName,
79
+ datasetRid: _Core.DatasetRid,
80
+ streamBranchName: _Core.BranchName,
82
81
  $body: Blob,
83
82
  $queryParams?: {
84
83
  viewRid?: _Streams.ViewRid | undefined;
@@ -100,11 +99,47 @@ export declare function publishBinaryRecord($ctx: $Client | $ClientContext | $Ol
100
99
  * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset
101
100
  */
102
101
  export declare function reset($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
103
- datasetRid: _Datasets.DatasetRid,
104
- streamBranchName: _Datasets.BranchName,
102
+ datasetRid: _Core.DatasetRid,
103
+ streamBranchName: _Core.BranchName,
105
104
  $body: _Streams.ResetStreamRequest,
106
105
  $queryParams?: {
107
106
  preview?: _Core.PreviewMode | undefined;
108
107
  }
109
108
  ]): Promise<_Streams.Stream>;
109
+ /**
110
+ * Get a batch of records from a stream for a given partition. Offsets are ordered from \[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).
111
+ * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
112
+ *
113
+ * @alpha
114
+ *
115
+ * Required Scopes: [api:streams-read]
116
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
117
+ */
118
+ export declare function getRecords($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
119
+ datasetRid: _Core.DatasetRid,
120
+ streamBranchName: _Core.BranchName,
121
+ $queryParams: {
122
+ viewRid?: _Streams.ViewRid | undefined;
123
+ partitionId: _Streams.PartitionId;
124
+ startOffset?: string | undefined;
125
+ limit: number;
126
+ preview?: _Core.PreviewMode | undefined;
127
+ }
128
+ ]): Promise<_Streams.GetRecordsResponse>;
129
+ /**
130
+ * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.
131
+ *
132
+ * @alpha
133
+ *
134
+ * Required Scopes: [api:streams-read]
135
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
136
+ */
137
+ export declare function getEndOffsets($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
138
+ datasetRid: _Core.DatasetRid,
139
+ streamBranchName: _Core.BranchName,
140
+ $queryParams?: {
141
+ viewRid?: _Streams.ViewRid | undefined;
142
+ preview?: _Core.PreviewMode | undefined;
143
+ }
144
+ ]): Promise<_Streams.GetEndOffsetsResponse>;
110
145
  //# sourceMappingURL=Stream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../../src/public/Stream.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO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,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAE1B;AAgBD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,KAAK,CAAC,UAAU;IAC5B,gBAAgB,EAAE,KAAK,CAAC,UAAU;IAElC,YAAY,EAAE;QACZ,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;QACvC,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC;QAClC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAEtC;AAaD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,KAAK,CAAC,UAAU;IAC5B,gBAAgB,EAAE,KAAK,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;QACvC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAEzC"}
@@ -96,4 +96,29 @@ const _reset = [1, "/v2/streams/datasets/{0}/streams/{1}/reset", 3];
96
96
  export function reset($ctx, ...args) {
97
97
  return $foundryPlatformFetch($ctx, _reset, ...args);
98
98
  }
99
+ const _getRecords = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getRecords", 2];
100
+ /**
101
+ * Get a batch of records from a stream for a given partition. Offsets are ordered from \[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).
102
+ * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
103
+ *
104
+ * @alpha
105
+ *
106
+ * Required Scopes: [api:streams-read]
107
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
108
+ */
109
+ export function getRecords($ctx, ...args) {
110
+ return $foundryPlatformFetch($ctx, _getRecords, ...args);
111
+ }
112
+ const _getEndOffsets = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getEndOffsets", 2];
113
+ /**
114
+ * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.
115
+ *
116
+ * @alpha
117
+ *
118
+ * Required Scopes: [api:streams-read]
119
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
120
+ */
121
+ export function getEndOffsets($ctx, ...args) {
122
+ return $foundryPlatformFetch($ctx, _getEndOffsets, ...args);
123
+ }
99
124
  //# sourceMappingURL=Stream.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stream.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_publishRecord","publishRecord","_publishRecords","publishRecords","_publishBinaryRecord","publishBinaryRecord","_reset","reset"],"sources":["Stream.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/streams/datasets/{0}/streams\", 3];\n/**\n * Creates a new branch on the backing streaming dataset, and creates a new stream on that branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/streams/datasets/{0}/streams/{1}\", 2];\n/**\n * Get a stream by its branch name. If the branch does not exist, there is no stream on that branch, or the\n * user does not have permission to access the stream, a 404 error will be returned.\n *\n * @beta\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _publishRecord = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecord\", 3];\n/**\n * Publish a single record to the stream. The record will be validated against the stream's schema, and\n * rejected if it is invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord\n */\nexport function publishRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecord, ...args);\n}\nconst _publishRecords = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecords\", 3];\n/**\n * Publish a batch of records to the stream. The records will be validated against the stream's schema, and\n * the batch will be rejected if one or more of the records are invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords\n */\nexport function publishRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecords, ...args);\n}\nconst _publishBinaryRecord = [\n 1,\n \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishBinaryRecord\",\n 3,\n \"application/octet-stream\",\n];\n/**\n * Publish a single binary record to the stream. The stream's schema must be a single binary field.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord\n */\nexport function publishBinaryRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishBinaryRecord, ...args);\n}\nconst _reset = [1, \"/v2/streams/datasets/{0}/streams/{1}/reset\", 3];\n/**\n * Reset the stream on the given dataset branch, clearing the existing records and allowing new configurations\n * to be applied.\n *\n * To change the stream settings without clearing the records, update the stream settings in-platform.\n *\n * This will create a new stream view (as seen by the change of the `viewRid` on the branch),\n * which will be the new stream view that will be written to for the branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset\n */\nexport function reset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reset, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,cAAc,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,cAAc,EAAE,GAAGH,IAAI,CAAC;AAC/D;AACA,MAAMK,eAAe,GAAG,CAAC,CAAC,EAAE,+DAA+D,EAAE,CAAC,CAAC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,eAAe,EAAE,GAAGL,IAAI,CAAC;AAChE;AACA,MAAMO,oBAAoB,GAAG,CACzB,CAAC,EACD,oEAAoE,EACpE,CAAC,EACD,0BAA0B,CAC7B;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,oBAAoB,EAAE,GAAGP,IAAI,CAAC;AACrE;AACA,MAAMS,MAAM,GAAG,CAAC,CAAC,EAAE,4CAA4C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,MAAM,EAAE,GAAGT,IAAI,CAAC;AACvD","ignoreList":[]}
1
+ {"version":3,"file":"Stream.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_publishRecord","publishRecord","_publishRecords","publishRecords","_publishBinaryRecord","publishBinaryRecord","_reset","reset","_getRecords","getRecords","_getEndOffsets","getEndOffsets"],"sources":["Stream.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/streams/datasets/{0}/streams\", 3];\n/**\n * Creates a new branch on the backing streaming dataset, and creates a new stream on that branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/streams/datasets/{0}/streams/{1}\", 2];\n/**\n * Get a stream by its branch name. If the branch does not exist, there is no stream on that branch, or the\n * user does not have permission to access the stream, a 404 error will be returned.\n *\n * @beta\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _publishRecord = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecord\", 3];\n/**\n * Publish a single record to the stream. The record will be validated against the stream's schema, and\n * rejected if it is invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord\n */\nexport function publishRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecord, ...args);\n}\nconst _publishRecords = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecords\", 3];\n/**\n * Publish a batch of records to the stream. The records will be validated against the stream's schema, and\n * the batch will be rejected if one or more of the records are invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords\n */\nexport function publishRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecords, ...args);\n}\nconst _publishBinaryRecord = [\n 1,\n \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishBinaryRecord\",\n 3,\n \"application/octet-stream\",\n];\n/**\n * Publish a single binary record to the stream. The stream's schema must be a single binary field.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord\n */\nexport function publishBinaryRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishBinaryRecord, ...args);\n}\nconst _reset = [1, \"/v2/streams/datasets/{0}/streams/{1}/reset\", 3];\n/**\n * Reset the stream on the given dataset branch, clearing the existing records and allowing new configurations\n * to be applied.\n *\n * To change the stream settings without clearing the records, update the stream settings in-platform.\n *\n * This will create a new stream view (as seen by the change of the `viewRid` on the branch),\n * which will be the new stream view that will be written to for the branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset\n */\nexport function reset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reset, ...args);\n}\nconst _getRecords = [0, \"/v2/highScale/streams/datasets/{0}/streams/{1}/getRecords\", 2];\n/**\n * Get a batch of records from a stream for a given partition. Offsets are ordered from \\[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).\n * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.\n *\n * @alpha\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords\n */\nexport function getRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getRecords, ...args);\n}\nconst _getEndOffsets = [0, \"/v2/highScale/streams/datasets/{0}/streams/{1}/getEndOffsets\", 2];\n/**\n * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.\n *\n * @alpha\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets\n */\nexport function getEndOffsets($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getEndOffsets, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,cAAc,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,cAAc,EAAE,GAAGH,IAAI,CAAC;AAC/D;AACA,MAAMK,eAAe,GAAG,CAAC,CAAC,EAAE,+DAA+D,EAAE,CAAC,CAAC;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,eAAe,EAAE,GAAGL,IAAI,CAAC;AAChE;AACA,MAAMO,oBAAoB,GAAG,CACzB,CAAC,EACD,oEAAoE,EACpE,CAAC,EACD,0BAA0B,CAC7B;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,oBAAoB,EAAE,GAAGP,IAAI,CAAC;AACrE;AACA,MAAMS,MAAM,GAAG,CAAC,CAAC,EAAE,4CAA4C,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,MAAM,EAAE,GAAGT,IAAI,CAAC;AACvD;AACA,MAAMW,WAAW,GAAG,CAAC,CAAC,EAAE,2DAA2D,EAAE,CAAC,CAAC;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,WAAW,EAAE,GAAGX,IAAI,CAAC;AAC5D;AACA,MAAMa,cAAc,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACf,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEc,cAAc,EAAE,GAAGb,IAAI,CAAC;AAC/D","ignoreList":[]}
@@ -20,7 +20,7 @@ export interface CreateStreamingDatasetRequest {
20
20
  name: _Datasets.DatasetName;
21
21
  parentFolderRid: _Filesystem.FolderRid;
22
22
  schema: _Core.StreamSchema;
23
- branchName?: _Datasets.BranchName;
23
+ branchName?: _Core.BranchName;
24
24
  partitionsCount?: PartitionsCount;
25
25
  streamType?: StreamType;
26
26
  compressed?: Compressed;
@@ -32,7 +32,7 @@ export interface CreateStreamRequest {
32
32
  schema: CreateStreamRequestStreamSchema;
33
33
  partitionsCount?: PartitionsCount;
34
34
  streamType?: StreamType;
35
- branchName: _Datasets.BranchName;
35
+ branchName: _Core.BranchName;
36
36
  compressed?: Compressed;
37
37
  }
38
38
  /**
@@ -65,10 +65,28 @@ export interface CreateStreamRequestStreamSchema {
65
65
  * Log Safety: UNSAFE
66
66
  */
67
67
  export interface Dataset {
68
- rid: _Datasets.DatasetRid;
68
+ rid: _Core.DatasetRid;
69
69
  name: _Datasets.DatasetName;
70
70
  parentFolderRid: _Filesystem.FolderRid;
71
71
  }
72
+ /**
73
+ * The end offsets for each partition of a stream.
74
+ *
75
+ * Log Safety: SAFE
76
+ */
77
+ export type GetEndOffsetsResponse = Record<PartitionId, string>;
78
+ /**
79
+ * A list of records from a stream with their offsets.
80
+ *
81
+ * Log Safety: DO_NOT_LOG
82
+ */
83
+ export type GetRecordsResponse = Array<RecordWithOffset>;
84
+ /**
85
+ * The identifier for a partition of a Foundry stream.
86
+ *
87
+ * Log Safety: SAFE
88
+ */
89
+ export type PartitionId = LooselyBrandedString<"PartitionId">;
72
90
  /**
73
91
  * The number of partitions for a Foundry stream.
74
92
  *
@@ -95,6 +113,15 @@ export interface PublishRecordToStreamRequest {
95
113
  * Log Safety: DO_NOT_LOG
96
114
  */
97
115
  export type _Record = Record<string, any | undefined>;
116
+ /**
117
+ * A record retrieved from a stream, including its offset within the partition.
118
+ *
119
+ * Log Safety: DO_NOT_LOG
120
+ */
121
+ export interface RecordWithOffset {
122
+ offset: string;
123
+ value: _Record;
124
+ }
98
125
  /**
99
126
  * Log Safety: UNSAFE
100
127
  */
@@ -108,7 +135,7 @@ export interface ResetStreamRequest {
108
135
  * Log Safety: UNSAFE
109
136
  */
110
137
  export interface Stream {
111
- branchName: _Datasets.BranchName;
138
+ branchName: _Core.BranchName;
112
139
  schema: _Core.StreamSchema;
113
140
  viewRid: ViewRid;
114
141
  partitionsCount: PartitionsCount;
@@ -1 +1 @@
1
- {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;KAOK;AACL,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,SAAS,CAAC,WAAW,CAAC;IAC5B,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC;IACvC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC;IAClC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,+BAA+B,CAAC;IACxC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC;IACjC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;;;;KAOK;AACL,MAAM,MAAM,iDAAiD,GAAG;IAC9D,IAAI,EAAE,SAAS,CAAC;CACjB,GAAG,wDAAwD,CAAC;AAE7D;;GAEG;AACH,MAAM,WA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M,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;IAC7B,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;;;;KAYK;AACL,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,iBAAiB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC"}
@@ -68,6 +68,36 @@ export interface FailedToProcessBinaryRecord {
68
68
  errorInstanceId: string;
69
69
  parameters: {};
70
70
  }
71
+ /**
72
+ * Could not getEndOffsets the Stream.
73
+ *
74
+ * Log Safety: UNSAFE
75
+ */
76
+ export interface GetEndOffsetsForStreamPermissionDenied {
77
+ errorCode: "PERMISSION_DENIED";
78
+ errorName: "GetEndOffsetsForStreamPermissionDenied";
79
+ errorDescription: "Could not getEndOffsets the Stream.";
80
+ errorInstanceId: string;
81
+ parameters: {
82
+ datasetRid: unknown;
83
+ streamBranchName: unknown;
84
+ };
85
+ }
86
+ /**
87
+ * Could not getRecords the Stream.
88
+ *
89
+ * Log Safety: UNSAFE
90
+ */
91
+ export interface GetRecordsFromStreamPermissionDenied {
92
+ errorCode: "PERMISSION_DENIED";
93
+ errorName: "GetRecordsFromStreamPermissionDenied";
94
+ errorDescription: "Could not getRecords the Stream.";
95
+ errorInstanceId: string;
96
+ parameters: {
97
+ datasetRid: unknown;
98
+ streamBranchName: unknown;
99
+ };
100
+ }
71
101
  /**
72
102
  * The requested stream exists but is invalid, as it does not have a schema.
73
103
  *
@@ -202,14 +232,14 @@ export interface StreamNotFound {
202
232
  };
203
233
  }
204
234
  /**
205
- * No view for the provided view rid provided could be found.
235
+ * No view for the provided view RID provided could be found.
206
236
  *
207
237
  * Log Safety: SAFE
208
238
  */
209
239
  export interface ViewNotFound {
210
240
  errorCode: "NOT_FOUND";
211
241
  errorName: "ViewNotFound";
212
- errorDescription: "No view for the provided view rid provided could be found.";
242
+ errorDescription: "No view for the provided view RID provided could be found.";
213
243
  errorInstanceId: string;
214
244
  parameters: {
215
245
  viewRid: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACvD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,0CAA0C,CAAC;IACtD,gBAAgB,EAAE,qDAAqD,CAAC;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,4BAA4B,CAAC;IACxC,gBAAgB,EAAE,gDAAgD,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC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5B,gBAAgB,EAAE,sCAAsC,CAAC;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;QACpB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,cAAc,CAAC;IAC1B,gBAAgB,EACd,4DAA4D,CAAC;IAC/D,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
- export type { _Record, Compressed, CreateStreamingDatasetRequest, CreateStreamRequest, CreateStreamRequestChangeDataCaptureConfiguration, CreateStreamRequestFullRowChangeDataCaptureConfiguration, CreateStreamRequestStreamSchema, Dataset, PartitionsCount, PublishRecordsToStreamRequest, PublishRecordToStreamRequest, ResetStreamRequest, Stream, StreamType, ViewRid, } from "./_components.js";
2
- export type { CannotCreateStreamingDatasetInUserFolder, CannotWriteToTrashedStream, CreateStreamingDatasetPermissionDenied, CreateStreamPermissionDenied, FailedToProcessBinaryRecord, InvalidStreamNoSchema, InvalidStreamType, PublishBinaryRecordToStreamPermissionDenied, PublishRecordsToStreamPermissionDenied, PublishRecordToStreamPermissionDenied, RecordDoesNotMatchStreamSchema, RecordTooLarge, ResetStreamPermissionDenied, StreamNotFound, ViewNotFound, } from "./_errors.js";
1
+ export type { _Record, Compressed, CreateStreamingDatasetRequest, CreateStreamRequest, CreateStreamRequestChangeDataCaptureConfiguration, CreateStreamRequestFullRowChangeDataCaptureConfiguration, CreateStreamRequestStreamSchema, Dataset, GetEndOffsetsResponse, GetRecordsResponse, PartitionId, PartitionsCount, PublishRecordsToStreamRequest, PublishRecordToStreamRequest, RecordWithOffset, ResetStreamRequest, Stream, StreamType, ViewRid, } from "./_components.js";
2
+ export type { CannotCreateStreamingDatasetInUserFolder, CannotWriteToTrashedStream, CreateStreamingDatasetPermissionDenied, CreateStreamPermissionDenied, FailedToProcessBinaryRecord, GetEndOffsetsForStreamPermissionDenied, GetRecordsFromStreamPermissionDenied, InvalidStreamNoSchema, InvalidStreamType, PublishBinaryRecordToStreamPermissionDenied, PublishRecordsToStreamPermissionDenied, PublishRecordToStreamPermissionDenied, RecordDoesNotMatchStreamSchema, RecordTooLarge, ResetStreamPermissionDenied, StreamNotFound, ViewNotFound, } from "./_errors.js";
3
3
  export * as Datasets from "./public/Dataset.js";
4
4
  export * as Streams from "./public/Stream.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,OAAO,EACP,UAAU,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,iDAAiD,EACjD,wDAAwD,EACxD,+BAA+B,EAC/B,OAAO,EACP,eAAe,EACf,6BAA6B,EAC7B,4BAA4B,EAC5B,kBAAkB,EAClB,MAAM,EACN,UAAU,EACV,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,2CAA2C,EAC3C,sCAAsC,EACtC,qCAAqC,EACrC,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,OAAO,EACP,UAAU,EACV,6BAA6B,EAC7B,mBAAmB,EACnB,iDAAiD,EACjD,wDAAwD,EACxD,+BAA+B,EAC/B,OAAO,EACP,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,6BAA6B,EAC7B,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,EACN,UAAU,EACV,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,wCAAwC,EACxC,0BAA0B,EAC1B,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,sCAAsC,EACtC,oCAAoC,EACpC,qBAAqB,EACrB,iBAAiB,EACjB,2CAA2C,EAC3C,sCAAsC,EACtC,qCAAqC,EACrC,8BAA8B,EAC9B,cAAc,EACd,2BAA2B,EAC3B,cAAc,EACd,YAAY,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type * as _Core from "@osdk/foundry.core";
2
- import type * as _Datasets from "@osdk/foundry.datasets";
3
2
  import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
4
3
  import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
5
4
  import type * as _Streams from "../_components.js";
@@ -12,7 +11,7 @@ import type * as _Streams from "../_components.js";
12
11
  * URL: /v2/streams/datasets/{datasetRid}/streams
13
12
  */
14
13
  export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
15
- datasetRid: _Datasets.DatasetRid,
14
+ datasetRid: _Core.DatasetRid,
16
15
  $body: _Streams.CreateStreamRequest,
17
16
  $queryParams?: {
18
17
  preview?: _Core.PreviewMode | undefined;
@@ -28,8 +27,8 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
28
27
  * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}
29
28
  */
30
29
  export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
31
- datasetRid: _Datasets.DatasetRid,
32
- streamBranchName: _Datasets.BranchName,
30
+ datasetRid: _Core.DatasetRid,
31
+ streamBranchName: _Core.BranchName,
33
32
  $queryParams?: {
34
33
  preview?: _Core.PreviewMode | undefined;
35
34
  }
@@ -44,8 +43,8 @@ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldCl
44
43
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord
45
44
  */
46
45
  export declare function publishRecord($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
47
- datasetRid: _Datasets.DatasetRid,
48
- streamBranchName: _Datasets.BranchName,
46
+ datasetRid: _Core.DatasetRid,
47
+ streamBranchName: _Core.BranchName,
49
48
  $body: _Streams.PublishRecordToStreamRequest,
50
49
  $queryParams?: {
51
50
  preview?: _Core.PreviewMode | undefined;
@@ -61,8 +60,8 @@ export declare function publishRecord($ctx: $Client | $ClientContext | $OldClien
61
60
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords
62
61
  */
63
62
  export declare function publishRecords($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
64
- datasetRid: _Datasets.DatasetRid,
65
- streamBranchName: _Datasets.BranchName,
63
+ datasetRid: _Core.DatasetRid,
64
+ streamBranchName: _Core.BranchName,
66
65
  $body: _Streams.PublishRecordsToStreamRequest,
67
66
  $queryParams?: {
68
67
  preview?: _Core.PreviewMode | undefined;
@@ -77,8 +76,8 @@ export declare function publishRecords($ctx: $Client | $ClientContext | $OldClie
77
76
  * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord
78
77
  */
79
78
  export declare function publishBinaryRecord($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
80
- datasetRid: _Datasets.DatasetRid,
81
- streamBranchName: _Datasets.BranchName,
79
+ datasetRid: _Core.DatasetRid,
80
+ streamBranchName: _Core.BranchName,
82
81
  $body: Blob,
83
82
  $queryParams?: {
84
83
  viewRid?: _Streams.ViewRid | undefined;
@@ -100,11 +99,47 @@ export declare function publishBinaryRecord($ctx: $Client | $ClientContext | $Ol
100
99
  * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset
101
100
  */
102
101
  export declare function reset($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
103
- datasetRid: _Datasets.DatasetRid,
104
- streamBranchName: _Datasets.BranchName,
102
+ datasetRid: _Core.DatasetRid,
103
+ streamBranchName: _Core.BranchName,
105
104
  $body: _Streams.ResetStreamRequest,
106
105
  $queryParams?: {
107
106
  preview?: _Core.PreviewMode | undefined;
108
107
  }
109
108
  ]): Promise<_Streams.Stream>;
109
+ /**
110
+ * Get a batch of records from a stream for a given partition. Offsets are ordered from \[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).
111
+ * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
112
+ *
113
+ * @alpha
114
+ *
115
+ * Required Scopes: [api:streams-read]
116
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
117
+ */
118
+ export declare function getRecords($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
119
+ datasetRid: _Core.DatasetRid,
120
+ streamBranchName: _Core.BranchName,
121
+ $queryParams: {
122
+ viewRid?: _Streams.ViewRid | undefined;
123
+ partitionId: _Streams.PartitionId;
124
+ startOffset?: string | undefined;
125
+ limit: number;
126
+ preview?: _Core.PreviewMode | undefined;
127
+ }
128
+ ]): Promise<_Streams.GetRecordsResponse>;
129
+ /**
130
+ * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.
131
+ *
132
+ * @alpha
133
+ *
134
+ * Required Scopes: [api:streams-read]
135
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
136
+ */
137
+ export declare function getEndOffsets($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
138
+ datasetRid: _Core.DatasetRid,
139
+ streamBranchName: _Core.BranchName,
140
+ $queryParams?: {
141
+ viewRid?: _Streams.ViewRid | undefined;
142
+ preview?: _Core.PreviewMode | undefined;
143
+ }
144
+ ]): Promise<_Streams.GetEndOffsetsResponse>;
110
145
  //# sourceMappingURL=Stream.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../../src/public/Stream.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAYnD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,KAAK,EAAE,QAAQ,CAAC,mBAAmB;IACnC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAE1B;AAUD;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,SAAS,CAAC,UAAU;IAChC,gBAAgB,EAAE,SAAS,CAAC,UAAU;IAEtC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,G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,UAAU;IAC5B,gBAAgB,EAAE,KAAK,CAAC,UAAU;IAElC,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;QACvC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAEzC"}
@@ -96,4 +96,29 @@ const _reset = [1, "/v2/streams/datasets/{0}/streams/{1}/reset", 3];
96
96
  export function reset($ctx, ...args) {
97
97
  return $foundryPlatformFetch($ctx, _reset, ...args);
98
98
  }
99
+ const _getRecords = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getRecords", 2];
100
+ /**
101
+ * Get a batch of records from a stream for a given partition. Offsets are ordered from \[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).
102
+ * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
103
+ *
104
+ * @alpha
105
+ *
106
+ * Required Scopes: [api:streams-read]
107
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
108
+ */
109
+ export function getRecords($ctx, ...args) {
110
+ return $foundryPlatformFetch($ctx, _getRecords, ...args);
111
+ }
112
+ const _getEndOffsets = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getEndOffsets", 2];
113
+ /**
114
+ * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.
115
+ *
116
+ * @alpha
117
+ *
118
+ * Required Scopes: [api:streams-read]
119
+ * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
120
+ */
121
+ export function getEndOffsets($ctx, ...args) {
122
+ return $foundryPlatformFetch($ctx, _getEndOffsets, ...args);
123
+ }
99
124
  //# sourceMappingURL=Stream.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stream.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_publishRecord","publishRecord","_publishRecords","publishRecords","_publishBinaryRecord","publishBinaryRecord","_reset","reset"],"sources":["Stream.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/streams/datasets/{0}/streams\", 3];\n/**\n * Creates a new branch on the backing streaming dataset, and creates a new stream on that branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/streams/datasets/{0}/streams/{1}\", 2];\n/**\n * Get a stream by its branch name. If the branch does not exist, there is no stream on that branch, or the\n * user does not have permission to access the stream, a 404 error will be returned.\n *\n * @beta\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _publishRecord = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecord\", 3];\n/**\n * Publish a single record to the stream. The record will be validated against the stream's schema, and\n * rejected if it is invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord\n */\nexport function publishRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecord, ...args);\n}\nconst _publishRecords = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecords\", 3];\n/**\n * Publish a batch of records to the stream. The records will be validated against the stream's schema, and\n * the batch will be rejected if one or more of the records are invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords\n */\nexport function publishRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecords, ...args);\n}\nconst _publishBinaryRecord = [\n 1,\n \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishBinaryRecord\",\n 3,\n \"application/octet-stream\",\n];\n/**\n * Publish a single binary record to the stream. The stream's schema must be a single binary field.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord\n */\nexport function publishBinaryRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishBinaryRecord, ...args);\n}\nconst _reset = [1, \"/v2/streams/datasets/{0}/streams/{1}/reset\", 3];\n/**\n * Reset the stream on the given dataset branch, clearing the existing records and allowing new configurations\n * to be applied.\n *\n * To change the stream settings without clearing the records, update the stream settings in-platform.\n *\n * This will create a new stream view (as seen by the change of the `viewRid` on the branch),\n * which will be the new stream view that will be written to for the branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset\n */\nexport function reset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reset, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ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A;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,MAAM,EAAE,GAAGT,IAAI,CAAC;AACvD","ignoreList":[]}
1
+ {"version":3,"file":"Stream.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_publishRecord","publishRecord","_publishRecords","publishRecords","_publishBinaryRecord","publishBinaryRecord","_reset","reset","_getRecords","getRecords","_getEndOffsets","getEndOffsets"],"sources":["Stream.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/streams/datasets/{0}/streams\", 3];\n/**\n * Creates a new branch on the backing streaming dataset, and creates a new stream on that branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/streams/datasets/{0}/streams/{1}\", 2];\n/**\n * Get a stream by its branch name. If the branch does not exist, there is no stream on that branch, or the\n * user does not have permission to access the stream, a 404 error will be returned.\n *\n * @beta\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _publishRecord = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecord\", 3];\n/**\n * Publish a single record to the stream. The record will be validated against the stream's schema, and\n * rejected if it is invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecord\n */\nexport function publishRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecord, ...args);\n}\nconst _publishRecords = [1, \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishRecords\", 3];\n/**\n * Publish a batch of records to the stream. The records will be validated against the stream's schema, and\n * the batch will be rejected if one or more of the records are invalid.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishRecords\n */\nexport function publishRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishRecords, ...args);\n}\nconst _publishBinaryRecord = [\n 1,\n \"/v2/highScale/streams/datasets/{0}/streams/{1}/publishBinaryRecord\",\n 3,\n \"application/octet-stream\",\n];\n/**\n * Publish a single binary record to the stream. The stream's schema must be a single binary field.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/publishBinaryRecord\n */\nexport function publishBinaryRecord($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _publishBinaryRecord, ...args);\n}\nconst _reset = [1, \"/v2/streams/datasets/{0}/streams/{1}/reset\", 3];\n/**\n * Reset the stream on the given dataset branch, clearing the existing records and allowing new configurations\n * to be applied.\n *\n * To change the stream settings without clearing the records, update the stream settings in-platform.\n *\n * This will create a new stream view (as seen by the change of the `viewRid` on the branch),\n * which will be the new stream view that will be written to for the branch.\n *\n * @beta\n *\n * Required Scopes: [api:streams-write]\n * URL: /v2/streams/datasets/{datasetRid}/streams/{streamBranchName}/reset\n */\nexport function reset($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _reset, ...args);\n}\nconst _getRecords = [0, \"/v2/highScale/streams/datasets/{0}/streams/{1}/getRecords\", 2];\n/**\n * Get a batch of records from a stream for a given partition. Offsets are ordered from \\[0, inf) but may be sparse (e.g.: 0, 2, 3, 5).\n * Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.\n *\n * @alpha\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords\n */\nexport function getRecords($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getRecords, ...args);\n}\nconst _getEndOffsets = [0, \"/v2/highScale/streams/datasets/{0}/streams/{1}/getEndOffsets\", 2];\n/**\n * Get the end offsets for all partitions of a stream. The end offset is the offset of the next record that will be written to the partition.\n *\n * @alpha\n *\n * Required Scopes: [api:streams-read]\n * URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets\n */\nexport function getEndOffsets($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getEndOffsets, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CA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,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,WAAW,EAAE,GAAGX,IAAI,CAAC;AAC5D;AACA,MAAMa,cAAc,GAAG,CAAC,CAAC,EAAE,8DAA8D,EAAE,CAAC,CAAC;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACf,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEc,cAAc,EAAE,GAAGb,IAAI,CAAC;AAC/D","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/foundry.streams",
3
- "version": "2.45.0",
3
+ "version": "2.47.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@osdk/shared.client": "^1.0.1",
23
23
  "@osdk/shared.client2": "^1.0.0",
24
- "@osdk/foundry.core": "2.45.0",
25
- "@osdk/foundry.filesystem": "2.45.0",
26
- "@osdk/shared.net.platformapi": "~1.6.0",
27
- "@osdk/foundry.datasets": "2.45.0"
24
+ "@osdk/foundry.core": "2.47.0",
25
+ "@osdk/foundry.filesystem": "2.47.0",
26
+ "@osdk/foundry.datasets": "2.47.0",
27
+ "@osdk/shared.net.platformapi": "~1.6.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.5.4",
@@ -47,7 +47,7 @@
47
47
  "sls": {
48
48
  "dependencies": {
49
49
  "com.palantir.foundry.api:api-gateway": {
50
- "minVersion": "1.1422.0",
50
+ "minVersion": "1.1465.0",
51
51
  "maxVersion": "1.x.x",
52
52
  "optional": false
53
53
  }