@deepraxis/sdk 0.2.0-dev.cedf11d → 0.2.0-dev.d45a439

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.
@@ -1,7 +1,7 @@
1
1
  // Generated by scripts/resources.ts. DO NOT EDIT.
2
2
  import { multipartBodySerializer } from "./core/multipart.js";
3
3
  import * as sdk from "./generated/sdk.gen.js";
4
- import { bind, bindPage, bindStream, bindMixed, aliasOperation } from "./core/bindings.js";
4
+ import { bind, bindPage, bindStream, bindMixed, aliasOperation, acceptLegacyPath } from "./core/bindings.js";
5
5
  import { deprecate } from "./core/deprecation.js";
6
6
  export const deprecatedMethods = {
7
7
  "praxis.database.databases.commands.execute": {
@@ -141,6 +141,11 @@ export function createAgent(transport) {
141
141
  create: bind(transport, sdk.unblockCustomer),
142
142
  },
143
143
  },
144
+ devices: {
145
+ localSessions: {
146
+ list: bindPage(transport, sdk.listAgentDeviceLocalSessions),
147
+ },
148
+ },
144
149
  events: {
145
150
  list: bind(transport, sdk.listAgentEvents),
146
151
  send: bind(transport, sdk.sendAgentEvents),
@@ -367,89 +372,89 @@ export function createApplication(transport) {
367
372
  };
368
373
  }
369
374
  export function createAutomation(transport) {
370
- const boundAutomationScriptsPublish = bind(transport, sdk.automationScriptsPublish);
371
- const boundAutomationWorkflowsPublish = bind(transport, sdk.automationWorkflowsPublish);
375
+ const boundAutomationScriptsPublish = bind(transport, acceptLegacyPath(sdk.automationScriptsPublish, { "namespace": "ns" }));
376
+ const boundAutomationWorkflowsPublish = bind(transport, acceptLegacyPath(sdk.automationWorkflowsPublish, { "namespace": "ns" }));
372
377
  return {
373
378
  actions: {
374
- archive: bind(transport, sdk.automationActionsArchive),
379
+ archive: bind(transport, acceptLegacyPath(sdk.automationActionsArchive, { "namespace": "ns" })),
375
380
  create: bind(transport, sdk.automationActionsCreate),
376
381
  dependents: {
377
- list: bindPage(transport, sdk.automationActionsDependents),
382
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsDependents, { "namespace": "ns" })),
378
383
  },
379
384
  invocations: {
380
- list: bindPage(transport, sdk.automationActionsInvocations),
385
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsInvocations, { "namespace": "ns" })),
381
386
  },
382
387
  list: bindPage(transport, sdk.automationActionsList),
383
- restore: bind(transport, sdk.automationActionsRestore),
384
- retrieve: bind(transport, sdk.automationActionsGet),
388
+ restore: bind(transport, acceptLegacyPath(sdk.automationActionsRestore, { "namespace": "ns" })),
389
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationActionsGet, { "namespace": "ns" })),
385
390
  revisions: {
386
- list: bindPage(transport, sdk.automationActionsRevisions),
387
- retrieve: bind(transport, sdk.automationActionsRevision),
391
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsRevisions, { "namespace": "ns" })),
392
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationActionsRevision, { "namespace": "ns" })),
388
393
  },
389
- rollback: bind(transport, sdk.automationActionsRollback),
390
- update: bind(transport, sdk.automationActionsUpdate),
394
+ rollback: bind(transport, acceptLegacyPath(sdk.automationActionsRollback, { "namespace": "ns" })),
395
+ update: bind(transport, acceptLegacyPath(sdk.automationActionsUpdate, { "namespace": "ns" })),
391
396
  },
392
397
  hooks: {
393
398
  send: bind(transport, sdk.automationHooksReceive),
394
399
  },
