@cadenya/cadenya 0.135.0 → 1.0.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/README.md +86 -358
- package/api.md +781 -0
- package/dist/client.d.ts +69 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +97 -0
- package/dist/client.js.map +1 -0
- package/dist/core/error.d.ts +39 -0
- package/dist/core/error.d.ts.map +1 -0
- package/dist/core/error.js +56 -0
- package/dist/core/error.js.map +1 -0
- package/dist/core/http.d.ts +140 -0
- package/dist/core/http.d.ts.map +1 -0
- package/dist/core/http.js +525 -0
- package/dist/core/http.js.map +1 -0
- package/dist/core/pagination.d.ts +12 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/pagination.js +29 -0
- package/dist/core/pagination.js.map +1 -0
- package/dist/core/sse.d.ts +44 -0
- package/dist/core/sse.d.ts.map +1 -0
- package/dist/core/sse.js +350 -0
- package/dist/core/sse.js.map +1 -0
- package/dist/core/webhooks.d.ts +25 -0
- package/dist/core/webhooks.d.ts.map +1 -0
- package/dist/core/webhooks.js +124 -0
- package/dist/core/webhooks.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/accounts.d.ts +34 -0
- package/dist/resources/accounts.d.ts.map +1 -0
- package/dist/resources/accounts.js +47 -0
- package/dist/resources/accounts.js.map +1 -0
- package/dist/resources/agent-schedules.d.ts +186 -0
- package/dist/resources/agent-schedules.d.ts.map +1 -0
- package/dist/resources/agent-schedules.js +141 -0
- package/dist/resources/agent-schedules.js.map +1 -0
- package/dist/resources/agent-variations.d.ts +230 -0
- package/dist/resources/agent-variations.d.ts.map +1 -0
- package/dist/resources/agent-variations.js +174 -0
- package/dist/resources/agent-variations.js.map +1 -0
- package/dist/resources/agents.d.ts +318 -0
- package/dist/resources/agents.d.ts.map +1 -0
- package/dist/resources/agents.js +202 -0
- package/dist/resources/agents.js.map +1 -0
- package/dist/resources/ai-provider-keys.d.ts +141 -0
- package/dist/resources/ai-provider-keys.d.ts.map +1 -0
- package/dist/resources/ai-provider-keys.js +93 -0
- package/dist/resources/ai-provider-keys.js.map +1 -0
- package/dist/resources/api-keys.d.ts +222 -0
- package/dist/resources/api-keys.d.ts.map +1 -0
- package/dist/resources/api-keys.js +194 -0
- package/dist/resources/api-keys.js.map +1 -0
- package/dist/resources/memory-entries.d.ts +122 -0
- package/dist/resources/memory-entries.d.ts.map +1 -0
- package/dist/resources/memory-entries.js +93 -0
- package/dist/resources/memory-entries.js.map +1 -0
- package/dist/resources/memory-layers.d.ts +137 -0
- package/dist/resources/memory-layers.d.ts.map +1 -0
- package/dist/resources/memory-layers.js +97 -0
- package/dist/resources/memory-layers.js.map +1 -0
- package/dist/resources/models.d.ts +148 -0
- package/dist/resources/models.d.ts.map +1 -0
- package/dist/resources/models.js +93 -0
- package/dist/resources/models.js.map +1 -0
- package/dist/resources/objectives.d.ts +602 -0
- package/dist/resources/objectives.d.ts.map +1 -0
- package/dist/resources/objectives.js +356 -0
- package/dist/resources/objectives.js.map +1 -0
- package/dist/resources/profiles.d.ts +16 -0
- package/dist/resources/profiles.d.ts.map +1 -0
- package/dist/resources/profiles.js +21 -0
- package/dist/resources/profiles.js.map +1 -0
- package/dist/resources/tenants.d.ts +135 -0
- package/dist/resources/tenants.d.ts.map +1 -0
- package/dist/resources/tenants.js +80 -0
- package/dist/resources/tenants.js.map +1 -0
- package/dist/resources/tool-search.d.ts +27 -0
- package/dist/resources/tool-search.d.ts.map +1 -0
- package/dist/resources/tool-search.js +25 -0
- package/dist/resources/tool-search.js.map +1 -0
- package/dist/resources/tool-set-secrets.d.ts +128 -0
- package/dist/resources/tool-set-secrets.d.ts.map +1 -0
- package/dist/resources/tool-set-secrets.js +93 -0
- package/dist/resources/tool-set-secrets.js.map +1 -0
- package/dist/resources/tool-sets.d.ts +271 -0
- package/dist/resources/tool-sets.d.ts.map +1 -0
- package/dist/resources/tool-sets.js +185 -0
- package/dist/resources/tool-sets.js.map +1 -0
- package/dist/resources/tools.d.ts +178 -0
- package/dist/resources/tools.d.ts.map +1 -0
- package/dist/resources/tools.js +125 -0
- package/dist/resources/tools.js.map +1 -0
- package/dist/resources/uploads.d.ts +43 -0
- package/dist/resources/uploads.d.ts.map +1 -0
- package/dist/resources/uploads.js +41 -0
- package/dist/resources/uploads.js.map +1 -0
- package/dist/resources/widget-sessions.d.ts +168 -0
- package/dist/resources/widget-sessions.d.ts.map +1 -0
- package/dist/resources/widget-sessions.js +110 -0
- package/dist/resources/widget-sessions.js.map +1 -0
- package/dist/resources/widgets.d.ts +166 -0
- package/dist/resources/widgets.d.ts.map +1 -0
- package/dist/resources/widgets.js +125 -0
- package/dist/resources/widgets.js.map +1 -0
- package/dist/resources/workspace-admin.d.ts +214 -0
- package/dist/resources/workspace-admin.d.ts.map +1 -0
- package/dist/resources/workspace-admin.js +154 -0
- package/dist/resources/workspace-admin.js.map +1 -0
- package/dist/resources/workspace-secrets.d.ts +134 -0
- package/dist/resources/workspace-secrets.d.ts.map +1 -0
- package/dist/resources/workspace-secrets.js +93 -0
- package/dist/resources/workspace-secrets.js.map +1 -0
- package/dist/resources/workspaces.d.ts +44 -0
- package/dist/resources/workspaces.d.ts.map +1 -0
- package/dist/resources/workspaces.js +26 -0
- package/dist/resources/workspaces.js.map +1 -0
- package/dist/types.d.ts +4634 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +103 -0
- package/dist/types.js.map +1 -0
- package/dist/webhooks.d.ts +93 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +21 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +24 -165
- package/src/client.ts +124 -1532
- package/src/core/error.ts +50 -109
- package/src/core/http.ts +639 -0
- package/src/core/pagination.ts +16 -150
- package/src/core/sse.ts +338 -0
- package/src/core/webhooks.ts +141 -0
- package/src/index.ts +35 -20
- package/src/resources/accounts.ts +50 -0
- package/src/resources/agent-schedules.ts +251 -0
- package/src/resources/agent-variations.ts +312 -0
- package/src/resources/agents.ts +411 -1
- package/src/resources/ai-provider-keys.ts +119 -309
- package/src/resources/api-keys.ts +219 -276
- package/src/resources/memory-entries.ts +163 -0
- package/src/resources/memory-layers.ts +181 -1
- package/src/resources/models.ts +125 -372
- package/src/resources/objectives.ts +764 -1
- package/src/resources/profiles.ts +17 -13
- package/src/resources/tenants.ts +168 -1
- package/src/resources/tool-search.ts +36 -0
- package/src/resources/tool-set-secrets.ts +169 -0
- package/src/resources/tool-sets.ts +355 -1
- package/src/resources/tools.ts +235 -0
- package/src/resources/uploads.ts +42 -127
- package/src/resources/widget-sessions.ts +148 -437
- package/src/resources/widgets.ts +155 -247
- package/src/resources/workspace-admin.ts +281 -1
- package/src/resources/workspace-secrets.ts +121 -159
- package/src/resources/workspaces.ts +32 -75
- package/src/types.ts +5188 -0
- package/src/webhooks.ts +107 -0
- package/CHANGELOG.md +0 -1542
- package/api-promise.d.mts +0 -3
- package/api-promise.d.mts.map +0 -1
- package/api-promise.d.ts +0 -3
- package/api-promise.d.ts.map +0 -1
- package/api-promise.js +0 -6
- package/api-promise.js.map +0 -1
- package/api-promise.mjs +0 -3
- package/api-promise.mjs.map +0 -1
- package/client.d.mts +0 -335
- package/client.d.mts.map +0 -1
- package/client.d.ts +0 -335
- package/client.d.ts.map +0 -1
- package/client.js +0 -630
- package/client.js.map +0 -1
- package/client.mjs +0 -626
- package/client.mjs.map +0 -1
- package/core/api-promise.d.mts +0 -46
- package/core/api-promise.d.mts.map +0 -1
- package/core/api-promise.d.ts +0 -46
- package/core/api-promise.d.ts.map +0 -1
- package/core/api-promise.js +0 -73
- package/core/api-promise.js.map +0 -1
- package/core/api-promise.mjs +0 -69
- package/core/api-promise.mjs.map +0 -1
- package/core/error.d.mts +0 -46
- package/core/error.d.mts.map +0 -1
- package/core/error.d.ts +0 -46
- package/core/error.d.ts.map +0 -1
- package/core/error.js +0 -112
- package/core/error.js.map +0 -1
- package/core/error.mjs +0 -96
- package/core/error.mjs.map +0 -1
- package/core/pagination.d.mts +0 -59
- package/core/pagination.d.mts.map +0 -1
- package/core/pagination.d.ts +0 -59
- package/core/pagination.d.ts.map +0 -1
- package/core/pagination.js +0 -100
- package/core/pagination.js.map +0 -1
- package/core/pagination.mjs +0 -94
- package/core/pagination.mjs.map +0 -1
- package/core/resource.d.mts +0 -6
- package/core/resource.d.mts.map +0 -1
- package/core/resource.d.ts +0 -6
- package/core/resource.d.ts.map +0 -1
- package/core/resource.js +0 -10
- package/core/resource.js.map +0 -1
- package/core/resource.mjs +0 -6
- package/core/resource.mjs.map +0 -1
- package/core/streaming.d.mts +0 -33
- package/core/streaming.d.mts.map +0 -1
- package/core/streaming.d.ts +0 -33
- package/core/streaming.d.ts.map +0 -1
- package/core/streaming.js +0 -268
- package/core/streaming.js.map +0 -1
- package/core/streaming.mjs +0 -263
- package/core/streaming.mjs.map +0 -1
- package/core/uploads.d.mts +0 -3
- package/core/uploads.d.mts.map +0 -1
- package/core/uploads.d.ts +0 -3
- package/core/uploads.d.ts.map +0 -1
- package/core/uploads.js +0 -6
- package/core/uploads.js.map +0 -1
- package/core/uploads.mjs +0 -2
- package/core/uploads.mjs.map +0 -1
- package/error.d.mts +0 -3
- package/error.d.mts.map +0 -1
- package/error.d.ts +0 -3
- package/error.d.ts.map +0 -1
- package/error.js +0 -6
- package/error.js.map +0 -1
- package/error.mjs +0 -3
- package/error.mjs.map +0 -1
- package/index.d.mts +0 -7
- package/index.d.mts.map +0 -1
- package/index.d.ts +0 -7
- package/index.d.ts.map +0 -1
- package/index.js +0 -31
- package/index.js.map +0 -1
- package/index.mjs +0 -7
- package/index.mjs.map +0 -1
- package/internal/builtin-types.d.mts +0 -73
- package/internal/builtin-types.d.mts.map +0 -1
- package/internal/builtin-types.d.ts +0 -73
- package/internal/builtin-types.d.ts.map +0 -1
- package/internal/builtin-types.js +0 -3
- package/internal/builtin-types.js.map +0 -1
- package/internal/builtin-types.mjs +0 -2
- package/internal/builtin-types.mjs.map +0 -1
- package/internal/decoders/line.d.mts +0 -17
- package/internal/decoders/line.d.mts.map +0 -1
- package/internal/decoders/line.d.ts +0 -17
- package/internal/decoders/line.d.ts.map +0 -1
- package/internal/decoders/line.js +0 -113
- package/internal/decoders/line.js.map +0 -1
- package/internal/decoders/line.mjs +0 -108
- package/internal/decoders/line.mjs.map +0 -1
- package/internal/detect-platform.d.mts +0 -15
- package/internal/detect-platform.d.mts.map +0 -1
- package/internal/detect-platform.d.ts +0 -15
- package/internal/detect-platform.d.ts.map +0 -1
- package/internal/detect-platform.js +0 -161
- package/internal/detect-platform.js.map +0 -1
- package/internal/detect-platform.mjs +0 -156
- package/internal/detect-platform.mjs.map +0 -1
- package/internal/errors.d.mts +0 -3
- package/internal/errors.d.mts.map +0 -1
- package/internal/errors.d.ts +0 -3
- package/internal/errors.d.ts.map +0 -1
- package/internal/errors.js +0 -40
- package/internal/errors.js.map +0 -1
- package/internal/errors.mjs +0 -35
- package/internal/errors.mjs.map +0 -1
- package/internal/headers.d.mts +0 -20
- package/internal/headers.d.mts.map +0 -1
- package/internal/headers.d.ts +0 -20
- package/internal/headers.d.ts.map +0 -1
- package/internal/headers.js +0 -78
- package/internal/headers.js.map +0 -1
- package/internal/headers.mjs +0 -73
- package/internal/headers.mjs.map +0 -1
- package/internal/parse.d.mts +0 -12
- package/internal/parse.d.mts.map +0 -1
- package/internal/parse.d.ts +0 -12
- package/internal/parse.d.ts.map +0 -1
- package/internal/parse.js +0 -49
- package/internal/parse.js.map +0 -1
- package/internal/parse.mjs +0 -46
- package/internal/parse.mjs.map +0 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/internal/request-options.d.mts +0 -77
- package/internal/request-options.d.mts.map +0 -1
- package/internal/request-options.d.ts +0 -77
- package/internal/request-options.d.ts.map +0 -1
- package/internal/request-options.js +0 -13
- package/internal/request-options.js.map +0 -1
- package/internal/request-options.mjs +0 -9
- package/internal/request-options.mjs.map +0 -1
- package/internal/shim-types.d.mts +0 -17
- package/internal/shim-types.d.mts.map +0 -1
- package/internal/shim-types.d.ts +0 -17
- package/internal/shim-types.d.ts.map +0 -1
- package/internal/shim-types.js +0 -9
- package/internal/shim-types.js.map +0 -1
- package/internal/shim-types.mjs +0 -8
- package/internal/shim-types.mjs.map +0 -1
- package/internal/shims.d.mts +0 -26
- package/internal/shims.d.mts.map +0 -1
- package/internal/shims.d.ts +0 -26
- package/internal/shims.d.ts.map +0 -1
- package/internal/shims.js +0 -97
- package/internal/shims.js.map +0 -1
- package/internal/shims.mjs +0 -90
- package/internal/shims.mjs.map +0 -1
- package/internal/to-file.d.mts +0 -45
- package/internal/to-file.d.mts.map +0 -1
- package/internal/to-file.d.ts +0 -45
- package/internal/to-file.d.ts.map +0 -1
- package/internal/to-file.js +0 -91
- package/internal/to-file.js.map +0 -1
- package/internal/to-file.mjs +0 -88
- package/internal/to-file.mjs.map +0 -1
- package/internal/tslib.js +0 -81
- package/internal/tslib.mjs +0 -17
- package/internal/types.d.mts +0 -69
- package/internal/types.d.mts.map +0 -1
- package/internal/types.d.ts +0 -69
- package/internal/types.d.ts.map +0 -1
- package/internal/types.js +0 -3
- package/internal/types.js.map +0 -1
- package/internal/types.mjs +0 -2
- package/internal/types.mjs.map +0 -1
- package/internal/uploads.d.mts +0 -42
- package/internal/uploads.d.mts.map +0 -1
- package/internal/uploads.d.ts +0 -42
- package/internal/uploads.d.ts.map +0 -1
- package/internal/uploads.js +0 -141
- package/internal/uploads.js.map +0 -1
- package/internal/uploads.mjs +0 -131
- package/internal/uploads.mjs.map +0 -1
- package/internal/utils/base64.d.mts +0 -3
- package/internal/utils/base64.d.mts.map +0 -1
- package/internal/utils/base64.d.ts +0 -3
- package/internal/utils/base64.d.ts.map +0 -1
- package/internal/utils/base64.js +0 -37
- package/internal/utils/base64.js.map +0 -1
- package/internal/utils/base64.mjs +0 -32
- package/internal/utils/base64.mjs.map +0 -1
- package/internal/utils/bytes.d.mts +0 -4
- package/internal/utils/bytes.d.mts.map +0 -1
- package/internal/utils/bytes.d.ts +0 -4
- package/internal/utils/bytes.d.ts.map +0 -1
- package/internal/utils/bytes.js +0 -31
- package/internal/utils/bytes.js.map +0 -1
- package/internal/utils/bytes.mjs +0 -26
- package/internal/utils/bytes.mjs.map +0 -1
- package/internal/utils/env.d.mts +0 -9
- package/internal/utils/env.d.mts.map +0 -1
- package/internal/utils/env.d.ts +0 -9
- package/internal/utils/env.d.ts.map +0 -1
- package/internal/utils/env.js +0 -21
- package/internal/utils/env.js.map +0 -1
- package/internal/utils/env.mjs +0 -17
- package/internal/utils/env.mjs.map +0 -1
- package/internal/utils/log.d.mts +0 -37
- package/internal/utils/log.d.mts.map +0 -1
- package/internal/utils/log.d.ts +0 -37
- package/internal/utils/log.d.ts.map +0 -1
- package/internal/utils/log.js +0 -86
- package/internal/utils/log.js.map +0 -1
- package/internal/utils/log.mjs +0 -80
- package/internal/utils/log.mjs.map +0 -1
- package/internal/utils/path.d.mts +0 -15
- package/internal/utils/path.d.mts.map +0 -1
- package/internal/utils/path.d.ts +0 -15
- package/internal/utils/path.d.ts.map +0 -1
- package/internal/utils/path.js +0 -79
- package/internal/utils/path.js.map +0 -1
- package/internal/utils/path.mjs +0 -74
- package/internal/utils/path.mjs.map +0 -1
- package/internal/utils/query.d.mts +0 -2
- package/internal/utils/query.d.mts.map +0 -1
- package/internal/utils/query.d.ts +0 -2
- package/internal/utils/query.d.ts.map +0 -1
- package/internal/utils/query.js +0 -9
- package/internal/utils/query.js.map +0 -1
- package/internal/utils/query.mjs +0 -5
- package/internal/utils/query.mjs.map +0 -1
- package/internal/utils/sleep.d.mts +0 -2
- package/internal/utils/sleep.d.mts.map +0 -1
- package/internal/utils/sleep.d.ts +0 -2
- package/internal/utils/sleep.d.ts.map +0 -1
- package/internal/utils/sleep.js +0 -6
- package/internal/utils/sleep.js.map +0 -1
- package/internal/utils/sleep.mjs +0 -2
- package/internal/utils/sleep.mjs.map +0 -1
- package/internal/utils/uuid.d.mts +0 -5
- package/internal/utils/uuid.d.mts.map +0 -1
- package/internal/utils/uuid.d.ts +0 -5
- package/internal/utils/uuid.d.ts.map +0 -1
- package/internal/utils/uuid.js +0 -18
- package/internal/utils/uuid.js.map +0 -1
- package/internal/utils/uuid.mjs +0 -14
- package/internal/utils/uuid.mjs.map +0 -1
- package/internal/utils/values.d.mts +0 -18
- package/internal/utils/values.d.mts.map +0 -1
- package/internal/utils/values.d.ts +0 -18
- package/internal/utils/values.d.ts.map +0 -1
- package/internal/utils/values.js +0 -111
- package/internal/utils/values.js.map +0 -1
- package/internal/utils/values.mjs +0 -93
- package/internal/utils/values.mjs.map +0 -1
- package/internal/utils.d.mts +0 -8
- package/internal/utils.d.mts.map +0 -1
- package/internal/utils.d.ts +0 -8
- package/internal/utils.d.ts.map +0 -1
- package/internal/utils.js +0 -11
- package/internal/utils.js.map +0 -1
- package/internal/utils.mjs +0 -8
- package/internal/utils.mjs.map +0 -1
- package/pagination.d.mts +0 -3
- package/pagination.d.mts.map +0 -1
- package/pagination.d.ts +0 -3
- package/pagination.d.ts.map +0 -1
- package/pagination.js +0 -6
- package/pagination.js.map +0 -1
- package/pagination.mjs +0 -3
- package/pagination.mjs.map +0 -1
- package/resource.d.mts +0 -3
- package/resource.d.mts.map +0 -1
- package/resource.d.ts +0 -3
- package/resource.d.ts.map +0 -1
- package/resource.js +0 -6
- package/resource.js.map +0 -1
- package/resource.mjs +0 -3
- package/resource.mjs.map +0 -1
- package/resources/account.d.mts +0 -124
- package/resources/account.d.mts.map +0 -1
- package/resources/account.d.ts +0 -124
- package/resources/account.d.ts.map +0 -1
- package/resources/account.js +0 -32
- package/resources/account.js.map +0 -1
- package/resources/account.mjs +0 -28
- package/resources/account.mjs.map +0 -1
- package/resources/agents/agents.d.mts +0 -379
- package/resources/agents/agents.d.mts.map +0 -1
- package/resources/agents/agents.d.ts +0 -379
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js +0 -191
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -186
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/feedback.d.mts +0 -71
- package/resources/agents/feedback.d.mts.map +0 -1
- package/resources/agents/feedback.d.ts +0 -71
- package/resources/agents/feedback.d.ts.map +0 -1
- package/resources/agents/feedback.js +0 -33
- package/resources/agents/feedback.js.map +0 -1
- package/resources/agents/feedback.mjs +0 -29
- package/resources/agents/feedback.mjs.map +0 -1
- package/resources/agents/index.d.mts +0 -6
- package/resources/agents/index.d.mts.map +0 -1
- package/resources/agents/index.d.ts +0 -6
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -14
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -6
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents/schedules.d.mts +0 -383
- package/resources/agents/schedules.d.mts.map +0 -1
- package/resources/agents/schedules.d.ts +0 -383
- package/resources/agents/schedules.d.ts.map +0 -1
- package/resources/agents/schedules.js +0 -171
- package/resources/agents/schedules.js.map +0 -1
- package/resources/agents/schedules.mjs +0 -167
- package/resources/agents/schedules.mjs.map +0 -1
- package/resources/agents/variations.d.mts +0 -723
- package/resources/agents/variations.d.mts.map +0 -1
- package/resources/agents/variations.d.ts +0 -723
- package/resources/agents/variations.d.ts.map +0 -1
- package/resources/agents/variations.js +0 -208
- package/resources/agents/variations.js.map +0 -1
- package/resources/agents/variations.mjs +0 -204
- package/resources/agents/variations.mjs.map +0 -1
- package/resources/agents/webhook-deliveries.d.mts +0 -96
- package/resources/agents/webhook-deliveries.d.mts.map +0 -1
- package/resources/agents/webhook-deliveries.d.ts +0 -96
- package/resources/agents/webhook-deliveries.d.ts.map +0 -1
- package/resources/agents/webhook-deliveries.js +0 -31
- package/resources/agents/webhook-deliveries.js.map +0 -1
- package/resources/agents/webhook-deliveries.mjs +0 -27
- package/resources/agents/webhook-deliveries.mjs.map +0 -1
- package/resources/agents.d.mts +0 -2
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -5
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -2
- package/resources/agents.mjs.map +0 -1
- package/resources/ai-provider-keys.d.mts +0 -269
- package/resources/ai-provider-keys.d.mts.map +0 -1
- package/resources/ai-provider-keys.d.ts +0 -269
- package/resources/ai-provider-keys.d.ts.map +0 -1
- package/resources/ai-provider-keys.js +0 -52
- package/resources/ai-provider-keys.js.map +0 -1
- package/resources/ai-provider-keys.mjs +0 -48
- package/resources/ai-provider-keys.mjs.map +0 -1
- package/resources/api-keys.d.mts +0 -268
- package/resources/api-keys.d.mts.map +0 -1
- package/resources/api-keys.d.ts +0 -268
- package/resources/api-keys.d.ts.map +0 -1
- package/resources/api-keys.js +0 -83
- package/resources/api-keys.js.map +0 -1
- package/resources/api-keys.mjs +0 -79
- package/resources/api-keys.mjs.map +0 -1
- package/resources/global-api-key.d.mts +0 -33
- package/resources/global-api-key.d.mts.map +0 -1
- package/resources/global-api-key.d.ts +0 -33
- package/resources/global-api-key.d.ts.map +0 -1
- package/resources/global-api-key.js +0 -42
- package/resources/global-api-key.js.map +0 -1
- package/resources/global-api-key.mjs +0 -38
- package/resources/global-api-key.mjs.map +0 -1
- package/resources/index.d.mts +0 -21
- package/resources/index.d.mts.map +0 -1
- package/resources/index.d.ts +0 -21
- package/resources/index.d.ts.map +0 -1
- package/resources/index.js +0 -44
- package/resources/index.js.map +0 -1
- package/resources/index.mjs +0 -21
- package/resources/index.mjs.map +0 -1
- package/resources/memory-layers/entries.d.mts +0 -257
- package/resources/memory-layers/entries.d.mts.map +0 -1
- package/resources/memory-layers/entries.d.ts +0 -257
- package/resources/memory-layers/entries.d.ts.map +0 -1
- package/resources/memory-layers/entries.js +0 -58
- package/resources/memory-layers/entries.js.map +0 -1
- package/resources/memory-layers/entries.mjs +0 -54
- package/resources/memory-layers/entries.mjs.map +0 -1
- package/resources/memory-layers/index.d.mts +0 -3
- package/resources/memory-layers/index.d.mts.map +0 -1
- package/resources/memory-layers/index.d.ts +0 -3
- package/resources/memory-layers/index.d.ts.map +0 -1
- package/resources/memory-layers/index.js +0 -8
- package/resources/memory-layers/index.js.map +0 -1
- package/resources/memory-layers/index.mjs +0 -3
- package/resources/memory-layers/index.mjs.map +0 -1
- package/resources/memory-layers/memory-layers.d.mts +0 -196
- package/resources/memory-layers/memory-layers.d.mts.map +0 -1
- package/resources/memory-layers/memory-layers.d.ts +0 -196
- package/resources/memory-layers/memory-layers.d.ts.map +0 -1
- package/resources/memory-layers/memory-layers.js +0 -63
- package/resources/memory-layers/memory-layers.js.map +0 -1
- package/resources/memory-layers/memory-layers.mjs +0 -58
- package/resources/memory-layers/memory-layers.mjs.map +0 -1
- package/resources/memory-layers.d.mts +0 -2
- package/resources/memory-layers.d.mts.map +0 -1
- package/resources/memory-layers.d.ts +0 -2
- package/resources/memory-layers.d.ts.map +0 -1
- package/resources/memory-layers.js +0 -5
- package/resources/memory-layers.js.map +0 -1
- package/resources/memory-layers.mjs +0 -2
- package/resources/memory-layers.mjs.map +0 -1
- package/resources/models.d.mts +0 -315
- package/resources/models.d.mts.map +0 -1
- package/resources/models.d.ts +0 -315
- package/resources/models.d.ts.map +0 -1
- package/resources/models.js +0 -59
- package/resources/models.js.map +0 -1
- package/resources/models.mjs +0 -55
- package/resources/models.mjs.map +0 -1
- package/resources/objectives/feedback.d.mts +0 -126
- package/resources/objectives/feedback.d.mts.map +0 -1
- package/resources/objectives/feedback.d.ts +0 -126
- package/resources/objectives/feedback.d.ts.map +0 -1
- package/resources/objectives/feedback.js +0 -52
- package/resources/objectives/feedback.js.map +0 -1
- package/resources/objectives/feedback.mjs +0 -48
- package/resources/objectives/feedback.mjs.map +0 -1
- package/resources/objectives/index.d.mts +0 -6
- package/resources/objectives/index.d.mts.map +0 -1
- package/resources/objectives/index.d.ts +0 -6
- package/resources/objectives/index.d.ts.map +0 -1
- package/resources/objectives/index.js +0 -14
- package/resources/objectives/index.js.map +0 -1
- package/resources/objectives/index.mjs +0 -6
- package/resources/objectives/index.mjs.map +0 -1
- package/resources/objectives/objectives.d.mts +0 -1280
- package/resources/objectives/objectives.d.mts.map +0 -1
- package/resources/objectives/objectives.d.ts +0 -1280
- package/resources/objectives/objectives.d.ts.map +0 -1
- package/resources/objectives/objectives.js +0 -213
- package/resources/objectives/objectives.js.map +0 -1
- package/resources/objectives/objectives.mjs +0 -208
- package/resources/objectives/objectives.mjs.map +0 -1
- package/resources/objectives/tasks.d.mts +0 -88
- package/resources/objectives/tasks.d.mts.map +0 -1
- package/resources/objectives/tasks.d.ts +0 -88
- package/resources/objectives/tasks.d.ts.map +0 -1
- package/resources/objectives/tasks.js +0 -45
- package/resources/objectives/tasks.js.map +0 -1
- package/resources/objectives/tasks.mjs +0 -41
- package/resources/objectives/tasks.mjs.map +0 -1
- package/resources/objectives/tool-calls.d.mts +0 -379
- package/resources/objectives/tool-calls.d.mts.map +0 -1
- package/resources/objectives/tool-calls.d.ts +0 -379
- package/resources/objectives/tool-calls.d.ts.map +0 -1
- package/resources/objectives/tool-calls.js +0 -110
- package/resources/objectives/tool-calls.js.map +0 -1
- package/resources/objectives/tool-calls.mjs +0 -106
- package/resources/objectives/tool-calls.mjs.map +0 -1
- package/resources/objectives/tools.d.mts +0 -53
- package/resources/objectives/tools.d.mts.map +0 -1
- package/resources/objectives/tools.d.ts +0 -53
- package/resources/objectives/tools.d.ts.map +0 -1
- package/resources/objectives/tools.js +0 -28
- package/resources/objectives/tools.js.map +0 -1
- package/resources/objectives/tools.mjs +0 -24
- package/resources/objectives/tools.mjs.map +0 -1
- package/resources/objectives.d.mts +0 -2
- package/resources/objectives.d.mts.map +0 -1
- package/resources/objectives.d.ts +0 -2
- package/resources/objectives.d.ts.map +0 -1
- package/resources/objectives.js +0 -5
- package/resources/objectives.js.map +0 -1
- package/resources/objectives.mjs +0 -2
- package/resources/objectives.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -16
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -16
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -19
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -15
- package/resources/profiles.mjs.map +0 -1
- package/resources/search.d.mts +0 -33
- package/resources/search.d.mts.map +0 -1
- package/resources/search.d.ts +0 -33
- package/resources/search.d.ts.map +0 -1
- package/resources/search.js +0 -19
- package/resources/search.js.map +0 -1
- package/resources/search.mjs +0 -15
- package/resources/search.mjs.map +0 -1
- package/resources/shared.d.mts +0 -215
- package/resources/shared.d.mts.map +0 -1
- package/resources/shared.d.ts +0 -215
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -3
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -2
- package/resources/shared.mjs.map +0 -1
- package/resources/tenants/index.d.mts +0 -3
- package/resources/tenants/index.d.mts.map +0 -1
- package/resources/tenants/index.d.ts +0 -3
- package/resources/tenants/index.d.ts.map +0 -1
- package/resources/tenants/index.js +0 -8
- package/resources/tenants/index.js.map +0 -1
- package/resources/tenants/index.mjs +0 -3
- package/resources/tenants/index.mjs.map +0 -1
- package/resources/tenants/subjects.d.mts +0 -43
- package/resources/tenants/subjects.d.mts.map +0 -1
- package/resources/tenants/subjects.d.ts +0 -43
- package/resources/tenants/subjects.d.ts.map +0 -1
- package/resources/tenants/subjects.js +0 -26
- package/resources/tenants/subjects.js.map +0 -1
- package/resources/tenants/subjects.mjs +0 -22
- package/resources/tenants/subjects.mjs.map +0 -1
- package/resources/tenants/tenants.d.mts +0 -158
- package/resources/tenants/tenants.d.mts.map +0 -1
- package/resources/tenants/tenants.d.ts +0 -158
- package/resources/tenants/tenants.d.ts.map +0 -1
- package/resources/tenants/tenants.js +0 -57
- package/resources/tenants/tenants.js.map +0 -1
- package/resources/tenants/tenants.mjs +0 -52
- package/resources/tenants/tenants.mjs.map +0 -1
- package/resources/tenants.d.mts +0 -2
- package/resources/tenants.d.mts.map +0 -1
- package/resources/tenants.d.ts +0 -2
- package/resources/tenants.d.ts.map +0 -1
- package/resources/tenants.js +0 -5
- package/resources/tenants.js.map +0 -1
- package/resources/tenants.mjs +0 -2
- package/resources/tenants.mjs.map +0 -1
- package/resources/tool-sets/index.d.mts +0 -4
- package/resources/tool-sets/index.d.mts.map +0 -1
- package/resources/tool-sets/index.d.ts +0 -4
- package/resources/tool-sets/index.d.ts.map +0 -1
- package/resources/tool-sets/index.js +0 -10
- package/resources/tool-sets/index.js.map +0 -1
- package/resources/tool-sets/index.mjs +0 -4
- package/resources/tool-sets/index.mjs.map +0 -1
- package/resources/tool-sets/secrets.d.mts +0 -135
- package/resources/tool-sets/secrets.d.mts.map +0 -1
- package/resources/tool-sets/secrets.d.ts +0 -135
- package/resources/tool-sets/secrets.d.ts.map +0 -1
- package/resources/tool-sets/secrets.js +0 -62
- package/resources/tool-sets/secrets.js.map +0 -1
- package/resources/tool-sets/secrets.mjs +0 -58
- package/resources/tool-sets/secrets.mjs.map +0 -1
- package/resources/tool-sets/tool-sets.d.mts +0 -595
- package/resources/tool-sets/tool-sets.d.mts.map +0 -1
- package/resources/tool-sets/tool-sets.d.ts +0 -595
- package/resources/tool-sets/tool-sets.d.ts.map +0 -1
- package/resources/tool-sets/tool-sets.js +0 -122
- package/resources/tool-sets/tool-sets.js.map +0 -1
- package/resources/tool-sets/tool-sets.mjs +0 -117
- package/resources/tool-sets/tool-sets.mjs.map +0 -1
- package/resources/tool-sets/tools.d.mts +0 -305
- package/resources/tool-sets/tools.d.mts.map +0 -1
- package/resources/tool-sets/tools.d.ts +0 -305
- package/resources/tool-sets/tools.d.ts.map +0 -1
- package/resources/tool-sets/tools.js +0 -84
- package/resources/tool-sets/tools.js.map +0 -1
- package/resources/tool-sets/tools.mjs +0 -80
- package/resources/tool-sets/tools.mjs.map +0 -1
- package/resources/tool-sets.d.mts +0 -2
- package/resources/tool-sets.d.mts.map +0 -1
- package/resources/tool-sets.d.ts +0 -2
- package/resources/tool-sets.d.ts.map +0 -1
- package/resources/tool-sets.js +0 -5
- package/resources/tool-sets.js.map +0 -1
- package/resources/tool-sets.mjs +0 -2
- package/resources/tool-sets.mjs.map +0 -1
- package/resources/uploads.d.mts +0 -107
- package/resources/uploads.d.mts.map +0 -1
- package/resources/uploads.d.ts +0 -107
- package/resources/uploads.d.ts.map +0 -1
- package/resources/uploads.js +0 -30
- package/resources/uploads.js.map +0 -1
- package/resources/uploads.mjs +0 -26
- package/resources/uploads.mjs.map +0 -1
- package/resources/webhooks.d.mts +0 -92
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts +0 -92
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js +0 -22
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs +0 -18
- package/resources/webhooks.mjs.map +0 -1
- package/resources/widget-sessions.d.mts +0 -388
- package/resources/widget-sessions.d.mts.map +0 -1
- package/resources/widget-sessions.d.ts +0 -388
- package/resources/widget-sessions.d.ts.map +0 -1
- package/resources/widget-sessions.js +0 -78
- package/resources/widget-sessions.js.map +0 -1
- package/resources/widget-sessions.mjs +0 -74
- package/resources/widget-sessions.mjs.map +0 -1
- package/resources/widgets.d.mts +0 -225
- package/resources/widgets.d.mts.map +0 -1
- package/resources/widgets.d.ts +0 -225
- package/resources/widgets.d.ts.map +0 -1
- package/resources/widgets.js +0 -82
- package/resources/widgets.js.map +0 -1
- package/resources/widgets.mjs +0 -78
- package/resources/widgets.mjs.map +0 -1
- package/resources/workspace-admin/index.d.mts +0 -4
- package/resources/workspace-admin/index.d.mts.map +0 -1
- package/resources/workspace-admin/index.d.ts +0 -4
- package/resources/workspace-admin/index.d.ts.map +0 -1
- package/resources/workspace-admin/index.js +0 -10
- package/resources/workspace-admin/index.js.map +0 -1
- package/resources/workspace-admin/index.mjs +0 -4
- package/resources/workspace-admin/index.mjs.map +0 -1
- package/resources/workspace-admin/members.d.mts +0 -90
- package/resources/workspace-admin/members.d.mts.map +0 -1
- package/resources/workspace-admin/members.d.ts +0 -90
- package/resources/workspace-admin/members.d.ts.map +0 -1
- package/resources/workspace-admin/members.js +0 -73
- package/resources/workspace-admin/members.js.map +0 -1
- package/resources/workspace-admin/members.mjs +0 -69
- package/resources/workspace-admin/members.mjs.map +0 -1
- package/resources/workspace-admin/profiles.d.mts +0 -46
- package/resources/workspace-admin/profiles.d.mts.map +0 -1
- package/resources/workspace-admin/profiles.d.ts +0 -46
- package/resources/workspace-admin/profiles.d.ts.map +0 -1
- package/resources/workspace-admin/profiles.js +0 -35
- package/resources/workspace-admin/profiles.js.map +0 -1
- package/resources/workspace-admin/profiles.mjs +0 -31
- package/resources/workspace-admin/profiles.mjs.map +0 -1
- package/resources/workspace-admin/workspace-admin.d.mts +0 -227
- package/resources/workspace-admin/workspace-admin.d.mts.map +0 -1
- package/resources/workspace-admin/workspace-admin.d.ts +0 -227
- package/resources/workspace-admin/workspace-admin.d.ts.map +0 -1
- package/resources/workspace-admin/workspace-admin.js +0 -111
- package/resources/workspace-admin/workspace-admin.js.map +0 -1
- package/resources/workspace-admin/workspace-admin.mjs +0 -106
- package/resources/workspace-admin/workspace-admin.mjs.map +0 -1
- package/resources/workspace-admin.d.mts +0 -2
- package/resources/workspace-admin.d.mts.map +0 -1
- package/resources/workspace-admin.d.ts +0 -2
- package/resources/workspace-admin.d.ts.map +0 -1
- package/resources/workspace-admin.js +0 -5
- package/resources/workspace-admin.js.map +0 -1
- package/resources/workspace-admin.mjs +0 -2
- package/resources/workspace-admin.mjs.map +0 -1
- package/resources/workspace-secrets.d.mts +0 -134
- package/resources/workspace-secrets.d.mts.map +0 -1
- package/resources/workspace-secrets.d.ts +0 -134
- package/resources/workspace-secrets.d.ts.map +0 -1
- package/resources/workspace-secrets.js +0 -52
- package/resources/workspace-secrets.js.map +0 -1
- package/resources/workspace-secrets.mjs +0 -48
- package/resources/workspace-secrets.mjs.map +0 -1
- package/resources/workspaces.d.mts +0 -70
- package/resources/workspaces.d.mts.map +0 -1
- package/resources/workspaces.d.ts +0 -70
- package/resources/workspaces.d.ts.map +0 -1
- package/resources/workspaces.js +0 -23
- package/resources/workspaces.js.map +0 -1
- package/resources/workspaces.mjs +0 -19
- package/resources/workspaces.mjs.map +0 -1
- package/resources.d.mts +0 -2
- package/resources.d.mts.map +0 -1
- package/resources.d.ts +0 -2
- package/resources.d.ts.map +0 -1
- package/resources.js +0 -5
- package/resources.js.map +0 -1
- package/resources.mjs +0 -2
- package/resources.mjs.map +0 -1
- package/src/api-promise.ts +0 -2
- package/src/core/README.md +0 -3
- package/src/core/api-promise.ts +0 -90
- package/src/core/resource.ts +0 -9
- package/src/core/streaming.ts +0 -319
- package/src/core/uploads.ts +0 -2
- package/src/error.ts +0 -2
- package/src/internal/README.md +0 -3
- package/src/internal/builtin-types.ts +0 -91
- package/src/internal/decoders/line.ts +0 -135
- package/src/internal/detect-platform.ts +0 -194
- package/src/internal/errors.ts +0 -31
- package/src/internal/headers.ts +0 -95
- package/src/internal/parse.ts +0 -68
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/internal/request-options.ts +0 -91
- package/src/internal/shim-types.ts +0 -24
- package/src/internal/shims.ts +0 -105
- package/src/internal/to-file.ts +0 -154
- package/src/internal/types.ts +0 -91
- package/src/internal/uploads.ts +0 -187
- package/src/internal/utils/base64.ts +0 -38
- package/src/internal/utils/bytes.ts +0 -32
- package/src/internal/utils/env.ts +0 -16
- package/src/internal/utils/log.ts +0 -126
- package/src/internal/utils/path.ts +0 -88
- package/src/internal/utils/query.ts +0 -5
- package/src/internal/utils/sleep.ts +0 -1
- package/src/internal/utils/uuid.ts +0 -15
- package/src/internal/utils/values.ts +0 -103
- package/src/internal/utils.ts +0 -7
- package/src/lib/.keep +0 -3
- package/src/pagination.ts +0 -2
- package/src/resource.ts +0 -2
- package/src/resources/account.ts +0 -158
- package/src/resources/agents/agents.ts +0 -616
- package/src/resources/agents/feedback.ts +0 -96
- package/src/resources/agents/index.ts +0 -75
- package/src/resources/agents/schedules.ts +0 -541
- package/src/resources/agents/variations.ts +0 -981
- package/src/resources/agents/webhook-deliveries.ts +0 -176
- package/src/resources/global-api-key.ts +0 -44
- package/src/resources/index.ts +0 -307
- package/src/resources/memory-layers/entries.ts +0 -373
- package/src/resources/memory-layers/index.ts +0 -29
- package/src/resources/memory-layers/memory-layers.ts +0 -314
- package/src/resources/objectives/feedback.ts +0 -171
- package/src/resources/objectives/index.ts +0 -115
- package/src/resources/objectives/objectives.ts +0 -1787
- package/src/resources/objectives/tasks.ts +0 -129
- package/src/resources/objectives/tool-calls.ts +0 -572
- package/src/resources/objectives/tools.ts +0 -74
- package/src/resources/search.ts +0 -52
- package/src/resources/shared.ts +0 -234
- package/src/resources/tenants/index.ts +0 -13
- package/src/resources/tenants/subjects.ts +0 -61
- package/src/resources/tenants/tenants.ts +0 -218
- package/src/resources/tool-sets/index.ts +0 -87
- package/src/resources/tool-sets/secrets.ts +0 -223
- package/src/resources/tool-sets/tool-sets.ts +0 -934
- package/src/resources/tool-sets/tools.ts +0 -456
- package/src/resources/webhooks.ts +0 -122
- package/src/resources/workspace-admin/index.ts +0 -12
- package/src/resources/workspace-admin/members.ts +0 -131
- package/src/resources/workspace-admin/profiles.ts +0 -58
- package/src/resources/workspace-admin/workspace-admin.ts +0 -302
- package/src/resources.ts +0 -1
- package/src/streaming.ts +0 -2
- package/src/tsconfig.json +0 -11
- package/src/uploads.ts +0 -2
- package/src/version.ts +0 -1
- package/streaming.d.mts +0 -3
- package/streaming.d.mts.map +0 -1
- package/streaming.d.ts +0 -3
- package/streaming.d.ts.map +0 -1
- package/streaming.js +0 -6
- package/streaming.js.map +0 -1
- package/streaming.mjs +0 -3
- package/streaming.mjs.map +0 -1
- package/uploads.d.mts +0 -3
- package/uploads.d.mts.map +0 -1
- package/uploads.d.ts +0 -3
- package/uploads.d.ts.map +0 -1
- package/uploads.js +0 -6
- package/uploads.js.map +0 -1
- package/uploads.mjs +0 -3
- package/uploads.mjs.map +0 -1
- package/version.d.mts +0 -2
- package/version.d.mts.map +0 -1
- package/version.d.ts +0 -2
- package/version.d.ts.map +0 -1
- package/version.js +0 -5
- package/version.js.map +0 -1
- package/version.mjs +0 -2
- package/version.mjs.map +0 -1
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as AccountAPI from "../account.mjs";
|
|
3
|
-
import * as Shared from "../shared.mjs";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* Manage memory layers and their entries. Layers are named containers that can
|
|
9
|
-
* be composed into an objective's memory cascade; entries are the keyed values
|
|
10
|
-
* within a layer. System-managed layers (e.g., episodic layers created by the
|
|
11
|
-
* runtime) cannot be mutated through this API.
|
|
12
|
-
*/
|
|
13
|
-
export declare class Entries extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new entry in a memory layer. Returns the detail view, including the
|
|
16
|
-
* resolved content body.
|
|
17
|
-
*/
|
|
18
|
-
create(memoryLayerID: string, params: EntryCreateParams, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
21
|
-
* including the content body.
|
|
22
|
-
*/
|
|
23
|
-
retrieve(memoryLayerID: string, id: string, params?: EntryRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
24
|
-
/**
|
|
25
|
-
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
26
|
-
* resolved content body.
|
|
27
|
-
*/
|
|
28
|
-
update(memoryLayerID: string, id: string, params: EntryUpdateParams, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
29
|
-
/**
|
|
30
|
-
* Lists all entries in a memory layer
|
|
31
|
-
*/
|
|
32
|
-
list(memoryLayerID: string, params?: EntryListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryEntriesCursorPagination, MemoryEntry>;
|
|
33
|
-
/**
|
|
34
|
-
* Deletes a memory entry from a memory layer
|
|
35
|
-
*/
|
|
36
|
-
delete(memoryLayerID: string, id: string, params?: EntryDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
37
|
-
}
|
|
38
|
-
export type MemoryEntriesCursorPagination = CursorPagination<MemoryEntry>;
|
|
39
|
-
/**
|
|
40
|
-
* MemoryEntry is a single keyed value within a MemoryLayer. Entries are addressed
|
|
41
|
-
* by their key, which follows the S3 object key safe-character convention (see
|
|
42
|
-
* MemoryEntrySpec.key for the full rule). Keys are unique within a single layer;
|
|
43
|
-
* the same key may appear in multiple layers, in which case the cascade walk
|
|
44
|
-
* determines which one wins for a given objective (most specific layer first).
|
|
45
|
-
*
|
|
46
|
-
* MemoryEntry is the summary shape, returned by ListMemoryEntries. It does not
|
|
47
|
-
* carry the entry body — callers that need the body must fetch the entry
|
|
48
|
-
* individually via GetMemoryEntry, which returns a MemoryEntryDetail.
|
|
49
|
-
*/
|
|
50
|
-
export interface MemoryEntry {
|
|
51
|
-
/**
|
|
52
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
53
|
-
*/
|
|
54
|
-
metadata: Shared.ResourceMetadata;
|
|
55
|
-
/**
|
|
56
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
57
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
58
|
-
* and detail (MemoryEntryDetail) views.
|
|
59
|
-
*/
|
|
60
|
-
spec: MemoryEntrySpec;
|
|
61
|
-
info?: MemoryEntryInfo;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* MemoryEntryCreateSpec is the input shape for CreateMemoryEntry. It accepts
|
|
65
|
-
* either inline content or a reference to a completed Upload; exactly one of the
|
|
66
|
-
* two must be set.
|
|
67
|
-
*/
|
|
68
|
-
export type MemoryEntryCreateSpec = MemoryEntryCreateSpecContent | MemoryEntryCreateSpecUploadID;
|
|
69
|
-
export interface MemoryEntryCreateSpecContent {
|
|
70
|
-
/**
|
|
71
|
-
* Inline content, written directly into the entry.
|
|
72
|
-
*/
|
|
73
|
-
content: string;
|
|
74
|
-
type: 'content';
|
|
75
|
-
description?: string;
|
|
76
|
-
/**
|
|
77
|
-
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
78
|
-
*/
|
|
79
|
-
key?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface MemoryEntryCreateSpecUploadID {
|
|
82
|
-
type: 'uploadId';
|
|
83
|
-
/**
|
|
84
|
-
* ID of a COMPLETE Upload. The server reads the object from storage, copies its
|
|
85
|
-
* bytes into the entry, and marks the upload consumed.
|
|
86
|
-
*/
|
|
87
|
-
uploadId: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
/**
|
|
90
|
-
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
91
|
-
*/
|
|
92
|
-
key?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* MemoryEntryDetail is the full representation of an entry, including the resolved
|
|
96
|
-
* content body. Returned by GetMemoryEntry, CreateMemoryEntry, and
|
|
97
|
-
* UpdateMemoryEntry.
|
|
98
|
-
*/
|
|
99
|
-
export interface MemoryEntryDetail {
|
|
100
|
-
/**
|
|
101
|
-
* The resolved body of the entry. For entries created or updated via an upload_id,
|
|
102
|
-
* this is the ingested content, not the original upload handle. May be empty; an
|
|
103
|
-
* entry with only a key and description is valid (e.g., a stub skill being
|
|
104
|
-
* drafted, or an entry where the frontmatter alone is the payload).
|
|
105
|
-
*/
|
|
106
|
-
content: string;
|
|
107
|
-
/**
|
|
108
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
109
|
-
*/
|
|
110
|
-
metadata: Shared.ResourceMetadata;
|
|
111
|
-
/**
|
|
112
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
113
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
114
|
-
* and detail (MemoryEntryDetail) views.
|
|
115
|
-
*/
|
|
116
|
-
spec: MemoryEntrySpec;
|
|
117
|
-
info?: MemoryEntryInfo;
|
|
118
|
-
}
|
|
119
|
-
export interface MemoryEntryInfo {
|
|
120
|
-
/**
|
|
121
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
122
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
123
|
-
* workspaces.
|
|
124
|
-
*/
|
|
125
|
-
createdBy?: AccountAPI.Profile;
|
|
126
|
-
/**
|
|
127
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
128
|
-
*/
|
|
129
|
-
memoryLayer?: Shared.ResourceMetadata;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
133
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
134
|
-
* and detail (MemoryEntryDetail) views.
|
|
135
|
-
*/
|
|
136
|
-
export interface MemoryEntrySpec {
|
|
137
|
-
/**
|
|
138
|
-
* The lookup key for this entry within its layer. Must conform to the S3 object
|
|
139
|
-
* key safe-characters spec: ASCII alphanumerics and the special characters !, -,
|
|
140
|
-
* \_, ., \*, ', (, ), and /. Forward slashes may be used to suggest hierarchy
|
|
141
|
-
* (e.g., "skills/postmortem/write"), but lookups are flat — the key is a single
|
|
142
|
-
* opaque string, not a path.
|
|
143
|
-
*
|
|
144
|
-
* Additional rules enforced by the service:
|
|
145
|
-
*
|
|
146
|
-
* - May not begin or end with /
|
|
147
|
-
* - May not contain consecutive slashes (//)
|
|
148
|
-
* - May not begin with reserved prefixes (cadenya/, system/)
|
|
149
|
-
* - Case-sensitive
|
|
150
|
-
* - Unique within the parent layer
|
|
151
|
-
*
|
|
152
|
-
* For skills entries, this key is what the model passes to get_memory to load the
|
|
153
|
-
* entry's content.
|
|
154
|
-
*/
|
|
155
|
-
key: string;
|
|
156
|
-
/**
|
|
157
|
-
* One-line "when to use this" hint shown in the frontmatter manifest for skills
|
|
158
|
-
* entries. The model uses this to decide whether to load the body, so it should be
|
|
159
|
-
* written for the model as the audience. Ignored for layer types that do not
|
|
160
|
-
* advertise frontmatter.
|
|
161
|
-
*/
|
|
162
|
-
description?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* MemoryEntryUpdateSpec is the input shape for UpdateMemoryEntry. Fields present
|
|
166
|
-
* in the request's update_mask are applied; unset fields are left alone. The
|
|
167
|
-
* source oneof is optional for updates — omit it to leave the body untouched, or
|
|
168
|
-
* set exactly one branch to replace it.
|
|
169
|
-
*/
|
|
170
|
-
export interface MemoryEntryUpdateSpec {
|
|
171
|
-
content?: string;
|
|
172
|
-
description?: string;
|
|
173
|
-
key?: string;
|
|
174
|
-
uploadId?: string;
|
|
175
|
-
}
|
|
176
|
-
export interface EntryCreateParams {
|
|
177
|
-
/**
|
|
178
|
-
* Path param
|
|
179
|
-
*/
|
|
180
|
-
workspaceId?: string;
|
|
181
|
-
/**
|
|
182
|
-
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
183
|
-
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
184
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
185
|
-
* server.
|
|
186
|
-
*/
|
|
187
|
-
metadata: Shared.CreateResourceMetadata;
|
|
188
|
-
/**
|
|
189
|
-
* Body param: MemoryEntryCreateSpec is the input shape for CreateMemoryEntry. It
|
|
190
|
-
* accepts either inline content or a reference to a completed Upload; exactly one
|
|
191
|
-
* of the two must be set.
|
|
192
|
-
*/
|
|
193
|
-
spec: MemoryEntryCreateSpec;
|
|
194
|
-
}
|
|
195
|
-
export interface EntryRetrieveParams {
|
|
196
|
-
workspaceId?: string;
|
|
197
|
-
}
|
|
198
|
-
export interface EntryUpdateParams {
|
|
199
|
-
/**
|
|
200
|
-
* Path param
|
|
201
|
-
*/
|
|
202
|
-
workspaceId?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
205
|
-
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
206
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
207
|
-
* server.
|
|
208
|
-
*/
|
|
209
|
-
metadata?: Shared.UpdateResourceMetadata;
|
|
210
|
-
/**
|
|
211
|
-
* Body param: MemoryEntryUpdateSpec is the input shape for UpdateMemoryEntry.
|
|
212
|
-
* Fields present in the request's update_mask are applied; unset fields are left
|
|
213
|
-
* alone. The source oneof is optional for updates — omit it to leave the body
|
|
214
|
-
* untouched, or set exactly one branch to replace it.
|
|
215
|
-
*/
|
|
216
|
-
spec?: MemoryEntryUpdateSpec;
|
|
217
|
-
/**
|
|
218
|
-
* Body param
|
|
219
|
-
*/
|
|
220
|
-
updateMask?: string;
|
|
221
|
-
}
|
|
222
|
-
export interface EntryListParams extends CursorPaginationParams {
|
|
223
|
-
/**
|
|
224
|
-
* Path param
|
|
225
|
-
*/
|
|
226
|
-
workspaceId?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
229
|
-
*/
|
|
230
|
-
includeInfo?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
233
|
-
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
234
|
-
* semantics).
|
|
235
|
-
*/
|
|
236
|
-
labels?: string;
|
|
237
|
-
/**
|
|
238
|
-
* Query param: Filter by key prefix (e.g., "skills/postmortem/" to list all
|
|
239
|
-
* entries under that hierarchy). Matches against the entry's key, not its name.
|
|
240
|
-
*/
|
|
241
|
-
prefix?: string;
|
|
242
|
-
/**
|
|
243
|
-
* Query param: Free-form search query
|
|
244
|
-
*/
|
|
245
|
-
query?: string;
|
|
246
|
-
/**
|
|
247
|
-
* Query param: Sort order for results (asc or desc by creation time)
|
|
248
|
-
*/
|
|
249
|
-
sortOrder?: string;
|
|
250
|
-
}
|
|
251
|
-
export interface EntryDeleteParams {
|
|
252
|
-
workspaceId?: string;
|
|
253
|
-
}
|
|
254
|
-
export declare namespace Entries {
|
|
255
|
-
export { type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent, type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
256
|
-
}
|
|
257
|
-
//# sourceMappingURL=entries.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAQhC;;;OAGG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,EAAE,EAAE,MAAM,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,MAAM,CAAC,sBAAsB,CAAC;IAEzC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;IAC7D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as AccountAPI from "../account.js";
|
|
3
|
-
import * as Shared from "../shared.js";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
-
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
-
/**
|
|
8
|
-
* Manage memory layers and their entries. Layers are named containers that can
|
|
9
|
-
* be composed into an objective's memory cascade; entries are the keyed values
|
|
10
|
-
* within a layer. System-managed layers (e.g., episodic layers created by the
|
|
11
|
-
* runtime) cannot be mutated through this API.
|
|
12
|
-
*/
|
|
13
|
-
export declare class Entries extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Creates a new entry in a memory layer. Returns the detail view, including the
|
|
16
|
-
* resolved content body.
|
|
17
|
-
*/
|
|
18
|
-
create(memoryLayerID: string, params: EntryCreateParams, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
21
|
-
* including the content body.
|
|
22
|
-
*/
|
|
23
|
-
retrieve(memoryLayerID: string, id: string, params?: EntryRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
24
|
-
/**
|
|
25
|
-
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
26
|
-
* resolved content body.
|
|
27
|
-
*/
|
|
28
|
-
update(memoryLayerID: string, id: string, params: EntryUpdateParams, options?: RequestOptions): APIPromise<MemoryEntryDetail>;
|
|
29
|
-
/**
|
|
30
|
-
* Lists all entries in a memory layer
|
|
31
|
-
*/
|
|
32
|
-
list(memoryLayerID: string, params?: EntryListParams | null | undefined, options?: RequestOptions): PagePromise<MemoryEntriesCursorPagination, MemoryEntry>;
|
|
33
|
-
/**
|
|
34
|
-
* Deletes a memory entry from a memory layer
|
|
35
|
-
*/
|
|
36
|
-
delete(memoryLayerID: string, id: string, params?: EntryDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
37
|
-
}
|
|
38
|
-
export type MemoryEntriesCursorPagination = CursorPagination<MemoryEntry>;
|
|
39
|
-
/**
|
|
40
|
-
* MemoryEntry is a single keyed value within a MemoryLayer. Entries are addressed
|
|
41
|
-
* by their key, which follows the S3 object key safe-character convention (see
|
|
42
|
-
* MemoryEntrySpec.key for the full rule). Keys are unique within a single layer;
|
|
43
|
-
* the same key may appear in multiple layers, in which case the cascade walk
|
|
44
|
-
* determines which one wins for a given objective (most specific layer first).
|
|
45
|
-
*
|
|
46
|
-
* MemoryEntry is the summary shape, returned by ListMemoryEntries. It does not
|
|
47
|
-
* carry the entry body — callers that need the body must fetch the entry
|
|
48
|
-
* individually via GetMemoryEntry, which returns a MemoryEntryDetail.
|
|
49
|
-
*/
|
|
50
|
-
export interface MemoryEntry {
|
|
51
|
-
/**
|
|
52
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
53
|
-
*/
|
|
54
|
-
metadata: Shared.ResourceMetadata;
|
|
55
|
-
/**
|
|
56
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
57
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
58
|
-
* and detail (MemoryEntryDetail) views.
|
|
59
|
-
*/
|
|
60
|
-
spec: MemoryEntrySpec;
|
|
61
|
-
info?: MemoryEntryInfo;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* MemoryEntryCreateSpec is the input shape for CreateMemoryEntry. It accepts
|
|
65
|
-
* either inline content or a reference to a completed Upload; exactly one of the
|
|
66
|
-
* two must be set.
|
|
67
|
-
*/
|
|
68
|
-
export type MemoryEntryCreateSpec = MemoryEntryCreateSpecContent | MemoryEntryCreateSpecUploadID;
|
|
69
|
-
export interface MemoryEntryCreateSpecContent {
|
|
70
|
-
/**
|
|
71
|
-
* Inline content, written directly into the entry.
|
|
72
|
-
*/
|
|
73
|
-
content: string;
|
|
74
|
-
type: 'content';
|
|
75
|
-
description?: string;
|
|
76
|
-
/**
|
|
77
|
-
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
78
|
-
*/
|
|
79
|
-
key?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface MemoryEntryCreateSpecUploadID {
|
|
82
|
-
type: 'uploadId';
|
|
83
|
-
/**
|
|
84
|
-
* ID of a COMPLETE Upload. The server reads the object from storage, copies its
|
|
85
|
-
* bytes into the entry, and marks the upload consumed.
|
|
86
|
-
*/
|
|
87
|
-
uploadId: string;
|
|
88
|
-
description?: string;
|
|
89
|
-
/**
|
|
90
|
-
* See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
|
|
91
|
-
*/
|
|
92
|
-
key?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* MemoryEntryDetail is the full representation of an entry, including the resolved
|
|
96
|
-
* content body. Returned by GetMemoryEntry, CreateMemoryEntry, and
|
|
97
|
-
* UpdateMemoryEntry.
|
|
98
|
-
*/
|
|
99
|
-
export interface MemoryEntryDetail {
|
|
100
|
-
/**
|
|
101
|
-
* The resolved body of the entry. For entries created or updated via an upload_id,
|
|
102
|
-
* this is the ingested content, not the original upload handle. May be empty; an
|
|
103
|
-
* entry with only a key and description is valid (e.g., a stub skill being
|
|
104
|
-
* drafted, or an entry where the frontmatter alone is the payload).
|
|
105
|
-
*/
|
|
106
|
-
content: string;
|
|
107
|
-
/**
|
|
108
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
109
|
-
*/
|
|
110
|
-
metadata: Shared.ResourceMetadata;
|
|
111
|
-
/**
|
|
112
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
113
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
114
|
-
* and detail (MemoryEntryDetail) views.
|
|
115
|
-
*/
|
|
116
|
-
spec: MemoryEntrySpec;
|
|
117
|
-
info?: MemoryEntryInfo;
|
|
118
|
-
}
|
|
119
|
-
export interface MemoryEntryInfo {
|
|
120
|
-
/**
|
|
121
|
-
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
122
|
-
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
123
|
-
* workspaces.
|
|
124
|
-
*/
|
|
125
|
-
createdBy?: AccountAPI.Profile;
|
|
126
|
-
/**
|
|
127
|
-
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
128
|
-
*/
|
|
129
|
-
memoryLayer?: Shared.ResourceMetadata;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* MemoryEntrySpec is the metadata portion of an entry — the fields that identify
|
|
133
|
-
* and describe it, without the body. It appears on both the summary (MemoryEntry)
|
|
134
|
-
* and detail (MemoryEntryDetail) views.
|
|
135
|
-
*/
|
|
136
|
-
export interface MemoryEntrySpec {
|
|
137
|
-
/**
|
|
138
|
-
* The lookup key for this entry within its layer. Must conform to the S3 object
|
|
139
|
-
* key safe-characters spec: ASCII alphanumerics and the special characters !, -,
|
|
140
|
-
* \_, ., \*, ', (, ), and /. Forward slashes may be used to suggest hierarchy
|
|
141
|
-
* (e.g., "skills/postmortem/write"), but lookups are flat — the key is a single
|
|
142
|
-
* opaque string, not a path.
|
|
143
|
-
*
|
|
144
|
-
* Additional rules enforced by the service:
|
|
145
|
-
*
|
|
146
|
-
* - May not begin or end with /
|
|
147
|
-
* - May not contain consecutive slashes (//)
|
|
148
|
-
* - May not begin with reserved prefixes (cadenya/, system/)
|
|
149
|
-
* - Case-sensitive
|
|
150
|
-
* - Unique within the parent layer
|
|
151
|
-
*
|
|
152
|
-
* For skills entries, this key is what the model passes to get_memory to load the
|
|
153
|
-
* entry's content.
|
|
154
|
-
*/
|
|
155
|
-
key: string;
|
|
156
|
-
/**
|
|
157
|
-
* One-line "when to use this" hint shown in the frontmatter manifest for skills
|
|
158
|
-
* entries. The model uses this to decide whether to load the body, so it should be
|
|
159
|
-
* written for the model as the audience. Ignored for layer types that do not
|
|
160
|
-
* advertise frontmatter.
|
|
161
|
-
*/
|
|
162
|
-
description?: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* MemoryEntryUpdateSpec is the input shape for UpdateMemoryEntry. Fields present
|
|
166
|
-
* in the request's update_mask are applied; unset fields are left alone. The
|
|
167
|
-
* source oneof is optional for updates — omit it to leave the body untouched, or
|
|
168
|
-
* set exactly one branch to replace it.
|
|
169
|
-
*/
|
|
170
|
-
export interface MemoryEntryUpdateSpec {
|
|
171
|
-
content?: string;
|
|
172
|
-
description?: string;
|
|
173
|
-
key?: string;
|
|
174
|
-
uploadId?: string;
|
|
175
|
-
}
|
|
176
|
-
export interface EntryCreateParams {
|
|
177
|
-
/**
|
|
178
|
-
* Path param
|
|
179
|
-
*/
|
|
180
|
-
workspaceId?: string;
|
|
181
|
-
/**
|
|
182
|
-
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
183
|
-
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
184
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
185
|
-
* server.
|
|
186
|
-
*/
|
|
187
|
-
metadata: Shared.CreateResourceMetadata;
|
|
188
|
-
/**
|
|
189
|
-
* Body param: MemoryEntryCreateSpec is the input shape for CreateMemoryEntry. It
|
|
190
|
-
* accepts either inline content or a reference to a completed Upload; exactly one
|
|
191
|
-
* of the two must be set.
|
|
192
|
-
*/
|
|
193
|
-
spec: MemoryEntryCreateSpec;
|
|
194
|
-
}
|
|
195
|
-
export interface EntryRetrieveParams {
|
|
196
|
-
workspaceId?: string;
|
|
197
|
-
}
|
|
198
|
-
export interface EntryUpdateParams {
|
|
199
|
-
/**
|
|
200
|
-
* Path param
|
|
201
|
-
*/
|
|
202
|
-
workspaceId?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
205
|
-
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
206
|
-
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
207
|
-
* server.
|
|
208
|
-
*/
|
|
209
|
-
metadata?: Shared.UpdateResourceMetadata;
|
|
210
|
-
/**
|
|
211
|
-
* Body param: MemoryEntryUpdateSpec is the input shape for UpdateMemoryEntry.
|
|
212
|
-
* Fields present in the request's update_mask are applied; unset fields are left
|
|
213
|
-
* alone. The source oneof is optional for updates — omit it to leave the body
|
|
214
|
-
* untouched, or set exactly one branch to replace it.
|
|
215
|
-
*/
|
|
216
|
-
spec?: MemoryEntryUpdateSpec;
|
|
217
|
-
/**
|
|
218
|
-
* Body param
|
|
219
|
-
*/
|
|
220
|
-
updateMask?: string;
|
|
221
|
-
}
|
|
222
|
-
export interface EntryListParams extends CursorPaginationParams {
|
|
223
|
-
/**
|
|
224
|
-
* Path param
|
|
225
|
-
*/
|
|
226
|
-
workspaceId?: string;
|
|
227
|
-
/**
|
|
228
|
-
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
229
|
-
*/
|
|
230
|
-
includeInfo?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* Query param: Filters by metadata labels. Comma-separated key=value pairs, e.g.
|
|
233
|
-
* "env=prod,team=ai". A resource matches only if every pair matches exactly (AND
|
|
234
|
-
* semantics).
|
|
235
|
-
*/
|
|
236
|
-
labels?: string;
|
|
237
|
-
/**
|
|
238
|
-
* Query param: Filter by key prefix (e.g., "skills/postmortem/" to list all
|
|
239
|
-
* entries under that hierarchy). Matches against the entry's key, not its name.
|
|
240
|
-
*/
|
|
241
|
-
prefix?: string;
|
|
242
|
-
/**
|
|
243
|
-
* Query param: Free-form search query
|
|
244
|
-
*/
|
|
245
|
-
query?: string;
|
|
246
|
-
/**
|
|
247
|
-
* Query param: Sort order for results (asc or desc by creation time)
|
|
248
|
-
*/
|
|
249
|
-
sortOrder?: string;
|
|
250
|
-
}
|
|
251
|
-
export interface EntryDeleteParams {
|
|
252
|
-
workspaceId?: string;
|
|
253
|
-
}
|
|
254
|
-
export declare namespace Entries {
|
|
255
|
-
export { type MemoryEntry as MemoryEntry, type MemoryEntryCreateSpec as MemoryEntryCreateSpec, type MemoryEntryCreateSpecContent as MemoryEntryCreateSpecContent, type MemoryEntryCreateSpecUploadID as MemoryEntryCreateSpecUploadID, type MemoryEntryDetail as MemoryEntryDetail, type MemoryEntryInfo as MemoryEntryInfo, type MemoryEntrySpec as MemoryEntrySpec, type MemoryEntryUpdateSpec as MemoryEntryUpdateSpec, type MemoryEntriesCursorPagination as MemoryEntriesCursorPagination, type EntryCreateParams as EntryCreateParams, type EntryRetrieveParams as EntryRetrieveParams, type EntryUpdateParams as EntryUpdateParams, type EntryListParams as EntryListParams, type EntryDeleteParams as EntryDeleteParams, };
|
|
256
|
-
}
|
|
257
|
-
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../src/resources/memory-layers/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;GAKG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAQhC;;;OAGG;IACH,QAAQ,CACN,aAAa,EAAE,MAAM,EACrB,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAQhC;;;OAGG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC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AErB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Entries = void 0;
|
|
4
|
-
const resource_1 = require("../../core/resource.js");
|
|
5
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
/**
|
|
9
|
-
* Manage memory layers and their entries. Layers are named containers that can
|
|
10
|
-
* be composed into an objective's memory cascade; entries are the keyed values
|
|
11
|
-
* within a layer. System-managed layers (e.g., episodic layers created by the
|
|
12
|
-
* runtime) cannot be mutated through this API.
|
|
13
|
-
*/
|
|
14
|
-
class Entries extends resource_1.APIResource {
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new entry in a memory layer. Returns the detail view, including the
|
|
17
|
-
* resolved content body.
|
|
18
|
-
*/
|
|
19
|
-
create(memoryLayerID, params, options) {
|
|
20
|
-
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
21
|
-
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`, {
|
|
22
|
-
body,
|
|
23
|
-
...options,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
28
|
-
* including the content body.
|
|
29
|
-
*/
|
|
30
|
-
retrieve(memoryLayerID, id, params = {}, options) {
|
|
31
|
-
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
32
|
-
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
36
|
-
* resolved content body.
|
|
37
|
-
*/
|
|
38
|
-
update(memoryLayerID, id, params, options) {
|
|
39
|
-
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
40
|
-
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, { body, ...options });
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Lists all entries in a memory layer
|
|
44
|
-
*/
|
|
45
|
-
list(memoryLayerID, params = {}, options) {
|
|
46
|
-
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
47
|
-
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`, (pagination_1.CursorPagination), { query, ...options });
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Deletes a memory entry from a memory layer
|
|
51
|
-
*/
|
|
52
|
-
delete(memoryLayerID, id, params = {}, options) {
|
|
53
|
-
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
54
|
-
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, { ...options, headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]) });
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.Entries = Entries;
|
|
58
|
-
//# sourceMappingURL=entries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.js","sourceRoot":"","sources":["../../src/resources/memory-layers/entries.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAIlD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;GAKG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,kBAAkB,aAAa,UAAU,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,aAAqB,EACrB,EAAU,EACV,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,kBAAkB,WAAW,kBAAkB,aAAa,YAAY,EAAE,EA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F;AAlFD,0BAkFC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { CursorPagination } from "../../core/pagination.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
/**
|
|
6
|
-
* Manage memory layers and their entries. Layers are named containers that can
|
|
7
|
-
* be composed into an objective's memory cascade; entries are the keyed values
|
|
8
|
-
* within a layer. System-managed layers (e.g., episodic layers created by the
|
|
9
|
-
* runtime) cannot be mutated through this API.
|
|
10
|
-
*/
|
|
11
|
-
export class Entries extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Creates a new entry in a memory layer. Returns the detail view, including the
|
|
14
|
-
* resolved content body.
|
|
15
|
-
*/
|
|
16
|
-
create(memoryLayerID, params, options) {
|
|
17
|
-
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
18
|
-
return this._client.post(path `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`, {
|
|
19
|
-
body,
|
|
20
|
-
...options,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves a memory entry by ID from a memory layer. Returns the detail view,
|
|
25
|
-
* including the content body.
|
|
26
|
-
*/
|
|
27
|
-
retrieve(memoryLayerID, id, params = {}, options) {
|
|
28
|
-
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
29
|
-
return this._client.get(path `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, options);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Updates a memory entry in a memory layer. Returns the detail view, including the
|
|
33
|
-
* resolved content body.
|
|
34
|
-
*/
|
|
35
|
-
update(memoryLayerID, id, params, options) {
|
|
36
|
-
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
37
|
-
return this._client.patch(path `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Lists all entries in a memory layer
|
|
41
|
-
*/
|
|
42
|
-
list(memoryLayerID, params = {}, options) {
|
|
43
|
-
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
44
|
-
return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries`, (CursorPagination), { query, ...options });
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Deletes a memory entry from a memory layer
|
|
48
|
-
*/
|
|
49
|
-
delete(memoryLayerID, id, params = {}, options) {
|
|
50
|
-
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
51
|
-
return this._client.delete(path `/v1/workspaces/${workspaceId}/memory_layers/${memoryLayerID}/entries/${id}`, { ...options, headers: buildHeaders([{ Accept: '*/*' }, options?.headers]) });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=entries.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.mjs","sourceRoot":"","sources":["../../src/resources/memory-layers/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;;GAKG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CACJ,aAAqB,EACrB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,WAAW,kBAAkB,aAAa,UAAU,EAAE;YACnG,IAAI;YACJ,GAAG,OA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,IAAI,EAAE,CAAC;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,kBAAkB,WAAW,kBAAkB,aAAa,YAAY,EAAE,EAAE,EAChF,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAC7E,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { Entries, type MemoryEntry, type MemoryEntryCreateSpec, type MemoryEntryCreateSpecContent, type MemoryEntryCreateSpecUploadID, type MemoryEntryDetail, type MemoryEntryInfo, type MemoryEntrySpec, type MemoryEntryUpdateSpec, type EntryCreateParams, type EntryRetrieveParams, type EntryUpdateParams, type EntryListParams, type EntryDeleteParams, type MemoryEntriesCursorPagination, } from "./entries.mjs";
|
|
2
|
-
export { MemoryLayers, type MemoryLayer, type MemoryLayerInfo, type MemoryLayerSpec, type MemoryLayerCreateParams, type MemoryLayerRetrieveParams, type MemoryLayerUpdateParams, type MemoryLayerListParams, type MemoryLayerDeleteParams, type MemoryLayersCursorPagination, } from "./memory-layers.mjs";
|
|
3
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/memory-layers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,sBAAkB;AACnB,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC,4BAAwB"}
|