@superdoc-dev/sdk 1.1.0-next.16 → 1.1.0-next.17
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 +4 -0
- package/dist/generated/client.d.ts +33 -3
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/contract.cjs +199 -5
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +199 -5
- package/dist/index.d.ts +6 -9
- package/dist/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
|
@@ -144143,7 +144143,148 @@ const CONTRACT = {
|
|
|
144143
144143
|
"name": "collaboration",
|
|
144144
144144
|
"kind": "jsonFlag",
|
|
144145
144145
|
"type": "json",
|
|
144146
|
-
"flag": "collaboration-json"
|
|
144146
|
+
"flag": "collaboration-json",
|
|
144147
|
+
"schema": {
|
|
144148
|
+
"oneOf": [
|
|
144149
|
+
{
|
|
144150
|
+
"type": "object",
|
|
144151
|
+
"description": "WebSocket-based collaboration (y-websocket or Hocuspocus).",
|
|
144152
|
+
"properties": {
|
|
144153
|
+
"providerType": {
|
|
144154
|
+
"type": "string",
|
|
144155
|
+
"enum": [
|
|
144156
|
+
"y-websocket",
|
|
144157
|
+
"hocuspocus"
|
|
144158
|
+
],
|
|
144159
|
+
"description": "Collaboration provider."
|
|
144160
|
+
},
|
|
144161
|
+
"url": {
|
|
144162
|
+
"type": "string",
|
|
144163
|
+
"description": "WebSocket server URL."
|
|
144164
|
+
},
|
|
144165
|
+
"documentId": {
|
|
144166
|
+
"type": "string",
|
|
144167
|
+
"description": "Room/document identifier. Defaults to session ID if omitted."
|
|
144168
|
+
},
|
|
144169
|
+
"tokenEnv": {
|
|
144170
|
+
"type": "string",
|
|
144171
|
+
"description": "Environment variable name containing the auth token."
|
|
144172
|
+
},
|
|
144173
|
+
"syncTimeoutMs": {
|
|
144174
|
+
"type": "number",
|
|
144175
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144176
|
+
},
|
|
144177
|
+
"onMissing": {
|
|
144178
|
+
"type": "string",
|
|
144179
|
+
"enum": [
|
|
144180
|
+
"seedFromDoc",
|
|
144181
|
+
"blank",
|
|
144182
|
+
"error"
|
|
144183
|
+
],
|
|
144184
|
+
"description": "What to do when the remote room is empty."
|
|
144185
|
+
},
|
|
144186
|
+
"bootstrapSettlingMs": {
|
|
144187
|
+
"type": "number",
|
|
144188
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144189
|
+
}
|
|
144190
|
+
},
|
|
144191
|
+
"required": [
|
|
144192
|
+
"providerType",
|
|
144193
|
+
"url"
|
|
144194
|
+
]
|
|
144195
|
+
},
|
|
144196
|
+
{
|
|
144197
|
+
"type": "object",
|
|
144198
|
+
"description": "Liveblocks collaboration with a public API key.",
|
|
144199
|
+
"properties": {
|
|
144200
|
+
"providerType": {
|
|
144201
|
+
"type": "string",
|
|
144202
|
+
"enum": [
|
|
144203
|
+
"liveblocks"
|
|
144204
|
+
],
|
|
144205
|
+
"description": "Collaboration provider."
|
|
144206
|
+
},
|
|
144207
|
+
"roomId": {
|
|
144208
|
+
"type": "string",
|
|
144209
|
+
"description": "Liveblocks room identifier."
|
|
144210
|
+
},
|
|
144211
|
+
"publicApiKey": {
|
|
144212
|
+
"type": "string",
|
|
144213
|
+
"description": "Liveblocks public API key (pk_...)."
|
|
144214
|
+
},
|
|
144215
|
+
"syncTimeoutMs": {
|
|
144216
|
+
"type": "number",
|
|
144217
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144218
|
+
},
|
|
144219
|
+
"onMissing": {
|
|
144220
|
+
"type": "string",
|
|
144221
|
+
"enum": [
|
|
144222
|
+
"seedFromDoc",
|
|
144223
|
+
"blank",
|
|
144224
|
+
"error"
|
|
144225
|
+
],
|
|
144226
|
+
"description": "What to do when the remote room is empty."
|
|
144227
|
+
},
|
|
144228
|
+
"bootstrapSettlingMs": {
|
|
144229
|
+
"type": "number",
|
|
144230
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144231
|
+
}
|
|
144232
|
+
},
|
|
144233
|
+
"required": [
|
|
144234
|
+
"providerType",
|
|
144235
|
+
"roomId",
|
|
144236
|
+
"publicApiKey"
|
|
144237
|
+
]
|
|
144238
|
+
},
|
|
144239
|
+
{
|
|
144240
|
+
"type": "object",
|
|
144241
|
+
"description": "Liveblocks collaboration with a custom auth endpoint.",
|
|
144242
|
+
"properties": {
|
|
144243
|
+
"providerType": {
|
|
144244
|
+
"type": "string",
|
|
144245
|
+
"enum": [
|
|
144246
|
+
"liveblocks"
|
|
144247
|
+
],
|
|
144248
|
+
"description": "Collaboration provider."
|
|
144249
|
+
},
|
|
144250
|
+
"roomId": {
|
|
144251
|
+
"type": "string",
|
|
144252
|
+
"description": "Liveblocks room identifier."
|
|
144253
|
+
},
|
|
144254
|
+
"authEndpoint": {
|
|
144255
|
+
"type": "string",
|
|
144256
|
+
"description": "Absolute URL of the auth endpoint."
|
|
144257
|
+
},
|
|
144258
|
+
"authHeadersEnv": {
|
|
144259
|
+
"type": "string",
|
|
144260
|
+
"description": "Env var name containing JSON headers for the auth endpoint."
|
|
144261
|
+
},
|
|
144262
|
+
"syncTimeoutMs": {
|
|
144263
|
+
"type": "number",
|
|
144264
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144265
|
+
},
|
|
144266
|
+
"onMissing": {
|
|
144267
|
+
"type": "string",
|
|
144268
|
+
"enum": [
|
|
144269
|
+
"seedFromDoc",
|
|
144270
|
+
"blank",
|
|
144271
|
+
"error"
|
|
144272
|
+
],
|
|
144273
|
+
"description": "What to do when the remote room is empty."
|
|
144274
|
+
},
|
|
144275
|
+
"bootstrapSettlingMs": {
|
|
144276
|
+
"type": "number",
|
|
144277
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144278
|
+
}
|
|
144279
|
+
},
|
|
144280
|
+
"required": [
|
|
144281
|
+
"providerType",
|
|
144282
|
+
"roomId",
|
|
144283
|
+
"authEndpoint"
|
|
144284
|
+
]
|
|
144285
|
+
}
|
|
144286
|
+
]
|
|
144287
|
+
}
|
|
144147
144288
|
},
|
|
144148
144289
|
{
|
|
144149
144290
|
"name": "collabDocumentId",
|
|
@@ -144233,14 +144374,28 @@ const CONTRACT = {
|
|
|
144233
144374
|
},
|
|
144234
144375
|
"collaboration": {
|
|
144235
144376
|
"type": "object",
|
|
144377
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144236
144378
|
"properties": {
|
|
144379
|
+
"providerType": {
|
|
144380
|
+
"type": "string",
|
|
144381
|
+
"enum": [
|
|
144382
|
+
"y-websocket",
|
|
144383
|
+
"hocuspocus",
|
|
144384
|
+
"liveblocks"
|
|
144385
|
+
]
|
|
144386
|
+
},
|
|
144237
144387
|
"documentId": {
|
|
144238
144388
|
"type": "string"
|
|
144239
144389
|
},
|
|
144240
144390
|
"url": {
|
|
144241
|
-
"type": "string"
|
|
144391
|
+
"type": "string",
|
|
144392
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144242
144393
|
}
|
|
144243
|
-
}
|
|
144394
|
+
},
|
|
144395
|
+
"required": [
|
|
144396
|
+
"providerType",
|
|
144397
|
+
"documentId"
|
|
144398
|
+
]
|
|
144244
144399
|
},
|
|
144245
144400
|
"bootstrap": {
|
|
144246
144401
|
"type": "object",
|
|
@@ -144524,14 +144679,28 @@ const CONTRACT = {
|
|
|
144524
144679
|
},
|
|
144525
144680
|
"collaboration": {
|
|
144526
144681
|
"type": "object",
|
|
144682
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144527
144683
|
"properties": {
|
|
144684
|
+
"providerType": {
|
|
144685
|
+
"type": "string",
|
|
144686
|
+
"enum": [
|
|
144687
|
+
"y-websocket",
|
|
144688
|
+
"hocuspocus",
|
|
144689
|
+
"liveblocks"
|
|
144690
|
+
]
|
|
144691
|
+
},
|
|
144528
144692
|
"documentId": {
|
|
144529
144693
|
"type": "string"
|
|
144530
144694
|
},
|
|
144531
144695
|
"url": {
|
|
144532
|
-
"type": "string"
|
|
144696
|
+
"type": "string",
|
|
144697
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144533
144698
|
}
|
|
144534
|
-
}
|
|
144699
|
+
},
|
|
144700
|
+
"required": [
|
|
144701
|
+
"providerType",
|
|
144702
|
+
"documentId"
|
|
144703
|
+
]
|
|
144535
144704
|
},
|
|
144536
144705
|
"openedAt": {
|
|
144537
144706
|
"type": "string"
|
|
@@ -144692,6 +144861,31 @@ const CONTRACT = {
|
|
|
144692
144861
|
},
|
|
144693
144862
|
"revision": {
|
|
144694
144863
|
"type": "number"
|
|
144864
|
+
},
|
|
144865
|
+
"collaboration": {
|
|
144866
|
+
"type": "object",
|
|
144867
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144868
|
+
"properties": {
|
|
144869
|
+
"providerType": {
|
|
144870
|
+
"type": "string",
|
|
144871
|
+
"enum": [
|
|
144872
|
+
"y-websocket",
|
|
144873
|
+
"hocuspocus",
|
|
144874
|
+
"liveblocks"
|
|
144875
|
+
]
|
|
144876
|
+
},
|
|
144877
|
+
"documentId": {
|
|
144878
|
+
"type": "string"
|
|
144879
|
+
},
|
|
144880
|
+
"url": {
|
|
144881
|
+
"type": "string",
|
|
144882
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144883
|
+
}
|
|
144884
|
+
},
|
|
144885
|
+
"required": [
|
|
144886
|
+
"providerType",
|
|
144887
|
+
"documentId"
|
|
144888
|
+
]
|
|
144695
144889
|
}
|
|
144696
144890
|
}
|
|
144697
144891
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAClC,IAAI,EAAE,QAAQ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EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACpD;AAED,eAAO,MAAM,QAAQ,EAAE,QA6t7ItB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -144160,7 +144160,148 @@ export const CONTRACT = {
|
|
|
144160
144160
|
"name": "collaboration",
|
|
144161
144161
|
"kind": "jsonFlag",
|
|
144162
144162
|
"type": "json",
|
|
144163
|
-
"flag": "collaboration-json"
|
|
144163
|
+
"flag": "collaboration-json",
|
|
144164
|
+
"schema": {
|
|
144165
|
+
"oneOf": [
|
|
144166
|
+
{
|
|
144167
|
+
"type": "object",
|
|
144168
|
+
"description": "WebSocket-based collaboration (y-websocket or Hocuspocus).",
|
|
144169
|
+
"properties": {
|
|
144170
|
+
"providerType": {
|
|
144171
|
+
"type": "string",
|
|
144172
|
+
"enum": [
|
|
144173
|
+
"y-websocket",
|
|
144174
|
+
"hocuspocus"
|
|
144175
|
+
],
|
|
144176
|
+
"description": "Collaboration provider."
|
|
144177
|
+
},
|
|
144178
|
+
"url": {
|
|
144179
|
+
"type": "string",
|
|
144180
|
+
"description": "WebSocket server URL."
|
|
144181
|
+
},
|
|
144182
|
+
"documentId": {
|
|
144183
|
+
"type": "string",
|
|
144184
|
+
"description": "Room/document identifier. Defaults to session ID if omitted."
|
|
144185
|
+
},
|
|
144186
|
+
"tokenEnv": {
|
|
144187
|
+
"type": "string",
|
|
144188
|
+
"description": "Environment variable name containing the auth token."
|
|
144189
|
+
},
|
|
144190
|
+
"syncTimeoutMs": {
|
|
144191
|
+
"type": "number",
|
|
144192
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144193
|
+
},
|
|
144194
|
+
"onMissing": {
|
|
144195
|
+
"type": "string",
|
|
144196
|
+
"enum": [
|
|
144197
|
+
"seedFromDoc",
|
|
144198
|
+
"blank",
|
|
144199
|
+
"error"
|
|
144200
|
+
],
|
|
144201
|
+
"description": "What to do when the remote room is empty."
|
|
144202
|
+
},
|
|
144203
|
+
"bootstrapSettlingMs": {
|
|
144204
|
+
"type": "number",
|
|
144205
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144206
|
+
}
|
|
144207
|
+
},
|
|
144208
|
+
"required": [
|
|
144209
|
+
"providerType",
|
|
144210
|
+
"url"
|
|
144211
|
+
]
|
|
144212
|
+
},
|
|
144213
|
+
{
|
|
144214
|
+
"type": "object",
|
|
144215
|
+
"description": "Liveblocks collaboration with a public API key.",
|
|
144216
|
+
"properties": {
|
|
144217
|
+
"providerType": {
|
|
144218
|
+
"type": "string",
|
|
144219
|
+
"enum": [
|
|
144220
|
+
"liveblocks"
|
|
144221
|
+
],
|
|
144222
|
+
"description": "Collaboration provider."
|
|
144223
|
+
},
|
|
144224
|
+
"roomId": {
|
|
144225
|
+
"type": "string",
|
|
144226
|
+
"description": "Liveblocks room identifier."
|
|
144227
|
+
},
|
|
144228
|
+
"publicApiKey": {
|
|
144229
|
+
"type": "string",
|
|
144230
|
+
"description": "Liveblocks public API key (pk_...)."
|
|
144231
|
+
},
|
|
144232
|
+
"syncTimeoutMs": {
|
|
144233
|
+
"type": "number",
|
|
144234
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144235
|
+
},
|
|
144236
|
+
"onMissing": {
|
|
144237
|
+
"type": "string",
|
|
144238
|
+
"enum": [
|
|
144239
|
+
"seedFromDoc",
|
|
144240
|
+
"blank",
|
|
144241
|
+
"error"
|
|
144242
|
+
],
|
|
144243
|
+
"description": "What to do when the remote room is empty."
|
|
144244
|
+
},
|
|
144245
|
+
"bootstrapSettlingMs": {
|
|
144246
|
+
"type": "number",
|
|
144247
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144248
|
+
}
|
|
144249
|
+
},
|
|
144250
|
+
"required": [
|
|
144251
|
+
"providerType",
|
|
144252
|
+
"roomId",
|
|
144253
|
+
"publicApiKey"
|
|
144254
|
+
]
|
|
144255
|
+
},
|
|
144256
|
+
{
|
|
144257
|
+
"type": "object",
|
|
144258
|
+
"description": "Liveblocks collaboration with a custom auth endpoint.",
|
|
144259
|
+
"properties": {
|
|
144260
|
+
"providerType": {
|
|
144261
|
+
"type": "string",
|
|
144262
|
+
"enum": [
|
|
144263
|
+
"liveblocks"
|
|
144264
|
+
],
|
|
144265
|
+
"description": "Collaboration provider."
|
|
144266
|
+
},
|
|
144267
|
+
"roomId": {
|
|
144268
|
+
"type": "string",
|
|
144269
|
+
"description": "Liveblocks room identifier."
|
|
144270
|
+
},
|
|
144271
|
+
"authEndpoint": {
|
|
144272
|
+
"type": "string",
|
|
144273
|
+
"description": "Absolute URL of the auth endpoint."
|
|
144274
|
+
},
|
|
144275
|
+
"authHeadersEnv": {
|
|
144276
|
+
"type": "string",
|
|
144277
|
+
"description": "Env var name containing JSON headers for the auth endpoint."
|
|
144278
|
+
},
|
|
144279
|
+
"syncTimeoutMs": {
|
|
144280
|
+
"type": "number",
|
|
144281
|
+
"description": "Max time (ms) to wait for initial sync."
|
|
144282
|
+
},
|
|
144283
|
+
"onMissing": {
|
|
144284
|
+
"type": "string",
|
|
144285
|
+
"enum": [
|
|
144286
|
+
"seedFromDoc",
|
|
144287
|
+
"blank",
|
|
144288
|
+
"error"
|
|
144289
|
+
],
|
|
144290
|
+
"description": "What to do when the remote room is empty."
|
|
144291
|
+
},
|
|
144292
|
+
"bootstrapSettlingMs": {
|
|
144293
|
+
"type": "number",
|
|
144294
|
+
"description": "Time (ms) to wait for bootstrap claim propagation."
|
|
144295
|
+
}
|
|
144296
|
+
},
|
|
144297
|
+
"required": [
|
|
144298
|
+
"providerType",
|
|
144299
|
+
"roomId",
|
|
144300
|
+
"authEndpoint"
|
|
144301
|
+
]
|
|
144302
|
+
}
|
|
144303
|
+
]
|
|
144304
|
+
}
|
|
144164
144305
|
},
|
|
144165
144306
|
{
|
|
144166
144307
|
"name": "collabDocumentId",
|
|
@@ -144250,14 +144391,28 @@ export const CONTRACT = {
|
|
|
144250
144391
|
},
|
|
144251
144392
|
"collaboration": {
|
|
144252
144393
|
"type": "object",
|
|
144394
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144253
144395
|
"properties": {
|
|
144396
|
+
"providerType": {
|
|
144397
|
+
"type": "string",
|
|
144398
|
+
"enum": [
|
|
144399
|
+
"y-websocket",
|
|
144400
|
+
"hocuspocus",
|
|
144401
|
+
"liveblocks"
|
|
144402
|
+
]
|
|
144403
|
+
},
|
|
144254
144404
|
"documentId": {
|
|
144255
144405
|
"type": "string"
|
|
144256
144406
|
},
|
|
144257
144407
|
"url": {
|
|
144258
|
-
"type": "string"
|
|
144408
|
+
"type": "string",
|
|
144409
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144259
144410
|
}
|
|
144260
|
-
}
|
|
144411
|
+
},
|
|
144412
|
+
"required": [
|
|
144413
|
+
"providerType",
|
|
144414
|
+
"documentId"
|
|
144415
|
+
]
|
|
144261
144416
|
},
|
|
144262
144417
|
"bootstrap": {
|
|
144263
144418
|
"type": "object",
|
|
@@ -144541,14 +144696,28 @@ export const CONTRACT = {
|
|
|
144541
144696
|
},
|
|
144542
144697
|
"collaboration": {
|
|
144543
144698
|
"type": "object",
|
|
144699
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144544
144700
|
"properties": {
|
|
144701
|
+
"providerType": {
|
|
144702
|
+
"type": "string",
|
|
144703
|
+
"enum": [
|
|
144704
|
+
"y-websocket",
|
|
144705
|
+
"hocuspocus",
|
|
144706
|
+
"liveblocks"
|
|
144707
|
+
]
|
|
144708
|
+
},
|
|
144545
144709
|
"documentId": {
|
|
144546
144710
|
"type": "string"
|
|
144547
144711
|
},
|
|
144548
144712
|
"url": {
|
|
144549
|
-
"type": "string"
|
|
144713
|
+
"type": "string",
|
|
144714
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144550
144715
|
}
|
|
144551
|
-
}
|
|
144716
|
+
},
|
|
144717
|
+
"required": [
|
|
144718
|
+
"providerType",
|
|
144719
|
+
"documentId"
|
|
144720
|
+
]
|
|
144552
144721
|
},
|
|
144553
144722
|
"openedAt": {
|
|
144554
144723
|
"type": "string"
|
|
@@ -144709,6 +144878,31 @@ export const CONTRACT = {
|
|
|
144709
144878
|
},
|
|
144710
144879
|
"revision": {
|
|
144711
144880
|
"type": "number"
|
|
144881
|
+
},
|
|
144882
|
+
"collaboration": {
|
|
144883
|
+
"type": "object",
|
|
144884
|
+
"description": "Collaboration summary (auth config redacted).",
|
|
144885
|
+
"properties": {
|
|
144886
|
+
"providerType": {
|
|
144887
|
+
"type": "string",
|
|
144888
|
+
"enum": [
|
|
144889
|
+
"y-websocket",
|
|
144890
|
+
"hocuspocus",
|
|
144891
|
+
"liveblocks"
|
|
144892
|
+
]
|
|
144893
|
+
},
|
|
144894
|
+
"documentId": {
|
|
144895
|
+
"type": "string"
|
|
144896
|
+
},
|
|
144897
|
+
"url": {
|
|
144898
|
+
"type": "string",
|
|
144899
|
+
"description": "WebSocket URL (websocket providers only)."
|
|
144900
|
+
}
|
|
144901
|
+
},
|
|
144902
|
+
"required": [
|
|
144903
|
+
"providerType",
|
|
144904
|
+
"documentId"
|
|
144905
|
+
]
|
|
144712
144906
|
}
|
|
144713
144907
|
}
|
|
144714
144908
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BoundDocApi, type DocCloseBoundParams, type DocCloseResult, type DocSaveBoundParams, type DocSaveResult } from './generated/client.js';
|
|
1
|
+
import { type BoundDocApi, type DocCloseBoundParams, type DocCloseResult, type DocOpenParams as GeneratedDocOpenParams, type DocOpenResult, type DocSaveBoundParams, type DocSaveResult } from './generated/client.js';
|
|
2
2
|
import { SuperDocRuntime, type SuperDocClientOptions, type InvokeOptions, type OperationSpec, type RuntimeInvoker } from './runtime/process.js';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a raw runtime and injects a fixed sessionId into every invoke call.
|
|
@@ -25,23 +25,19 @@ declare class SuperDocDocumentCore {
|
|
|
25
25
|
private readonly _openResult;
|
|
26
26
|
private readonly client;
|
|
27
27
|
/** @internal */
|
|
28
|
-
constructor(boundRuntime: BoundRuntime, sessionId: string, openResult:
|
|
28
|
+
constructor(boundRuntime: BoundRuntime, sessionId: string, openResult: DocOpenResult, client: SuperDocClient);
|
|
29
29
|
get sessionId(): string;
|
|
30
30
|
/** Read-only snapshot of the initial doc.open response metadata. */
|
|
31
|
-
get openResult():
|
|
31
|
+
get openResult(): DocOpenResult;
|
|
32
32
|
save(params?: DocSaveBoundParams, options?: InvokeOptions): Promise<DocSaveResult>;
|
|
33
33
|
close(params?: DocCloseBoundParams, options?: InvokeOptions): Promise<DocCloseResult>;
|
|
34
34
|
/** @internal */
|
|
35
35
|
markClosed(): void;
|
|
36
36
|
}
|
|
37
37
|
type SuperDocDocumentInstance = SuperDocDocumentCore & BoundDocApi;
|
|
38
|
-
export declare const SuperDocDocument: new (boundRuntime: BoundRuntime, sessionId: string, openResult:
|
|
38
|
+
export declare const SuperDocDocument: new (boundRuntime: BoundRuntime, sessionId: string, openResult: DocOpenResult, client: SuperDocClient) => SuperDocDocumentInstance;
|
|
39
39
|
export type SuperDocDocument = SuperDocDocumentInstance;
|
|
40
|
-
export
|
|
41
|
-
doc?: string;
|
|
42
|
-
sessionId?: string;
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
}
|
|
40
|
+
export type DocOpenParams = GeneratedDocOpenParams;
|
|
45
41
|
export interface DocDescribeCommandParams {
|
|
46
42
|
operationId: string;
|
|
47
43
|
[key: string]: unknown;
|
|
@@ -86,4 +82,5 @@ export { dispatchIntentTool } from './generated/intent-dispatch.generated.js';
|
|
|
86
82
|
export { SuperDocCliError } from './runtime/errors.js';
|
|
87
83
|
export type { InvokeOptions, OperationSpec, OperationParamSpec, RuntimeInvoker, SuperDocClientOptions, } from './runtime/process.js';
|
|
88
84
|
export type { ToolChooserInput, ToolProvider } from './tools.js';
|
|
85
|
+
export type { DocOpenResult } from './generated/client.js';
|
|
89
86
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,eAAe,EACf,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAO9B;;;;;GAKG;AACH,cAAM,YAAa,YAAW,cAAc;IAC1C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA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2
|
"name": "@superdoc-dev/sdk",
|
|
3
|
-
"version": "1.1.0-next.
|
|
3
|
+
"version": "1.1.0-next.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"typescript": "^5.9.2"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@superdoc-dev/sdk-darwin-arm64": "1.1.0-next.
|
|
30
|
-
"@superdoc-dev/sdk-linux-x64": "1.1.0-next.
|
|
31
|
-
"@superdoc-dev/sdk-linux-arm64": "1.1.0-next.
|
|
32
|
-
"@superdoc-dev/sdk-windows-x64": "1.1.0-next.
|
|
33
|
-
"@superdoc-dev/sdk-darwin-x64": "1.1.0-next.
|
|
29
|
+
"@superdoc-dev/sdk-darwin-arm64": "1.1.0-next.17",
|
|
30
|
+
"@superdoc-dev/sdk-linux-x64": "1.1.0-next.17",
|
|
31
|
+
"@superdoc-dev/sdk-linux-arm64": "1.1.0-next.17",
|
|
32
|
+
"@superdoc-dev/sdk-windows-x64": "1.1.0-next.17",
|
|
33
|
+
"@superdoc-dev/sdk-darwin-x64": "1.1.0-next.17"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
Binary file
|
|
Binary file
|