395
400
  humanTasks: {
396
- cancel: bind(transport, sdk.automationHumanTasksCancel),
397
- delegate: bind(transport, sdk.automationHumanTasksDelegate),
401
+ cancel: bind(transport, acceptLegacyPath(sdk.automationHumanTasksCancel, { "task_id": "id" })),
402
+ delegate: bind(transport, acceptLegacyPath(sdk.automationHumanTasksDelegate, { "task_id": "id" })),
398
403
  list: bindPage(transport, sdk.automationHumanTasksList),
399
- respond: bind(transport, sdk.automationHumanTasksRespond),
400
- retrieve: bind(transport, sdk.automationHumanTasksGet),
404
+ respond: bind(transport, acceptLegacyPath(sdk.automationHumanTasksRespond, { "task_id": "id" })),
405
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationHumanTasksGet, { "task_id": "id" })),
401
406
  },
402
407
  resolve: {
403
408
  retrieve: bind(transport, sdk.automationResolveResolve),
404
409
  },
405
410
  runs: {
406
411
  artifacts: {
407
- list: bindPage(transport, sdk.automationRunsArtifacts),
412
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsArtifacts, { "run_id": "id" })),
408
413
  },
409
414
  calls: {
410
- list: bindPage(transport, sdk.automationRunsCalls),
415
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsCalls, { "run_id": "id" })),
411
416
  },
412
- cancel: bind(transport, sdk.automationRunsCancel),
417
+ cancel: bind(transport, acceptLegacyPath(sdk.automationRunsCancel, { "run_id": "id" })),
413
418
  create: bind(transport, sdk.automationRunsCreate),
414
- events: bindStream(transport, sdk.automationRunsEvents),
419
+ events: bindStream(transport, acceptLegacyPath(sdk.automationRunsEvents, { "run_id": "id" })),
415
420
  list: bindPage(transport, sdk.automationRunsList),
416
- logs: bindStream(transport, sdk.automationRunsLogs),
417
- rerun: bind(transport, sdk.automationRunsRerun),
418
- resume: bind(transport, sdk.automationRunsResume),
419
- retrieve: bind(transport, sdk.automationRunsGet),
420
- retrieveSource: bind(transport, sdk.automationRunsSource),
421
- suspend: bind(transport, sdk.automationRunsSuspend),
421
+ logs: bindStream(transport, acceptLegacyPath(sdk.automationRunsLogs, { "run_id": "id" })),
422
+ rerun: bind(transport, acceptLegacyPath(sdk.automationRunsRerun, { "run_id": "id" })),
423
+ resume: bind(transport, acceptLegacyPath(sdk.automationRunsResume, { "run_id": "id" })),
424
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationRunsGet, { "run_id": "id" })),
425
+ retrieveSource: bind(transport, acceptLegacyPath(sdk.automationRunsSource, { "run_id": "id" })),
426
+ suspend: bind(transport, acceptLegacyPath(sdk.automationRunsSuspend, { "run_id": "id" })),
422
427
  tasks: {
423
- list: bindPage(transport, sdk.automationRunsTasks),
428
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsTasks, { "run_id": "id" })),
424
429
  },
425
430
  waits: {
426
- complete: bind(transport, sdk.automationRunsCompleteWait),
427
- list: bindPage(transport, sdk.automationRunsWaits),
431
+ complete: bind(transport, acceptLegacyPath(sdk.automationRunsCompleteWait, { "run_id": "id" })),
432
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsWaits, { "run_id": "id" })),
428
433
  },
429
434
  },
