@zinn-digital/sdk 0.1.2012 → 0.1.2015

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.
@@ -30821,6 +30821,109 @@ export interface paths {
30821
30821
  patch?: never;
30822
30822
  trace?: never;
30823
30823
  };
30824
+ "/v1/compute/firewalls": {
30825
+ parameters: {
30826
+ query?: never;
30827
+ header?: never;
30828
+ path?: never;
30829
+ cookie?: never;
30830
+ };
30831
+ /**
30832
+ * List your named firewalls.
30833
+ * @description Every named, reusable firewall in the organisations you can view servers in, with the machines following each one and whether each has the current rules yet (`applied_at: null` means a write is pending or failed; `last_error` says why). Requires `sites.view`.
30834
+ */
30835
+ get: operations["listComputeNamedFirewalls"];
30836
+ put?: never;
30837
+ /**
30838
+ * Create a named firewall.
30839
+ * @description A rule set written once and followed by as many of your machines as you like. Names are unique per organisation; at most 50 rules and 200 firewalls per organisation. Creating one changes no machine until a machine follows it. No charge. Requires `sites.restart`.
30840
+ */
30841
+ post: operations["createComputeNamedFirewall"];
30842
+ delete?: never;
30843
+ options?: never;
30844
+ head?: never;
30845
+ patch?: never;
30846
+ trace?: never;
30847
+ };
30848
+ "/v1/compute/firewalls/{firewallId}": {
30849
+ parameters: {
30850
+ query?: never;
30851
+ header?: never;
30852
+ path: {
30853
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
30854
+ firewallId: components["parameters"]["ComputeFirewallId"];
30855
+ };
30856
+ cookie?: never;
30857
+ };
30858
+ /**
30859
+ * One named firewall.
30860
+ * @description The firewall, its rules and the machines following it. Requires `sites.view`.
30861
+ */
30862
+ get: operations["getComputeNamedFirewall"];
30863
+ /**
30864
+ * Rename a named firewall or replace its rules.
30865
+ * @description ⭐ `rules` replaces the whole set, never adds or removes one. When the rules change, every machine following the firewall is marked pending (`applied_at: null`) and a durable background job writes the new set to each of them, a bounded number at a time; read the firewall again to watch them catch up.
30866
+ *
30867
+ * ⛔⛔ **This can lock you out of every machine that follows it.** A set with no inbound SSH is applied exactly as asked; each machine's console still works. The whole rule set is audit-logged. Requires `sites.restart`.
30868
+ */
30869
+ put: operations["updateComputeNamedFirewall"];
30870
+ post?: never;
30871
+ /**
30872
+ * Delete a named firewall.
30873
+ * @description Refused while any machine follows it: detach them first. Requires `sites.restart`.
30874
+ */
30875
+ delete: operations["deleteComputeNamedFirewall"];
30876
+ options?: never;
30877
+ head?: never;
30878
+ patch?: never;
30879
+ trace?: never;
30880
+ };
30881
+ "/v1/compute/firewalls/{firewallId}/attach": {
30882
+ parameters: {
30883
+ query?: never;
30884
+ header?: never;
30885
+ path: {
30886
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
30887
+ firewallId: components["parameters"]["ComputeFirewallId"];
30888
+ };
30889
+ cookie?: never;
30890
+ };
30891
+ get?: never;
30892
+ put?: never;
30893
+ /**
30894
+ * Make a server follow a named firewall.
30895
+ * @description The firewall's rules replace the machine's own rule set now, and every later edit of the firewall is applied to it too. A machine follows at most one named firewall: attaching another moves it. Requires `sites.restart`.
30896
+ */
30897
+ post: operations["attachComputeNamedFirewall"];
30898
+ delete?: never;
30899
+ options?: never;
30900
+ head?: never;
30901
+ patch?: never;
30902
+ trace?: never;
30903
+ };
30904
+ "/v1/compute/firewalls/{firewallId}/detach": {
30905
+ parameters: {
30906
+ query?: never;
30907
+ header?: never;
30908
+ path: {
30909
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
30910
+ firewallId: components["parameters"]["ComputeFirewallId"];
30911
+ };
30912
+ cookie?: never;
30913
+ };
30914
+ get?: never;
30915
+ put?: never;
30916
+ /**
30917
+ * Stop a server following a named firewall.
30918
+ * @description ⛔ The machine keeps the rules it has now; nothing is opened. Change them from the machine's own firewall editor afterwards. Requires `sites.restart`.
30919
+ */
30920
+ post: operations["detachComputeNamedFirewall"];
30921
+ delete?: never;
30922
+ options?: never;
30923
+ head?: never;
30924
+ patch?: never;
30925
+ trace?: never;
30926
+ };
30824
30927
  "/v1/compute/networks": {
30825
30928
  parameters: {
30826
30929
  query?: never;
@@ -84692,6 +84795,11 @@ export interface components {
84692
84795
  worker_count: number;
84693
84796
  zone: string;
84694
84797
  };
84798
+ ComputeCreateNamedFirewallRequest: {
84799
+ name: string;
84800
+ org_id?: components["schemas"]["Uuid"];
84801
+ rules: components["schemas"]["ComputeFirewallRule"][];
84802
+ };
84695
84803
  ComputeCreateNetworkRequest: {
84696
84804
  /** @description A private IPv4 block, like `10.10.0.0/16`. */
84697
84805
  ip_range: string;
@@ -84931,6 +85039,40 @@ export interface components {
84931
85039
  ComputeMoveFloatingIpRequest: {
84932
85040
  to_server_id: components["schemas"]["Uuid"];
84933
85041
  };
85042
+ /** @description A named, reusable rule set that machines follow. */
85043
+ ComputeNamedFirewall: {
85044
+ /** Format: date-time */
85045
+ created_at: string;
85046
+ id: string;
85047
+ name: string;
85048
+ org_id: string;
85049
+ rules: components["schemas"]["ComputeFirewallRule"][];
85050
+ servers: components["schemas"]["ComputeNamedFirewallFollower"][];
85051
+ /** Format: date-time */
85052
+ updated_at: string;
85053
+ };
85054
+ /** @description One machine following a named firewall. */
85055
+ ComputeNamedFirewallFollower: {
85056
+ /**
85057
+ * Format: date-time
85058
+ * @description When the firewall's current rules were last written to this machine; `null` while a write is pending or after one failed.
85059
+ */
85060
+ applied_at: string | null;
85061
+ /** @description Why the last write failed */
85062
+ last_error: string;
85063
+ server_id: string;
85064
+ /**
85065
+ * Format: date-time
85066
+ * @description Set when this machine's own rules were edited, so it stopped following this firewall and keeps the rules it has. `null` while it follows. Attaching again re-follows.
85067
+ */
85068
+ stopped_following_at: string | null;
85069
+ };
85070
+ ComputeNamedFirewallFollowerRequest: {
85071
+ server_id: components["schemas"]["Uuid"];
85072
+ };
85073
+ ComputeNamedFirewallList: {
85074
+ data: components["schemas"]["ComputeNamedFirewall"][];
85075
+ };
84934
85076
  ComputeNetworkAttachment: {
84935
85077
  ip: string;
84936
85078
  network_id: components["schemas"]["Uuid"];
@@ -85357,6 +85499,8 @@ export interface components {
85357
85499
  id: string;
85358
85500
  /** @description Its name at the provider */
85359
85501
  name: string;
85502
+ /** @description The named firewall this machine follows (`listComputeNamedFirewalls`), or `null`. Editing this machine's own rules stops it following one. */
85503
+ named_firewall?: components["schemas"]["ComputeServerNamedFirewallRef"] | null;
85360
85504
  rules: components["schemas"]["ComputeFirewallRule"][];
85361
85505
  };
85362
85506
  /** @description A managed server's monitoring login (P3-004). Never carries a password. */
@@ -85461,6 +85605,16 @@ export interface components {
85461
85605
  /** @enum {string} */
85462
85606
  window: "1h" | "24h" | "7d" | "30d";
85463
85607
  };
85608
+ /** @description The named firewall a machine follows, or stopped following because its own rules were edited (`following: false`). Re-follow with `POST /v1/compute/firewalls/{firewallId}/attach`. */
85609
+ ComputeServerNamedFirewallRef: {
85610
+ /** Format: date-time */
85611
+ applied_at: string | null;
85612
+ following: boolean;
85613
+ id: string;
85614
+ name: string;
85615
+ /** Format: date-time */
85616
+ stopped_following_at: string | null;
85617
+ };
85464
85618
  /** @description What one machine owes for bandwidth beyond its allowance in the current metering period, and what has already been charged for it. */
85465
85619
  ComputeServerOverage: {
85466
85620
  /** @description What that traffic costs the customer, in minor units of `currency`. */
@@ -85543,6 +85697,11 @@ export interface components {
85543
85697
  price_amount_minor: number | null;
85544
85698
  /** @description The ISO-4217 code `price_amount_minor` is denominated in, or `""` when there is no subscription. Never rendered apart from the amount, and the amount never without it. */
85545
85699
  price_currency: string;
85700
+ /**
85701
+ * @description How often `price_amount_minor` is charged - the subscription's own `interval` (`monthly` or `annual`), so a client says "per month" or "per year" from our fact and never assumes a month. `""` when there is no subscription. Distinct from `period`, which is the provider's cadence for its contract with us.
85702
+ * @enum {string}
85703
+ */
85704
+ price_interval: "monthly" | "annual" | "";
85546
85705
  /** @description **The provider's date** - when the machine lapses at them, as they state it, or `""` when they state none. Blank means "not stated" - never "never". It is what the "runs until X, powered off a day later, deleted six days after that" sentences are about, and it is **not** the date the customer is charged - use `charge_at` for that. */
85547
85706
  renews_at: string;
85548
85707
  /** @description The subscription whose switch `auto_renew` reports, to send the customer to `POST /v1/subscriptions/{subscriptionId}/auto-renew`. `""` when the machine was provisioned outside a paid order (staff, comp, migration): there is then no switch to offer, and a client MUST say so rather than render a dead toggle. */
@@ -85963,6 +86122,11 @@ export interface components {
85963
86122
  ComputeUnenrolledServers: {
85964
86123
  data: components["schemas"]["ComputeUnenrolledServer"][];
85965
86124
  };
86125
+ /** @description Send `name`, `rules` or both. `rules` replaces the whole set. */
86126
+ ComputeUpdateNamedFirewallRequest: {
86127
+ name?: string;
86128
+ rules?: components["schemas"]["ComputeFirewallRule"][];
86129
+ };
85966
86130
  /** @description What the account runs now, measured the way `ComputeLimits` bounds it. */
85967
86131
  ComputeUsage: {
85968
86132
  monthly_spend_minor: number;
@@ -124630,6 +124794,8 @@ export interface components {
124630
124794
  ComputeAddonPurchaseId: components["schemas"]["Uuid"];
124631
124795
  /** @description The cluster's id, as `listComputeClusters` reports it. */
124632
124796
  ComputeClusterId: components["schemas"]["Uuid"];
124797
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
124798
+ ComputeFirewallId: components["schemas"]["Uuid"];
124633
124799
  /** @description The private network's id, as `listComputeNetworks` reports it. */
124634
124800
  ComputeNetworkId: components["schemas"]["Uuid"];
124635
124801
  /**
@@ -176581,6 +176747,215 @@ export interface operations {
176581
176747
  503: components["responses"]["ServiceUnavailable"];
176582
176748
  };
176583
176749
  };
176750
+ listComputeNamedFirewalls: {
176751
+ parameters: {
176752
+ query?: {
176753
+ org_id?: components["schemas"]["Uuid"];
176754
+ };
176755
+ header?: never;
176756
+ path?: never;
176757
+ cookie?: never;
176758
+ };
176759
+ requestBody?: never;
176760
+ responses: {
176761
+ /** @description The firewalls. */
176762
+ 200: {
176763
+ headers: {
176764
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176765
+ [name: string]: unknown;
176766
+ };
176767
+ content: {
176768
+ "application/json": components["schemas"]["ComputeNamedFirewallList"];
176769
+ };
176770
+ };
176771
+ 401: components["responses"]["Unauthorized"];
176772
+ 403: components["responses"]["Forbidden"];
176773
+ 429: components["responses"]["TooManyRequests"];
176774
+ };
176775
+ };
176776
+ createComputeNamedFirewall: {
176777
+ parameters: {
176778
+ query?: never;
176779
+ header?: never;
176780
+ path?: never;
176781
+ cookie?: never;
176782
+ };
176783
+ requestBody: {
176784
+ content: {
176785
+ "application/json": components["schemas"]["ComputeCreateNamedFirewallRequest"];
176786
+ };
176787
+ };
176788
+ responses: {
176789
+ /** @description The new firewall. */
176790
+ 201: {
176791
+ headers: {
176792
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176793
+ [name: string]: unknown;
176794
+ };
176795
+ content: {
176796
+ "application/json": components["schemas"]["ComputeNamedFirewall"];
176797
+ };
176798
+ };
176799
+ 401: components["responses"]["Unauthorized"];
176800
+ 403: components["responses"]["Forbidden"];
176801
+ 422: components["responses"]["UnprocessableEntity"];
176802
+ 429: components["responses"]["TooManyRequests"];
176803
+ };
176804
+ };
176805
+ getComputeNamedFirewall: {
176806
+ parameters: {
176807
+ query?: never;
176808
+ header?: never;
176809
+ path: {
176810
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
176811
+ firewallId: components["parameters"]["ComputeFirewallId"];
176812
+ };
176813
+ cookie?: never;
176814
+ };
176815
+ requestBody?: never;
176816
+ responses: {
176817
+ /** @description The firewall. */
176818
+ 200: {
176819
+ headers: {
176820
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176821
+ [name: string]: unknown;
176822
+ };
176823
+ content: {
176824
+ "application/json": components["schemas"]["ComputeNamedFirewall"];
176825
+ };
176826
+ };
176827
+ 401: components["responses"]["Unauthorized"];
176828
+ 403: components["responses"]["Forbidden"];
176829
+ 404: components["responses"]["NotFound"];
176830
+ 429: components["responses"]["TooManyRequests"];
176831
+ };
176832
+ };
176833
+ updateComputeNamedFirewall: {
176834
+ parameters: {
176835
+ query?: never;
176836
+ header?: never;
176837
+ path: {
176838
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
176839
+ firewallId: components["parameters"]["ComputeFirewallId"];
176840
+ };
176841
+ cookie?: never;
176842
+ };
176843
+ requestBody: {
176844
+ content: {
176845
+ "application/json": components["schemas"]["ComputeUpdateNamedFirewallRequest"];
176846
+ };
176847
+ };
176848
+ responses: {
176849
+ /** @description The firewall after the change. */
176850
+ 200: {
176851
+ headers: {
176852
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176853
+ [name: string]: unknown;
176854
+ };
176855
+ content: {
176856
+ "application/json": components["schemas"]["ComputeNamedFirewall"];
176857
+ };
176858
+ };
176859
+ 401: components["responses"]["Unauthorized"];
176860
+ 403: components["responses"]["Forbidden"];
176861
+ 404: components["responses"]["NotFound"];
176862
+ 422: components["responses"]["UnprocessableEntity"];
176863
+ 429: components["responses"]["TooManyRequests"];
176864
+ 503: components["responses"]["ServiceUnavailable"];
176865
+ };
176866
+ };
176867
+ deleteComputeNamedFirewall: {
176868
+ parameters: {
176869
+ query?: never;
176870
+ header?: never;
176871
+ path: {
176872
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
176873
+ firewallId: components["parameters"]["ComputeFirewallId"];
176874
+ };
176875
+ cookie?: never;
176876
+ };
176877
+ requestBody?: never;
176878
+ responses: {
176879
+ /** @description Deleted. */
176880
+ 204: {
176881
+ headers: {
176882
+ [name: string]: unknown;
176883
+ };
176884
+ content?: never;
176885
+ };
176886
+ 401: components["responses"]["Unauthorized"];
176887
+ 403: components["responses"]["Forbidden"];
176888
+ 404: components["responses"]["NotFound"];
176889
+ 422: components["responses"]["UnprocessableEntity"];
176890
+ 429: components["responses"]["TooManyRequests"];
176891
+ };
176892
+ };
176893
+ attachComputeNamedFirewall: {
176894
+ parameters: {
176895
+ query?: never;
176896
+ header?: never;
176897
+ path: {
176898
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
176899
+ firewallId: components["parameters"]["ComputeFirewallId"];
176900
+ };
176901
+ cookie?: never;
176902
+ };
176903
+ requestBody: {
176904
+ content: {
176905
+ "application/json": components["schemas"]["ComputeNamedFirewallFollowerRequest"];
176906
+ };
176907
+ };
176908
+ responses: {
176909
+ /** @description The firewall with its followers. */
176910
+ 200: {
176911
+ headers: {
176912
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176913
+ [name: string]: unknown;
176914
+ };
176915
+ content: {
176916
+ "application/json": components["schemas"]["ComputeNamedFirewall"];
176917
+ };
176918
+ };
176919
+ 401: components["responses"]["Unauthorized"];
176920
+ 403: components["responses"]["Forbidden"];
176921
+ 404: components["responses"]["NotFound"];
176922
+ 422: components["responses"]["UnprocessableEntity"];
176923
+ 429: components["responses"]["TooManyRequests"];
176924
+ 503: components["responses"]["ServiceUnavailable"];
176925
+ };
176926
+ };
176927
+ detachComputeNamedFirewall: {
176928
+ parameters: {
176929
+ query?: never;
176930
+ header?: never;
176931
+ path: {
176932
+ /** @description The named firewall's id, as `listComputeNamedFirewalls` reports it. */
176933
+ firewallId: components["parameters"]["ComputeFirewallId"];
176934
+ };
176935
+ cookie?: never;
176936
+ };
176937
+ requestBody: {
176938
+ content: {
176939
+ "application/json": components["schemas"]["ComputeNamedFirewallFollowerRequest"];
176940
+ };
176941
+ };
176942
+ responses: {
176943
+ /** @description The firewall with its remaining followers. */
176944
+ 200: {
176945
+ headers: {
176946
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
176947
+ [name: string]: unknown;
176948
+ };
176949
+ content: {
176950
+ "application/json": components["schemas"]["ComputeNamedFirewall"];
176951
+ };
176952
+ };
176953
+ 401: components["responses"]["Unauthorized"];
176954
+ 403: components["responses"]["Forbidden"];
176955
+ 404: components["responses"]["NotFound"];
176956
+ 429: components["responses"]["TooManyRequests"];
176957
+ };
176958
+ };
176584
176959
  listComputeNetworks: {
176585
176960
  parameters: {
176586
176961
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2012",
3
+ "version": "0.1.2015",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",