@deepraxis/sdk 0.2.0-dev.8d58e29 → 0.2.0-dev.91c5574
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/METHODS.md +2 -1
- package/dist/core/retry.js +2 -0
- package/dist/core/transport.js +15 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +10 -4
- package/dist/generated/sdk.gen.js +21 -3
- package/dist/generated/types.gen.d.ts +325 -41
- package/dist/operations.generated.js +21 -3
- package/dist/resources.generated.d.ts +47 -0
- package/dist/resources.generated.js +1 -0
- package/package.json +1 -1
|
@@ -1705,7 +1705,7 @@ export const fileRetrieveUpload = (options) => (options.client ?? client).get({
|
|
|
1705
1705
|
/**
|
|
1706
1706
|
* Create a one-time upload URL
|
|
1707
1707
|
*
|
|
1708
|
-
* Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns
|
|
1708
|
+
* Upload a local file of up to 20 GiB from a coding agent without sending bytes through the model. Provide filename (the stored basename), exact byte count and MIME type. Up to 104857600 bytes, PUT the file to url with curl -T photo.png -H 'Content-Type: image/png' '<url>'; success returns 201 with the file object, and reuse returns 410 CAPABILITY_USED. Above that threshold, split the file into part_size chunks (default 64000000 bytes) and PUT each chunk to its numbered parts[].url in any order; an interrupted client GETs status_url to see the received parts and resends only what is missing, then POSTs complete_url without a body. Part PUTs return 200; completion returns 201 with the file object, including its state, or 400 if a part is missing. A processing file can be polled with files.retrieve until active. Identical part bytes may be retried; changed bytes at the same number return 400. Completion reuse returns 201 with the same file, because a lost answer must not cost the file. Each PUT requires the exact signed Content-Length; single-PUT Content-Type must match content_type or be omitted. An expired upload answers 410 UPLOAD_EXPIRED on its status_url and complete_url while the upload still exists in the caller's organization; revoked, invalid, cross-organization or unknown URLs return 404, including a link whose upload record no longer exists. A signed URL used for another action answers 403 CAPABILITY_MISMATCH, judged before expiry, so a status link posted to complete_url answers it and so does a completion link fetched as status_url. URL lifetime defaults to 900 seconds for single PUT or 604800 (7 days) for multipart, at most 604800; all multipart URLs, including status_url, share an expiry. Multipart creation reserves storage quota. Issuance requires the same unscoped credential as direct file creation. Each issuance creates a new upload and is not idempotent. Example body: {"filename":"photo.png","bytes":2048,"content_type":"image/png"}.
|
|
1709
1709
|
*/
|
|
1710
1710
|
export const fileCreateSignedUpload = (options) => (options.client ?? client).post({
|
|
1711
1711
|
security: [{
|
|
@@ -2127,7 +2127,7 @@ export const updateMediaPipeline = (options) => (options.client ?? client).patch
|
|
|
2127
2127
|
/**
|
|
2128
2128
|
* List a stream's re-broadcast targets
|
|
2129
2129
|
*
|
|
2130
|
-
* List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the
|
|
2130
|
+
* List every output of one stream, oldest first, with the status of each (idle, starting, broadcasting or errored) and the reason of one that is errored or trying again. Use it to see at a glance which targets are live; to change one use streams.outputs.update and to follow status changes as they happen read streams.events.list. A stream has at most 5 outputs, so the list is one page. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs.
|
|
2131
2131
|
*/
|
|
2132
2132
|
export const listMediaStreamOutputs = (options) => (options.client ?? client).get({
|
|
2133
2133
|
security: [{
|
|
@@ -2185,7 +2185,7 @@ export const deleteMediaStreamOutput = (options) => (options.client ?? client).d
|
|
|
2185
2185
|
/**
|
|
2186
2186
|
* Read one re-broadcast target
|
|
2187
2187
|
*
|
|
2188
|
-
* Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.
|
|
2188
|
+
* Read one output: its address, whether a key is set (the key itself is never returned), its status and, when it is errored or trying again, why. Use it to check a target after streams.outputs.create or after an output.status event; status broadcasting means the target accepted the stream and is receiving it. Example: GET /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec/outputs/mso_zpnqd7a2kxwg3vhr5tj4bfm6ec.
|
|
2189
2189
|
*/
|
|
2190
2190
|
export const getMediaStreamOutput = (options) => (options.client ?? client).get({
|
|
2191
2191
|
security: [{
|
|
@@ -3182,6 +3182,24 @@ export const listOrganizationNotificationLetters = (options) => (options?.client
|
|
|
3182
3182
|
url: '/organization/v1/notifications/letters',
|
|
3183
3183
|
...options
|
|
3184
3184
|
});
|
|
3185
|
+
/**
|
|
3186
|
+
* Open one of your letters by its id
|
|
3187
|
+
*
|
|
3188
|
+
* One letter from your own mailbox in this organization, by id, as the notification center lists it: the same row the letters list gives, the same fields, the same copy written for you — and the organization the letter belongs to beside them. A link that arrives carrying an org can therefore check the letter's own organization instead of trusting the link. The mailbox is the credential's own, and the request names only the letter. A letter that is not in your mailbox in this organization, is still scheduled, or does not exist answers 404 the same way, without saying which. Nothing is marked read; use the :read action for that. Read-only; no usage charge.
|
|
3189
|
+
*/
|
|
3190
|
+
export const getOrganizationNotificationLetter = (options) => (options.client ?? client).get({
|
|
3191
|
+
security: [{
|
|
3192
|
+
key: 'BearerAuth',
|
|
3193
|
+
scheme: 'bearer',
|
|
3194
|
+
type: 'http'
|
|
3195
|
+
}, {
|
|
3196
|
+
key: 'ApiKeyAuth',
|
|
3197
|
+
name: 'X-API-Key',
|
|
3198
|
+
type: 'apiKey'
|
|
3199
|
+
}],
|
|
3200
|
+
url: '/organization/v1/notifications/letters/{id}',
|
|
3201
|
+
...options
|
|
3202
|
+
});
|
|
3185
3203
|
/**
|
|
3186
3204
|
* Mark one of your letters read
|
|
3187
3205
|
*
|