@osdk/foundry.streams 2.47.0 → 2.49.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 +26 -0
- package/build/browser/public/Stream.d.ts +2 -2
- package/build/browser/public/Stream.js +2 -2
- package/build/browser/public/Stream.js.map +1 -1
- package/build/esm/public/Stream.d.ts +2 -2
- package/build/esm/public/Stream.js +2 -2
- package/build/esm/public/Stream.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @osdk/foundry.streams
|
|
2
2
|
|
|
3
|
+
## 2.49.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ed3ac19: Regenerate Platform SDKs
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [ed3ac19]
|
|
12
|
+
- @osdk/foundry.filesystem@2.49.0
|
|
13
|
+
- @osdk/foundry.datasets@2.49.0
|
|
14
|
+
- @osdk/foundry.core@2.49.0
|
|
15
|
+
|
|
16
|
+
## 2.48.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- 21e4edc: Regenerate Platform SDKs
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [21e4edc]
|
|
25
|
+
- @osdk/foundry.filesystem@2.48.0
|
|
26
|
+
- @osdk/foundry.datasets@2.48.0
|
|
27
|
+
- @osdk/foundry.core@2.48.0
|
|
28
|
+
|
|
3
29
|
## 2.47.0
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -110,7 +110,7 @@ export declare function reset($ctx: $Client | $ClientContext | $OldClient | $Old
|
|
|
110
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
111
|
* Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
|
|
112
112
|
*
|
|
113
|
-
* @
|
|
113
|
+
* @beta
|
|
114
114
|
*
|
|
115
115
|
* Required Scopes: [api:streams-read]
|
|
116
116
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
|
|
@@ -129,7 +129,7 @@ export declare function getRecords($ctx: $Client | $ClientContext | $OldClient |
|
|
|
129
129
|
/**
|
|
130
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
131
|
*
|
|
132
|
-
* @
|
|
132
|
+
* @beta
|
|
133
133
|
*
|
|
134
134
|
* Required Scopes: [api:streams-read]
|
|
135
135
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
|
|
@@ -101,7 +101,7 @@ const _getRecords = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getRecor
|
|
|
101
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
102
|
* Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
|
|
103
103
|
*
|
|
104
|
-
* @
|
|
104
|
+
* @beta
|
|
105
105
|
*
|
|
106
106
|
* Required Scopes: [api:streams-read]
|
|
107
107
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
|
|
@@ -113,7 +113,7 @@ const _getEndOffsets = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getEn
|
|
|
113
113
|
/**
|
|
114
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
115
|
*
|
|
116
|
-
* @
|
|
116
|
+
* @beta
|
|
117
117
|
*
|
|
118
118
|
* Required Scopes: [api:streams-read]
|
|
119
119
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
|
|
@@ -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","_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 * @
|
|
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 * @beta\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 * @beta\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;EAC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;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":[]}
|
|
@@ -110,7 +110,7 @@ export declare function reset($ctx: $Client | $ClientContext | $OldClient | $Old
|
|
|
110
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
111
|
* Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
|
|
112
112
|
*
|
|
113
|
-
* @
|
|
113
|
+
* @beta
|
|
114
114
|
*
|
|
115
115
|
* Required Scopes: [api:streams-read]
|
|
116
116
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
|
|
@@ -129,7 +129,7 @@ export declare function getRecords($ctx: $Client | $ClientContext | $OldClient |
|
|
|
129
129
|
/**
|
|
130
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
131
|
*
|
|
132
|
-
* @
|
|
132
|
+
* @beta
|
|
133
133
|
*
|
|
134
134
|
* Required Scopes: [api:streams-read]
|
|
135
135
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
|
|
@@ -101,7 +101,7 @@ const _getRecords = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getRecor
|
|
|
101
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
102
|
* Binary field values are returned as base64-encoded strings. Decode them to retrieve the original bytes.
|
|
103
103
|
*
|
|
104
|
-
* @
|
|
104
|
+
* @beta
|
|
105
105
|
*
|
|
106
106
|
* Required Scopes: [api:streams-read]
|
|
107
107
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getRecords
|
|
@@ -113,7 +113,7 @@ const _getEndOffsets = [0, "/v2/highScale/streams/datasets/{0}/streams/{1}/getEn
|
|
|
113
113
|
/**
|
|
114
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
115
|
*
|
|
116
|
-
* @
|
|
116
|
+
* @beta
|
|
117
117
|
*
|
|
118
118
|
* Required Scopes: [api:streams-read]
|
|
119
119
|
* URL: /v2/highScale/streams/datasets/{datasetRid}/streams/{streamBranchName}/getEndOffsets
|
|
@@ -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","_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 * @
|
|
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 * @beta\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 * @beta\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;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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":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/foundry.streams",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.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.
|
|
25
|
-
"@osdk/
|
|
26
|
-
"@osdk/foundry.
|
|
27
|
-
"@osdk/
|
|
24
|
+
"@osdk/foundry.filesystem": "2.49.0",
|
|
25
|
+
"@osdk/shared.net.platformapi": "~1.6.0",
|
|
26
|
+
"@osdk/foundry.core": "2.49.0",
|
|
27
|
+
"@osdk/foundry.datasets": "2.49.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.
|
|
50
|
+
"minVersion": "1.1487.0",
|
|
51
51
|
"maxVersion": "1.x.x",
|
|
52
52
|
"optional": false
|
|
53
53
|
}
|