430
435
  scripts: {
431
- archive: bind(transport, sdk.automationScriptsArchive),
436
+ archive: bind(transport, acceptLegacyPath(sdk.automationScriptsArchive, { "namespace": "ns" })),
432
437
  create: bind(transport, sdk.automationScriptsCreate),
433
438
  distTags: {
434
- delete: bind(transport, sdk.automationScriptsDeleteDistTag),
435
- list: bind(transport, sdk.automationScriptsDistTags),
436
- set: bind(transport, sdk.automationScriptsSetDistTag),
439
+ delete: bind(transport, acceptLegacyPath(sdk.automationScriptsDeleteDistTag, { "namespace": "ns" })),
440
+ list: bind(transport, acceptLegacyPath(sdk.automationScriptsDistTags, { "namespace": "ns" })),
441
+ set: bind(transport, acceptLegacyPath(sdk.automationScriptsSetDistTag, { "namespace": "ns" })),
437
442
  },
438
443
  list: bindPage(transport, sdk.automationScriptsList),
439
- restore: bind(transport, sdk.automationScriptsRestore),
440
- retrieve: bind(transport, sdk.automationScriptsGet),
441
- update: bind(transport, sdk.automationScriptsPatch),
444
+ restore: bind(transport, acceptLegacyPath(sdk.automationScriptsRestore, { "namespace": "ns" })),
445
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationScriptsGet, { "namespace": "ns" })),
446
+ update: bind(transport, acceptLegacyPath(sdk.automationScriptsPatch, { "namespace": "ns" })),
442
447
  vaults: {
443
- delete: bind(transport, sdk.automationScriptsVaultsDelete),
444
- list: bind(transport, sdk.automationScriptsVaultsList),
445
- set: bind(transport, sdk.automationScriptsVaultsSet),
448
+ delete: bind(transport, acceptLegacyPath(sdk.automationScriptsVaultsDelete, { "namespace": "ns" })),
449
+ list: bind(transport, acceptLegacyPath(sdk.automationScriptsVaultsList, { "namespace": "ns" })),
450
+ set: bind(transport, acceptLegacyPath(sdk.automationScriptsVaultsSet, { "namespace": "ns" })),
446
451
  },
447
452
  versions: {
448
453
  create: boundAutomationScriptsPublish,
449
- deprecate: bind(transport, sdk.automationScriptsDeprecate),
450
- list: bindPage(transport, sdk.automationScriptsVersions),
454
+ deprecate: bind(transport, acceptLegacyPath(sdk.automationScriptsDeprecate, { "namespace": "ns" })),
455
+ list: bindPage(transport, acceptLegacyPath(sdk.automationScriptsVersions, { "namespace": "ns" })),
451
456
  publish: boundAutomationScriptsPublish,
452
- retrieve: bind(transport, sdk.automationScriptsVersion),
457
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationScriptsVersion, { "namespace": "ns" })),
453
458
  },
454
459
  },
455
460
  targets: {
@@ -457,45 +462,45 @@ export function createAutomation(transport) {
457
462
  },
458
463
  triggers: {
459
464
  create: bind(transport, sdk.automationTriggersCreate),
460
- delete: bind(transport, sdk.automationTriggersDelete),
461
- fire: bind(transport, sdk.automationTriggersFire),
465
+ delete: bind(transport, acceptLegacyPath(sdk.automationTriggersDelete, { "trigger_id": "id" })),
466
+ fire: bind(transport, acceptLegacyPath(sdk.automationTriggersFire, { "trigger_id": "id" })),
462
467
  firings: {
463
- list: bindPage(transport, sdk.automationTriggersFirings),
468
+ list: bindPage(transport, acceptLegacyPath(sdk.automationTriggersFirings, { "trigger_id": "id" })),
464
469
  },
465
470
  list: bindPage(transport, sdk.automationTriggersList),
466
- pause: bind(transport, sdk.automationTriggersPause),
471
+ pause: bind(transport, acceptLegacyPath(sdk.automationTriggersPause, { "trigger_id": "id" })),
467
472
  preview: bind(transport, sdk.automationTriggersPreview),
468
- resume: bind(transport, sdk.automationTriggersResume),
469
- retrieve: bind(transport, sdk.automationTriggersGet),
470
- rotateWebhook: bind(transport, sdk.automationTriggersRotateWebhook),
471
- update: bind(transport, sdk.automationTriggersPatch),
473
+ resume: bind(transport, acceptLegacyPath(sdk.automationTriggersResume, { "trigger_id": "id" })),
474
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationTriggersGet, { "trigger_id": "id" })),
475
+ rotateWebhook: bind(transport, acceptLegacyPath(sdk.automationTriggersRotateWebhook, { "trigger_id": "id" })),
476
+ update: bind(transport, acceptLegacyPath(sdk.automationTriggersPatch, { "trigger_id": "id" })),
472
477
  },
473
478
  validate: {
474
479
  create: bind(transport, sdk.automationValidateValidate),
475
480
  },
476
481
  workflows: {
477
- archive: bind(transport, sdk.automationWorkflowsArchive),
482
+ archive: bind(transport, acceptLegacyPath(sdk.automationWorkflowsArchive, { "namespace": "ns" })),
478
483
  create: bind(transport, sdk.automationWorkflowsCreate),
479
484
  distTags: {
480
- delete: bind(transport, sdk.automationWorkflowsDeleteDistTag),
481
- list: bind(transport, sdk.automationWorkflowsDistTags),
482
- set: bind(transport, sdk.automationWorkflowsSetDistTag),
485
+ delete: bind(transport, acceptLegacyPath(sdk.automationWorkflowsDeleteDistTag, { "namespace": "ns" })),
486
+ list: bind(transport, acceptLegacyPath(sdk.automationWorkflowsDistTags, { "namespace": "ns" })),
487
+ set: bind(transport, acceptLegacyPath(sdk.automationWorkflowsSetDistTag, { "namespace": "ns" })),
483
488
  },
484
489
  list: bindPage(transport, sdk.automationWorkflowsList),
485
- restore: bind(transport, sdk.automationWorkflowsRestore),
486
- retrieve: bind(transport, sdk.automationWorkflowsGet),
487
- update: bind(transport, sdk.automationWorkflowsPatch),
490
+ restore: bind(transport, acceptLegacyPath(sdk.automationWorkflowsRestore, { "namespace": "ns" })),
491
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationWorkflowsGet, { "namespace": "ns" })),
492
+ update: bind(transport, acceptLegacyPath(sdk.automationWorkflowsPatch, { "namespace": "ns" })),
488
493
  vaults: {
489
- delete: bind(transport, sdk.automationWorkflowsVaultsDelete),
490
- list: bind(transport, sdk.automationWorkflowsVaultsList),
491
- set: bind(transport, sdk.automationWorkflowsVaultsSet),
494
+ delete: bind(transport, acceptLegacyPath(sdk.automationWorkflowsVaultsDelete, { "namespace": "ns" })),
495
+ list: bind(transport, acceptLegacyPath(sdk.automationWorkflowsVaultsList, { "namespace": "ns" })),
496
+ set: bind(transport, acceptLegacyPath(sdk.automationWorkflowsVaultsSet, { "namespace": "ns" })),
492
497
  },
493
498
  versions: {
494
499
  create: boundAutomationWorkflowsPublish,
495
- deprecate: bind(transport, sdk.automationWorkflowsDeprecate),
496
- list: bindPage(transport, sdk.automationWorkflowsVersions),
500
+ deprecate: bind(transport, acceptLegacyPath(sdk.automationWorkflowsDeprecate, { "namespace": "ns" })),
501
+ list: bindPage(transport, acceptLegacyPath(sdk.automationWorkflowsVersions, { "namespace": "ns" })),
497
502
  publish: boundAutomationWorkflowsPublish,
498
- retrieve: bind(transport, sdk.automationWorkflowsVersion),
503
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationWorkflowsVersion, { "namespace": "ns" })),
499
504
  },
500
505
  },
501
506
  };
@@ -1093,6 +1098,19 @@ export function createDevops(transport) {
1093
1098
  },
1094
1099
  };
1095
1100
  }
1101
+ export function createEvents(transport) {
1102
+ return {
1103
+ subscriptions: {
1104
+ create: bind(transport, sdk.eventsCreateSubscription),
1105
+ delete: bind(transport, sdk.eventsDeleteSubscription),
1106
+ list: bind(transport, sdk.eventsListSubscriptions),
1107
+ retrieve: bind(transport, sdk.eventsRetrieveSubscription),
1108
+ },
1109
+ types: {
1110
+ list: bind(transport, sdk.eventsListTypes),
1111
+ },
1112
+ };
1113
+ }
1096
1114
  export function createFile(transport) {
1097
1115
  return {
1098
1116
  files: {
@@ -1210,6 +1228,9 @@ export function createMedia(transport) {
1210
1228
  versions: {
1211
1229
  restore: bind(transport, sdk.mediaRestoreAssetVersion),
1212
1230
  },
1231
+ works: {
1232
+ list: bindPage(transport, sdk.mediaListAssetWorks),
1233
+ },
1213
1234
  },
1214
1235
  batches: {
1215
1236
  create: bind(transport, sdk.mediaCreateBatch),
@@ -1267,6 +1288,13 @@ export function createMedia(transport) {
1267
1288
  create: bind(transport, sdk.mediaDesignVoice),
1268
1289
  },
1269
1290
  },
1291
+ works: {
1292
+ create: bind(transport, sdk.mediaCreateWork),
1293
+ delete: bind(transport, sdk.mediaDeleteWork),
1294
+ list: bindPage(transport, sdk.mediaListWorks),
1295
+ retrieve: bind(transport, sdk.mediaGetWork),
1296
+ update: bind(transport, sdk.mediaUpdateWork),
1297
+ },
1270
1298
  },
1271
1299
  pipelines: {
1272
1300
  create: bind(transport, sdk.createMediaPipeline),
@@ -1485,11 +1513,19 @@ export function createOrganization(transport) {
1485
1513
  },
1486
1514
  letters: {
1487
1515
  archive: bind(transport, sdk.archiveOrganizationNotificationLetter),
1516
+ create: bind(transport, sdk.createOrganizationNotificationLetter),
1488
1517
  list: bind(transport, sdk.listOrganizationNotificationLetters),
1489
1518
  read: bind(transport, sdk.readOrganizationNotificationLetter),
1490
1519
  readAll: bind(transport, sdk.readAllOrganizationNotificationLetters),
1491
1520
  retrieve: bind(transport, sdk.getOrganizationNotificationLetter),
1492
1521
  },
1522
+ messages: {
1523
+ delete: bind(transport, sdk.deleteOrganizationNotificationMessage),
1524
+ list: bind(transport, sdk.listOrganizationNotificationMessages),
1525
+ readAll: bind(transport, sdk.readAllOrganizationNotificationMessages),
1526
+ retrieve: bind(transport, sdk.getOrganizationNotificationMessage),
1527
+ update: bind(transport, sdk.updateOrganizationNotificationMessage),
1528
+ },
1493
1529
  organizationDefault: {
1494
1530
  create: bind(transport, sdk.updateOrganizationNotificationDefaults),
1495
1531
  },
@@ -1581,6 +1617,7 @@ export function createSandbox(transport) {
1581
1617
  },
1582
1618
  create: bind(transport, sdk.createByodPairing),
1583
1619
  retrieve: bind(transport, sdk.getByodPairing),
1620
+ status: bind(transport, sdk.getByodPairingStatus),
1584
1621
  },
1585
1622
  },
1586
1623
  events: {
@@ -2079,6 +2116,7 @@ export const resourceFactories = {
2079
2116
  cut: createCut,
2080
2117
  database: createDatabase,
2081
2118
  devops: createDevops,
2119
+ events: createEvents,
2082
2120
  file: createFile,
2083
2121
  knowledge: createKnowledge,
2084
2122
  media: createMedia,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.cedf11d",
3
+ "version": "0.2.0-dev.d45a439",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {