@nirvana-labs/nirvana 1.91.0 → 1.91.2
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/CHANGELOG.md +15 -0
- package/bin/migration-config.json +47 -47
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +12 -12
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +12 -12
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +15 -15
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +15 -15
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/audit-logs/audit-logs.d.mts +4 -4
- package/resources/audit-logs/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs/audit-logs.d.ts +4 -4
- package/resources/audit-logs/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs/audit-logs.js +6 -6
- package/resources/audit-logs/audit-logs.js.map +1 -1
- package/resources/audit-logs/audit-logs.mjs +6 -6
- package/resources/audit-logs/audit-logs.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +14 -14
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +14 -14
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +17 -17
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +17 -17
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +22 -22
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +22 -22
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +26 -26
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +26 -26
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/instance-types/instance-types.d.mts +15 -15
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +15 -15
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/instance-types/instance-types.js +14 -14
- package/resources/instance-types/instance-types.js.map +1 -1
- package/resources/instance-types/instance-types.mjs +14 -14
- package/resources/instance-types/instance-types.mjs.map +1 -1
- package/resources/networking/connect/connections.d.mts +18 -18
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +18 -18
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +21 -21
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +21 -21
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +27 -27
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +27 -27
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +28 -28
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +28 -28
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +1 -1
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/networking.d.mts +1 -1
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +1 -1
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +16 -16
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +16 -16
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +19 -19
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +19 -19
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +20 -20
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +20 -20
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +19 -19
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +19 -19
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.mts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.ts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.js +16 -16
- package/resources/nks/clusters/controllers/controllers.js.map +1 -1
- package/resources/nks/clusters/controllers/controllers.mjs +16 -16
- package/resources/nks/clusters/controllers/controllers.mjs.map +1 -1
- package/resources/nks/clusters/controllers/index.d.mts +2 -2
- package/resources/nks/clusters/controllers/index.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/index.d.ts +2 -2
- package/resources/nks/clusters/controllers/index.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.mts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.ts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.js +18 -18
- package/resources/nks/clusters/controllers/volumes.js.map +1 -1
- package/resources/nks/clusters/controllers/volumes.mjs +18 -18
- package/resources/nks/clusters/controllers/volumes.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +4 -4
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +4 -4
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.mts +20 -20
- package/resources/nks/clusters/load-balancers.d.mts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.ts +20 -20
- package/resources/nks/clusters/load-balancers.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.js +16 -16
- package/resources/nks/clusters/load-balancers.js.map +1 -1
- package/resources/nks/clusters/load-balancers.mjs +16 -16
- package/resources/nks/clusters/load-balancers.mjs.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.mts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.mts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.ts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.ts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.js +16 -16
- package/resources/nks/clusters/persistent-volume-claims.js.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.mjs +16 -16
- package/resources/nks/clusters/persistent-volume-claims.mjs.map +1 -1
- package/resources/nks/clusters/pools/index.d.mts +2 -2
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +2 -2
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.mts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.ts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.js +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.mjs +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.js +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.mjs +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +26 -26
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +26 -26
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +25 -25
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +25 -25
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +6 -6
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +6 -6
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/organizations/address.d.mts +175 -0
- package/resources/organizations/address.d.mts.map +1 -0
- package/resources/organizations/address.d.ts +175 -0
- package/resources/organizations/address.d.ts.map +1 -0
- package/resources/organizations/address.js +56 -0
- package/resources/organizations/address.js.map +1 -0
- package/resources/organizations/address.mjs +52 -0
- package/resources/organizations/address.mjs.map +1 -0
- package/resources/organizations/index.d.mts +2 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +2 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +3 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -0
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/memberships.d.mts +16 -16
- package/resources/organizations/memberships.d.mts.map +1 -1
- package/resources/organizations/memberships.d.ts +16 -16
- package/resources/organizations/memberships.d.ts.map +1 -1
- package/resources/organizations/memberships.js +16 -16
- package/resources/organizations/memberships.js.map +1 -1
- package/resources/organizations/memberships.mjs +16 -16
- package/resources/organizations/memberships.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +16 -12
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +16 -12
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +17 -13
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +17 -13
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/projects/projects.d.mts +12 -12
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +12 -12
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +15 -15
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +15 -15
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/quotas/quotas.d.mts +6 -6
- package/resources/quotas/quotas.d.mts.map +1 -1
- package/resources/quotas/quotas.d.ts +6 -6
- package/resources/quotas/quotas.d.ts.map +1 -1
- package/resources/quotas/quotas.js +8 -8
- package/resources/quotas/quotas.js.map +1 -1
- package/resources/quotas/quotas.mjs +8 -8
- package/resources/quotas/quotas.mjs.map +1 -1
- package/resources/regions/regions.d.mts +9 -9
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +9 -9
- package/resources/regions/regions.d.ts.map +1 -1
- package/resources/regions/regions.js +11 -11
- package/resources/regions/regions.js.map +1 -1
- package/resources/regions/regions.mjs +11 -11
- package/resources/regions/regions.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +14 -14
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +14 -14
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +17 -17
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +17 -17
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/usage/usage.d.mts +12 -12
- package/resources/usage/usage.d.mts.map +1 -1
- package/resources/usage/usage.d.ts +12 -12
- package/resources/usage/usage.d.ts.map +1 -1
- package/resources/usage/usage.js +14 -14
- package/resources/usage/usage.js.map +1 -1
- package/resources/usage/usage.mjs +14 -14
- package/resources/usage/usage.mjs.map +1 -1
- package/resources/user/security.d.mts +4 -4
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +4 -4
- package/resources/user/security.d.ts.map +1 -1
- package/resources/user/security.js +6 -6
- package/resources/user/security.js.map +1 -1
- package/resources/user/security.mjs +6 -6
- package/resources/user/security.mjs.map +1 -1
- package/src/resources/api-keys/api-keys.ts +18 -18
- package/src/resources/api-keys/api.md +2 -2
- package/src/resources/audit-logs/api.md +1 -1
- package/src/resources/audit-logs/audit-logs.ts +7 -7
- package/src/resources/compute/api.md +4 -4
- package/src/resources/compute/vms/vms.ts +17 -17
- package/src/resources/compute/volumes/volumes.ts +28 -28
- package/src/resources/instance-types/api.md +1 -1
- package/src/resources/instance-types/instance-types.ts +19 -19
- package/src/resources/networking/api.md +6 -6
- package/src/resources/networking/connect/connections.ts +30 -30
- package/src/resources/networking/firewall-rules.ts +46 -46
- package/src/resources/networking/index.ts +2 -2
- package/src/resources/networking/networking.ts +2 -2
- package/src/resources/networking/vpcs/vpcs.ts +21 -21
- package/src/resources/nks/api.md +11 -11
- package/src/resources/nks/clusters/clusters.ts +28 -28
- package/src/resources/nks/clusters/controllers/controllers.ts +25 -25
- package/src/resources/nks/clusters/controllers/index.ts +2 -2
- package/src/resources/nks/clusters/controllers/volumes.ts +31 -31
- package/src/resources/nks/clusters/index.ts +5 -5
- package/src/resources/nks/clusters/load-balancers.ts +29 -29
- package/src/resources/nks/clusters/persistent-volume-claims.ts +27 -27
- package/src/resources/nks/clusters/pools/index.ts +4 -4
- package/src/resources/nks/clusters/pools/nodes/index.ts +3 -3
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +39 -39
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +36 -36
- package/src/resources/nks/clusters/pools/pools.ts +44 -44
- package/src/resources/operations/api.md +1 -1
- package/src/resources/operations/operations.ts +6 -6
- package/src/resources/organizations/address.ts +227 -0
- package/src/resources/organizations/api.md +14 -2
- package/src/resources/organizations/index.ts +7 -1
- package/src/resources/organizations/memberships.ts +24 -24
- package/src/resources/organizations/organizations.ts +26 -15
- package/src/resources/projects/api.md +2 -2
- package/src/resources/projects/projects.ts +18 -18
- package/src/resources/quotas/api.md +1 -1
- package/src/resources/quotas/quotas.ts +8 -8
- package/src/resources/regions/api.md +1 -1
- package/src/resources/regions/regions.ts +12 -12
- package/src/resources/rpc-nodes/api.md +3 -3
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +14 -14
- package/src/resources/rpc-nodes/flex/flex.ts +17 -17
- package/src/resources/usage/api.md +1 -1
- package/src/resources/usage/usage.ts +15 -15
- package/src/resources/user/api.md +1 -1
- package/src/resources/user/security.ts +6 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIpE;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC;CAGpC;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAElC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,IAAI,GACJ,QAAQ,GACR,KAAK,GACL,oBAAoB,GACpB,aAAa,GACb,eAAe,GACf,mBAAmB,CAAC;AAExB,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AAExD,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -4,6 +4,18 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
4
4
|
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
6
|
export declare class UsageResource extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
9
|
+
* the current organization.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const usage = await client.usage.get(
|
|
14
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
get(resourceID: string, options?: RequestOptions): APIPromise<Usage>;
|
|
7
19
|
/**
|
|
8
20
|
* List per-resource usage records for the current organization. Each item is one
|
|
9
21
|
* resource with its nested dimension history (active and closed segments).
|
|
@@ -17,18 +29,6 @@ export declare class UsageResource extends APIResource {
|
|
|
17
29
|
* ```
|
|
18
30
|
*/
|
|
19
31
|
list(query?: UsageListParams | null | undefined, options?: RequestOptions): PagePromise<UsagesCursor, Usage>;
|
|
20
|
-
/**
|
|
21
|
-
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
22
|
-
* the current organization.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const usage = await client.usage.get(
|
|
27
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
28
|
-
* );
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
get(resourceID: string, options?: RequestOptions): APIPromise<Usage>;
|
|
32
32
|
}
|
|
33
33
|
export type UsagesCursor = Cursor<Usage>;
|
|
34
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,iCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIpE;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC;CAGpC;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAElC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAC;IAEjC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,IAAI,GACJ,QAAQ,GACR,KAAK,GACL,oBAAoB,GACpB,aAAa,GACb,eAAe,GACf,mBAAmB,CAAC;AAExB,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AAExD,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
package/resources/usage/usage.js
CHANGED
|
@@ -6,6 +6,20 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class UsageResource extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
11
|
+
* the current organization.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const usage = await client.usage.get(
|
|
16
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
get(resourceID, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/v1/usage/${resourceID}`, options);
|
|
22
|
+
}
|
|
9
23
|
/**
|
|
10
24
|
* List per-resource usage records for the current organization. Each item is one
|
|
11
25
|
* resource with its nested dimension history (active and closed segments).
|
|
@@ -21,20 +35,6 @@ class UsageResource extends resource_1.APIResource {
|
|
|
21
35
|
list(query = {}, options) {
|
|
22
36
|
return this._client.getAPIList('/v1/usage', (pagination_1.Cursor), { query, ...options });
|
|
23
37
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
26
|
-
* the current organization.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const usage = await client.usage.get(
|
|
31
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
get(resourceID, options) {
|
|
36
|
-
return this._client.get((0, path_1.path) `/v1/usage/${resourceID}`, options);
|
|
37
|
-
}
|
|
38
38
|
}
|
|
39
39
|
exports.UsageResource = UsageResource;
|
|
40
40
|
//# sourceMappingURL=usage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,UAAkB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,mBAAa,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAlCD,sCAkCC"}
|
|
@@ -3,6 +3,20 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { Cursor } from "../../core/pagination.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class UsageResource extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
8
|
+
* the current organization.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const usage = await client.usage.get(
|
|
13
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
get(resourceID, options) {
|
|
18
|
+
return this._client.get(path `/v1/usage/${resourceID}`, options);
|
|
19
|
+
}
|
|
6
20
|
/**
|
|
7
21
|
* List per-resource usage records for the current organization. Each item is one
|
|
8
22
|
* resource with its nested dimension history (active and closed segments).
|
|
@@ -18,19 +32,5 @@ export class UsageResource extends APIResource {
|
|
|
18
32
|
list(query = {}, options) {
|
|
19
33
|
return this._client.getAPIList('/v1/usage', (Cursor), { query, ...options });
|
|
20
34
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Get the usage record for a single resource (metadata plus dimension history) for
|
|
23
|
-
* the current organization.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const usage = await client.usage.get(
|
|
28
|
-
* '123e4567-e89b-12d3-a456-426614174000',
|
|
29
|
-
* );
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
get(resourceID, options) {
|
|
33
|
-
return this._client.get(path `/v1/usage/${resourceID}`, options);
|
|
34
|
-
}
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=usage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAE/E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/usage/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAE/E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,GAAG,CAAC,UAAkB,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,MAAa,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -3,14 +3,14 @@ import * as Shared from "../shared.mjs";
|
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class Security extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update the current user's security settings
|
|
8
|
-
*/
|
|
9
|
-
update(body: SecurityUpdateParams, options?: RequestOptions): APIPromise<UserSecurity>;
|
|
10
6
|
/**
|
|
11
7
|
* Get the current user's security settings
|
|
12
8
|
*/
|
|
13
9
|
get(options?: RequestOptions): APIPromise<UserSecurity>;
|
|
10
|
+
/**
|
|
11
|
+
* Update the current user's security settings
|
|
12
|
+
*/
|
|
13
|
+
update(body: SecurityUpdateParams, options?: RequestOptions): APIPromise<UserSecurity>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* User security settings response.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIvD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGvF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
|
@@ -3,14 +3,14 @@ import * as Shared from "../shared.js";
|
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
5
|
export declare class Security extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Update the current user's security settings
|
|
8
|
-
*/
|
|
9
|
-
update(body: SecurityUpdateParams, options?: RequestOptions): APIPromise<UserSecurity>;
|
|
10
6
|
/**
|
|
11
7
|
* Get the current user's security settings
|
|
12
8
|
*/
|
|
13
9
|
get(options?: RequestOptions): APIPromise<UserSecurity>;
|
|
10
|
+
/**
|
|
11
|
+
* Update the current user's security settings
|
|
12
|
+
*/
|
|
13
|
+
update(body: SecurityUpdateParams, options?: RequestOptions): APIPromise<UserSecurity>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* User security settings response.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIvD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGvF;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
|
@@ -4,18 +4,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Security = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
class Security extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Update the current user's security settings
|
|
9
|
-
*/
|
|
10
|
-
update(body, options) {
|
|
11
|
-
return this._client.patch('/v1/user/security', { body, ...options });
|
|
12
|
-
}
|
|
13
7
|
/**
|
|
14
8
|
* Get the current user's security settings
|
|
15
9
|
*/
|
|
16
10
|
get(options) {
|
|
17
11
|
return this._client.get('/v1/user/security', options);
|
|
18
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Update the current user's security settings
|
|
15
|
+
*/
|
|
16
|
+
update(body, options) {
|
|
17
|
+
return this._client.patch('/v1/user/security', { body, ...options });
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
20
|
exports.Security = Security;
|
|
21
21
|
//# sourceMappingURL=security.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.js","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"security.js","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAdD,4BAcC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
export class Security extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Update the current user's security settings
|
|
6
|
-
*/
|
|
7
|
-
update(body, options) {
|
|
8
|
-
return this._client.patch('/v1/user/security', { body, ...options });
|
|
9
|
-
}
|
|
10
4
|
/**
|
|
11
5
|
* Get the current user's security settings
|
|
12
6
|
*/
|
|
13
7
|
get(options) {
|
|
14
8
|
return this._client.get('/v1/user/security', options);
|
|
15
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Update the current user's security settings
|
|
12
|
+
*/
|
|
13
|
+
update(body, options) {
|
|
14
|
+
return this._client.patch('/v1/user/security', { body, ...options });
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=security.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.mjs","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"security.mjs","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -33,33 +33,27 @@ export class APIKeys extends APIResource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Get details about an API key
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```ts
|
|
40
|
-
* const apiKey = await client.apiKeys.
|
|
40
|
+
* const apiKey = await client.apiKeys.get('api_key_id');
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
return this._client.
|
|
43
|
+
get(apiKeyID: string, options?: RequestOptions): APIPromise<APIKey> {
|
|
44
|
+
return this._client.get(path`/v1/api_keys/${apiKeyID}`, options);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Update an existing API key
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* ```ts
|
|
52
|
-
*
|
|
53
|
-
* for await (const apiKey of client.apiKeys.list()) {
|
|
54
|
-
* // ...
|
|
55
|
-
* }
|
|
52
|
+
* const apiKey = await client.apiKeys.update('api_key_id');
|
|
56
53
|
* ```
|
|
57
54
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): PagePromise<APIKeysCursor, APIKey> {
|
|
62
|
-
return this._client.getAPIList('/v1/api_keys', Cursor<APIKey>, { query, ...options });
|
|
55
|
+
update(apiKeyID: string, body: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey> {
|
|
56
|
+
return this._client.patch(path`/v1/api_keys/${apiKeyID}`, { body, ...options });
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
/**
|
|
@@ -78,15 +72,21 @@ export class APIKeys extends APIResource {
|
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
/**
|
|
81
|
-
*
|
|
75
|
+
* List all API keys
|
|
82
76
|
*
|
|
83
77
|
* @example
|
|
84
78
|
* ```ts
|
|
85
|
-
*
|
|
79
|
+
* // Automatically fetches more pages as needed.
|
|
80
|
+
* for await (const apiKey of client.apiKeys.list()) {
|
|
81
|
+
* // ...
|
|
82
|
+
* }
|
|
86
83
|
* ```
|
|
87
84
|
*/
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
list(
|
|
86
|
+
query: APIKeyListParams | null | undefined = {},
|
|
87
|
+
options?: RequestOptions,
|
|
88
|
+
): PagePromise<APIKeysCursor, APIKey> {
|
|
89
|
+
return this._client.getAPIList('/v1/api_keys', Cursor<APIKey>, { query, ...options });
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -11,7 +11,7 @@ Types:
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
13
|
- <code title="post /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">create</a>({ ...params }) -> APIKey</code>
|
|
14
|
+
- <code title="get /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">get</a>(apiKeyID) -> APIKey</code>
|
|
14
15
|
- <code title="patch /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">update</a>(apiKeyID, { ...params }) -> APIKey</code>
|
|
15
|
-
- <code title="get /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">list</a>({ ...params }) -> APIKeysCursor</code>
|
|
16
16
|
- <code title="delete /v1/api_keys/{api_key_id}">client.apiKeys.<a href="./src/resources/api-keys.ts">delete</a>(apiKeyID) -> void</code>
|
|
17
|
-
- <code title="get /v1/api_keys
|
|
17
|
+
- <code title="get /v1/api_keys">client.apiKeys.<a href="./src/resources/api-keys.ts">list</a>({ ...params }) -> APIKeysCursor</code>
|
|
@@ -10,5 +10,5 @@ Types:
|
|
|
10
10
|
|
|
11
11
|
Methods:
|
|
12
12
|
|
|
13
|
-
- <code title="get /v1/audit_logs">client.auditLogs.<a href="./src/resources/audit-logs.ts">list</a>({ ...params }) -> AuditLogsCursor</code>
|
|
14
13
|
- <code title="get /v1/audit_logs/{audit_log_id}">client.auditLogs.<a href="./src/resources/audit-logs.ts">get</a>(auditLogID) -> AuditLog</code>
|
|
14
|
+
- <code title="get /v1/audit_logs">client.auditLogs.<a href="./src/resources/audit-logs.ts">list</a>({ ...params }) -> AuditLogsCursor</code>
|
|
@@ -8,6 +8,13 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
export class AuditLogs extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get an Audit Log entry
|
|
13
|
+
*/
|
|
14
|
+
get(auditLogID: string, options?: RequestOptions): APIPromise<AuditLog> {
|
|
15
|
+
return this._client.get(path`/v1/audit_logs/${auditLogID}`, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
/**
|
|
12
19
|
* List Audit Log entries for an organization
|
|
13
20
|
*/
|
|
@@ -17,13 +24,6 @@ export class AuditLogs extends APIResource {
|
|
|
17
24
|
): PagePromise<AuditLogsCursor, AuditLog> {
|
|
18
25
|
return this._client.getAPIList('/v1/audit_logs', Cursor<AuditLog>, { query, ...options });
|
|
19
26
|
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Get an Audit Log entry
|
|
23
|
-
*/
|
|
24
|
-
get(auditLogID: string, options?: RequestOptions): APIPromise<AuditLog> {
|
|
25
|
-
return this._client.get(path`/v1/audit_logs/${auditLogID}`, options);
|
|
26
|
-
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export type AuditLogsCursor = Cursor<AuditLog>;
|
|
@@ -14,10 +14,10 @@ Types:
|
|
|
14
14
|
Methods:
|
|
15
15
|
|
|
16
16
|
- <code title="post /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">create</a>({ ...params }) -> Operation</code>
|
|
17
|
+
- <code title="get /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">get</a>(vmID) -> VM</code>
|
|
17
18
|
- <code title="patch /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">update</a>(vmID, { ...params }) -> Operation</code>
|
|
18
|
-
- <code title="get /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">list</a>({ ...params }) -> VMsCursor</code>
|
|
19
19
|
- <code title="delete /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">delete</a>(vmID) -> Operation</code>
|
|
20
|
-
- <code title="get /v1/compute/vms
|
|
20
|
+
- <code title="get /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">list</a>({ ...params }) -> VMsCursor</code>
|
|
21
21
|
- <code title="post /v1/compute/vms/{vm_id}/restart">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">restart</a>(vmID) -> Operation</code>
|
|
22
22
|
|
|
23
23
|
### Availability
|
|
@@ -51,12 +51,12 @@ Types:
|
|
|
51
51
|
Methods:
|
|
52
52
|
|
|
53
53
|
- <code title="post /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">create</a>({ ...params }) -> Operation</code>
|
|
54
|
+
- <code title="get /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">get</a>(volumeID) -> Volume</code>
|
|
54
55
|
- <code title="patch /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">update</a>(volumeID, { ...params }) -> Operation</code>
|
|
55
|
-
- <code title="get /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">list</a>({ ...params }) -> VolumesCursor</code>
|
|
56
56
|
- <code title="delete /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">delete</a>(volumeID) -> Operation</code>
|
|
57
|
+
- <code title="get /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">list</a>({ ...params }) -> VolumesCursor</code>
|
|
57
58
|
- <code title="post /v1/compute/volumes/{volume_id}/attach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">attach</a>(volumeID, { ...params }) -> Operation</code>
|
|
58
59
|
- <code title="post /v1/compute/volumes/{volume_id}/detach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">detach</a>(volumeID) -> Operation</code>
|
|
59
|
-
- <code title="get /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">get</a>(volumeID) -> Volume</code>
|
|
60
60
|
|
|
61
61
|
### Availability
|
|
62
62
|
|
|
@@ -46,32 +46,27 @@ export class VMs extends APIResource {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Get details about a VM
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
52
|
* ```ts
|
|
53
|
-
* const
|
|
53
|
+
* const vm = await client.compute.vms.get('vm_id');
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
|
|
57
|
-
return this._client.
|
|
56
|
+
get(vmID: string, options?: RequestOptions): APIPromise<VM> {
|
|
57
|
+
return this._client.get(path`/v1/compute/vms/${vmID}`, options);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Update a VM
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
|
-
*
|
|
66
|
-
* for await (const vm of client.compute.vms.list({
|
|
67
|
-
* project_id: 'project_id',
|
|
68
|
-
* })) {
|
|
69
|
-
* // ...
|
|
70
|
-
* }
|
|
65
|
+
* const operation = await client.compute.vms.update('vm_id');
|
|
71
66
|
* ```
|
|
72
67
|
*/
|
|
73
|
-
|
|
74
|
-
return this._client.
|
|
68
|
+
update(vmID: string, body: VMUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
69
|
+
return this._client.patch(path`/v1/compute/vms/${vmID}`, { body, ...options });
|
|
75
70
|
}
|
|
76
71
|
|
|
77
72
|
/**
|
|
@@ -87,15 +82,20 @@ export class VMs extends APIResource {
|
|
|
87
82
|
}
|
|
88
83
|
|
|
89
84
|
/**
|
|
90
|
-
*
|
|
85
|
+
* List all VMs
|
|
91
86
|
*
|
|
92
87
|
* @example
|
|
93
88
|
* ```ts
|
|
94
|
-
*
|
|
89
|
+
* // Automatically fetches more pages as needed.
|
|
90
|
+
* for await (const vm of client.compute.vms.list({
|
|
91
|
+
* project_id: 'project_id',
|
|
92
|
+
* })) {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
return this._client.
|
|
97
|
+
list(query: VMListParams, options?: RequestOptions): PagePromise<VMsCursor, VM> {
|
|
98
|
+
return this._client.getAPIList('/v1/compute/vms', Cursor<VM>, { query, ...options });
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
@@ -31,6 +31,20 @@ export class Volumes extends APIResource {
|
|
|
31
31
|
return this._client.post('/v1/compute/volumes', { body, ...options });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Get a Volume.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const volume = await client.compute.volumes.get(
|
|
40
|
+
* 'volume_id',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
get(volumeID: string, options?: RequestOptions): APIPromise<Volume> {
|
|
45
|
+
return this._client.get(path`/v1/compute/volumes/${volumeID}`, options);
|
|
46
|
+
}
|
|
47
|
+
|
|
34
48
|
/**
|
|
35
49
|
* Update a Volume. Boot or data volumes can be updated.
|
|
36
50
|
*
|
|
@@ -49,6 +63,20 @@ export class Volumes extends APIResource {
|
|
|
49
63
|
return this._client.patch(path`/v1/compute/volumes/${volumeID}`, { body, ...options });
|
|
50
64
|
}
|
|
51
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Delete a Volume. Boot or data volumes can be deleted.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const operation = await client.compute.volumes.delete(
|
|
72
|
+
* 'volume_id',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
77
|
+
return this._client.delete(path`/v1/compute/volumes/${volumeID}`, options);
|
|
78
|
+
}
|
|
79
|
+
|
|
52
80
|
/**
|
|
53
81
|
* List all volumes
|
|
54
82
|
*
|
|
@@ -66,20 +94,6 @@ export class Volumes extends APIResource {
|
|
|
66
94
|
return this._client.getAPIList('/v1/compute/volumes', Cursor<Volume>, { query, ...options });
|
|
67
95
|
}
|
|
68
96
|
|
|
69
|
-
/**
|
|
70
|
-
* Delete a Volume. Boot or data volumes can be deleted.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const operation = await client.compute.volumes.delete(
|
|
75
|
-
* 'volume_id',
|
|
76
|
-
* );
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
80
|
-
return this._client.delete(path`/v1/compute/volumes/${volumeID}`, options);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
97
|
/**
|
|
84
98
|
* Attach a volume to a VM
|
|
85
99
|
*
|
|
@@ -112,20 +126,6 @@ export class Volumes extends APIResource {
|
|
|
112
126
|
detach(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
113
127
|
return this._client.post(path`/v1/compute/volumes/${volumeID}/detach`, options);
|
|
114
128
|
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Get a Volume.
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```ts
|
|
121
|
-
* const volume = await client.compute.volumes.get(
|
|
122
|
-
* 'volume_id',
|
|
123
|
-
* );
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
get(volumeID: string, options?: RequestOptions): APIPromise<Volume> {
|
|
127
|
-
return this._client.get(path`/v1/compute/volumes/${volumeID}`, options);
|
|
128
|
-
}
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export type VolumesCursor = Cursor<Volume>;
|
|
@@ -7,5 +7,5 @@ Types:
|
|
|
7
7
|
|
|
8
8
|
Methods:
|
|
9
9
|
|
|
10
|
-
- <code title="get /v1/instance_types">client.instanceTypes.<a href="./src/resources/instance-types.ts">list</a>({ ...params }) -> InstanceTypesCursor</code>
|
|
11
10
|
- <code title="get /v1/instance_types/{region}/{name}">client.instanceTypes.<a href="./src/resources/instance-types.ts">get</a>(name, { ...params }) -> InstanceType</code>
|
|
11
|
+
- <code title="get /v1/instance_types">client.instanceTypes.<a href="./src/resources/instance-types.ts">list</a>({ ...params }) -> InstanceTypesCursor</code>
|