@deepraxis/sdk 0.2.0-dev.6528e7c → 0.2.0-dev.6ed6b94

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.
@@ -10618,6 +10618,10 @@ export type ApplicationCreateWorkerInput = {
10618
10618
  labels?: {
10619
10619
  [key: string]: string;
10620
10620
  };
10621
+ /**
10622
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10623
+ */
10624
+ access?: 'public' | 'organization';
10621
10625
  };
10622
10626
  };
10623
10627
  export type ApplicationWorker = {
@@ -10689,6 +10693,10 @@ export type ApplicationWorker = {
10689
10693
  labels: {
10690
10694
  [key: string]: string;
10691
10695
  };
10696
+ /**
10697
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10698
+ */
10699
+ access: 'public' | 'organization';
10692
10700
  /**
10693
10701
  * When the Worker was deleted.
10694
10702
  */
@@ -10770,6 +10778,10 @@ export type ApplicationUpdateWorkerInput = {
10770
10778
  labels?: {
10771
10779
  [key: string]: string;
10772
10780
  };
10781
+ /**
10782
+ * Who may open the application on its default host (ADR-206). Only the organization's owner (full authority) may change it; a credential limited to bound resources is refused with PERMISSION_DENIED. A change takes effect within 10 seconds.
10783
+ */
10784
+ access?: 'public' | 'organization';
10773
10785
  };
10774
10786
  };
10775
10787
  export type ApplicationVersionPage = {
@@ -19553,6 +19565,32 @@ export type DevopsChangeMarkLastSliceRequest = {
19553
19565
  */
19554
19566
  lastSlice: boolean;
19555
19567
  };
19568
+ /**
19569
+ * Where the new slice starts. Every field is optional: with none the slice is cut from the default branch.
19570
+ */
19571
+ export type DevopsChangeSliceCreateRequest = {
19572
+ /**
19573
+ * Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges.
19574
+ */
19575
+ from?: string;
19576
+ };
19577
+ /**
19578
+ * The slice that was opened.
19579
+ */
19580
+ export type DevopsChangeSliceOpened = {
19581
+ /**
19582
+ * The new slice's branch, <change id>--<n> with n at least 2; commit and push here, and open its pull request with `praxis devops change pr`.
19583
+ */
19584
+ branch: string;
19585
+ /**
19586
+ * The directory to work in: the slice's git worktree inside the change's workspace. It exists at once when the workspace is already running, otherwise once the workspace is available.
19587
+ */
19588
+ directory: string;
19589
+ /**
19590
+ * The id of the change's workspace that holds the slice (wsu_…), usable with the units methods; this call opened it when the change had none live.
19591
+ */
19592
+ unit: string;
19593
+ };
19556
19594
  /**
19557
19595
  * What the pull request says. Every field is optional: without a title the change's own title is used.
19558
19596
  */
@@ -19569,6 +19607,10 @@ export type DevopsChangeOpenPullRequestRequest = {
19569
19607
  * Open it as a draft. Defaults to false.
19570
19608
  */
19571
19609
  draft?: boolean;
19610
+ /**
19611
+ * The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT.
19612
+ */
19613
+ head?: string;
19572
19614
  };
19573
19615
  /**
19574
19616
  * The pull request for a change's branch.
@@ -51993,6 +52035,10 @@ export type DevopsLockId = string;
51993
52035
  * The change's id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`: the SDK and the CLI encode the slash themselves, and an id that is already percent-encoded is encoded a second time and answers CHANGE_NOT_FOUND. Only a caller writing the HTTP request by hand sends feat%2Frun-page-v2.
51994
52036
  */
51995
52037
  export type DevopsChangeIdPath = string;
52038
+ /**
52039
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
52040
+ */
52041
+ export type DevopsChangePathParam = string;
51996
52042
  /**
51997
52043
  * The pull request's platform id (pr_…) from a pull request list, not GitHub's pull request number; the retrieve, rerunGate, merge and recordVerdict calls all address the pull request by it.
51998
52044
  */
@@ -78048,10 +78094,18 @@ export type GetOrganizationNotificationsInboxData = {
78048
78094
  url: '/organization/v1/notifications/inbox';
78049
78095
  };
78050
78096
  export type GetOrganizationNotificationsInboxErrors = {
78097
+ /**
78098
+ * `INVALID_PARAMS` from the service for a read it cannot answer (RFC 9457 problem).
78099
+ */
78100
+ 400: unknown;
78051
78101
  /**
78052
78102
  * Missing or invalid credential (RFC 9457 problem).
78053
78103
  */
78054
78104
  401: unknown;
78105
+ /**
78106
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78107
+ */
78108
+ 502: unknown;
78055
78109
  };
78056
78110
  export type GetOrganizationNotificationsInboxResponses = {
78057
78111
  /**
@@ -78352,13 +78406,17 @@ export type ReadAllOrganizationNotificationLettersData = {
78352
78406
  };
78353
78407
  export type ReadAllOrganizationNotificationLettersErrors = {
78354
78408
  /**
78355
- * The body is not a JSON object, or kind is unknown (RFC 9457 problem).
78409
+ * The body is not a JSON object, `kind` is unknown, or `INVALID_PARAMS` from the service (RFC 9457 problem).
78356
78410
  */
78357
78411
  400: unknown;
78358
78412
  /**
78359
78413
  * Missing or invalid credential (RFC 9457 problem).
78360
78414
  */
78361
78415
  401: unknown;
78416
+ /**
78417
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78418
+ */
78419
+ 502: unknown;
78362
78420
  };
78363
78421
  export type ReadAllOrganizationNotificationLettersResponses = {
78364
78422
  /**
@@ -78424,6 +78482,10 @@ export type GetOrganizationNotificationPreferencesErrors = {
78424
78482
  * Missing or invalid credential (RFC 9457 problem).
78425
78483
  */
78426
78484
  401: unknown;
78485
+ /**
78486
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78487
+ */
78488
+ 502: unknown;
78427
78489
  };
78428
78490
  export type GetOrganizationNotificationPreferencesResponses = {
78429
78491
  /**
@@ -78515,7 +78577,7 @@ export type UpdateOrganizationNotificationPreferencesData = {
78515
78577
  };
78516
78578
  export type UpdateOrganizationNotificationPreferencesErrors = {
78517
78579
  /**
78518
- * Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
78580
+ * Invalid switch, unknown category or unoffered channel — `INVALID_PARAMS`, `NOT_CONFIGURABLE` or `CRITICAL_CHANNELS_OFF` from the service (RFC 9457 problem).
78519
78581
  */
78520
78582
  400: unknown;
78521
78583
  /**
@@ -78523,9 +78585,13 @@ export type UpdateOrganizationNotificationPreferencesErrors = {
78523
78585
  */
78524
78586
  401: unknown;
78525
78587
  /**
78526
- * The organization does not let members change their own switches (ORGANIZATION_LOCKED).
78588
+ * The organization does not let members change their own switches — `ORGANIZATION_LOCKED` from the service (RFC 9457 problem).
78527
78589
  */
78528
78590
  403: unknown;
78591
+ /**
78592
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78593
+ */
78594
+ 502: unknown;
78529
78595
  };
78530
78596
  export type UpdateOrganizationNotificationPreferencesResponses = {
78531
78597
  /**
@@ -78547,6 +78613,10 @@ export type GetOrganizationNotificationDefaultsErrors = {
78547
78613
  * Missing or invalid credential (RFC 9457 problem).
78548
78614
  */
78549
78615
  401: unknown;
78616
+ /**
78617
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78618
+ */
78619
+ 502: unknown;
78550
78620
  };
78551
78621
  export type GetOrganizationNotificationDefaultsResponses = {
78552
78622
  /**
@@ -78626,13 +78696,17 @@ export type ListOrganizationNotificationDeliveriesData = {
78626
78696
  };
78627
78697
  export type ListOrganizationNotificationDeliveriesErrors = {
78628
78698
  /**
78629
- * Invalid limit or page cursor (RFC 9457 problem).
78699
+ * Invalid limit, or `INVALID_PARAMS` from the service for a page cursor it did not issue (RFC 9457 problem).
78630
78700
  */
78631
78701
  400: unknown;
78632
78702
  /**
78633
78703
  * Missing or invalid credential (RFC 9457 problem).
78634
78704
  */
78635
78705
  401: unknown;
78706
+ /**
78707
+ * The notification service did not answer, or failed in a way it did not classify (RFC 9457 problem, `UNAVAILABLE`). A refusal the service classifies is never a 502 — it reaches the caller in its own class (400, 403, 404), so a client may act on it.
78708
+ */
78709
+ 502: unknown;
78636
78710
  };
78637
78711
  export type ListOrganizationNotificationDeliveriesResponses = {
78638
78712
  /**
@@ -111139,6 +111213,51 @@ export type DevopsChangesMarkLastSliceResponses = {
111139
111213
  200: DevopsChange;
111140
111214
  };
111141
111215
  export type DevopsChangesMarkLastSliceResponse = DevopsChangesMarkLastSliceResponses[keyof DevopsChangesMarkLastSliceResponses];
111216
+ export type DevopsChangesSlicesCreateData = {
111217
+ body?: DevopsChangeSliceCreateRequest;
111218
+ path: {
111219
+ /**
111220
+ * Identifies the project whose data you are reading, from the project list or create answer.
111221
+ */
111222
+ project: string;
111223
+ /**
111224
+ * The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves.
111225
+ */
111226
+ change: string;
111227
+ };
111228
+ query?: never;
111229
+ url: '/devops/v1/projects/{project}/changes/{change}/slices';
111230
+ };
111231
+ export type DevopsChangesSlicesCreateErrors = {
111232
+ /**
111233
+ * INVALID_ARGUMENT means the change is abandoned, or from names a branch that does not belong to this change; nothing was cut. Open a new change, or pick from the change's own branches.
111234
+ */
111235
+ 400: DevopsDevOpsError;
111236
+ /**
111237
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
111238
+ */
111239
+ 401: DevopsDevOpsError;
111240
+ /**
111241
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
111242
+ */
111243
+ 403: DevopsDevOpsError;
111244
+ /**
111245
+ * CHANGE_NOT_FOUND means no change with that id exists in this organization; list the project's changes and use an id from that answer, with its slash percent-encoded.
111246
+ */
111247
+ 404: DevopsDevOpsError;
111248
+ /**
111249
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
111250
+ */
111251
+ 500: DevopsDevOpsError;
111252
+ };
111253
+ export type DevopsChangesSlicesCreateError = DevopsChangesSlicesCreateErrors[keyof DevopsChangesSlicesCreateErrors];
111254
+ export type DevopsChangesSlicesCreateResponses = {
111255
+ /**
111256
+ * The new slice: its branch, the directory to work in and the workspace that holds it. Calling again opens a further slice; it does not return the previous one.
111257
+ */
111258
+ 200: DevopsChangeSliceOpened;
111259
+ };
111260
+ export type DevopsChangesSlicesCreateResponse = DevopsChangesSlicesCreateResponses[keyof DevopsChangesSlicesCreateResponses];
111142
111261
  export type DevopsChangesOpenPullRequestData = {
111143
111262
  body?: DevopsChangeOpenPullRequestRequest;
111144
111263
  path: {
@@ -14994,7 +14994,7 @@ export const operations = [
14994
14994
  "resource": "devops.changes",
14995
14995
  "method": "openPullRequest",
14996
14996
  "summary": "Open a change's pull request",
14997
- "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
14997
+ "description": "Open the pull request for a change: its branch into the project's default branch, opened by DevOps's own GitHub App. A cloud workspace holds no GitHub credential, so this is how work pushed with the unit push becomes a pull request; `praxis devops change pr` calls it from the workspace. Push first: a branch with no commits beyond the default branch is refused with PULL_REQUEST_REFUSED and GitHub's words. A branch that already has an open pull request answers that one with created=false, so calling again is safe; when the call passes a title or a body, those fields are written onto that pull request (GitHub PATCH /pulls/{number}) and the answer says updated=true, while a field not passed is left as it is — which is how a wrong or missing description is corrected, and how the merge gate's exposure-declared check is re-evaluated from the new body. Only an open pull request can be rewritten: once it is merged or closed its head branch is usually deleted with it, so a call that names a title or a body is refused with PULL_REQUEST_NOT_OPEN, naming that pull request and the branch, instead of trying to open a second one. The pull request then appears on the change and runs its merge gate as usual. For a later slice opened with `slices.create`, pass head set to that slice's branch (<id>--<n>): the pull request is opened from it instead of the change's own branch, and a branch that belongs to another change is refused with INVALID_ARGUMENT. The id is the branch name; give it as it comes back (fix/expired-links) — the SDK and the CLI encode the slash themselves, and only a hand-written HTTP request sends fix%2Fexpired-links.",
14998
14998
  "http": "POST",
14999
14999
  "path": "/devops/v1/changes/{id}:openPullRequest",
15000
15000
  "streaming": "no",
@@ -15027,6 +15027,12 @@ export const operations = [
15027
15027
  "type": "boolean",
15028
15028
  "required": false,
15029
15029
  "description": "Open it as a draft. Defaults to false."
15030
+ },
15031
+ {
15032
+ "name": "head",
15033
+ "type": "string",
15034
+ "required": false,
15035
+ "description": "The branch the pull request is opened from, for a later slice of the change: <change id>--<n>, as `slices.create` answered it; omit it for the change's own branch. A branch that belongs to another change is refused with INVALID_ARGUMENT."
15030
15036
  }
15031
15037
  ]
15032
15038
  }
@@ -15945,6 +15951,40 @@ export const operations = [
15945
15951
  }
15946
15952
  }
15947
15953
  },
15954
+ {
15955
+ "resource": "devops.changes.slices",
15956
+ "method": "create",
15957
+ "summary": "Open a new slice",
15958
+ "description": "Open one more slice of a change: another pull request on the same change, developed beside the ones already open. Use it when a second piece of the change can be built in parallel; for the change's first pull request there is nothing to open — work on the branch `praxis devops change checkout` gave you. The call cuts the next slice branch, named <id>--<n> where n is one more than the highest slice number the change's pull requests and its workspace already hold (so two calls give two different slices), and gives it its own git worktree in the change's workspace. If the change has no live workspace one is opened. Everything after that is automatic: the branch name, the worktree, removing the worktree once its pull request merges, and restacking a slice cut from another onto the default branch when that slice merges. A restack that conflicts is aborted and reported with the conflicting files; resolve those by hand on the slice branch, nothing is resolved for you. Without from the slice is cut from the default branch; with from set to another branch of the same change it is cut from that slice (the right choice when it builds on it). An abandoned change is refused with INVALID_ARGUMENT. The change id is the branch name <type>/<slug>; give it as it comes back — the SDK and the CLI encode the slash themselves. The workspace may still be starting when the call returns: directory is the path the worktree will have once it is available, and exists at once when the workspace is already running. From a terminal: `praxis devops changes slice <change>`.",
15959
+ "http": "POST",
15960
+ "path": "/devops/v1/projects/{project}/changes/{change}/slices",
15961
+ "streaming": "no",
15962
+ "pagination": false,
15963
+ "pathParams": [
15964
+ {
15965
+ "name": "project",
15966
+ "sdkName": "project",
15967
+ "description": "Identifies the project whose data you are reading, from the project list or create answer."
15968
+ },
15969
+ {
15970
+ "name": "change",
15971
+ "sdkName": "change",
15972
+ "description": "The change whose slice you are opening: its id, which is its branch name <type>/<slug> from a change list or create answer. Give it as it comes back — `feat/run-page-v2`; the SDK and the CLI encode the slash themselves."
15973
+ }
15974
+ ],
15975
+ "query": [],
15976
+ "body": {
15977
+ "required": false,
15978
+ "fields": [
15979
+ {
15980
+ "name": "from",
15981
+ "type": "string",
15982
+ "required": false,
15983
+ "description": "Another branch of the same change to cut the slice from, such as feat/run-page-v2--2; omit it to cut from the default branch. A slice cut from a branch is restacked onto the default branch when that branch merges."
15984
+ }
15985
+ ]
15986
+ }
15987
+ },
15948
15988
  {
15949
15989
  "resource": "devops.projects.cleanups",
15950
15990
  "method": "list",
@@ -6708,6 +6708,9 @@ export declare function createDevops(transport: Transport): {
6708
6708
  markLastSlice: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesMarkLastSliceData>) => Promise<Types.DevopsChange>;
6709
6709
  openPullRequest: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesOpenPullRequestData>) => Promise<Types.DevopsChangePullRequestOpened>;
6710
6710
  retrieve: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesGetData>) => Promise<Types.DevopsChange>;
6711
+ slices: {
6712
+ create: (options: import("./core/transport.js").CallOptions<Types.DevopsChangesSlicesCreateData>) => Promise<Types.DevopsChangeSliceOpened>;
6713
+ };
6711
6714
  };
6712
6715
  connections: {
6713
6716
  complete: (options: import("./core/transport.js").CallOptions<Types.DevopsConnectionsCompleteData>) => Promise<Types.DevopsConnection>;
@@ -890,6 +890,9 @@ export function createDevops(transport) {
890
890
  markLastSlice: bind(transport, sdk.devopsChangesMarkLastSlice),
891
891
  openPullRequest: bind(transport, sdk.devopsChangesOpenPullRequest),
892
892
  retrieve: bind(transport, sdk.devopsChangesGet),
893
+ slices: {
894
+ create: bind(transport, sdk.devopsChangesSlicesCreate),
895
+ },
893
896
  },
894
897
  connections: {
895
898
  complete: bind(transport, sdk.devopsConnectionsComplete),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.2.0-dev.6528e7c",
3
+ "version": "0.2.0-dev.6ed6b94",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {