@deepraxis/sdk 0.2.0-dev.78094d7 → 0.2.0-dev.7bb8403

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": {
@@ -372,89 +372,89 @@ export function createApplication(transport) {
372
372
  };
373
373
  }
374
374
  export function createAutomation(transport) {
375
- const boundAutomationScriptsPublish = bind(transport, sdk.automationScriptsPublish);
376
- 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" }));
377
377
  return {
378
378
  actions: {
379
- archive: bind(transport, sdk.automationActionsArchive),
379
+ archive: bind(transport, acceptLegacyPath(sdk.automationActionsArchive, { "namespace": "ns" })),
380
380
  create: bind(transport, sdk.automationActionsCreate),
381
381
  dependents: {
382
- list: bindPage(transport, sdk.automationActionsDependents),
382
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsDependents, { "namespace": "ns" })),
383
383
  },
384
384
  invocations: {
385
- list: bindPage(transport, sdk.automationActionsInvocations),
385
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsInvocations, { "namespace": "ns" })),
386
386
  },
387
387
  list: bindPage(transport, sdk.automationActionsList),
388
- restore: bind(transport, sdk.automationActionsRestore),
389
- retrieve: bind(transport, sdk.automationActionsGet),
388
+ restore: bind(transport, acceptLegacyPath(sdk.automationActionsRestore, { "namespace": "ns" })),
389
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationActionsGet, { "namespace": "ns" })),
390
390
  revisions: {
391
- list: bindPage(transport, sdk.automationActionsRevisions),
392
- retrieve: bind(transport, sdk.automationActionsRevision),
391
+ list: bindPage(transport, acceptLegacyPath(sdk.automationActionsRevisions, { "namespace": "ns" })),
392
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationActionsRevision, { "namespace": "ns" })),
393
393
  },
394
- rollback: bind(transport, sdk.automationActionsRollback),
395
- update: bind(transport, sdk.automationActionsUpdate),
394
+ rollback: bind(transport, acceptLegacyPath(sdk.automationActionsRollback, { "namespace": "ns" })),
395
+ update: bind(transport, acceptLegacyPath(sdk.automationActionsUpdate, { "namespace": "ns" })),
396
396
  },
397
397
  hooks: {
398
398
  send: bind(transport, sdk.automationHooksReceive),
399
399
  },
400
400
  humanTasks: {
401
- cancel: bind(transport, sdk.automationHumanTasksCancel),
402
- 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" })),
403
403
  list: bindPage(transport, sdk.automationHumanTasksList),
404
- respond: bind(transport, sdk.automationHumanTasksRespond),
405
- 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" })),
406
406
  },
407
407
  resolve: {
408
408
  retrieve: bind(transport, sdk.automationResolveResolve),
409
409
  },
410
410
  runs: {
411
411
  artifacts: {
412
- list: bindPage(transport, sdk.automationRunsArtifacts),
412
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsArtifacts, { "run_id": "id" })),
413
413
  },
414
414
  calls: {
415
- list: bindPage(transport, sdk.automationRunsCalls),
415
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsCalls, { "run_id": "id" })),
416
416
  },
417
- cancel: bind(transport, sdk.automationRunsCancel),
417
+ cancel: bind(transport, acceptLegacyPath(sdk.automationRunsCancel, { "run_id": "id" })),
418
418
  create: bind(transport, sdk.automationRunsCreate),
419
- events: bindStream(transport, sdk.automationRunsEvents),
419
+ events: bindStream(transport, acceptLegacyPath(sdk.automationRunsEvents, { "run_id": "id" })),
420
420
  list: bindPage(transport, sdk.automationRunsList),
421
- logs: bindStream(transport, sdk.automationRunsLogs),
422
- rerun: bind(transport, sdk.automationRunsRerun),
423
- resume: bind(transport, sdk.automationRunsResume),
424
- retrieve: bind(transport, sdk.automationRunsGet),
425
- retrieveSource: bind(transport, sdk.automationRunsSource),
426
- 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" })),
427
427
  tasks: {
428
- list: bindPage(transport, sdk.automationRunsTasks),
428
+ list: bindPage(transport, acceptLegacyPath(sdk.automationRunsTasks, { "run_id": "id" })),
429
429
  },
430
430
  waits: {
431
- complete: bind(transport, sdk.automationRunsCompleteWait),
432
- 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" })),
433
433
  },
434
434
  },
435
435
  scripts: {
436
- archive: bind(transport, sdk.automationScriptsArchive),
436
+ archive: bind(transport, acceptLegacyPath(sdk.automationScriptsArchive, { "namespace": "ns" })),
437
437
  create: bind(transport, sdk.automationScriptsCreate),
438
438
  distTags: {
439
- delete: bind(transport, sdk.automationScriptsDeleteDistTag),
440
- list: bind(transport, sdk.automationScriptsDistTags),
441
- 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" })),
442
442
  },
443
443
  list: bindPage(transport, sdk.automationScriptsList),
444
- restore: bind(transport, sdk.automationScriptsRestore),
445
- retrieve: bind(transport, sdk.automationScriptsGet),
446
- 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" })),
447
447
  vaults: {
448
- delete: bind(transport, sdk.automationScriptsVaultsDelete),
449
- list: bind(transport, sdk.automationScriptsVaultsList),
450
- 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" })),
451
451
  },
452
452
  versions: {
453
453
  create: boundAutomationScriptsPublish,
454
- deprecate: bind(transport, sdk.automationScriptsDeprecate),
455
- list: bindPage(transport, sdk.automationScriptsVersions),
454
+ deprecate: bind(transport, acceptLegacyPath(sdk.automationScriptsDeprecate, { "namespace": "ns" })),
455
+ list: bindPage(transport, acceptLegacyPath(sdk.automationScriptsVersions, { "namespace": "ns" })),
456
456
  publish: boundAutomationScriptsPublish,
457
- retrieve: bind(transport, sdk.automationScriptsVersion),
457
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationScriptsVersion, { "namespace": "ns" })),
458
458
  },
459
459
  },
460
460
  targets: {
@@ -462,45 +462,45 @@ export function createAutomation(transport) {
462
462
  },
463
463
  triggers: {
464
464
  create: bind(transport, sdk.automationTriggersCreate),
465
- delete: bind(transport, sdk.automationTriggersDelete),
466
- 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" })),
467
467
  firings: {
468
- list: bindPage(transport, sdk.automationTriggersFirings),
468
+ list: bindPage(transport, acceptLegacyPath(sdk.automationTriggersFirings, { "trigger_id": "id" })),
469
469
  },
470
470
  list: bindPage(transport, sdk.automationTriggersList),
471
- pause: bind(transport, sdk.automationTriggersPause),
471
+ pause: bind(transport, acceptLegacyPath(sdk.automationTriggersPause, { "trigger_id": "id" })),
472
472
  preview: bind(transport, sdk.automationTriggersPreview),
473
- resume: bind(transport, sdk.automationTriggersResume),
474
- retrieve: bind(transport, sdk.automationTriggersGet),
475
- rotateWebhook: bind(transport, sdk.automationTriggersRotateWebhook),
476
- 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" })),
477
477
  },
478
478
  validate: {
479
479
  create: bind(transport, sdk.automationValidateValidate),
480
480
  },
481
481
  workflows: {
482
- archive: bind(transport, sdk.automationWorkflowsArchive),
482
+ archive: bind(transport, acceptLegacyPath(sdk.automationWorkflowsArchive, { "namespace": "ns" })),
483
483
  create: bind(transport, sdk.automationWorkflowsCreate),
484
484
  distTags: {
485
- delete: bind(transport, sdk.automationWorkflowsDeleteDistTag),
486
- list: bind(transport, sdk.automationWorkflowsDistTags),
487
- 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" })),
488
488
  },
489
489
  list: bindPage(transport, sdk.automationWorkflowsList),
490
- restore: bind(transport, sdk.automationWorkflowsRestore),
491
- retrieve: bind(transport, sdk.automationWorkflowsGet),
492
- 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" })),
493
493
  vaults: {
494
- delete: bind(transport, sdk.automationWorkflowsVaultsDelete),
495
- list: bind(transport, sdk.automationWorkflowsVaultsList),
496
- 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" })),
497
497
  },
498
498
  versions: {
499
499
  create: boundAutomationWorkflowsPublish,
500
- deprecate: bind(transport, sdk.automationWorkflowsDeprecate),
501
- list: bindPage(transport, sdk.automationWorkflowsVersions),
500
+ deprecate: bind(transport, acceptLegacyPath(sdk.automationWorkflowsDeprecate, { "namespace": "ns" })),
501
+ list: bindPage(transport, acceptLegacyPath(sdk.automationWorkflowsVersions, { "namespace": "ns" })),
502
502
  publish: boundAutomationWorkflowsPublish,
503
- retrieve: bind(transport, sdk.automationWorkflowsVersion),
503
+ retrieve: bind(transport, acceptLegacyPath(sdk.automationWorkflowsVersion, { "namespace": "ns" })),
504
504
  },
505
505
  },
506
506
  };
@@ -1098,6 +1098,19 @@ export function createDevops(transport) {
1098
1098
  },
1099
1099
  };
1100
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
+ }
1101
1114
  export function createFile(transport) {
1102
1115
  return {
1103
1116
  files: {
@@ -1604,6 +1617,7 @@ export function createSandbox(transport) {
1604
1617
  },
1605
1618
  create: bind(transport, sdk.createByodPairing),
1606
1619
  retrieve: bind(transport, sdk.getByodPairing),
1620
+ status: bind(transport, sdk.getByodPairingStatus),
1607
1621
  },
1608
1622
  },
1609
1623
  events: {
@@ -2102,6 +2116,7 @@ export const resourceFactories = {
2102
2116
  cut: createCut,
2103
2117
  database: createDatabase,
2104
2118
  devops: createDevops,
2119
+ events: createEvents,
2105
2120
  file: createFile,
2106
2121
  knowledge: createKnowledge,
2107
2122
  media: createMedia,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.78094d7",
3
+ "version": "0.2.0-dev.7bb8403",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {